// 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
*/
/*!
 * jQuery JavaScript Library v1.4.2
 * http://jquery.com/
 *
 * Copyright 2010, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2010, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Sat Feb 13 22:33:48 2010 -0500
 */
(function(window,undefined){var jQuery=function(selector,context){return new jQuery.fn.init(selector,context);},_jQuery=window.jQuery,_$=window.$,document=window.document,rootjQuery,quickExpr=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,isSimple=/^.[^:#\[\.,]*$/,rnotwhite=/\S/,rtrim=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,rsingleTag=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,userAgent=navigator.userAgent,browserMatch,readyBound=false,readyList=[],DOMContentLoaded,toString=Object.prototype.toString,hasOwnProperty=Object.prototype.hasOwnProperty,push=Array.prototype.push,slice=Array.prototype.slice,indexOf=Array.prototype.indexOf;
jQuery.fn=jQuery.prototype={init:function(selector,context){var match,elem,ret,doc;if(!selector){return this;}if(selector.nodeType){this.context=this[0]=selector;this.length=1;return this;}if(selector==="body"&&!context){this.context=document;this[0]=document.body;this.selector="body";this.length=1;return this;}if(typeof selector==="string"){match=quickExpr.exec(selector);if(match&&(match[1]||!context)){if(match[1]){doc=(context?context.ownerDocument||context:document);ret=rsingleTag.exec(selector);
if(ret){if(jQuery.isPlainObject(context)){selector=[document.createElement(ret[1])];jQuery.fn.attr.call(selector,context,true);}else{selector=[doc.createElement(ret[1])];}}else{ret=buildFragment([match[1]],[doc]);selector=(ret.cacheable?ret.fragment.cloneNode(true):ret.fragment).childNodes;}return jQuery.merge(this,selector);}else{elem=document.getElementById(match[2]);if(elem){if(elem.id!==match[2]){return rootjQuery.find(selector);}this.length=1;this[0]=elem;}this.context=document;this.selector=selector;
return this;}}else{if(!context&&/^\w+$/.test(selector)){this.selector=selector;this.context=document;selector=document.getElementsByTagName(selector);return jQuery.merge(this,selector);}else{if(!context||context.jquery){return(context||rootjQuery).find(selector);}else{return jQuery(context).find(selector);}}}}else{if(jQuery.isFunction(selector)){return rootjQuery.ready(selector);}}if(selector.selector!==undefined){this.selector=selector.selector;this.context=selector.context;}return jQuery.makeArray(selector,this);
},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length;},toArray:function(){return slice.call(this,0);},get:function(num){return num==null?this.toArray():(num<0?this.slice(num)[0]:this[num]);},pushStack:function(elems,name,selector){var ret=jQuery();if(jQuery.isArray(elems)){push.apply(ret,elems);}else{jQuery.merge(ret,elems);}ret.prevObject=this;ret.context=this.context;if(name==="find"){ret.selector=this.selector+(this.selector?" ":"")+selector;}else{if(name){ret.selector=this.selector+"."+name+"("+selector+")";
}}return ret;},each:function(callback,args){return jQuery.each(this,callback,args);},ready:function(fn){jQuery.bindReady();if(jQuery.isReady){fn.call(document,jQuery);}else{if(readyList){readyList.push(fn);}}return this;},eq:function(i){return i===-1?this.slice(i):this.slice(i,+i+1);},first:function(){return this.eq(0);},last:function(){return this.eq(-1);},slice:function(){return this.pushStack(slice.apply(this,arguments),"slice",slice.call(arguments).join(","));},map:function(callback){return this.pushStack(jQuery.map(this,function(elem,i){return callback.call(elem,i,elem);
}));},end:function(){return this.prevObject||jQuery(null);},push:push,sort:[].sort,splice:[].splice};jQuery.fn.init.prototype=jQuery.fn;jQuery.extend=jQuery.fn.extend=function(){var target=arguments[0]||{},i=1,length=arguments.length,deep=false,options,name,src,copy;if(typeof target==="boolean"){deep=target;target=arguments[1]||{};i=2;}if(typeof target!=="object"&&!jQuery.isFunction(target)){target={};}if(length===i){target=this;--i;}for(;i<length;i++){if((options=arguments[i])!=null){for(name in options){src=target[name];
copy=options[name];if(target===copy){continue;}if(deep&&copy&&(jQuery.isPlainObject(copy)||jQuery.isArray(copy))){var clone=src&&(jQuery.isPlainObject(src)||jQuery.isArray(src))?src:jQuery.isArray(copy)?[]:{};target[name]=jQuery.extend(deep,clone,copy);}else{if(copy!==undefined){target[name]=copy;}}}}}return target;};jQuery.extend({noConflict:function(deep){window.$=_$;if(deep){window.jQuery=_jQuery;}return jQuery;},isReady:false,ready:function(){if(!jQuery.isReady){if(!document.body){return setTimeout(jQuery.ready,13);
}jQuery.isReady=true;if(readyList){var fn,i=0;while((fn=readyList[i++])){fn.call(document,jQuery);}readyList=null;}if(jQuery.fn.triggerHandler){jQuery(document).triggerHandler("ready");}}},bindReady:function(){if(readyBound){return;}readyBound=true;if(document.readyState==="complete"){return jQuery.ready();}if(document.addEventListener){document.addEventListener("DOMContentLoaded",DOMContentLoaded,false);window.addEventListener("load",jQuery.ready,false);}else{if(document.attachEvent){document.attachEvent("onreadystatechange",DOMContentLoaded);
window.attachEvent("onload",jQuery.ready);var toplevel=false;try{toplevel=window.frameElement==null;}catch(e){}if(document.documentElement.doScroll&&toplevel){doScrollCheck();}}}},isFunction:function(obj){return toString.call(obj)==="[object Function]";},isArray:function(obj){return toString.call(obj)==="[object Array]";},isPlainObject:function(obj){if(!obj||toString.call(obj)!=="[object Object]"||obj.nodeType||obj.setInterval){return false;}if(obj.constructor&&!hasOwnProperty.call(obj,"constructor")&&!hasOwnProperty.call(obj.constructor.prototype,"isPrototypeOf")){return false;
}var key;for(key in obj){}return key===undefined||hasOwnProperty.call(obj,key);},isEmptyObject:function(obj){for(var name in obj){return false;}return true;},error:function(msg){throw msg;},parseJSON:function(data){if(typeof data!=="string"||!data){return null;}data=jQuery.trim(data);if(/^[\],:{}\s]*$/.test(data.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){return window.JSON&&window.JSON.parse?window.JSON.parse(data):(new Function("return "+data))();
}else{jQuery.error("Invalid JSON: "+data);}},noop:function(){},globalEval:function(data){if(data&&rnotwhite.test(data)){var head=document.getElementsByTagName("head")[0]||document.documentElement,script=document.createElement("script");script.type="text/javascript";if(jQuery.support.scriptEval){script.appendChild(document.createTextNode(data));}else{script.text=data;}head.insertBefore(script,head.firstChild);head.removeChild(script);}},nodeName:function(elem,name){return elem.nodeName&&elem.nodeName.toUpperCase()===name.toUpperCase();
},each:function(object,callback,args){var name,i=0,length=object.length,isObj=length===undefined||jQuery.isFunction(object);if(args){if(isObj){for(name in object){if(callback.apply(object[name],args)===false){break;}}}else{for(;i<length;){if(callback.apply(object[i++],args)===false){break;}}}}else{if(isObj){for(name in object){if(callback.call(object[name],name,object[name])===false){break;}}}else{for(var value=object[0];i<length&&callback.call(value,i,value)!==false;value=object[++i]){}}}return object;
},trim:function(text){return(text||"").replace(rtrim,"");},makeArray:function(array,results){var ret=results||[];if(array!=null){if(array.length==null||typeof array==="string"||jQuery.isFunction(array)||(typeof array!=="function"&&array.setInterval)){push.call(ret,array);}else{jQuery.merge(ret,array);}}return ret;},inArray:function(elem,array){if(array.indexOf){return array.indexOf(elem);}for(var i=0,length=array.length;i<length;i++){if(array[i]===elem){return i;}}return -1;},merge:function(first,second){var i=first.length,j=0;
if(typeof second.length==="number"){for(var l=second.length;j<l;j++){first[i++]=second[j];}}else{while(second[j]!==undefined){first[i++]=second[j++];}}first.length=i;return first;},grep:function(elems,callback,inv){var ret=[];for(var i=0,length=elems.length;i<length;i++){if(!inv!==!callback(elems[i],i)){ret.push(elems[i]);}}return ret;},map:function(elems,callback,arg){var ret=[],value;for(var i=0,length=elems.length;i<length;i++){value=callback(elems[i],i,arg);if(value!=null){ret[ret.length]=value;
}}return ret.concat.apply([],ret);},guid:1,proxy:function(fn,proxy,thisObject){if(arguments.length===2){if(typeof proxy==="string"){thisObject=fn;fn=thisObject[proxy];proxy=undefined;}else{if(proxy&&!jQuery.isFunction(proxy)){thisObject=proxy;proxy=undefined;}}}if(!proxy&&fn){proxy=function(){return fn.apply(thisObject||this,arguments);};}if(fn){proxy.guid=fn.guid=fn.guid||proxy.guid||jQuery.guid++;}return proxy;},uaMatch:function(ua){ua=ua.toLowerCase();var match=/(webkit)[ \/]([\w.]+)/.exec(ua)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(ua)||/(msie) ([\w.]+)/.exec(ua)||!/compatible/.test(ua)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(ua)||[];
return{browser:match[1]||"",version:match[2]||"0"};},browser:{}});browserMatch=jQuery.uaMatch(userAgent);if(browserMatch.browser){jQuery.browser[browserMatch.browser]=true;jQuery.browser.version=browserMatch.version;}if(jQuery.browser.webkit){jQuery.browser.safari=true;}if(indexOf){jQuery.inArray=function(elem,array){return indexOf.call(array,elem);};}rootjQuery=jQuery(document);if(document.addEventListener){DOMContentLoaded=function(){document.removeEventListener("DOMContentLoaded",DOMContentLoaded,false);
jQuery.ready();};}else{if(document.attachEvent){DOMContentLoaded=function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",DOMContentLoaded);jQuery.ready();}};}}function doScrollCheck(){if(jQuery.isReady){return;}try{document.documentElement.doScroll("left");}catch(error){setTimeout(doScrollCheck,1);return;}jQuery.ready();}function evalScript(i,elem){if(elem.src){jQuery.ajax({url:elem.src,async:false,dataType:"script"});}else{jQuery.globalEval(elem.text||elem.textContent||elem.innerHTML||"");
}if(elem.parentNode){elem.parentNode.removeChild(elem);}}function access(elems,key,value,exec,fn,pass){var length=elems.length;if(typeof key==="object"){for(var k in key){access(elems,k,key[k],exec,fn,value);}return elems;}if(value!==undefined){exec=!pass&&exec&&jQuery.isFunction(value);for(var i=0;i<length;i++){fn(elems[i],key,exec?value.call(elems[i],i,fn(elems[i],key)):value,pass);}return elems;}return length?fn(elems[0],key):undefined;}function now(){return(new Date).getTime();}(function(){jQuery.support={};
var root=document.documentElement,script=document.createElement("script"),div=document.createElement("div"),id="script"+now();div.style.display="none";div.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var all=div.getElementsByTagName("*"),a=div.getElementsByTagName("a")[0];if(!all||!all.length||!a){return;}jQuery.support={leadingWhitespace:div.firstChild.nodeType===3,tbody:!div.getElementsByTagName("tbody").length,htmlSerialize:!!div.getElementsByTagName("link").length,style:/red/.test(a.getAttribute("style")),hrefNormalized:a.getAttribute("href")==="/a",opacity:/^0.55$/.test(a.style.opacity),cssFloat:!!a.style.cssFloat,checkOn:div.getElementsByTagName("input")[0].value==="on",optSelected:document.createElement("select").appendChild(document.createElement("option")).selected,parentNode:div.removeChild(div.appendChild(document.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};
script.type="text/javascript";try{script.appendChild(document.createTextNode("window."+id+"=1;"));}catch(e){}root.insertBefore(script,root.firstChild);if(window[id]){jQuery.support.scriptEval=true;delete window[id];}try{delete script.test;}catch(e){jQuery.support.deleteExpando=false;}root.removeChild(script);if(div.attachEvent&&div.fireEvent){div.attachEvent("onclick",function click(){jQuery.support.noCloneEvent=false;div.detachEvent("onclick",click);});div.cloneNode(true).fireEvent("onclick");}div=document.createElement("div");
div.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";var fragment=document.createDocumentFragment();fragment.appendChild(div.firstChild);jQuery.support.checkClone=fragment.cloneNode(true).cloneNode(true).lastChild.checked;jQuery(function(){var div=document.createElement("div");div.style.width=div.style.paddingLeft="1px";document.body.appendChild(div);jQuery.boxModel=jQuery.support.boxModel=div.offsetWidth===2;document.body.removeChild(div).style.display="none";div=null;});var eventSupported=function(eventName){var el=document.createElement("div");
eventName="on"+eventName;var isSupported=(eventName in el);if(!isSupported){el.setAttribute(eventName,"return;");isSupported=typeof el[eventName]==="function";}el=null;return isSupported;};jQuery.support.submitBubbles=eventSupported("submit");jQuery.support.changeBubbles=eventSupported("change");root=script=div=all=a=null;})();jQuery.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};
var expando="jQuery"+now(),uuid=0,windowData={};jQuery.extend({cache:{},expando:expando,noData:{embed:true,object:true,applet:true},data:function(elem,name,data){if(elem.nodeName&&jQuery.noData[elem.nodeName.toLowerCase()]){return;}elem=elem==window?windowData:elem;var id=elem[expando],cache=jQuery.cache,thisCache;if(!id&&typeof name==="string"&&data===undefined){return null;}if(!id){id=++uuid;}if(typeof name==="object"){elem[expando]=id;thisCache=cache[id]=jQuery.extend(true,{},name);}else{if(!cache[id]){elem[expando]=id;
cache[id]={};}}thisCache=cache[id];if(data!==undefined){thisCache[name]=data;}return typeof name==="string"?thisCache[name]:thisCache;},removeData:function(elem,name){if(elem.nodeName&&jQuery.noData[elem.nodeName.toLowerCase()]){return;}elem=elem==window?windowData:elem;var id=elem[expando],cache=jQuery.cache,thisCache=cache[id];if(name){if(thisCache){delete thisCache[name];if(jQuery.isEmptyObject(thisCache)){jQuery.removeData(elem);}}}else{if(jQuery.support.deleteExpando){delete elem[jQuery.expando];
}else{if(elem.removeAttribute){elem.removeAttribute(jQuery.expando);}}delete cache[id];}}});jQuery.fn.extend({data:function(key,value){if(typeof key==="undefined"&&this.length){return jQuery.data(this[0]);}else{if(typeof key==="object"){return this.each(function(){jQuery.data(this,key);});}}var parts=key.split(".");parts[1]=parts[1]?"."+parts[1]:"";if(value===undefined){var data=this.triggerHandler("getData"+parts[1]+"!",[parts[0]]);if(data===undefined&&this.length){data=jQuery.data(this[0],key);
}return data===undefined&&parts[1]?this.data(parts[0]):data;}else{return this.trigger("setData"+parts[1]+"!",[parts[0],value]).each(function(){jQuery.data(this,key,value);});}},removeData:function(key){return this.each(function(){jQuery.removeData(this,key);});}});jQuery.extend({queue:function(elem,type,data){if(!elem){return;}type=(type||"fx")+"queue";var q=jQuery.data(elem,type);if(!data){return q||[];}if(!q||jQuery.isArray(data)){q=jQuery.data(elem,type,jQuery.makeArray(data));}else{q.push(data);
}return q;},dequeue:function(elem,type){type=type||"fx";var queue=jQuery.queue(elem,type),fn=queue.shift();if(fn==="inprogress"){fn=queue.shift();}if(fn){if(type==="fx"){queue.unshift("inprogress");}fn.call(elem,function(){jQuery.dequeue(elem,type);});}}});jQuery.fn.extend({queue:function(type,data){if(typeof type!=="string"){data=type;type="fx";}if(data===undefined){return jQuery.queue(this[0],type);}return this.each(function(i,elem){var queue=jQuery.queue(this,type,data);if(type==="fx"&&queue[0]!=="inprogress"){jQuery.dequeue(this,type);
}});},dequeue:function(type){return this.each(function(){jQuery.dequeue(this,type);});},delay:function(time,type){time=jQuery.fx?jQuery.fx.speeds[time]||time:time;type=type||"fx";return this.queue(type,function(){var elem=this;setTimeout(function(){jQuery.dequeue(elem,type);},time);});},clearQueue:function(type){return this.queue(type||"fx",[]);}});var rclass=/[\n\t]/g,rspace=/\s+/,rreturn=/\r/g,rspecialurl=/href|src|style/,rtype=/(button|input)/i,rfocusable=/(button|input|object|select|textarea)/i,rclickable=/^(a|area)$/i,rradiocheck=/radio|checkbox/;
jQuery.fn.extend({attr:function(name,value){return access(this,name,value,true,jQuery.attr);},removeAttr:function(name,fn){return this.each(function(){jQuery.attr(this,name,"");if(this.nodeType===1){this.removeAttribute(name);}});},addClass:function(value){if(jQuery.isFunction(value)){return this.each(function(i){var self=jQuery(this);self.addClass(value.call(this,i,self.attr("class")));});}if(value&&typeof value==="string"){var classNames=(value||"").split(rspace);for(var i=0,l=this.length;i<l;i++){var elem=this[i];
if(elem.nodeType===1){if(!elem.className){elem.className=value;}else{var className=" "+elem.className+" ",setClass=elem.className;for(var c=0,cl=classNames.length;c<cl;c++){if(className.indexOf(" "+classNames[c]+" ")<0){setClass+=" "+classNames[c];}}elem.className=jQuery.trim(setClass);}}}}return this;},removeClass:function(value){if(jQuery.isFunction(value)){return this.each(function(i){var self=jQuery(this);self.removeClass(value.call(this,i,self.attr("class")));});}if((value&&typeof value==="string")||value===undefined){var classNames=(value||"").split(rspace);
for(var i=0,l=this.length;i<l;i++){var elem=this[i];if(elem.nodeType===1&&elem.className){if(value){var className=(" "+elem.className+" ").replace(rclass," ");for(var c=0,cl=classNames.length;c<cl;c++){className=className.replace(" "+classNames[c]+" "," ");}elem.className=jQuery.trim(className);}else{elem.className="";}}}}return this;},toggleClass:function(value,stateVal){var type=typeof value,isBool=typeof stateVal==="boolean";if(jQuery.isFunction(value)){return this.each(function(i){var self=jQuery(this);
self.toggleClass(value.call(this,i,self.attr("class"),stateVal),stateVal);});}return this.each(function(){if(type==="string"){var className,i=0,self=jQuery(this),state=stateVal,classNames=value.split(rspace);while((className=classNames[i++])){state=isBool?state:!self.hasClass(className);self[state?"addClass":"removeClass"](className);}}else{if(type==="undefined"||type==="boolean"){if(this.className){jQuery.data(this,"__className__",this.className);}this.className=this.className||value===false?"":jQuery.data(this,"__className__")||"";
}}});},hasClass:function(selector){var className=" "+selector+" ";for(var i=0,l=this.length;i<l;i++){if((" "+this[i].className+" ").replace(rclass," ").indexOf(className)>-1){return true;}}return false;},val:function(value){if(value===undefined){var elem=this[0];if(elem){if(jQuery.nodeName(elem,"option")){return(elem.attributes.value||{}).specified?elem.value:elem.text;}if(jQuery.nodeName(elem,"select")){var index=elem.selectedIndex,values=[],options=elem.options,one=elem.type==="select-one";if(index<0){return null;
}for(var i=one?index:0,max=one?index+1:options.length;i<max;i++){var option=options[i];if(option.selected){value=jQuery(option).val();if(one){return value;}values.push(value);}}return values;}if(rradiocheck.test(elem.type)&&!jQuery.support.checkOn){return elem.getAttribute("value")===null?"on":elem.value;}return(elem.value||"").replace(rreturn,"");}return undefined;}var isFunction=jQuery.isFunction(value);return this.each(function(i){var self=jQuery(this),val=value;if(this.nodeType!==1){return;}if(isFunction){val=value.call(this,i,self.val());
}if(typeof val==="number"){val+="";}if(jQuery.isArray(val)&&rradiocheck.test(this.type)){this.checked=jQuery.inArray(self.val(),val)>=0;}else{if(jQuery.nodeName(this,"select")){var values=jQuery.makeArray(val);jQuery("option",this).each(function(){this.selected=jQuery.inArray(jQuery(this).val(),values)>=0;});if(!values.length){this.selectedIndex=-1;}}else{this.value=val;}}});}});jQuery.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(elem,name,value,pass){if(!elem||elem.nodeType===3||elem.nodeType===8){return undefined;
}if(pass&&name in jQuery.attrFn){return jQuery(elem)[name](value);}var notxml=elem.nodeType!==1||!jQuery.isXMLDoc(elem),set=value!==undefined;name=notxml&&jQuery.props[name]||name;if(elem.nodeType===1){var special=rspecialurl.test(name);if(name==="selected"&&!jQuery.support.optSelected){var parent=elem.parentNode;if(parent){parent.selectedIndex;if(parent.parentNode){parent.parentNode.selectedIndex;}}}if(name in elem&&notxml&&!special){if(set){if(name==="type"&&rtype.test(elem.nodeName)&&elem.parentNode){jQuery.error("type property can't be changed");
}elem[name]=value;}if(jQuery.nodeName(elem,"form")&&elem.getAttributeNode(name)){return elem.getAttributeNode(name).nodeValue;}if(name==="tabIndex"){var attributeNode=elem.getAttributeNode("tabIndex");return attributeNode&&attributeNode.specified?attributeNode.value:rfocusable.test(elem.nodeName)||rclickable.test(elem.nodeName)&&elem.href?0:undefined;}return elem[name];}if(!jQuery.support.style&&notxml&&name==="style"){if(set){elem.style.cssText=""+value;}return elem.style.cssText;}if(set){elem.setAttribute(name,""+value);
}var attr=!jQuery.support.hrefNormalized&&notxml&&special?elem.getAttribute(name,2):elem.getAttribute(name);return attr===null?undefined:attr;}return jQuery.style(elem,name,value);}});var rnamespaces=/\.(.*)$/,fcleanup=function(nm){return nm.replace(/[^\w\s\.\|`]/g,function(ch){return"\\"+ch;});};jQuery.event={add:function(elem,types,handler,data){if(elem.nodeType===3||elem.nodeType===8){return;}if(elem.setInterval&&(elem!==window&&!elem.frameElement)){elem=window;}var handleObjIn,handleObj;if(handler.handler){handleObjIn=handler;
handler=handleObjIn.handler;}if(!handler.guid){handler.guid=jQuery.guid++;}var elemData=jQuery.data(elem);if(!elemData){return;}var events=elemData.events=elemData.events||{},eventHandle=elemData.handle,eventHandle;if(!eventHandle){elemData.handle=eventHandle=function(){return typeof jQuery!=="undefined"&&!jQuery.event.triggered?jQuery.event.handle.apply(eventHandle.elem,arguments):undefined;};}eventHandle.elem=elem;types=types.split(" ");var type,i=0,namespaces;while((type=types[i++])){handleObj=handleObjIn?jQuery.extend({},handleObjIn):{handler:handler,data:data};
if(type.indexOf(".")>-1){namespaces=type.split(".");type=namespaces.shift();handleObj.namespace=namespaces.slice(0).sort().join(".");}else{namespaces=[];handleObj.namespace="";}handleObj.type=type;handleObj.guid=handler.guid;var handlers=events[type],special=jQuery.event.special[type]||{};if(!handlers){handlers=events[type]=[];if(!special.setup||special.setup.call(elem,data,namespaces,eventHandle)===false){if(elem.addEventListener){elem.addEventListener(type,eventHandle,false);}else{if(elem.attachEvent){elem.attachEvent("on"+type,eventHandle);
}}}}if(special.add){special.add.call(elem,handleObj);if(!handleObj.handler.guid){handleObj.handler.guid=handler.guid;}}handlers.push(handleObj);jQuery.event.global[type]=true;}elem=null;},global:{},remove:function(elem,types,handler,pos){if(elem.nodeType===3||elem.nodeType===8){return;}var ret,type,fn,i=0,all,namespaces,namespace,special,eventType,handleObj,origType,elemData=jQuery.data(elem),events=elemData&&elemData.events;if(!elemData||!events){return;}if(types&&types.type){handler=types.handler;
types=types.type;}if(!types||typeof types==="string"&&types.charAt(0)==="."){types=types||"";for(type in events){jQuery.event.remove(elem,type+types);}return;}types=types.split(" ");while((type=types[i++])){origType=type;handleObj=null;all=type.indexOf(".")<0;namespaces=[];if(!all){namespaces=type.split(".");type=namespaces.shift();namespace=new RegExp("(^|\\.)"+jQuery.map(namespaces.slice(0).sort(),fcleanup).join("\\.(?:.*\\.)?")+"(\\.|$)");}eventType=events[type];if(!eventType){continue;}if(!handler){for(var j=0;
j<eventType.length;j++){handleObj=eventType[j];if(all||namespace.test(handleObj.namespace)){jQuery.event.remove(elem,origType,handleObj.handler,j);eventType.splice(j--,1);}}continue;}special=jQuery.event.special[type]||{};for(var j=pos||0;j<eventType.length;j++){handleObj=eventType[j];if(handler.guid===handleObj.guid){if(all||namespace.test(handleObj.namespace)){if(pos==null){eventType.splice(j--,1);}if(special.remove){special.remove.call(elem,handleObj);}}if(pos!=null){break;}}}if(eventType.length===0||pos!=null&&eventType.length===1){if(!special.teardown||special.teardown.call(elem,namespaces)===false){removeEvent(elem,type,elemData.handle);
}ret=null;delete events[type];}}if(jQuery.isEmptyObject(events)){var handle=elemData.handle;if(handle){handle.elem=null;}delete elemData.events;delete elemData.handle;if(jQuery.isEmptyObject(elemData)){jQuery.removeData(elem);}}},trigger:function(event,data,elem){var type=event.type||event,bubbling=arguments[3];if(!bubbling){event=typeof event==="object"?event[expando]?event:jQuery.extend(jQuery.Event(type),event):jQuery.Event(type);if(type.indexOf("!")>=0){event.type=type=type.slice(0,-1);event.exclusive=true;
}if(!elem){event.stopPropagation();if(jQuery.event.global[type]){jQuery.each(jQuery.cache,function(){if(this.events&&this.events[type]){jQuery.event.trigger(event,data,this.handle.elem);}});}}if(!elem||elem.nodeType===3||elem.nodeType===8){return undefined;}event.result=undefined;event.target=elem;data=jQuery.makeArray(data);data.unshift(event);}event.currentTarget=elem;var handle=jQuery.data(elem,"handle");if(handle){handle.apply(elem,data);}var parent=elem.parentNode||elem.ownerDocument;try{if(!(elem&&elem.nodeName&&jQuery.noData[elem.nodeName.toLowerCase()])){if(elem["on"+type]&&elem["on"+type].apply(elem,data)===false){event.result=false;
}}}catch(e){}if(!event.isPropagationStopped()&&parent){jQuery.event.trigger(event,data,parent,true);}else{if(!event.isDefaultPrevented()){var target=event.target,old,isClick=jQuery.nodeName(target,"a")&&type==="click",special=jQuery.event.special[type]||{};if((!special._default||special._default.call(elem,event)===false)&&!isClick&&!(target&&target.nodeName&&jQuery.noData[target.nodeName.toLowerCase()])){try{if(target[type]){old=target["on"+type];if(old){target["on"+type]=null;}jQuery.event.triggered=true;
target[type]();}}catch(e){}if(old){target["on"+type]=old;}jQuery.event.triggered=false;}}}},handle:function(event){var all,handlers,namespaces,namespace,events;event=arguments[0]=jQuery.event.fix(event||window.event);event.currentTarget=this;all=event.type.indexOf(".")<0&&!event.exclusive;if(!all){namespaces=event.type.split(".");event.type=namespaces.shift();namespace=new RegExp("(^|\\.)"+namespaces.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)");}var events=jQuery.data(this,"events"),handlers=events[event.type];
if(events&&handlers){handlers=handlers.slice(0);for(var j=0,l=handlers.length;j<l;j++){var handleObj=handlers[j];if(all||namespace.test(handleObj.namespace)){event.handler=handleObj.handler;event.data=handleObj.data;event.handleObj=handleObj;var ret=handleObj.handler.apply(this,arguments);if(ret!==undefined){event.result=ret;if(ret===false){event.preventDefault();event.stopPropagation();}}if(event.isImmediatePropagationStopped()){break;}}}}return event.result;},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(event){if(event[expando]){return event;
}var originalEvent=event;event=jQuery.Event(originalEvent);for(var i=this.props.length,prop;i;){prop=this.props[--i];event[prop]=originalEvent[prop];}if(!event.target){event.target=event.srcElement||document;}if(event.target.nodeType===3){event.target=event.target.parentNode;}if(!event.relatedTarget&&event.fromElement){event.relatedTarget=event.fromElement===event.target?event.toElement:event.fromElement;}if(event.pageX==null&&event.clientX!=null){var doc=document.documentElement,body=document.body;
event.pageX=event.clientX+(doc&&doc.scrollLeft||body&&body.scrollLeft||0)-(doc&&doc.clientLeft||body&&body.clientLeft||0);event.pageY=event.clientY+(doc&&doc.scrollTop||body&&body.scrollTop||0)-(doc&&doc.clientTop||body&&body.clientTop||0);}if(!event.which&&((event.charCode||event.charCode===0)?event.charCode:event.keyCode)){event.which=event.charCode||event.keyCode;}if(!event.metaKey&&event.ctrlKey){event.metaKey=event.ctrlKey;}if(!event.which&&event.button!==undefined){event.which=(event.button&1?1:(event.button&2?3:(event.button&4?2:0)));
}return event;},guid:100000000,proxy:jQuery.proxy,special:{ready:{setup:jQuery.bindReady,teardown:jQuery.noop},live:{add:function(handleObj){jQuery.event.add(this,handleObj.origType,jQuery.extend({},handleObj,{handler:liveHandler}));},remove:function(handleObj){var remove=true,type=handleObj.origType.replace(rnamespaces,"");jQuery.each(jQuery.data(this,"events").live||[],function(){if(type===this.origType.replace(rnamespaces,"")){remove=false;return false;}});if(remove){jQuery.event.remove(this,handleObj.origType,liveHandler);
}}},beforeunload:{setup:function(data,namespaces,eventHandle){if(this.setInterval){this.onbeforeunload=eventHandle;}return false;},teardown:function(namespaces,eventHandle){if(this.onbeforeunload===eventHandle){this.onbeforeunload=null;}}}}};var removeEvent=document.removeEventListener?function(elem,type,handle){elem.removeEventListener(type,handle,false);}:function(elem,type,handle){elem.detachEvent("on"+type,handle);};jQuery.Event=function(src){if(!this.preventDefault){return new jQuery.Event(src);
}if(src&&src.type){this.originalEvent=src;this.type=src.type;}else{this.type=src;}this.timeStamp=now();this[expando]=true;};function returnFalse(){return false;}function returnTrue(){return true;}jQuery.Event.prototype={preventDefault:function(){this.isDefaultPrevented=returnTrue;var e=this.originalEvent;if(!e){return;}if(e.preventDefault){e.preventDefault();}e.returnValue=false;},stopPropagation:function(){this.isPropagationStopped=returnTrue;var e=this.originalEvent;if(!e){return;}if(e.stopPropagation){e.stopPropagation();
}e.cancelBubble=true;},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=returnTrue;this.stopPropagation();},isDefaultPrevented:returnFalse,isPropagationStopped:returnFalse,isImmediatePropagationStopped:returnFalse};var withinElement=function(event){var parent=event.relatedTarget;try{while(parent&&parent!==this){parent=parent.parentNode;}if(parent!==this){event.type=event.data;jQuery.event.handle.apply(this,arguments);}}catch(e){}},delegate=function(event){event.type=event.data;
jQuery.event.handle.apply(this,arguments);};jQuery.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(orig,fix){jQuery.event.special[orig]={setup:function(data){jQuery.event.add(this,fix,data&&data.selector?delegate:withinElement,orig);},teardown:function(data){jQuery.event.remove(this,fix,data&&data.selector?delegate:withinElement);}};});if(!jQuery.support.submitBubbles){jQuery.event.special.submit={setup:function(data,namespaces){if(this.nodeName.toLowerCase()!=="form"){jQuery.event.add(this,"click.specialSubmit",function(e){var elem=e.target,type=elem.type;
if((type==="submit"||type==="image")&&jQuery(elem).closest("form").length){return trigger("submit",this,arguments);}});jQuery.event.add(this,"keypress.specialSubmit",function(e){var elem=e.target,type=elem.type;if((type==="text"||type==="password")&&jQuery(elem).closest("form").length&&e.keyCode===13){return trigger("submit",this,arguments);}});}else{return false;}},teardown:function(namespaces){jQuery.event.remove(this,".specialSubmit");}};}if(!jQuery.support.changeBubbles){var formElems=/textarea|input|select/i,changeFilters,getVal=function(elem){var type=elem.type,val=elem.value;
if(type==="radio"||type==="checkbox"){val=elem.checked;}else{if(type==="select-multiple"){val=elem.selectedIndex>-1?jQuery.map(elem.options,function(elem){return elem.selected;}).join("-"):"";}else{if(elem.nodeName.toLowerCase()==="select"){val=elem.selectedIndex;}}}return val;},testChange=function testChange(e){var elem=e.target,data,val;if(!formElems.test(elem.nodeName)||elem.readOnly){return;}data=jQuery.data(elem,"_change_data");val=getVal(elem);if(e.type!=="focusout"||elem.type!=="radio"){jQuery.data(elem,"_change_data",val);
}if(data===undefined||val===data){return;}if(data!=null||val){e.type="change";return jQuery.event.trigger(e,arguments[1],elem);}};jQuery.event.special.change={filters:{focusout:testChange,click:function(e){var elem=e.target,type=elem.type;if(type==="radio"||type==="checkbox"||elem.nodeName.toLowerCase()==="select"){return testChange.call(this,e);}},keydown:function(e){var elem=e.target,type=elem.type;if((e.keyCode===13&&elem.nodeName.toLowerCase()!=="textarea")||(e.keyCode===32&&(type==="checkbox"||type==="radio"))||type==="select-multiple"){return testChange.call(this,e);
}},beforeactivate:function(e){var elem=e.target;jQuery.data(elem,"_change_data",getVal(elem));}},setup:function(data,namespaces){if(this.type==="file"){return false;}for(var type in changeFilters){jQuery.event.add(this,type+".specialChange",changeFilters[type]);}return formElems.test(this.nodeName);},teardown:function(namespaces){jQuery.event.remove(this,".specialChange");return formElems.test(this.nodeName);}};changeFilters=jQuery.event.special.change.filters;}function trigger(type,elem,args){args[0].type=type;
return jQuery.event.handle.apply(elem,args);}if(document.addEventListener){jQuery.each({focus:"focusin",blur:"focusout"},function(orig,fix){jQuery.event.special[fix]={setup:function(){this.addEventListener(orig,handler,true);},teardown:function(){this.removeEventListener(orig,handler,true);}};function handler(e){e=jQuery.event.fix(e);e.type=fix;return jQuery.event.handle.call(this,e);}});}jQuery.each(["bind","one"],function(i,name){jQuery.fn[name]=function(type,data,fn){if(typeof type==="object"){for(var key in type){this[name](key,data,type[key],fn);
}return this;}if(jQuery.isFunction(data)){fn=data;data=undefined;}var handler=name==="one"?jQuery.proxy(fn,function(event){jQuery(this).unbind(event,handler);return fn.apply(this,arguments);}):fn;if(type==="unload"&&name!=="one"){this.one(type,data,fn);}else{for(var i=0,l=this.length;i<l;i++){jQuery.event.add(this[i],type,handler,data);}}return this;};});jQuery.fn.extend({unbind:function(type,fn){if(typeof type==="object"&&!type.preventDefault){for(var key in type){this.unbind(key,type[key]);}}else{for(var i=0,l=this.length;
i<l;i++){jQuery.event.remove(this[i],type,fn);}}return this;},delegate:function(selector,types,data,fn){return this.live(types,data,fn,selector);},undelegate:function(selector,types,fn){if(arguments.length===0){return this.unbind("live");}else{return this.die(types,null,fn,selector);}},trigger:function(type,data){return this.each(function(){jQuery.event.trigger(type,data,this);});},triggerHandler:function(type,data){if(this[0]){var event=jQuery.Event(type);event.preventDefault();event.stopPropagation();
jQuery.event.trigger(event,data,this[0]);return event.result;}},toggle:function(fn){var args=arguments,i=1;while(i<args.length){jQuery.proxy(fn,args[i++]);}return this.click(jQuery.proxy(fn,function(event){var lastToggle=(jQuery.data(this,"lastToggle"+fn.guid)||0)%i;jQuery.data(this,"lastToggle"+fn.guid,lastToggle+1);event.preventDefault();return args[lastToggle].apply(this,arguments)||false;}));},hover:function(fnOver,fnOut){return this.mouseenter(fnOver).mouseleave(fnOut||fnOver);}});var liveMap={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};
jQuery.each(["live","die"],function(i,name){jQuery.fn[name]=function(types,data,fn,origSelector){var type,i=0,match,namespaces,preType,selector=origSelector||this.selector,context=origSelector?this:jQuery(this.context);if(jQuery.isFunction(data)){fn=data;data=undefined;}types=(types||"").split(" ");while((type=types[i++])!=null){match=rnamespaces.exec(type);namespaces="";if(match){namespaces=match[0];type=type.replace(rnamespaces,"");}if(type==="hover"){types.push("mouseenter"+namespaces,"mouseleave"+namespaces);
continue;}preType=type;if(type==="focus"||type==="blur"){types.push(liveMap[type]+namespaces);type=type+namespaces;}else{type=(liveMap[type]||type)+namespaces;}if(name==="live"){context.each(function(){jQuery.event.add(this,liveConvert(type,selector),{data:data,selector:selector,handler:fn,origType:type,origHandler:fn,preType:preType});});}else{context.unbind(liveConvert(type,selector),fn);}}return this;};});function liveHandler(event){var stop,elems=[],selectors=[],args=arguments,related,match,handleObj,elem,j,i,l,data,events=jQuery.data(this,"events");
if(event.liveFired===this||!events||!events.live||event.button&&event.type==="click"){return;}event.liveFired=this;var live=events.live.slice(0);for(j=0;j<live.length;j++){handleObj=live[j];if(handleObj.origType.replace(rnamespaces,"")===event.type){selectors.push(handleObj.selector);}else{live.splice(j--,1);}}match=jQuery(event.target).closest(selectors,event.currentTarget);for(i=0,l=match.length;i<l;i++){for(j=0;j<live.length;j++){handleObj=live[j];if(match[i].selector===handleObj.selector){elem=match[i].elem;
related=null;if(handleObj.preType==="mouseenter"||handleObj.preType==="mouseleave"){related=jQuery(event.relatedTarget).closest(handleObj.selector)[0];}if(!related||related!==elem){elems.push({elem:elem,handleObj:handleObj});}}}}for(i=0,l=elems.length;i<l;i++){match=elems[i];event.currentTarget=match.elem;event.data=match.handleObj.data;event.handleObj=match.handleObj;if(match.handleObj.origHandler.apply(match.elem,args)===false){stop=false;break;}}return stop;}function liveConvert(type,selector){return"live."+(type&&type!=="*"?type+".":"")+selector.replace(/\./g,"`").replace(/ /g,"&");
}jQuery.each(("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error").split(" "),function(i,name){jQuery.fn[name]=function(fn){return fn?this.bind(name,fn):this.trigger(name);};if(jQuery.attrFn){jQuery.attrFn[name]=true;}});if(window.attachEvent&&!window.addEventListener){window.attachEvent("onunload",function(){for(var id in jQuery.cache){if(jQuery.cache[id].handle){try{jQuery.event.remove(jQuery.cache[id].handle.elem);
}catch(e){}}}});
/*!
 * Sizzle CSS Selector Engine - v1.0
 *  Copyright 2009, The Dojo Foundation
 *  Released under the MIT, BSD, and GPL Licenses.
 *  More information: http://sizzlejs.com/
 */
}(function(){var chunker=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,done=0,toString=Object.prototype.toString,hasDuplicate=false,baseHasDuplicate=true;[0,0].sort(function(){baseHasDuplicate=false;return 0;});var Sizzle=function(selector,context,results,seed){results=results||[];
var origContext=context=context||document;if(context.nodeType!==1&&context.nodeType!==9){return[];}if(!selector||typeof selector!=="string"){return results;}var parts=[],m,set,checkSet,extra,prune=true,contextXML=isXML(context),soFar=selector;while((chunker.exec(""),m=chunker.exec(soFar))!==null){soFar=m[3];parts.push(m[1]);if(m[2]){extra=m[3];break;}}if(parts.length>1&&origPOS.exec(selector)){if(parts.length===2&&Expr.relative[parts[0]]){set=posProcess(parts[0]+parts[1],context);}else{set=Expr.relative[parts[0]]?[context]:Sizzle(parts.shift(),context);
while(parts.length){selector=parts.shift();if(Expr.relative[selector]){selector+=parts.shift();}set=posProcess(selector,set);}}}else{if(!seed&&parts.length>1&&context.nodeType===9&&!contextXML&&Expr.match.ID.test(parts[0])&&!Expr.match.ID.test(parts[parts.length-1])){var ret=Sizzle.find(parts.shift(),context,contextXML);context=ret.expr?Sizzle.filter(ret.expr,ret.set)[0]:ret.set[0];}if(context){var ret=seed?{expr:parts.pop(),set:makeArray(seed)}:Sizzle.find(parts.pop(),parts.length===1&&(parts[0]==="~"||parts[0]==="+")&&context.parentNode?context.parentNode:context,contextXML);
set=ret.expr?Sizzle.filter(ret.expr,ret.set):ret.set;if(parts.length>0){checkSet=makeArray(set);}else{prune=false;}while(parts.length){var cur=parts.pop(),pop=cur;if(!Expr.relative[cur]){cur="";}else{pop=parts.pop();}if(pop==null){pop=context;}Expr.relative[cur](checkSet,pop,contextXML);}}else{checkSet=parts=[];}}if(!checkSet){checkSet=set;}if(!checkSet){Sizzle.error(cur||selector);}if(toString.call(checkSet)==="[object Array]"){if(!prune){results.push.apply(results,checkSet);}else{if(context&&context.nodeType===1){for(var i=0;
checkSet[i]!=null;i++){if(checkSet[i]&&(checkSet[i]===true||checkSet[i].nodeType===1&&contains(context,checkSet[i]))){results.push(set[i]);}}}else{for(var i=0;checkSet[i]!=null;i++){if(checkSet[i]&&checkSet[i].nodeType===1){results.push(set[i]);}}}}}else{makeArray(checkSet,results);}if(extra){Sizzle(extra,origContext,results,seed);Sizzle.uniqueSort(results);}return results;};Sizzle.uniqueSort=function(results){if(sortOrder){hasDuplicate=baseHasDuplicate;results.sort(sortOrder);if(hasDuplicate){for(var i=1;
i<results.length;i++){if(results[i]===results[i-1]){results.splice(i--,1);}}}}return results;};Sizzle.matches=function(expr,set){return Sizzle(expr,null,null,set);};Sizzle.find=function(expr,context,isXML){var set,match;if(!expr){return[];}for(var i=0,l=Expr.order.length;i<l;i++){var type=Expr.order[i],match;if((match=Expr.leftMatch[type].exec(expr))){var left=match[1];match.splice(1,1);if(left.substr(left.length-1)!=="\\"){match[1]=(match[1]||"").replace(/\\/g,"");set=Expr.find[type](match,context,isXML);
if(set!=null){expr=expr.replace(Expr.match[type],"");break;}}}}if(!set){set=context.getElementsByTagName("*");}return{set:set,expr:expr};};Sizzle.filter=function(expr,set,inplace,not){var old=expr,result=[],curLoop=set,match,anyFound,isXMLFilter=set&&set[0]&&isXML(set[0]);while(expr&&set.length){for(var type in Expr.filter){if((match=Expr.leftMatch[type].exec(expr))!=null&&match[2]){var filter=Expr.filter[type],found,item,left=match[1];anyFound=false;match.splice(1,1);if(left.substr(left.length-1)==="\\"){continue;
}if(curLoop===result){result=[];}if(Expr.preFilter[type]){match=Expr.preFilter[type](match,curLoop,inplace,result,not,isXMLFilter);if(!match){anyFound=found=true;}else{if(match===true){continue;}}}if(match){for(var i=0;(item=curLoop[i])!=null;i++){if(item){found=filter(item,match,i,curLoop);var pass=not^!!found;if(inplace&&found!=null){if(pass){anyFound=true;}else{curLoop[i]=false;}}else{if(pass){result.push(item);anyFound=true;}}}}}if(found!==undefined){if(!inplace){curLoop=result;}expr=expr.replace(Expr.match[type],"");
if(!anyFound){return[];}break;}}}if(expr===old){if(anyFound==null){Sizzle.error(expr);}else{break;}}old=expr;}return curLoop;};Sizzle.error=function(msg){throw"Syntax error, unrecognized expression: "+msg;};var Expr=Sizzle.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(elem){return elem.getAttribute("href");
}},relative:{"+":function(checkSet,part){var isPartStr=typeof part==="string",isTag=isPartStr&&!/\W/.test(part),isPartStrNotTag=isPartStr&&!isTag;if(isTag){part=part.toLowerCase();}for(var i=0,l=checkSet.length,elem;i<l;i++){if((elem=checkSet[i])){while((elem=elem.previousSibling)&&elem.nodeType!==1){}checkSet[i]=isPartStrNotTag||elem&&elem.nodeName.toLowerCase()===part?elem||false:elem===part;}}if(isPartStrNotTag){Sizzle.filter(part,checkSet,true);}},">":function(checkSet,part){var isPartStr=typeof part==="string";
if(isPartStr&&!/\W/.test(part)){part=part.toLowerCase();for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){var parent=elem.parentNode;checkSet[i]=parent.nodeName.toLowerCase()===part?parent:false;}}}else{for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){checkSet[i]=isPartStr?elem.parentNode:elem.parentNode===part;}}if(isPartStr){Sizzle.filter(part,checkSet,true);}}},"":function(checkSet,part,isXML){var doneName=done++,checkFn=dirCheck;if(typeof part==="string"&&!/\W/.test(part)){var nodeCheck=part=part.toLowerCase();
checkFn=dirNodeCheck;}checkFn("parentNode",part,doneName,checkSet,nodeCheck,isXML);},"~":function(checkSet,part,isXML){var doneName=done++,checkFn=dirCheck;if(typeof part==="string"&&!/\W/.test(part)){var nodeCheck=part=part.toLowerCase();checkFn=dirNodeCheck;}checkFn("previousSibling",part,doneName,checkSet,nodeCheck,isXML);}},find:{ID:function(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isXML){var m=context.getElementById(match[1]);return m?[m]:[];}},NAME:function(match,context){if(typeof context.getElementsByName!=="undefined"){var ret=[],results=context.getElementsByName(match[1]);
for(var i=0,l=results.length;i<l;i++){if(results[i].getAttribute("name")===match[1]){ret.push(results[i]);}}return ret.length===0?null:ret;}},TAG:function(match,context){return context.getElementsByTagName(match[1]);}},preFilter:{CLASS:function(match,curLoop,inplace,result,not,isXML){match=" "+match[1].replace(/\\/g,"")+" ";if(isXML){return match;}for(var i=0,elem;(elem=curLoop[i])!=null;i++){if(elem){if(not^(elem.className&&(" "+elem.className+" ").replace(/[\t\n]/g," ").indexOf(match)>=0)){if(!inplace){result.push(elem);
}}else{if(inplace){curLoop[i]=false;}}}}return false;},ID:function(match){return match[1].replace(/\\/g,"");},TAG:function(match,curLoop){return match[1].toLowerCase();},CHILD:function(match){if(match[1]==="nth"){var test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(match[2]==="even"&&"2n"||match[2]==="odd"&&"2n+1"||!/\D/.test(match[2])&&"0n+"+match[2]||match[2]);match[2]=(test[1]+(test[2]||1))-0;match[3]=test[3]-0;}match[0]=done++;return match;},ATTR:function(match,curLoop,inplace,result,not,isXML){var name=match[1].replace(/\\/g,"");
if(!isXML&&Expr.attrMap[name]){match[1]=Expr.attrMap[name];}if(match[2]==="~="){match[4]=" "+match[4]+" ";}return match;},PSEUDO:function(match,curLoop,inplace,result,not){if(match[1]==="not"){if((chunker.exec(match[3])||"").length>1||/^\w/.test(match[3])){match[3]=Sizzle(match[3],null,null,curLoop);}else{var ret=Sizzle.filter(match[3],curLoop,inplace,true^not);if(!inplace){result.push.apply(result,ret);}return false;}}else{if(Expr.match.POS.test(match[0])||Expr.match.CHILD.test(match[0])){return true;
}}return match;},POS:function(match){match.unshift(true);return match;}},filters:{enabled:function(elem){return elem.disabled===false&&elem.type!=="hidden";},disabled:function(elem){return elem.disabled===true;},checked:function(elem){return elem.checked===true;},selected:function(elem){elem.parentNode.selectedIndex;return elem.selected===true;},parent:function(elem){return !!elem.firstChild;},empty:function(elem){return !elem.firstChild;},has:function(elem,i,match){return !!Sizzle(match[3],elem).length;
},header:function(elem){return/h\d/i.test(elem.nodeName);},text:function(elem){return"text"===elem.type;},radio:function(elem){return"radio"===elem.type;},checkbox:function(elem){return"checkbox"===elem.type;},file:function(elem){return"file"===elem.type;},password:function(elem){return"password"===elem.type;},submit:function(elem){return"submit"===elem.type;},image:function(elem){return"image"===elem.type;},reset:function(elem){return"reset"===elem.type;},button:function(elem){return"button"===elem.type||elem.nodeName.toLowerCase()==="button";
},input:function(elem){return/input|select|textarea|button/i.test(elem.nodeName);}},setFilters:{first:function(elem,i){return i===0;},last:function(elem,i,match,array){return i===array.length-1;},even:function(elem,i){return i%2===0;},odd:function(elem,i){return i%2===1;},lt:function(elem,i,match){return i<match[3]-0;},gt:function(elem,i,match){return i>match[3]-0;},nth:function(elem,i,match){return match[3]-0===i;},eq:function(elem,i,match){return match[3]-0===i;}},filter:{PSEUDO:function(elem,match,i,array){var name=match[1],filter=Expr.filters[name];
if(filter){return filter(elem,i,match,array);}else{if(name==="contains"){return(elem.textContent||elem.innerText||getText([elem])||"").indexOf(match[3])>=0;}else{if(name==="not"){var not=match[3];for(var i=0,l=not.length;i<l;i++){if(not[i]===elem){return false;}}return true;}else{Sizzle.error("Syntax error, unrecognized expression: "+name);}}}},CHILD:function(elem,match){var type=match[1],node=elem;switch(type){case"only":case"first":while((node=node.previousSibling)){if(node.nodeType===1){return false;
}}if(type==="first"){return true;}node=elem;case"last":while((node=node.nextSibling)){if(node.nodeType===1){return false;}}return true;case"nth":var first=match[2],last=match[3];if(first===1&&last===0){return true;}var doneName=match[0],parent=elem.parentNode;if(parent&&(parent.sizcache!==doneName||!elem.nodeIndex)){var count=0;for(node=parent.firstChild;node;node=node.nextSibling){if(node.nodeType===1){node.nodeIndex=++count;}}parent.sizcache=doneName;}var diff=elem.nodeIndex-last;if(first===0){return diff===0;
}else{return(diff%first===0&&diff/first>=0);}}},ID:function(elem,match){return elem.nodeType===1&&elem.getAttribute("id")===match;},TAG:function(elem,match){return(match==="*"&&elem.nodeType===1)||elem.nodeName.toLowerCase()===match;},CLASS:function(elem,match){return(" "+(elem.className||elem.getAttribute("class"))+" ").indexOf(match)>-1;},ATTR:function(elem,match){var name=match[1],result=Expr.attrHandle[name]?Expr.attrHandle[name](elem):elem[name]!=null?elem[name]:elem.getAttribute(name),value=result+"",type=match[2],check=match[4];
return result==null?type==="!=":type==="="?value===check:type==="*="?value.indexOf(check)>=0:type==="~="?(" "+value+" ").indexOf(check)>=0:!check?value&&result!==false:type==="!="?value!==check:type==="^="?value.indexOf(check)===0:type==="$="?value.substr(value.length-check.length)===check:type==="|="?value===check||value.substr(0,check.length+1)===check+"-":false;},POS:function(elem,match,i,array){var name=match[2],filter=Expr.setFilters[name];if(filter){return filter(elem,i,match,array);}}}};var origPOS=Expr.match.POS;
for(var type in Expr.match){Expr.match[type]=new RegExp(Expr.match[type].source+/(?![^\[]*\])(?![^\(]*\))/.source);Expr.leftMatch[type]=new RegExp(/(^(?:.|\r|\n)*?)/.source+Expr.match[type].source.replace(/\\(\d+)/g,function(all,num){return"\\"+(num-0+1);}));}var makeArray=function(array,results){array=Array.prototype.slice.call(array,0);if(results){results.push.apply(results,array);return results;}return array;};try{Array.prototype.slice.call(document.documentElement.childNodes,0)[0].nodeType;}catch(e){makeArray=function(array,results){var ret=results||[];
if(toString.call(array)==="[object Array]"){Array.prototype.push.apply(ret,array);}else{if(typeof array.length==="number"){for(var i=0,l=array.length;i<l;i++){ret.push(array[i]);}}else{for(var i=0;array[i];i++){ret.push(array[i]);}}}return ret;};}var sortOrder;if(document.documentElement.compareDocumentPosition){sortOrder=function(a,b){if(!a.compareDocumentPosition||!b.compareDocumentPosition){if(a==b){hasDuplicate=true;}return a.compareDocumentPosition?-1:1;}var ret=a.compareDocumentPosition(b)&4?-1:a===b?0:1;
if(ret===0){hasDuplicate=true;}return ret;};}else{if("sourceIndex" in document.documentElement){sortOrder=function(a,b){if(!a.sourceIndex||!b.sourceIndex){if(a==b){hasDuplicate=true;}return a.sourceIndex?-1:1;}var ret=a.sourceIndex-b.sourceIndex;if(ret===0){hasDuplicate=true;}return ret;};}else{if(document.createRange){sortOrder=function(a,b){if(!a.ownerDocument||!b.ownerDocument){if(a==b){hasDuplicate=true;}return a.ownerDocument?-1:1;}var aRange=a.ownerDocument.createRange(),bRange=b.ownerDocument.createRange();
aRange.setStart(a,0);aRange.setEnd(a,0);bRange.setStart(b,0);bRange.setEnd(b,0);var ret=aRange.compareBoundaryPoints(Range.START_TO_END,bRange);if(ret===0){hasDuplicate=true;}return ret;};}}}function getText(elems){var ret="",elem;for(var i=0;elems[i];i++){elem=elems[i];if(elem.nodeType===3||elem.nodeType===4){ret+=elem.nodeValue;}else{if(elem.nodeType!==8){ret+=getText(elem.childNodes);}}}return ret;}(function(){var form=document.createElement("div"),id="script"+(new Date).getTime();form.innerHTML="<a name='"+id+"'/>";
var root=document.documentElement;root.insertBefore(form,root.firstChild);if(document.getElementById(id)){Expr.find.ID=function(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isXML){var m=context.getElementById(match[1]);return m?m.id===match[1]||typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id").nodeValue===match[1]?[m]:undefined:[];}};Expr.filter.ID=function(elem,match){var node=typeof elem.getAttributeNode!=="undefined"&&elem.getAttributeNode("id");return elem.nodeType===1&&node&&node.nodeValue===match;
};}root.removeChild(form);root=form=null;})();(function(){var div=document.createElement("div");div.appendChild(document.createComment(""));if(div.getElementsByTagName("*").length>0){Expr.find.TAG=function(match,context){var results=context.getElementsByTagName(match[1]);if(match[1]==="*"){var tmp=[];for(var i=0;results[i];i++){if(results[i].nodeType===1){tmp.push(results[i]);}}results=tmp;}return results;};}div.innerHTML="<a href='#'></a>";if(div.firstChild&&typeof div.firstChild.getAttribute!=="undefined"&&div.firstChild.getAttribute("href")!=="#"){Expr.attrHandle.href=function(elem){return elem.getAttribute("href",2);
};}div=null;})();if(document.querySelectorAll){(function(){var oldSizzle=Sizzle,div=document.createElement("div");div.innerHTML="<p class='TEST'></p>";if(div.querySelectorAll&&div.querySelectorAll(".TEST").length===0){return;}Sizzle=function(query,context,extra,seed){context=context||document;if(!seed&&context.nodeType===9&&!isXML(context)){try{return makeArray(context.querySelectorAll(query),extra);}catch(e){}}return oldSizzle(query,context,extra,seed);};for(var prop in oldSizzle){Sizzle[prop]=oldSizzle[prop];
}div=null;})();}(function(){var div=document.createElement("div");div.innerHTML="<div class='test e'></div><div class='test'></div>";if(!div.getElementsByClassName||div.getElementsByClassName("e").length===0){return;}div.lastChild.className="e";if(div.getElementsByClassName("e").length===1){return;}Expr.order.splice(1,0,"CLASS");Expr.find.CLASS=function(match,context,isXML){if(typeof context.getElementsByClassName!=="undefined"&&!isXML){return context.getElementsByClassName(match[1]);}};div=null;
})();function dirNodeCheck(dir,cur,doneName,checkSet,nodeCheck,isXML){for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){elem=elem[dir];var match=false;while(elem){if(elem.sizcache===doneName){match=checkSet[elem.sizset];break;}if(elem.nodeType===1&&!isXML){elem.sizcache=doneName;elem.sizset=i;}if(elem.nodeName.toLowerCase()===cur){match=elem;break;}elem=elem[dir];}checkSet[i]=match;}}}function dirCheck(dir,cur,doneName,checkSet,nodeCheck,isXML){for(var i=0,l=checkSet.length;i<l;
i++){var elem=checkSet[i];if(elem){elem=elem[dir];var match=false;while(elem){if(elem.sizcache===doneName){match=checkSet[elem.sizset];break;}if(elem.nodeType===1){if(!isXML){elem.sizcache=doneName;elem.sizset=i;}if(typeof cur!=="string"){if(elem===cur){match=true;break;}}else{if(Sizzle.filter(cur,[elem]).length>0){match=elem;break;}}}elem=elem[dir];}checkSet[i]=match;}}}var contains=document.compareDocumentPosition?function(a,b){return !!(a.compareDocumentPosition(b)&16);}:function(a,b){return a!==b&&(a.contains?a.contains(b):true);
};var isXML=function(elem){var documentElement=(elem?elem.ownerDocument||elem:0).documentElement;return documentElement?documentElement.nodeName!=="HTML":false;};var posProcess=function(selector,context){var tmpSet=[],later="",match,root=context.nodeType?[context]:context;while((match=Expr.match.PSEUDO.exec(selector))){later+=match[0];selector=selector.replace(Expr.match.PSEUDO,"");}selector=Expr.relative[selector]?selector+"*":selector;for(var i=0,l=root.length;i<l;i++){Sizzle(selector,root[i],tmpSet);
}return Sizzle.filter(later,tmpSet);};jQuery.find=Sizzle;jQuery.expr=Sizzle.selectors;jQuery.expr[":"]=jQuery.expr.filters;jQuery.unique=Sizzle.uniqueSort;jQuery.text=getText;jQuery.isXMLDoc=isXML;jQuery.contains=contains;return;window.Sizzle=Sizzle;})();var runtil=/Until$/,rparentsprev=/^(?:parents|prevUntil|prevAll)/,rmultiselector=/,/,slice=Array.prototype.slice;var winnow=function(elements,qualifier,keep){if(jQuery.isFunction(qualifier)){return jQuery.grep(elements,function(elem,i){return !!qualifier.call(elem,i,elem)===keep;
});}else{if(qualifier.nodeType){return jQuery.grep(elements,function(elem,i){return(elem===qualifier)===keep;});}else{if(typeof qualifier==="string"){var filtered=jQuery.grep(elements,function(elem){return elem.nodeType===1;});if(isSimple.test(qualifier)){return jQuery.filter(qualifier,filtered,!keep);}else{qualifier=jQuery.filter(qualifier,filtered);}}}}return jQuery.grep(elements,function(elem,i){return(jQuery.inArray(elem,qualifier)>=0)===keep;});};jQuery.fn.extend({find:function(selector){var ret=this.pushStack("","find",selector),length=0;
for(var i=0,l=this.length;i<l;i++){length=ret.length;jQuery.find(selector,this[i],ret);if(i>0){for(var n=length;n<ret.length;n++){for(var r=0;r<length;r++){if(ret[r]===ret[n]){ret.splice(n--,1);break;}}}}}return ret;},has:function(target){var targets=jQuery(target);return this.filter(function(){for(var i=0,l=targets.length;i<l;i++){if(jQuery.contains(this,targets[i])){return true;}}});},not:function(selector){return this.pushStack(winnow(this,selector,false),"not",selector);},filter:function(selector){return this.pushStack(winnow(this,selector,true),"filter",selector);
},is:function(selector){return !!selector&&jQuery.filter(selector,this).length>0;},closest:function(selectors,context){if(jQuery.isArray(selectors)){var ret=[],cur=this[0],match,matches={},selector;if(cur&&selectors.length){for(var i=0,l=selectors.length;i<l;i++){selector=selectors[i];if(!matches[selector]){matches[selector]=jQuery.expr.match.POS.test(selector)?jQuery(selector,context||this.context):selector;}}while(cur&&cur.ownerDocument&&cur!==context){for(selector in matches){match=matches[selector];
if(match.jquery?match.index(cur)>-1:jQuery(cur).is(match)){ret.push({selector:selector,elem:cur});delete matches[selector];}}cur=cur.parentNode;}}return ret;}var pos=jQuery.expr.match.POS.test(selectors)?jQuery(selectors,context||this.context):null;return this.map(function(i,cur){while(cur&&cur.ownerDocument&&cur!==context){if(pos?pos.index(cur)>-1:jQuery(cur).is(selectors)){return cur;}cur=cur.parentNode;}return null;});},index:function(elem){if(!elem||typeof elem==="string"){return jQuery.inArray(this[0],elem?jQuery(elem):this.parent().children());
}return jQuery.inArray(elem.jquery?elem[0]:elem,this);},add:function(selector,context){var set=typeof selector==="string"?jQuery(selector,context||this.context):jQuery.makeArray(selector),all=jQuery.merge(this.get(),set);return this.pushStack(isDisconnected(set[0])||isDisconnected(all[0])?all:jQuery.unique(all));},andSelf:function(){return this.add(this.prevObject);}});function isDisconnected(node){return !node||!node.parentNode||node.parentNode.nodeType===11;}jQuery.each({parent:function(elem){var parent=elem.parentNode;
return parent&&parent.nodeType!==11?parent:null;},parents:function(elem){return jQuery.dir(elem,"parentNode");},parentsUntil:function(elem,i,until){return jQuery.dir(elem,"parentNode",until);},next:function(elem){return jQuery.nth(elem,2,"nextSibling");},prev:function(elem){return jQuery.nth(elem,2,"previousSibling");},nextAll:function(elem){return jQuery.dir(elem,"nextSibling");},prevAll:function(elem){return jQuery.dir(elem,"previousSibling");},nextUntil:function(elem,i,until){return jQuery.dir(elem,"nextSibling",until);
},prevUntil:function(elem,i,until){return jQuery.dir(elem,"previousSibling",until);},siblings:function(elem){return jQuery.sibling(elem.parentNode.firstChild,elem);},children:function(elem){return jQuery.sibling(elem.firstChild);},contents:function(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.makeArray(elem.childNodes);}},function(name,fn){jQuery.fn[name]=function(until,selector){var ret=jQuery.map(this,fn,until);if(!runtil.test(name)){selector=until;
}if(selector&&typeof selector==="string"){ret=jQuery.filter(selector,ret);}ret=this.length>1?jQuery.unique(ret):ret;if((this.length>1||rmultiselector.test(selector))&&rparentsprev.test(name)){ret=ret.reverse();}return this.pushStack(ret,name,slice.call(arguments).join(","));};});jQuery.extend({filter:function(expr,elems,not){if(not){expr=":not("+expr+")";}return jQuery.find.matches(expr,elems);},dir:function(elem,dir,until){var matched=[],cur=elem[dir];while(cur&&cur.nodeType!==9&&(until===undefined||cur.nodeType!==1||!jQuery(cur).is(until))){if(cur.nodeType===1){matched.push(cur);
}cur=cur[dir];}return matched;},nth:function(cur,result,dir,elem){result=result||1;var num=0;for(;cur;cur=cur[dir]){if(cur.nodeType===1&&++num===result){break;}}return cur;},sibling:function(n,elem){var r=[];for(;n;n=n.nextSibling){if(n.nodeType===1&&n!==elem){r.push(n);}}return r;}});var rinlinejQuery=/ jQuery\d+="(?:\d+|null)"/g,rleadingWhitespace=/^\s+/,rxhtmlTag=/(<([\w:]+)[^>]*?)\/>/g,rselfClosing=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,rtagName=/<([\w:]+)/,rtbody=/<tbody/i,rhtml=/<|&#?\w+;/,rnocache=/<script|<object|<embed|<option|<style/i,rchecked=/checked\s*(?:[^=]|=\s*.checked.)/i,fcloseTag=function(all,front,tag){return rselfClosing.test(tag)?all:front+"></"+tag+">";
},wrapMap={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};wrapMap.optgroup=wrapMap.option;wrapMap.tbody=wrapMap.tfoot=wrapMap.colgroup=wrapMap.caption=wrapMap.thead;wrapMap.th=wrapMap.td;if(!jQuery.support.htmlSerialize){wrapMap._default=[1,"div<div>","</div>"];
}jQuery.fn.extend({text:function(text){if(jQuery.isFunction(text)){return this.each(function(i){var self=jQuery(this);self.text(text.call(this,i,self.text()));});}if(typeof text!=="object"&&text!==undefined){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(text));}return jQuery.text(this);},wrapAll:function(html){if(jQuery.isFunction(html)){return this.each(function(i){jQuery(this).wrapAll(html.call(this,i));});}if(this[0]){var wrap=jQuery(html,this[0].ownerDocument).eq(0).clone(true);
if(this[0].parentNode){wrap.insertBefore(this[0]);}wrap.map(function(){var elem=this;while(elem.firstChild&&elem.firstChild.nodeType===1){elem=elem.firstChild;}return elem;}).append(this);}return this;},wrapInner:function(html){if(jQuery.isFunction(html)){return this.each(function(i){jQuery(this).wrapInner(html.call(this,i));});}return this.each(function(){var self=jQuery(this),contents=self.contents();if(contents.length){contents.wrapAll(html);}else{self.append(html);}});},wrap:function(html){return this.each(function(){jQuery(this).wrapAll(html);
});},unwrap:function(){return this.parent().each(function(){if(!jQuery.nodeName(this,"body")){jQuery(this).replaceWith(this.childNodes);}}).end();},append:function(){return this.domManip(arguments,true,function(elem){if(this.nodeType===1){this.appendChild(elem);}});},prepend:function(){return this.domManip(arguments,true,function(elem){if(this.nodeType===1){this.insertBefore(elem,this.firstChild);}});},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(elem){this.parentNode.insertBefore(elem,this);
});}else{if(arguments.length){var set=jQuery(arguments[0]);set.push.apply(set,this.toArray());return this.pushStack(set,"before",arguments);}}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(elem){this.parentNode.insertBefore(elem,this.nextSibling);});}else{if(arguments.length){var set=this.pushStack(this,"after",arguments);set.push.apply(set,jQuery(arguments[0]).toArray());return set;}}},remove:function(selector,keepData){for(var i=0,elem;(elem=this[i])!=null;
i++){if(!selector||jQuery.filter(selector,[elem]).length){if(!keepData&&elem.nodeType===1){jQuery.cleanData(elem.getElementsByTagName("*"));jQuery.cleanData([elem]);}if(elem.parentNode){elem.parentNode.removeChild(elem);}}}return this;},empty:function(){for(var i=0,elem;(elem=this[i])!=null;i++){if(elem.nodeType===1){jQuery.cleanData(elem.getElementsByTagName("*"));}while(elem.firstChild){elem.removeChild(elem.firstChild);}}return this;},clone:function(events){var ret=this.map(function(){if(!jQuery.support.noCloneEvent&&!jQuery.isXMLDoc(this)){var html=this.outerHTML,ownerDocument=this.ownerDocument;
if(!html){var div=ownerDocument.createElement("div");div.appendChild(this.cloneNode(true));html=div.innerHTML;}return jQuery.clean([html.replace(rinlinejQuery,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(rleadingWhitespace,"")],ownerDocument)[0];}else{return this.cloneNode(true);}});if(events===true){cloneCopyEvent(this,ret);cloneCopyEvent(this.find("*"),ret.find("*"));}return ret;},html:function(value){if(value===undefined){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(rinlinejQuery,""):null;
}else{if(typeof value==="string"&&!rnocache.test(value)&&(jQuery.support.leadingWhitespace||!rleadingWhitespace.test(value))&&!wrapMap[(rtagName.exec(value)||["",""])[1].toLowerCase()]){value=value.replace(rxhtmlTag,fcloseTag);try{for(var i=0,l=this.length;i<l;i++){if(this[i].nodeType===1){jQuery.cleanData(this[i].getElementsByTagName("*"));this[i].innerHTML=value;}}}catch(e){this.empty().append(value);}}else{if(jQuery.isFunction(value)){this.each(function(i){var self=jQuery(this),old=self.html();
self.empty().append(function(){return value.call(this,i,old);});});}else{this.empty().append(value);}}}return this;},replaceWith:function(value){if(this[0]&&this[0].parentNode){if(jQuery.isFunction(value)){return this.each(function(i){var self=jQuery(this),old=self.html();self.replaceWith(value.call(this,i,old));});}if(typeof value!=="string"){value=jQuery(value).detach();}return this.each(function(){var next=this.nextSibling,parent=this.parentNode;jQuery(this).remove();if(next){jQuery(next).before(value);
}else{jQuery(parent).append(value);}});}else{return this.pushStack(jQuery(jQuery.isFunction(value)?value():value),"replaceWith",value);}},detach:function(selector){return this.remove(selector,true);},domManip:function(args,table,callback){var results,first,value=args[0],scripts=[],fragment,parent;if(!jQuery.support.checkClone&&arguments.length===3&&typeof value==="string"&&rchecked.test(value)){return this.each(function(){jQuery(this).domManip(args,table,callback,true);});}if(jQuery.isFunction(value)){return this.each(function(i){var self=jQuery(this);
args[0]=value.call(this,i,table?self.html():undefined);self.domManip(args,table,callback);});}if(this[0]){parent=value&&value.parentNode;if(jQuery.support.parentNode&&parent&&parent.nodeType===11&&parent.childNodes.length===this.length){results={fragment:parent};}else{results=buildFragment(args,this,scripts);}fragment=results.fragment;if(fragment.childNodes.length===1){first=fragment=fragment.firstChild;}else{first=fragment.firstChild;}if(first){table=table&&jQuery.nodeName(first,"tr");for(var i=0,l=this.length;
i<l;i++){callback.call(table?root(this[i],first):this[i],i>0||results.cacheable||this.length>1?fragment.cloneNode(true):fragment);}}if(scripts.length){jQuery.each(scripts,evalScript);}}return this;function root(elem,cur){return jQuery.nodeName(elem,"table")?(elem.getElementsByTagName("tbody")[0]||elem.appendChild(elem.ownerDocument.createElement("tbody"))):elem;}}});function cloneCopyEvent(orig,ret){var i=0;ret.each(function(){if(this.nodeName!==(orig[i]&&orig[i].nodeName)){return;}var oldData=jQuery.data(orig[i++]),curData=jQuery.data(this,oldData),events=oldData&&oldData.events;
if(events){delete curData.handle;curData.events={};for(var type in events){for(var handler in events[type]){jQuery.event.add(this,type,events[type][handler],events[type][handler].data);}}}});}function buildFragment(args,nodes,scripts){var fragment,cacheable,cacheresults,doc=(nodes&&nodes[0]?nodes[0].ownerDocument||nodes[0]:document);if(args.length===1&&typeof args[0]==="string"&&args[0].length<512&&doc===document&&!rnocache.test(args[0])&&(jQuery.support.checkClone||!rchecked.test(args[0]))){cacheable=true;
cacheresults=jQuery.fragments[args[0]];if(cacheresults){if(cacheresults!==1){fragment=cacheresults;}}}if(!fragment){fragment=doc.createDocumentFragment();jQuery.clean(args,doc,fragment,scripts);}if(cacheable){jQuery.fragments[args[0]]=cacheresults?fragment:1;}return{fragment:fragment,cacheable:cacheable};}jQuery.fragments={};jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(name,original){jQuery.fn[name]=function(selector){var ret=[],insert=jQuery(selector),parent=this.length===1&&this[0].parentNode;
if(parent&&parent.nodeType===11&&parent.childNodes.length===1&&insert.length===1){insert[original](this[0]);return this;}else{for(var i=0,l=insert.length;i<l;i++){var elems=(i>0?this.clone(true):this).get();jQuery.fn[original].apply(jQuery(insert[i]),elems);ret=ret.concat(elems);}return this.pushStack(ret,name,insert.selector);}};});jQuery.extend({clean:function(elems,context,fragment,scripts){context=context||document;if(typeof context.createElement==="undefined"){context=context.ownerDocument||context[0]&&context[0].ownerDocument||document;
}var ret=[];for(var i=0,elem;(elem=elems[i])!=null;i++){if(typeof elem==="number"){elem+="";}if(!elem){continue;}if(typeof elem==="string"&&!rhtml.test(elem)){elem=context.createTextNode(elem);}else{if(typeof elem==="string"){elem=elem.replace(rxhtmlTag,fcloseTag);var tag=(rtagName.exec(elem)||["",""])[1].toLowerCase(),wrap=wrapMap[tag]||wrapMap._default,depth=wrap[0],div=context.createElement("div");div.innerHTML=wrap[1]+elem+wrap[2];while(depth--){div=div.lastChild;}if(!jQuery.support.tbody){var hasBody=rtbody.test(elem),tbody=tag==="table"&&!hasBody?div.firstChild&&div.firstChild.childNodes:wrap[1]==="<table>"&&!hasBody?div.childNodes:[];
for(var j=tbody.length-1;j>=0;--j){if(jQuery.nodeName(tbody[j],"tbody")&&!tbody[j].childNodes.length){tbody[j].parentNode.removeChild(tbody[j]);}}}if(!jQuery.support.leadingWhitespace&&rleadingWhitespace.test(elem)){div.insertBefore(context.createTextNode(rleadingWhitespace.exec(elem)[0]),div.firstChild);}elem=div.childNodes;}}if(elem.nodeType){ret.push(elem);}else{ret=jQuery.merge(ret,elem);}}if(fragment){for(var i=0;ret[i];i++){if(scripts&&jQuery.nodeName(ret[i],"script")&&(!ret[i].type||ret[i].type.toLowerCase()==="text/javascript")){scripts.push(ret[i].parentNode?ret[i].parentNode.removeChild(ret[i]):ret[i]);
}else{if(ret[i].nodeType===1){ret.splice.apply(ret,[i+1,0].concat(jQuery.makeArray(ret[i].getElementsByTagName("script"))));}fragment.appendChild(ret[i]);}}}return ret;},cleanData:function(elems){var data,id,cache=jQuery.cache,special=jQuery.event.special,deleteExpando=jQuery.support.deleteExpando;for(var i=0,elem;(elem=elems[i])!=null;i++){id=elem[jQuery.expando];if(id){data=cache[id];if(data.events){for(var type in data.events){if(special[type]){jQuery.event.remove(elem,type);}else{removeEvent(elem,type,data.handle);
}}}if(deleteExpando){delete elem[jQuery.expando];}else{if(elem.removeAttribute){elem.removeAttribute(jQuery.expando);}}delete cache[id];}}}});var rexclude=/z-?index|font-?weight|opacity|zoom|line-?height/i,ralpha=/alpha\([^)]*\)/,ropacity=/opacity=([^)]*)/,rfloat=/float/i,rdashAlpha=/-([a-z])/ig,rupper=/([A-Z])/g,rnumpx=/^-?\d+(?:px)?$/i,rnum=/^-?\d/,cssShow={position:"absolute",visibility:"hidden",display:"block"},cssWidth=["Left","Right"],cssHeight=["Top","Bottom"],getComputedStyle=document.defaultView&&document.defaultView.getComputedStyle,styleFloat=jQuery.support.cssFloat?"cssFloat":"styleFloat",fcamelCase=function(all,letter){return letter.toUpperCase();
};jQuery.fn.css=function(name,value){return access(this,name,value,true,function(elem,name,value){if(value===undefined){return jQuery.curCSS(elem,name);}if(typeof value==="number"&&!rexclude.test(name)){value+="px";}jQuery.style(elem,name,value);});};jQuery.extend({style:function(elem,name,value){if(!elem||elem.nodeType===3||elem.nodeType===8){return undefined;}if((name==="width"||name==="height")&&parseFloat(value)<0){value=undefined;}var style=elem.style||elem,set=value!==undefined;if(!jQuery.support.opacity&&name==="opacity"){if(set){style.zoom=1;
var opacity=parseInt(value,10)+""==="NaN"?"":"alpha(opacity="+value*100+")";var filter=style.filter||jQuery.curCSS(elem,"filter")||"";style.filter=ralpha.test(filter)?filter.replace(ralpha,opacity):opacity;}return style.filter&&style.filter.indexOf("opacity=")>=0?(parseFloat(ropacity.exec(style.filter)[1])/100)+"":"";}if(rfloat.test(name)){name=styleFloat;}name=name.replace(rdashAlpha,fcamelCase);if(set){style[name]=value;}return style[name];},css:function(elem,name,force,extra){if(name==="width"||name==="height"){var val,props=cssShow,which=name==="width"?cssWidth:cssHeight;
function getWH(){val=name==="width"?elem.offsetWidth:elem.offsetHeight;if(extra==="border"){return;}jQuery.each(which,function(){if(!extra){val-=parseFloat(jQuery.curCSS(elem,"padding"+this,true))||0;}if(extra==="margin"){val+=parseFloat(jQuery.curCSS(elem,"margin"+this,true))||0;}else{val-=parseFloat(jQuery.curCSS(elem,"border"+this+"Width",true))||0;}});}if(elem.offsetWidth!==0){getWH();}else{jQuery.swap(elem,props,getWH);}return Math.max(0,Math.round(val));}return jQuery.curCSS(elem,name,force);
},curCSS:function(elem,name,force){var ret,style=elem.style,filter;if(!jQuery.support.opacity&&name==="opacity"&&elem.currentStyle){ret=ropacity.test(elem.currentStyle.filter||"")?(parseFloat(RegExp.$1)/100)+"":"";return ret===""?"1":ret;}if(rfloat.test(name)){name=styleFloat;}if(!force&&style&&style[name]){ret=style[name];}else{if(getComputedStyle){if(rfloat.test(name)){name="float";}name=name.replace(rupper,"-$1").toLowerCase();var defaultView=elem.ownerDocument.defaultView;if(!defaultView){return null;
}var computedStyle=defaultView.getComputedStyle(elem,null);if(computedStyle){ret=computedStyle.getPropertyValue(name);}if(name==="opacity"&&ret===""){ret="1";}}else{if(elem.currentStyle){var camelCase=name.replace(rdashAlpha,fcamelCase);ret=elem.currentStyle[name]||elem.currentStyle[camelCase];if(!rnumpx.test(ret)&&rnum.test(ret)){var left=style.left,rsLeft=elem.runtimeStyle.left;elem.runtimeStyle.left=elem.currentStyle.left;style.left=camelCase==="fontSize"?"1em":(ret||0);ret=style.pixelLeft+"px";
style.left=left;elem.runtimeStyle.left=rsLeft;}}}}return ret;},swap:function(elem,options,callback){var old={};for(var name in options){old[name]=elem.style[name];elem.style[name]=options[name];}callback.call(elem);for(var name in options){elem.style[name]=old[name];}}});if(jQuery.expr&&jQuery.expr.filters){jQuery.expr.filters.hidden=function(elem){var width=elem.offsetWidth,height=elem.offsetHeight,skip=elem.nodeName.toLowerCase()==="tr";return width===0&&height===0&&!skip?true:width>0&&height>0&&!skip?false:jQuery.curCSS(elem,"display")==="none";
};jQuery.expr.filters.visible=function(elem){return !jQuery.expr.filters.hidden(elem);};}var jsc=now(),rscript=/<script(.|\s)*?\/script>/gi,rselectTextarea=/select|textarea/i,rinput=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,jsre=/=\?(&|$)/,rquery=/\?/,rts=/(\?|&)_=.*?(&|$)/,rurl=/^(\w+:)?\/\/([^\/?#]+)/,r20=/%20/g,_load=jQuery.fn.load;jQuery.fn.extend({load:function(url,params,callback){if(typeof url!=="string"){return _load.call(this,url);}else{if(!this.length){return this;
}}var off=url.indexOf(" ");if(off>=0){var selector=url.slice(off,url.length);url=url.slice(0,off);}var type="GET";if(params){if(jQuery.isFunction(params)){callback=params;params=null;}else{if(typeof params==="object"){params=jQuery.param(params,jQuery.ajaxSettings.traditional);type="POST";}}}var self=this;jQuery.ajax({url:url,type:type,dataType:"html",data:params,complete:function(res,status){if(status==="success"||status==="notmodified"){self.html(selector?jQuery("<div />").append(res.responseText.replace(rscript,"")).find(selector):res.responseText);
}if(callback){self.each(callback,[res.responseText,status,res]);}}});return this;},serialize:function(){return jQuery.param(this.serializeArray());},serializeArray:function(){return this.map(function(){return this.elements?jQuery.makeArray(this.elements):this;}).filter(function(){return this.name&&!this.disabled&&(this.checked||rselectTextarea.test(this.nodeName)||rinput.test(this.type));}).map(function(i,elem){var val=jQuery(this).val();return val==null?null:jQuery.isArray(val)?jQuery.map(val,function(val,i){return{name:elem.name,value:val};
}):{name:elem.name,value:val};}).get();}});jQuery.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(i,o){jQuery.fn[o]=function(f){return this.bind(o,f);};});jQuery.extend({get:function(url,data,callback,type){if(jQuery.isFunction(data)){type=type||callback;callback=data;data=null;}return jQuery.ajax({type:"GET",url:url,data:data,success:callback,dataType:type});},getScript:function(url,callback){return jQuery.get(url,null,callback,"script");},getJSON:function(url,data,callback){return jQuery.get(url,data,callback,"json");
},post:function(url,data,callback,type){if(jQuery.isFunction(data)){type=type||callback;callback=data;data={};}return jQuery.ajax({type:"POST",url:url,data:data,success:callback,dataType:type});},ajaxSetup:function(settings){jQuery.extend(jQuery.ajaxSettings,settings);},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:window.XMLHttpRequest&&(window.location.protocol!=="file:"||!window.ActiveXObject)?function(){return new window.XMLHttpRequest();
}:function(){try{return new window.ActiveXObject("Microsoft.XMLHTTP");}catch(e){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(origSettings){var s=jQuery.extend(true,{},jQuery.ajaxSettings,origSettings);var jsonp,status,data,callbackContext=origSettings&&origSettings.context||s,type=s.type.toUpperCase();if(s.data&&s.processData&&typeof s.data!=="string"){s.data=jQuery.param(s.data,s.traditional);
}if(s.dataType==="jsonp"){if(type==="GET"){if(!jsre.test(s.url)){s.url+=(rquery.test(s.url)?"&":"?")+(s.jsonp||"callback")+"=?";}}else{if(!s.data||!jsre.test(s.data)){s.data=(s.data?s.data+"&":"")+(s.jsonp||"callback")+"=?";}}s.dataType="json";}if(s.dataType==="json"&&(s.data&&jsre.test(s.data)||jsre.test(s.url))){jsonp=s.jsonpCallback||("jsonp"+jsc++);if(s.data){s.data=(s.data+"").replace(jsre,"="+jsonp+"$1");}s.url=s.url.replace(jsre,"="+jsonp+"$1");s.dataType="script";window[jsonp]=window[jsonp]||function(tmp){data=tmp;
success();complete();window[jsonp]=undefined;try{delete window[jsonp];}catch(e){}if(head){head.removeChild(script);}};}if(s.dataType==="script"&&s.cache===null){s.cache=false;}if(s.cache===false&&type==="GET"){var ts=now();var ret=s.url.replace(rts,"$1_="+ts+"$2");s.url=ret+((ret===s.url)?(rquery.test(s.url)?"&":"?")+"_="+ts:"");}if(s.data&&type==="GET"){s.url+=(rquery.test(s.url)?"&":"?")+s.data;}if(s.global&&!jQuery.active++){jQuery.event.trigger("ajaxStart");}var parts=rurl.exec(s.url),remote=parts&&(parts[1]&&parts[1]!==location.protocol||parts[2]!==location.host);
if(s.dataType==="script"&&type==="GET"&&remote){var head=document.getElementsByTagName("head")[0]||document.documentElement;var script=document.createElement("script");script.src=s.url;if(s.scriptCharset){script.charset=s.scriptCharset;}if(!jsonp){var done=false;script.onload=script.onreadystatechange=function(){if(!done&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){done=true;success();complete();script.onload=script.onreadystatechange=null;if(head&&script.parentNode){head.removeChild(script);
}}};}head.insertBefore(script,head.firstChild);return undefined;}var requestDone=false;var xhr=s.xhr();if(!xhr){return;}if(s.username){xhr.open(type,s.url,s.async,s.username,s.password);}else{xhr.open(type,s.url,s.async);}try{if(s.data||origSettings&&origSettings.contentType){xhr.setRequestHeader("Content-Type",s.contentType);}if(s.ifModified){if(jQuery.lastModified[s.url]){xhr.setRequestHeader("If-Modified-Since",jQuery.lastModified[s.url]);}if(jQuery.etag[s.url]){xhr.setRequestHeader("If-None-Match",jQuery.etag[s.url]);
}}if(!remote){xhr.setRequestHeader("X-Requested-With","XMLHttpRequest");}xhr.setRequestHeader("Accept",s.dataType&&s.accepts[s.dataType]?s.accepts[s.dataType]+", */*":s.accepts._default);}catch(e){}if(s.beforeSend&&s.beforeSend.call(callbackContext,xhr,s)===false){if(s.global&&!--jQuery.active){jQuery.event.trigger("ajaxStop");}xhr.abort();return false;}if(s.global){trigger("ajaxSend",[xhr,s]);}var onreadystatechange=xhr.onreadystatechange=function(isTimeout){if(!xhr||xhr.readyState===0||isTimeout==="abort"){if(!requestDone){complete();
}requestDone=true;if(xhr){xhr.onreadystatechange=jQuery.noop;}}else{if(!requestDone&&xhr&&(xhr.readyState===4||isTimeout==="timeout")){requestDone=true;xhr.onreadystatechange=jQuery.noop;status=isTimeout==="timeout"?"timeout":!jQuery.httpSuccess(xhr)?"error":s.ifModified&&jQuery.httpNotModified(xhr,s.url)?"notmodified":"success";var errMsg;if(status==="success"){try{data=jQuery.httpData(xhr,s.dataType,s);}catch(err){status="parsererror";errMsg=err;}}if(status==="success"||status==="notmodified"){if(!jsonp){success();
}}else{jQuery.handleError(s,xhr,status,errMsg);}complete();if(isTimeout==="timeout"){xhr.abort();}if(s.async){xhr=null;}}}};try{var oldAbort=xhr.abort;xhr.abort=function(){if(xhr){oldAbort.call(xhr);}onreadystatechange("abort");};}catch(e){}if(s.async&&s.timeout>0){setTimeout(function(){if(xhr&&!requestDone){onreadystatechange("timeout");}},s.timeout);}try{xhr.send(type==="POST"||type==="PUT"||type==="DELETE"?s.data:null);}catch(e){jQuery.handleError(s,xhr,null,e);complete();}if(!s.async){onreadystatechange();
}function success(){if(s.success){s.success.call(callbackContext,data,status,xhr);}if(s.global){trigger("ajaxSuccess",[xhr,s]);}}function complete(){if(s.complete){s.complete.call(callbackContext,xhr,status);}if(s.global){trigger("ajaxComplete",[xhr,s]);}if(s.global&&!--jQuery.active){jQuery.event.trigger("ajaxStop");}}function trigger(type,args){(s.context?jQuery(s.context):jQuery.event).trigger(type,args);}return xhr;},handleError:function(s,xhr,status,e){if(s.error){s.error.call(s.context||s,xhr,status,e);
}if(s.global){(s.context?jQuery(s.context):jQuery.event).trigger("ajaxError",[xhr,s,e]);}},active:0,httpSuccess:function(xhr){try{return !xhr.status&&location.protocol==="file:"||(xhr.status>=200&&xhr.status<300)||xhr.status===304||xhr.status===1223||xhr.status===0;}catch(e){}return false;},httpNotModified:function(xhr,url){var lastModified=xhr.getResponseHeader("Last-Modified"),etag=xhr.getResponseHeader("Etag");if(lastModified){jQuery.lastModified[url]=lastModified;}if(etag){jQuery.etag[url]=etag;
}return xhr.status===304||xhr.status===0;},httpData:function(xhr,type,s){var ct=xhr.getResponseHeader("content-type")||"",xml=type==="xml"||!type&&ct.indexOf("xml")>=0,data=xml?xhr.responseXML:xhr.responseText;if(xml&&data.documentElement.nodeName==="parsererror"){jQuery.error("parsererror");}if(s&&s.dataFilter){data=s.dataFilter(data,type);}if(typeof data==="string"){if(type==="json"||!type&&ct.indexOf("json")>=0){data=jQuery.parseJSON(data);}else{if(type==="script"||!type&&ct.indexOf("javascript")>=0){jQuery.globalEval(data);
}}}return data;},param:function(a,traditional){var s=[];if(traditional===undefined){traditional=jQuery.ajaxSettings.traditional;}if(jQuery.isArray(a)||a.jquery){jQuery.each(a,function(){add(this.name,this.value);});}else{for(var prefix in a){buildParams(prefix,a[prefix]);}}return s.join("&").replace(r20,"+");function buildParams(prefix,obj){if(jQuery.isArray(obj)){jQuery.each(obj,function(i,v){if(traditional||/\[\]$/.test(prefix)){add(prefix,v);}else{buildParams(prefix+"["+(typeof v==="object"||jQuery.isArray(v)?i:"")+"]",v);
}});}else{if(!traditional&&obj!=null&&typeof obj==="object"){jQuery.each(obj,function(k,v){buildParams(prefix+"["+k+"]",v);});}else{add(prefix,obj);}}}function add(key,value){value=jQuery.isFunction(value)?value():value;s[s.length]=encodeURIComponent(key)+"="+encodeURIComponent(value);}}});var elemdisplay={},rfxtypes=/toggle|show|hide/,rfxnum=/^([+-]=)?([\d+-.]+)(.*)$/,timerId,fxAttrs=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];
jQuery.fn.extend({show:function(speed,callback){if(speed||speed===0){return this.animate(genFx("show",3),speed,callback);}else{for(var i=0,l=this.length;i<l;i++){var old=jQuery.data(this[i],"olddisplay");this[i].style.display=old||"";if(jQuery.css(this[i],"display")==="none"){var nodeName=this[i].nodeName,display;if(elemdisplay[nodeName]){display=elemdisplay[nodeName];}else{var elem=jQuery("<"+nodeName+" />").appendTo("body");display=elem.css("display");if(display==="none"){display="block";}elem.remove();
elemdisplay[nodeName]=display;}jQuery.data(this[i],"olddisplay",display);}}for(var j=0,k=this.length;j<k;j++){this[j].style.display=jQuery.data(this[j],"olddisplay")||"";}return this;}},hide:function(speed,callback){if(speed||speed===0){return this.animate(genFx("hide",3),speed,callback);}else{for(var i=0,l=this.length;i<l;i++){var old=jQuery.data(this[i],"olddisplay");if(!old&&old!=="none"){jQuery.data(this[i],"olddisplay",jQuery.css(this[i],"display"));}}for(var j=0,k=this.length;j<k;j++){this[j].style.display="none";
}return this;}},_toggle:jQuery.fn.toggle,toggle:function(fn,fn2){var bool=typeof fn==="boolean";if(jQuery.isFunction(fn)&&jQuery.isFunction(fn2)){this._toggle.apply(this,arguments);}else{if(fn==null||bool){this.each(function(){var state=bool?fn:jQuery(this).is(":hidden");jQuery(this)[state?"show":"hide"]();});}else{this.animate(genFx("toggle",3),fn,fn2);}}return this;},fadeTo:function(speed,to,callback){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:to},speed,callback);
},animate:function(prop,speed,easing,callback){var optall=jQuery.speed(speed,easing,callback);if(jQuery.isEmptyObject(prop)){return this.each(optall.complete);}return this[optall.queue===false?"each":"queue"](function(){var opt=jQuery.extend({},optall),p,hidden=this.nodeType===1&&jQuery(this).is(":hidden"),self=this;for(p in prop){var name=p.replace(rdashAlpha,fcamelCase);if(p!==name){prop[name]=prop[p];delete prop[p];p=name;}if(prop[p]==="hide"&&hidden||prop[p]==="show"&&!hidden){return opt.complete.call(this);
}if((p==="height"||p==="width")&&this.style){opt.display=jQuery.css(this,"display");opt.overflow=this.style.overflow;}if(jQuery.isArray(prop[p])){(opt.specialEasing=opt.specialEasing||{})[p]=prop[p][1];prop[p]=prop[p][0];}}if(opt.overflow!=null){this.style.overflow="hidden";}opt.curAnim=jQuery.extend({},prop);jQuery.each(prop,function(name,val){var e=new jQuery.fx(self,opt,name);if(rfxtypes.test(val)){e[val==="toggle"?hidden?"show":"hide":val](prop);}else{var parts=rfxnum.exec(val),start=e.cur(true)||0;
if(parts){var end=parseFloat(parts[2]),unit=parts[3]||"px";if(unit!=="px"){self.style[name]=(end||1)+unit;start=((end||1)/e.cur(true))*start;self.style[name]=start+unit;}if(parts[1]){end=((parts[1]==="-="?-1:1)*end)+start;}e.custom(start,end,unit);}else{e.custom(start,val,"");}}});return true;});},stop:function(clearQueue,gotoEnd){var timers=jQuery.timers;if(clearQueue){this.queue([]);}this.each(function(){for(var i=timers.length-1;i>=0;i--){if(timers[i].elem===this){if(gotoEnd){timers[i](true);}timers.splice(i,1);
}}});if(!gotoEnd){this.dequeue();}return this;}});jQuery.each({slideDown:genFx("show",1),slideUp:genFx("hide",1),slideToggle:genFx("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(name,props){jQuery.fn[name]=function(speed,callback){return this.animate(props,speed,callback);};});jQuery.extend({speed:function(speed,easing,fn){var opt=speed&&typeof speed==="object"?speed:{complete:fn||!fn&&easing||jQuery.isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&!jQuery.isFunction(easing)&&easing};
opt.duration=jQuery.fx.off?0:typeof opt.duration==="number"?opt.duration:jQuery.fx.speeds[opt.duration]||jQuery.fx.speeds._default;opt.old=opt.complete;opt.complete=function(){if(opt.queue!==false){jQuery(this).dequeue();}if(jQuery.isFunction(opt.old)){opt.old.call(this);}};return opt;},easing:{linear:function(p,n,firstNum,diff){return firstNum+diff*p;},swing:function(p,n,firstNum,diff){return((-Math.cos(p*Math.PI)/2)+0.5)*diff+firstNum;}},timers:[],fx:function(elem,options,prop){this.options=options;
this.elem=elem;this.prop=prop;if(!options.orig){options.orig={};}}});jQuery.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this);}(jQuery.fx.step[this.prop]||jQuery.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style){this.elem.style.display="block";}},cur:function(force){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop];}var r=parseFloat(jQuery.css(this.elem,this.prop,force));
return r&&r>-10000?r:parseFloat(jQuery.curCSS(this.elem,this.prop))||0;},custom:function(from,to,unit){this.startTime=now();this.start=from;this.end=to;this.unit=unit||this.unit||"px";this.now=this.start;this.pos=this.state=0;var self=this;function t(gotoEnd){return self.step(gotoEnd);}t.elem=this.elem;if(t()&&jQuery.timers.push(t)&&!timerId){timerId=setInterval(jQuery.fx.tick,13);}},show:function(){this.options.orig[this.prop]=jQuery.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());
jQuery(this.elem).show();},hide:function(){this.options.orig[this.prop]=jQuery.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0);},step:function(gotoEnd){var t=now(),done=true;if(gotoEnd||t>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var i in this.options.curAnim){if(this.options.curAnim[i]!==true){done=false;}}if(done){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;
var old=jQuery.data(this.elem,"olddisplay");this.elem.style.display=old?old:this.options.display;if(jQuery.css(this.elem,"display")==="none"){this.elem.style.display="block";}}if(this.options.hide){jQuery(this.elem).hide();}if(this.options.hide||this.options.show){for(var p in this.options.curAnim){jQuery.style(this.elem,p,this.options.orig[p]);}}this.options.complete.call(this.elem);}return false;}else{var n=t-this.startTime;this.state=n/this.options.duration;var specialEasing=this.options.specialEasing&&this.options.specialEasing[this.prop];
var defaultEasing=this.options.easing||(jQuery.easing.swing?"swing":"linear");this.pos=jQuery.easing[specialEasing||defaultEasing](this.state,n,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update();}return true;}};jQuery.extend(jQuery.fx,{tick:function(){var timers=jQuery.timers;for(var i=0;i<timers.length;i++){if(!timers[i]()){timers.splice(i--,1);}}if(!timers.length){jQuery.fx.stop();}},stop:function(){clearInterval(timerId);timerId=null;},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(fx){jQuery.style(fx.elem,"opacity",fx.now);
},_default:function(fx){if(fx.elem.style&&fx.elem.style[fx.prop]!=null){fx.elem.style[fx.prop]=(fx.prop==="width"||fx.prop==="height"?Math.max(0,fx.now):fx.now)+fx.unit;}else{fx.elem[fx.prop]=fx.now;}}}});if(jQuery.expr&&jQuery.expr.filters){jQuery.expr.filters.animated=function(elem){return jQuery.grep(jQuery.timers,function(fn){return elem===fn.elem;}).length;};}function genFx(type,num){var obj={};jQuery.each(fxAttrs.concat.apply([],fxAttrs.slice(0,num)),function(){obj[this]=type;});return obj;
}if("getBoundingClientRect" in document.documentElement){jQuery.fn.offset=function(options){var elem=this[0];if(options){return this.each(function(i){jQuery.offset.setOffset(this,options,i);});}if(!elem||!elem.ownerDocument){return null;}if(elem===elem.ownerDocument.body){return jQuery.offset.bodyOffset(elem);}var box=elem.getBoundingClientRect(),doc=elem.ownerDocument,body=doc.body,docElem=doc.documentElement,clientTop=docElem.clientTop||body.clientTop||0,clientLeft=docElem.clientLeft||body.clientLeft||0,top=box.top+(self.pageYOffset||jQuery.support.boxModel&&docElem.scrollTop||body.scrollTop)-clientTop,left=box.left+(self.pageXOffset||jQuery.support.boxModel&&docElem.scrollLeft||body.scrollLeft)-clientLeft;
return{top:top,left:left};};}else{jQuery.fn.offset=function(options){var elem=this[0];if(options){return this.each(function(i){jQuery.offset.setOffset(this,options,i);});}if(!elem||!elem.ownerDocument){return null;}if(elem===elem.ownerDocument.body){return jQuery.offset.bodyOffset(elem);}jQuery.offset.initialize();var offsetParent=elem.offsetParent,prevOffsetParent=elem,doc=elem.ownerDocument,computedStyle,docElem=doc.documentElement,body=doc.body,defaultView=doc.defaultView,prevComputedStyle=defaultView?defaultView.getComputedStyle(elem,null):elem.currentStyle,top=elem.offsetTop,left=elem.offsetLeft;
while((elem=elem.parentNode)&&elem!==body&&elem!==docElem){if(jQuery.offset.supportsFixedPosition&&prevComputedStyle.position==="fixed"){break;}computedStyle=defaultView?defaultView.getComputedStyle(elem,null):elem.currentStyle;top-=elem.scrollTop;left-=elem.scrollLeft;if(elem===offsetParent){top+=elem.offsetTop;left+=elem.offsetLeft;if(jQuery.offset.doesNotAddBorder&&!(jQuery.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(elem.nodeName))){top+=parseFloat(computedStyle.borderTopWidth)||0;
left+=parseFloat(computedStyle.borderLeftWidth)||0;}prevOffsetParent=offsetParent,offsetParent=elem.offsetParent;}if(jQuery.offset.subtractsBorderForOverflowNotVisible&&computedStyle.overflow!=="visible"){top+=parseFloat(computedStyle.borderTopWidth)||0;left+=parseFloat(computedStyle.borderLeftWidth)||0;}prevComputedStyle=computedStyle;}if(prevComputedStyle.position==="relative"||prevComputedStyle.position==="static"){top+=body.offsetTop;left+=body.offsetLeft;}if(jQuery.offset.supportsFixedPosition&&prevComputedStyle.position==="fixed"){top+=Math.max(docElem.scrollTop,body.scrollTop);
left+=Math.max(docElem.scrollLeft,body.scrollLeft);}return{top:top,left:left};};}jQuery.offset={initialize:function(){var body=document.body,container=document.createElement("div"),innerDiv,checkDiv,table,td,bodyMarginTop=parseFloat(jQuery.curCSS(body,"marginTop",true))||0,html="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";
jQuery.extend(container.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});container.innerHTML=html;body.insertBefore(container,body.firstChild);innerDiv=container.firstChild;checkDiv=innerDiv.firstChild;td=innerDiv.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(checkDiv.offsetTop!==5);this.doesAddBorderForTableAndCells=(td.offsetTop===5);checkDiv.style.position="fixed",checkDiv.style.top="20px";this.supportsFixedPosition=(checkDiv.offsetTop===20||checkDiv.offsetTop===15);
checkDiv.style.position=checkDiv.style.top="";innerDiv.style.overflow="hidden",innerDiv.style.position="relative";this.subtractsBorderForOverflowNotVisible=(checkDiv.offsetTop===-5);this.doesNotIncludeMarginInBodyOffset=(body.offsetTop!==bodyMarginTop);body.removeChild(container);body=container=innerDiv=checkDiv=table=td=null;jQuery.offset.initialize=jQuery.noop;},bodyOffset:function(body){var top=body.offsetTop,left=body.offsetLeft;jQuery.offset.initialize();if(jQuery.offset.doesNotIncludeMarginInBodyOffset){top+=parseFloat(jQuery.curCSS(body,"marginTop",true))||0;
left+=parseFloat(jQuery.curCSS(body,"marginLeft",true))||0;}return{top:top,left:left};},setOffset:function(elem,options,i){if(/static/.test(jQuery.curCSS(elem,"position"))){elem.style.position="relative";}var curElem=jQuery(elem),curOffset=curElem.offset(),curTop=parseInt(jQuery.curCSS(elem,"top",true),10)||0,curLeft=parseInt(jQuery.curCSS(elem,"left",true),10)||0;if(jQuery.isFunction(options)){options=options.call(elem,i,curOffset);}var props={top:(options.top-curOffset.top)+curTop,left:(options.left-curOffset.left)+curLeft};
if("using" in options){options.using.call(elem,props);}else{curElem.css(props);}}};jQuery.fn.extend({position:function(){if(!this[0]){return null;}var elem=this[0],offsetParent=this.offsetParent(),offset=this.offset(),parentOffset=/^body|html$/i.test(offsetParent[0].nodeName)?{top:0,left:0}:offsetParent.offset();offset.top-=parseFloat(jQuery.curCSS(elem,"marginTop",true))||0;offset.left-=parseFloat(jQuery.curCSS(elem,"marginLeft",true))||0;parentOffset.top+=parseFloat(jQuery.curCSS(offsetParent[0],"borderTopWidth",true))||0;
parentOffset.left+=parseFloat(jQuery.curCSS(offsetParent[0],"borderLeftWidth",true))||0;return{top:offset.top-parentOffset.top,left:offset.left-parentOffset.left};},offsetParent:function(){return this.map(function(){var offsetParent=this.offsetParent||document.body;while(offsetParent&&(!/^body|html$/i.test(offsetParent.nodeName)&&jQuery.css(offsetParent,"position")==="static")){offsetParent=offsetParent.offsetParent;}return offsetParent;});}});jQuery.each(["Left","Top"],function(i,name){var method="scroll"+name;
jQuery.fn[method]=function(val){var elem=this[0],win;if(!elem){return null;}if(val!==undefined){return this.each(function(){win=getWindow(this);if(win){win.scrollTo(!i?val:jQuery(win).scrollLeft(),i?val:jQuery(win).scrollTop());}else{this[method]=val;}});}else{win=getWindow(elem);return win?("pageXOffset" in win)?win[i?"pageYOffset":"pageXOffset"]:jQuery.support.boxModel&&win.document.documentElement[method]||win.document.body[method]:elem[method];}};});function getWindow(elem){return("scrollTo" in elem&&elem.document)?elem:elem.nodeType===9?elem.defaultView||elem.parentWindow:false;
}jQuery.each(["Height","Width"],function(i,name){var type=name.toLowerCase();jQuery.fn["inner"+name]=function(){return this[0]?jQuery.css(this[0],type,false,"padding"):null;};jQuery.fn["outer"+name]=function(margin){return this[0]?jQuery.css(this[0],type,false,margin?"margin":"border"):null;};jQuery.fn[type]=function(size){var elem=this[0];if(!elem){return size==null?null:this;}if(jQuery.isFunction(size)){return this.each(function(i){var self=jQuery(this);self[type](size.call(this,i,self[type]()));
});}return("scrollTo" in elem&&elem.document)?elem.document.compatMode==="CSS1Compat"&&elem.document.documentElement["client"+name]||elem.document.body["client"+name]:(elem.nodeType===9)?Math.max(elem.documentElement["client"+name],elem.body["scroll"+name],elem.documentElement["scroll"+name],elem.body["offset"+name],elem.documentElement["offset"+name]):size===undefined?jQuery.css(elem,type):this.css(type,typeof size==="string"?size:size+"px");};});window.jQuery=window.$=jQuery;})(window);(function($){$.extend({metadata:{defaults:{type:"class",name:"metadata",cre:/({.*})/,single:"metadata"},setType:function(type,name){this.defaults.type=type;
this.defaults.name=name;},get:function(elem,opts){var settings=$.extend({},this.defaults,opts);if(!settings.single.length){settings.single="metadata";}var data=$.data(elem,settings.single);if(data){return data;}data="{}";var getData=function(data){if(typeof data!="string"){return data;}if(data.indexOf("{")<0){data=eval("("+data+")");}};var getObject=function(data){if(typeof data!="string"){return data;}data=eval("("+data+")");return data;};if(settings.type=="html5"){var object={};$(elem.attributes).each(function(){var name=this.nodeName;
if(name.match(/^data-/)){name=name.replace(/^data-/,"");}else{return true;}object[name]=getObject(this.nodeValue);});}else{if(settings.type=="class"){var m=settings.cre.exec(elem.className);if(m){data=m[1];}}else{if(settings.type=="elem"){if(!elem.getElementsByTagName){return;}var e=elem.getElementsByTagName(settings.name);if(e.length){data=$.trim(e[0].innerHTML);}}else{if(elem.getAttribute!=undefined){var attr=elem.getAttribute(settings.name);if(attr){data=attr;}}}}object=getObject(data.indexOf("{")<0?"{"+data+"}":data);
}$.data(elem,settings.single,object);return object;}}});$.fn.metadata=function(opts){return $.metadata.get(this[0],opts);};})(jQuery);
/*!
 * jQuery Form Plugin
 * version: 2.49 (18-OCT-2010)
 * @requires jQuery v1.3.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
 */
(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=$.trim(this.attr("action"));if(url){url=(url.match(/^([^#]+)/)||[])[1];}url=url||window.location.href||"";options=$.extend(true,{url:url,type:this.attr("method")||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},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 n,v,a=this.formToArray(options.semantic);if(options.data){options.extraData=options.data;for(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{v=options.data[n];v=$.isFunction(v)?v():v;a.push({name:n,value:v});}}}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){var fn=options.replaceTarget?"replaceWith":"html";
$(options.target)[fn](data).each(oldSuccess,arguments);});}else{if(options.success){callbacks.push(options.success);}}options.success=function(data,status,xhr){var context=options.context||options;for(var i=0,max=callbacks.length;i<max;i++){callbacks[i].apply(context,[data,status,xhr||$form,$form]);}};var fileInputs=$("input:file",this).length>0;var mp="multipart/form-data";var multipart=($form.attr("enctype")==mp||$form.attr("encoding")==mp);if(options.iframe!==false&&(fileInputs||options.iframe||multipart)){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],:input[id=submit]",form).length){alert('Error: Form elements must not have name or id of "submit".');return;}var s=$.extend(true,{},$.ajaxSettings,options);s.context=s.context||s;var id="jqFormIO"+(new Date().getTime()),fn="_"+id;window[fn]=function(){var f=$io.data("form-plugin-onload");if(f){f();window[fn]=undefined;try{delete window[fn];
}catch(e){}}};var $io=$('<iframe id="'+id+'" name="'+id+'" src="'+s.iframeSrc+'" onload="window[\'_\'+this.id]()" />');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",s.iframeSrc);}};var g=s.global;if(g&&!$.active++){$.event.trigger("ajaxStart");}if(g){$.event.trigger("ajaxSend",[xhr,s]);
}if(s.beforeSend&&s.beforeSend.call(s.context,xhr,s)===false){if(s.global){$.active--;}return;}if(xhr.aborted){return;}var cbInvoked=false;var timedOut=0;var sub=form.clk;if(sub){var n=sub.name;if(n&&!sub.disabled){s.extraData=s.extraData||{};s.extraData[n]=sub.value;if(sub.type=="image"){s.extraData[n+".x"]=form.clk_x;s.extraData[n+".y"]=form.clk_y;}}}function doSubmit(){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")!=s.url){form.setAttribute("action",s.url);}if(!s.skipEncodingOverride){$form.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"});}if(s.timeout){setTimeout(function(){timedOut=true;cb();},s.timeout);}var extraInputs=[];try{if(s.extraData){for(var n in s.extraData){extraInputs.push($('<input type="hidden" name="'+n+'" value="'+s.extraData[n]+'" />').appendTo(form)[0]);}}$io.appendTo("body");$io.data("form-plugin-onload",cb);form.submit();}finally{form.setAttribute("action",a);
if(t){form.setAttribute("target",t);}else{$form.removeAttr("target");}$(extraInputs).remove();}}if(s.forceSync){doSubmit();}else{setTimeout(doSubmit,10);}var data,doc,domCheckCount=50;function cb(){if(cbInvoked){return;}$io.removeData("form-plugin-onload");var ok=true;try{if(timedOut){throw"timeout";}doc=io.contentWindow?io.contentWindow.document:io.contentDocument?io.contentDocument:io.document;var isXml=s.dataType=="xml"||doc.XMLDocument||$.isXMLDoc(doc);log("isXml="+isXml);if(!isXml&&window.opera&&(doc.body==null||doc.body.innerHTML=="")){if(--domCheckCount){log("requeing onLoad callback, DOM not available");
setTimeout(cb,250);return;}}cbInvoked=true;xhr.responseText=doc.documentElement?doc.documentElement.innerHTML:null;xhr.responseXML=doc.XMLDocument?doc.XMLDocument:doc;xhr.getResponseHeader=function(header){var headers={"content-type":s.dataType};return headers[header];};var scr=/(json|script)/.test(s.dataType);if(scr||s.textarea){var ta=doc.getElementsByTagName("textarea")[0];if(ta){xhr.responseText=ta.value;}else{if(scr){var pre=doc.getElementsByTagName("pre")[0];var b=doc.getElementsByTagName("body")[0];
if(pre){xhr.responseText=pre.innerHTML;}else{if(b){xhr.responseText=b.innerHTML;}}}}}else{if(s.dataType=="xml"&&!xhr.responseXML&&xhr.responseText!=null){xhr.responseXML=toXml(xhr.responseText);}}data=$.httpData(xhr,s.dataType);}catch(e){log("error caught:",e);ok=false;xhr.error=e;$.handleError(s,xhr,"error",e);}if(ok){s.success.call(s.context,data,"success",xhr);if(g){$.event.trigger("ajaxSuccess",[xhr,s]);}}if(g){$.event.trigger("ajaxComplete",[xhr,s]);}if(g&&!--$.active){$.event.trigger("ajaxStop");
}if(s.complete){s.complete.call(s.context,xhr,ok?"success":"error");}setTimeout(function(){$io.removeData("form-plugin-onload");$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){if(this.length===0){var o={s:this.selector,c:this.context};
if(!$.isReady&&o.s){log("DOM not ready, queuing ajaxForm");$(function(){$(o.s,o.c).ajaxForm(options);});return this;}log("terminating; zero elements found by selector"+($.isReady?"":" (DOM not ready)"));return this;}return this.ajaxFormUnbind().bind("submit.form-plugin",function(e){if(!e.isDefaultPrevented()){e.preventDefault();$(this).ajaxSubmit(options);}}).bind("click.form-plugin",function(e){var target=e.target;var $el=$(target);if(!($el.is(":submit,input:image"))){var t=$el.closest(":submit");
if(t.length==0){return;}target=t[0];}var form=this;form.clk=target;if(target.type=="image"){if(e.offsetX!=undefined){form.clk_x=e.offsetX;form.clk_y=e.offsetY;}else{if(typeof $.fn.offset=="function"){var offset=$el.offset();form.clk_x=e.pageX-offset.left;form.clk_y=e.pageY-offset.top;}else{form.clk_x=e.pageX-target.offsetLeft;form.clk_y=e.pageY-target.offsetTop;}}}setTimeout(function(){form.clk=form.clk_x=form.clk_y=null;},100);});};$.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin 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;}var i,j,n,v,el,max,jmax;for(i=0,max=els.length;i<max;i++){el=els[i];n=el.name;if(!n){continue;}if(semantic&&form.clk&&el.type=="image"){if(!el.disabled&&form.clk==el){a.push({name:n,value:$(el).val()});a.push({name:n+".x",value:form.clk_x},{name:n+".y",value:form.clk_y});}continue;}v=$.fieldValue(el,true);if(v&&v.constructor==Array){for(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 $input=$(form.clk),input=$input[0];n=input.name;if(n&&!input.disabled&&input.type=="image"){a.push({name:n,value:$input.val()});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(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).val();};$.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){var msg="[jquery.form] "+Array.prototype.join.call(arguments,"");if(window.console&&window.console.log){window.console.log(msg);}else{if(window.opera&&window.opera.postError){window.opera.postError(msg);}}}}})(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;});if(validator.settings.submitHandler){this.find("input, button").filter(":submit").click(function(){validator.submitButton=this;});}this.submit(function(event){if(validator.settings.debug){event.preventDefault();}function handle(){if(validator.settings.submitHandler){if(validator.submitButton){var hidden=$("<input type='hidden'/>").attr("name",validator.submitButton.name).val(validator.submitButton.value).appendTo(validator.currentForm);
}validator.settings.submitHandler.call(validator,validator.currentForm);if(validator.submitButton){hidden.remove();}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=true;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;}});$.validator=function(options,form){this.settings=$.extend(true,{},$.validator.defaults,options);this.currentForm=form;this.init();};$.validator.format=function(source,params){if(arguments.length==1){return function(){var args=$.makeArray(arguments);
args.unshift(source);return $.validator.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;};$.extend($.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",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.settings.validClass);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);
}else{if(element.parentNode.name in this.submitted){this.element(element.parentNode);}}},highlight:function(element,errorClass,validClass){$(element).addClass(errorClass).removeClass(validClass);},unhighlight:function(element,errorClass,validClass){$(element).removeClass(errorClass).addClass(validClass);}},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).",number:"Please enter a valid number.",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:$.validator.format("Please enter no more than {0} characters."),minlength:$.validator.format("Please enter at least {0} characters."),rangelength:$.validator.format("Please enter a value between {0} and {1} characters long."),range:$.validator.format("Please enter a value between {0} and {1}."),max:$.validator.format("Please enter a value less than or equal to {0}."),min:$.validator.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"),eventType="on"+event.type.replace(/^validate/,"");validator.settings[eventType]&&validator.settings[eventType].call(validator,this[0]);}$(this.currentForm).validateDelegate(":text, :password, :file, select, textarea","focusin focusout keyup",delegate).validateDelegate(":radio, :checkbox, select, option","click",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().trigger("focusin");}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.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",e);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),theregex=/\$?\{(\d+)\}/g;if(typeof message=="function"){message=message.call(this,rule.parameters,element);
}else{if(theregex.test(message)){message=jQuery.format(message.replace(theregex,"{$1}"),rule.parameters);}}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.parent(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.settings.validClass);
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.settings.validClass);}}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){var name=this.idOrName(element);
return this.errors().filter(function(){return $(this).attr("for")==name;});},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();this.formSubmitted=false;}else{if(!valid&&this.pendingRequest==0&&this.formSubmitted){$(this.currentForm).triggerHandler("invalid-form",[this]);
this.formSubmitted=false;}}},previousValue:function(element){return $.data(element,"previousValue")||$.data(element,"previousValue",{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!=undefined?message:$.validator.messages[name];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 val=$(element).val();
return val&&val.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]={};}previous.originalMessage=this.settings.messages[element.name].remote;this.settings.messages[element.name].remote=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){validator.settings.messages[element.name].remote=previous.originalMessage;var valid=response===true;if(valid){var submitted=validator.formSubmitted;validator.prepareElement(element);validator.formSubmitted=submitted;validator.successList.push(element);
validator.showErrors();}else{var errors={};var message=(previous.message=response||validator.defaultMessage(element,"remote"));errors[element.name]=$.isFunction(message)?message(value):message;validator.showErrors(errors);}previous.valid=valid;validator.stopRequest(element,valid);}},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){return this.optional(element)||value>=param;},max:function(value,element,param){return this.optional(element)||value<=param;},range:function(value,element,param){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);},number: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(var 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.replace(/,/g,"|"):"png|jpe?g|gif";return this.optional(element)||value.match(new RegExp(".("+param+")$","i"));},equalTo:function(value,element,param){var target=$(param).unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){$(element).valid();
});return value==target.val();}}});$.format=$.validator.format;})(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($){if(!jQuery.event.special.focusin&&!jQuery.event.special.focusout&&document.addEventListener){$.each({focus:"focusin",blur:"focusout"},function(original,fix){$.event.special[fix]={setup:function(){this.addEventListener(original,handler,true);
},teardown:function(){this.removeEventListener(original,handler,true);},handler:function(e){arguments[0]=$.event.fix(e);arguments[0].type=fix;return $.event.handle.apply(this,arguments);}};function handler(e){e=$.event.fix(e);e.type=fix;return $.event.handle.call(this,e);}});}$.extend($.fn,{validateDelegate:function(delegate,type,handler){return this.bind(type,function(event){var target=$(event.target);if(target.is(delegate)){return handler.apply(target,arguments);}});}});})(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);
/*!
 * jQuery UI 1.8.14
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI
 */
(function($,undefined){$.ui=$.ui||{};if($.ui.version){return;}$.extend($.ui,{version:"1.8.14",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});
$.fn.extend({_focus:$.fn.focus,focus:function(delay,fn){return typeof delay==="number"?this.each(function(){var elem=this;setTimeout(function(){$(elem).focus();if(fn){fn.call(elem);}},delay);}):this._focus.apply(this,arguments);},scrollParent:function(){var scrollParent;if(($.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){scrollParent=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test($.curCSS(this,"position",1))&&(/(auto|scroll)/).test($.curCSS(this,"overflow",1)+$.curCSS(this,"overflow-y",1)+$.curCSS(this,"overflow-x",1));
}).eq(0);}else{scrollParent=this.parents().filter(function(){return(/(auto|scroll)/).test($.curCSS(this,"overflow",1)+$.curCSS(this,"overflow-y",1)+$.curCSS(this,"overflow-x",1));}).eq(0);}return(/fixed/).test(this.css("position"))||!scrollParent.length?$(document):scrollParent;},zIndex:function(zIndex){if(zIndex!==undefined){return this.css("zIndex",zIndex);}if(this.length){var elem=$(this[0]),position,value;while(elem.length&&elem[0]!==document){position=elem.css("position");if(position==="absolute"||position==="relative"||position==="fixed"){value=parseInt(elem.css("zIndex"),10);
if(!isNaN(value)&&value!==0){return value;}}elem=elem.parent();}}return 0;},disableSelection:function(){return this.bind(($.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(event){event.preventDefault();});},enableSelection:function(){return this.unbind(".ui-disableSelection");}});$.each(["Width","Height"],function(i,name){var side=name==="Width"?["Left","Right"]:["Top","Bottom"],type=name.toLowerCase(),orig={innerWidth:$.fn.innerWidth,innerHeight:$.fn.innerHeight,outerWidth:$.fn.outerWidth,outerHeight:$.fn.outerHeight};
function reduce(elem,size,border,margin){$.each(side,function(){size-=parseFloat($.curCSS(elem,"padding"+this,true))||0;if(border){size-=parseFloat($.curCSS(elem,"border"+this+"Width",true))||0;}if(margin){size-=parseFloat($.curCSS(elem,"margin"+this,true))||0;}});return size;}$.fn["inner"+name]=function(size){if(size===undefined){return orig["inner"+name].call(this);}return this.each(function(){$(this).css(type,reduce(this,size)+"px");});};$.fn["outer"+name]=function(size,margin){if(typeof size!=="number"){return orig["outer"+name].call(this,size);
}return this.each(function(){$(this).css(type,reduce(this,size,true,margin)+"px");});};});function focusable(element,isTabIndexNotNaN){var nodeName=element.nodeName.toLowerCase();if("area"===nodeName){var map=element.parentNode,mapName=map.name,img;if(!element.href||!mapName||map.nodeName.toLowerCase()!=="map"){return false;}img=$("img[usemap=#"+mapName+"]")[0];return !!img&&visible(img);}return(/input|select|textarea|button|object/.test(nodeName)?!element.disabled:"a"==nodeName?element.href||isTabIndexNotNaN:isTabIndexNotNaN)&&visible(element);
}function visible(element){return !$(element).parents().andSelf().filter(function(){return $.curCSS(this,"visibility")==="hidden"||$.expr.filters.hidden(this);}).length;}$.extend($.expr[":"],{data:function(elem,i,match){return !!$.data(elem,match[3]);},focusable:function(element){return focusable(element,!isNaN($.attr(element,"tabindex")));},tabbable:function(element){var tabIndex=$.attr(element,"tabindex"),isTabIndexNaN=isNaN(tabIndex);return(isTabIndexNaN||tabIndex>=0)&&focusable(element,!isTabIndexNaN);
}});$(function(){var body=document.body,div=body.appendChild(div=document.createElement("div"));$.extend(div.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});$.support.minHeight=div.offsetHeight===100;$.support.selectstart="onselectstart" in div;body.removeChild(div).style.display="none";});$.extend($.ui,{plugin:{add:function(module,option,set){var proto=$.ui[module].prototype;for(var i in set){proto.plugins[i]=proto.plugins[i]||[];proto.plugins[i].push([option,set[i]]);}},call:function(instance,name,args){var set=instance.plugins[name];
if(!set||!instance.element[0].parentNode){return;}for(var i=0;i<set.length;i++){if(instance.options[set[i][0]]){set[i][1].apply(instance.element,args);}}}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b);},hasScroll:function(el,a){if($(el).css("overflow")==="hidden"){return false;}var scroll=(a&&a==="left")?"scrollLeft":"scrollTop",has=false;if(el[scroll]>0){return true;}el[scroll]=1;has=(el[scroll]>0);el[scroll]=0;return has;},isOverAxis:function(x,reference,size){return(x>reference)&&(x<(reference+size));
},isOver:function(y,x,top,left,height,width){return $.ui.isOverAxis(y,top,height)&&$.ui.isOverAxis(x,left,width);}});})(jQuery);
/*!
 * jQuery UI Widget 1.8.14
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Widget
 */
(function($,undefined){if($.cleanData){var _cleanData=$.cleanData;$.cleanData=function(elems){for(var i=0,elem;(elem=elems[i])!=null;i++){$(elem).triggerHandler("remove");
}_cleanData(elems);};}else{var _remove=$.fn.remove;$.fn.remove=function(selector,keepData){return this.each(function(){if(!keepData){if(!selector||$.filter(selector,[this]).length){$("*",this).add([this]).each(function(){$(this).triggerHandler("remove");});}}return _remove.call($(this),selector,keepData);});};}$.widget=function(name,base,prototype){var namespace=name.split(".")[0],fullName;name=name.split(".")[1];fullName=namespace+"-"+name;if(!prototype){prototype=base;base=$.Widget;}$.expr[":"][fullName]=function(elem){return !!$.data(elem,name);
};$[namespace]=$[namespace]||{};$[namespace][name]=function(options,element){if(arguments.length){this._createWidget(options,element);}};var basePrototype=new base();basePrototype.options=$.extend(true,{},basePrototype.options);$[namespace][name].prototype=$.extend(true,basePrototype,{namespace:namespace,widgetName:name,widgetEventPrefix:$[namespace][name].prototype.widgetEventPrefix||name,widgetBaseClass:fullName},prototype);$.widget.bridge(name,$[namespace][name]);};$.widget.bridge=function(name,object){$.fn[name]=function(options){var isMethodCall=typeof options==="string",args=Array.prototype.slice.call(arguments,1),returnValue=this;
options=!isMethodCall&&args.length?$.extend.apply(null,[true,options].concat(args)):options;if(isMethodCall&&options.charAt(0)==="_"){return returnValue;}if(isMethodCall){this.each(function(){var instance=$.data(this,name),methodValue=instance&&$.isFunction(instance[options])?instance[options].apply(instance,args):instance;if(methodValue!==instance&&methodValue!==undefined){returnValue=methodValue;return false;}});}else{this.each(function(){var instance=$.data(this,name);if(instance){instance.option(options||{})._init();
}else{$.data(this,name,new object(options,this));}});}return returnValue;};};$.Widget=function(options,element){if(arguments.length){this._createWidget(options,element);}};$.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(options,element){$.data(element,this.widgetName,this);this.element=$(element);this.options=$.extend(true,{},this.options,this._getCreateOptions(),options);var self=this;this.element.bind("remove."+this.widgetName,function(){self.destroy();
});this._create();this._trigger("create");this._init();},_getCreateOptions:function(){return $.metadata&&$.metadata.get(this.element[0])[this.widgetName];},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled");},widget:function(){return this.element;},option:function(key,value){var options=key;
if(arguments.length===0){return $.extend({},this.options);}if(typeof key==="string"){if(value===undefined){return this.options[key];}options={};options[key]=value;}this._setOptions(options);return this;},_setOptions:function(options){var self=this;$.each(options,function(key,value){self._setOption(key,value);});return this;},_setOption:function(key,value){this.options[key]=value;if(key==="disabled"){this.widget()[value?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",value);
}return this;},enable:function(){return this._setOption("disabled",false);},disable:function(){return this._setOption("disabled",true);},_trigger:function(type,event,data){var callback=this.options[type];event=$.Event(event);event.type=(type===this.widgetEventPrefix?type:this.widgetEventPrefix+type).toLowerCase();data=data||{};if(event.originalEvent){for(var i=$.event.props.length,prop;i;){prop=$.event.props[--i];event[prop]=event.originalEvent[prop];}}this.element.trigger(event,data);return !($.isFunction(callback)&&callback.call(this.element[0],event,data)===false||event.isDefaultPrevented());
}};})(jQuery);
/*!
 * jQuery UI Mouse 1.8.14
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Mouse
 *
 * Depends:
 *	jquery.ui.widget.js
 */
(function($,undefined){var mouseHandled=false;$(document).mousedown(function(e){mouseHandled=false;});$.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var self=this;this.element.bind("mousedown."+this.widgetName,function(event){return self._mouseDown(event);
}).bind("click."+this.widgetName,function(event){if(true===$.data(event.target,self.widgetName+".preventClickEvent")){$.removeData(event.target,self.widgetName+".preventClickEvent");event.stopImmediatePropagation();return false;}});this.started=false;},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);},_mouseDown:function(event){if(mouseHandled){return;}(this._mouseStarted&&this._mouseUp(event));this._mouseDownEvent=event;var self=this,btnIsLeft=(event.which==1),elIsCancel=(typeof this.options.cancel=="string"?$(event.target).closest(this.options.cancel).length:false);
if(!btnIsLeft||elIsCancel||!this._mouseCapture(event)){return true;}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){self.mouseDelayMet=true;},this.options.delay);}if(this._mouseDistanceMet(event)&&this._mouseDelayMet(event)){this._mouseStarted=(this._mouseStart(event)!==false);if(!this._mouseStarted){event.preventDefault();return true;}}if(true===$.data(event.target,this.widgetName+".preventClickEvent")){$.removeData(event.target,this.widgetName+".preventClickEvent");
}this._mouseMoveDelegate=function(event){return self._mouseMove(event);};this._mouseUpDelegate=function(event){return self._mouseUp(event);};$(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);event.preventDefault();mouseHandled=true;return true;},_mouseMove:function(event){if($.browser.msie&&!(document.documentMode>=9)&&!event.button){return this._mouseUp(event);}if(this._mouseStarted){this._mouseDrag(event);return event.preventDefault();
}if(this._mouseDistanceMet(event)&&this._mouseDelayMet(event)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,event)!==false);(this._mouseStarted?this._mouseDrag(event):this._mouseUp(event));}return !this._mouseStarted;},_mouseUp:function(event){$(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;if(event.target==this._mouseDownEvent.target){$.data(event.target,this.widgetName+".preventClickEvent",true);
}this._mouseStop(event);}return false;},_mouseDistanceMet:function(event){return(Math.max(Math.abs(this._mouseDownEvent.pageX-event.pageX),Math.abs(this._mouseDownEvent.pageY-event.pageY))>=this.options.distance);},_mouseDelayMet:function(event){return this.mouseDelayMet;},_mouseStart:function(event){},_mouseDrag:function(event){},_mouseStop:function(event){},_mouseCapture:function(event){return true;}});})(jQuery);(function($,undefined){$.widget("ui.resizable",$.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1000},_create:function(){var self=this,o=this.options;
this.element.addClass("ui-resizable");$.extend(this,{_aspectRatio:!!(o.aspectRatio),aspectRatio:o.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:o.helper||o.ghost||o.animate?o.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){if(/relative/.test(this.element.css("position"))&&$.browser.opera){this.element.css({position:"relative",top:"auto",left:"auto"});}this.element.wrap($('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")}));
this.element=this.element.parent().data("resizable",this.element.data("resizable"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=this.originalElement.css("resize");this.originalElement.css("resize","none");
this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize();}this.handles=o.handles||(!$(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"});if(this.handles.constructor==String){if(this.handles=="all"){this.handles="n,e,s,w,se,sw,ne,nw";
}var n=this.handles.split(",");this.handles={};for(var i=0;i<n.length;i++){var handle=$.trim(n[i]),hname="ui-resizable-"+handle;var axis=$('<div class="ui-resizable-handle '+hname+'"></div>');if(/sw|se|ne|nw/.test(handle)){axis.css({zIndex:++o.zIndex});}if("se"==handle){axis.addClass("ui-icon ui-icon-gripsmall-diagonal-se");}this.handles[handle]=".ui-resizable-"+handle;this.element.append(axis);}}this._renderAxis=function(target){target=target||this.element;for(var i in this.handles){if(this.handles[i].constructor==String){this.handles[i]=$(this.handles[i],this.element).show();
}if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var axis=$(this.handles[i],this.element),padWrapper=0;padWrapper=/sw|ne|nw|se|n|s/.test(i)?axis.outerHeight():axis.outerWidth();var padPos=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join("");target.css(padPos,padWrapper);this._proportionallyResize();}if(!$(this.handles[i]).length){continue;}}};this._renderAxis(this.element);this._handles=$(".ui-resizable-handle",this.element).disableSelection();
this._handles.mouseover(function(){if(!self.resizing){if(this.className){var axis=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);}self.axis=axis&&axis[1]?axis[1]:"se";}});if(o.autoHide){this._handles.hide();$(this.element).addClass("ui-resizable-autohide").hover(function(){if(o.disabled){return;}$(this).removeClass("ui-resizable-autohide");self._handles.show();},function(){if(o.disabled){return;}if(!self.resizing){$(this).addClass("ui-resizable-autohide");self._handles.hide();}});}this._mouseInit();
},destroy:function(){this._mouseDestroy();var _destroy=function(exp){$(exp).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove();};if(this.elementIsWrapper){_destroy(this.element);var wrapper=this.element;wrapper.after(this.originalElement.css({position:wrapper.css("position"),width:wrapper.outerWidth(),height:wrapper.outerHeight(),top:wrapper.css("top"),left:wrapper.css("left")})).remove();}this.originalElement.css("resize",this.originalResizeStyle);
_destroy(this.originalElement);return this;},_mouseCapture:function(event){var handle=false;for(var i in this.handles){if($(this.handles[i])[0]==event.target){handle=true;}}return !this.options.disabled&&handle;},_mouseStart:function(event){var o=this.options,iniPos=this.element.position(),el=this.element;this.resizing=true;this.documentScroll={top:$(document).scrollTop(),left:$(document).scrollLeft()};if(el.is(".ui-draggable")||(/absolute/).test(el.css("position"))){el.css({position:"absolute",top:iniPos.top,left:iniPos.left});
}if($.browser.opera&&(/relative/).test(el.css("position"))){el.css({position:"relative",top:"auto",left:"auto"});}this._renderProxy();var curleft=num(this.helper.css("left")),curtop=num(this.helper.css("top"));if(o.containment){curleft+=$(o.containment).scrollLeft()||0;curtop+=$(o.containment).scrollTop()||0;}this.offset=this.helper.offset();this.position={left:curleft,top:curtop};this.size=this._helper?{width:el.outerWidth(),height:el.outerHeight()}:{width:el.width(),height:el.height()};this.originalSize=this._helper?{width:el.outerWidth(),height:el.outerHeight()}:{width:el.width(),height:el.height()};
this.originalPosition={left:curleft,top:curtop};this.sizeDiff={width:el.outerWidth()-el.width(),height:el.outerHeight()-el.height()};this.originalMousePosition={left:event.pageX,top:event.pageY};this.aspectRatio=(typeof o.aspectRatio=="number")?o.aspectRatio:((this.originalSize.width/this.originalSize.height)||1);var cursor=$(".ui-resizable-"+this.axis).css("cursor");$("body").css("cursor",cursor=="auto"?this.axis+"-resize":cursor);el.addClass("ui-resizable-resizing");this._propagate("start",event);
return true;},_mouseDrag:function(event){var el=this.helper,o=this.options,props={},self=this,smp=this.originalMousePosition,a=this.axis;var dx=(event.pageX-smp.left)||0,dy=(event.pageY-smp.top)||0;var trigger=this._change[a];if(!trigger){return false;}var data=trigger.apply(this,[event,dx,dy]),ie6=$.browser.msie&&$.browser.version<7,csdif=this.sizeDiff;this._updateVirtualBoundaries(event.shiftKey);if(this._aspectRatio||event.shiftKey){data=this._updateRatio(data,event);}data=this._respectSize(data,event);
this._propagate("resize",event);el.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});if(!this._helper&&this._proportionallyResizeElements.length){this._proportionallyResize();}this._updateCache(data);this._trigger("resize",event,this.ui());return false;},_mouseStop:function(event){this.resizing=false;var o=this.options,self=this;if(this._helper){var pr=this._proportionallyResizeElements,ista=pr.length&&(/textarea/i).test(pr[0].nodeName),soffseth=ista&&$.ui.hasScroll(pr[0],"left")?0:self.sizeDiff.height,soffsetw=ista?0:self.sizeDiff.width;
var s={width:(self.helper.width()-soffsetw),height:(self.helper.height()-soffseth)},left=(parseInt(self.element.css("left"),10)+(self.position.left-self.originalPosition.left))||null,top=(parseInt(self.element.css("top"),10)+(self.position.top-self.originalPosition.top))||null;if(!o.animate){this.element.css($.extend(s,{top:top,left:left}));}self.helper.height(self.size.height);self.helper.width(self.size.width);if(this._helper&&!o.animate){this._proportionallyResize();}}$("body").css("cursor","auto");
this.element.removeClass("ui-resizable-resizing");this._propagate("stop",event);if(this._helper){this.helper.remove();}return false;},_updateVirtualBoundaries:function(forceAspectRatio){var o=this.options,pMinWidth,pMaxWidth,pMinHeight,pMaxHeight,b;b={minWidth:isNumber(o.minWidth)?o.minWidth:0,maxWidth:isNumber(o.maxWidth)?o.maxWidth:Infinity,minHeight:isNumber(o.minHeight)?o.minHeight:0,maxHeight:isNumber(o.maxHeight)?o.maxHeight:Infinity};if(this._aspectRatio||forceAspectRatio){pMinWidth=b.minHeight*this.aspectRatio;
pMinHeight=b.minWidth/this.aspectRatio;pMaxWidth=b.maxHeight*this.aspectRatio;pMaxHeight=b.maxWidth/this.aspectRatio;if(pMinWidth>b.minWidth){b.minWidth=pMinWidth;}if(pMinHeight>b.minHeight){b.minHeight=pMinHeight;}if(pMaxWidth<b.maxWidth){b.maxWidth=pMaxWidth;}if(pMaxHeight<b.maxHeight){b.maxHeight=pMaxHeight;}}this._vBoundaries=b;},_updateCache:function(data){var o=this.options;this.offset=this.helper.offset();if(isNumber(data.left)){this.position.left=data.left;}if(isNumber(data.top)){this.position.top=data.top;
}if(isNumber(data.height)){this.size.height=data.height;}if(isNumber(data.width)){this.size.width=data.width;}},_updateRatio:function(data,event){var o=this.options,cpos=this.position,csize=this.size,a=this.axis;if(isNumber(data.height)){data.width=(data.height*this.aspectRatio);}else{if(isNumber(data.width)){data.height=(data.width/this.aspectRatio);}}if(a=="sw"){data.left=cpos.left+(csize.width-data.width);data.top=null;}if(a=="nw"){data.top=cpos.top+(csize.height-data.height);data.left=cpos.left+(csize.width-data.width);
}return data;},_respectSize:function(data,event){var el=this.helper,o=this._vBoundaries,pRatio=this._aspectRatio||event.shiftKey,a=this.axis,ismaxw=isNumber(data.width)&&o.maxWidth&&(o.maxWidth<data.width),ismaxh=isNumber(data.height)&&o.maxHeight&&(o.maxHeight<data.height),isminw=isNumber(data.width)&&o.minWidth&&(o.minWidth>data.width),isminh=isNumber(data.height)&&o.minHeight&&(o.minHeight>data.height);if(isminw){data.width=o.minWidth;}if(isminh){data.height=o.minHeight;}if(ismaxw){data.width=o.maxWidth;
}if(ismaxh){data.height=o.maxHeight;}var dw=this.originalPosition.left+this.originalSize.width,dh=this.position.top+this.size.height;var cw=/sw|nw|w/.test(a),ch=/nw|ne|n/.test(a);if(isminw&&cw){data.left=dw-o.minWidth;}if(ismaxw&&cw){data.left=dw-o.maxWidth;}if(isminh&&ch){data.top=dh-o.minHeight;}if(ismaxh&&ch){data.top=dh-o.maxHeight;}var isNotwh=!data.width&&!data.height;if(isNotwh&&!data.left&&data.top){data.top=null;}else{if(isNotwh&&!data.top&&data.left){data.left=null;}}return data;},_proportionallyResize:function(){var o=this.options;
if(!this._proportionallyResizeElements.length){return;}var element=this.helper||this.element;for(var i=0;i<this._proportionallyResizeElements.length;i++){var prel=this._proportionallyResizeElements[i];if(!this.borderDif){var b=[prel.css("borderTopWidth"),prel.css("borderRightWidth"),prel.css("borderBottomWidth"),prel.css("borderLeftWidth")],p=[prel.css("paddingTop"),prel.css("paddingRight"),prel.css("paddingBottom"),prel.css("paddingLeft")];this.borderDif=$.map(b,function(v,i){var border=parseInt(v,10)||0,padding=parseInt(p[i],10)||0;
return border+padding;});}if($.browser.msie&&!(!($(element).is(":hidden")||$(element).parents(":hidden").length))){continue;}prel.css({height:(element.height()-this.borderDif[0]-this.borderDif[2])||0,width:(element.width()-this.borderDif[1]-this.borderDif[3])||0});}},_renderProxy:function(){var el=this.element,o=this.options;this.elementOffset=el.offset();if(this._helper){this.helper=this.helper||$('<div style="overflow:hidden;"></div>');var ie6=$.browser.msie&&$.browser.version<7,ie6offset=(ie6?1:0),pxyoffset=(ie6?2:-1);
this.helper.addClass(this._helper).css({width:this.element.outerWidth()+pxyoffset,height:this.element.outerHeight()+pxyoffset,position:"absolute",left:this.elementOffset.left-ie6offset+"px",top:this.elementOffset.top-ie6offset+"px",zIndex:++o.zIndex});this.helper.appendTo("body").disableSelection();}else{this.helper=this.element;}},_change:{e:function(event,dx,dy){return{width:this.originalSize.width+dx};},w:function(event,dx,dy){var o=this.options,cs=this.originalSize,sp=this.originalPosition;return{left:sp.left+dx,width:cs.width-dx};
},n:function(event,dx,dy){var o=this.options,cs=this.originalSize,sp=this.originalPosition;return{top:sp.top+dy,height:cs.height-dy};},s:function(event,dx,dy){return{height:this.originalSize.height+dy};},se:function(event,dx,dy){return $.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[event,dx,dy]));},sw:function(event,dx,dy){return $.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[event,dx,dy]));},ne:function(event,dx,dy){return $.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[event,dx,dy]));
},nw:function(event,dx,dy){return $.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[event,dx,dy]));}},_propagate:function(n,event){$.ui.plugin.call(this,n,[event,this.ui()]);(n!="resize"&&this._trigger(n,event,this.ui()));},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition};}});$.extend($.ui.resizable,{version:"1.8.14"});
$.ui.plugin.add("resizable","alsoResize",{start:function(event,ui){var self=$(this).data("resizable"),o=self.options;var _store=function(exp){$(exp).each(function(){var el=$(this);el.data("resizable-alsoresize",{width:parseInt(el.width(),10),height:parseInt(el.height(),10),left:parseInt(el.css("left"),10),top:parseInt(el.css("top"),10),position:el.css("position")});});};if(typeof(o.alsoResize)=="object"&&!o.alsoResize.parentNode){if(o.alsoResize.length){o.alsoResize=o.alsoResize[0];_store(o.alsoResize);
}else{$.each(o.alsoResize,function(exp){_store(exp);});}}else{_store(o.alsoResize);}},resize:function(event,ui){var self=$(this).data("resizable"),o=self.options,os=self.originalSize,op=self.originalPosition;var delta={height:(self.size.height-os.height)||0,width:(self.size.width-os.width)||0,top:(self.position.top-op.top)||0,left:(self.position.left-op.left)||0},_alsoResize=function(exp,c){$(exp).each(function(){var el=$(this),start=$(this).data("resizable-alsoresize"),style={},css=c&&c.length?c:el.parents(ui.originalElement[0]).length?["width","height"]:["width","height","top","left"];
$.each(css,function(i,prop){var sum=(start[prop]||0)+(delta[prop]||0);if(sum&&sum>=0){style[prop]=sum||null;}});if($.browser.opera&&/relative/.test(el.css("position"))){self._revertToRelativePosition=true;el.css({position:"absolute",top:"auto",left:"auto"});}el.css(style);});};if(typeof(o.alsoResize)=="object"&&!o.alsoResize.nodeType){$.each(o.alsoResize,function(exp,c){_alsoResize(exp,c);});}else{_alsoResize(o.alsoResize);}},stop:function(event,ui){var self=$(this).data("resizable"),o=self.options;
var _reset=function(exp){$(exp).each(function(){var el=$(this);el.css({position:el.data("resizable-alsoresize").position});});};if(self._revertToRelativePosition){self._revertToRelativePosition=false;if(typeof(o.alsoResize)=="object"&&!o.alsoResize.nodeType){$.each(o.alsoResize,function(exp){_reset(exp);});}else{_reset(o.alsoResize);}}$(this).removeData("resizable-alsoresize");}});$.ui.plugin.add("resizable","animate",{stop:function(event,ui){var self=$(this).data("resizable"),o=self.options;var pr=self._proportionallyResizeElements,ista=pr.length&&(/textarea/i).test(pr[0].nodeName),soffseth=ista&&$.ui.hasScroll(pr[0],"left")?0:self.sizeDiff.height,soffsetw=ista?0:self.sizeDiff.width;
var style={width:(self.size.width-soffsetw),height:(self.size.height-soffseth)},left=(parseInt(self.element.css("left"),10)+(self.position.left-self.originalPosition.left))||null,top=(parseInt(self.element.css("top"),10)+(self.position.top-self.originalPosition.top))||null;self.element.animate($.extend(style,top&&left?{top:top,left:left}:{}),{duration:o.animateDuration,easing:o.animateEasing,step:function(){var data={width:parseInt(self.element.css("width"),10),height:parseInt(self.element.css("height"),10),top:parseInt(self.element.css("top"),10),left:parseInt(self.element.css("left"),10)};
if(pr&&pr.length){$(pr[0]).css({width:data.width,height:data.height});}self._updateCache(data);self._propagate("resize",event);}});}});$.ui.plugin.add("resizable","containment",{start:function(event,ui){var self=$(this).data("resizable"),o=self.options,el=self.element;var oc=o.containment,ce=(oc instanceof $)?oc.get(0):(/parent/.test(oc))?el.parent().get(0):oc;if(!ce){return;}self.containerElement=$(ce);if(/document/.test(oc)||oc==document){self.containerOffset={left:0,top:0};self.containerPosition={left:0,top:0};
self.parentData={element:$(document),left:0,top:0,width:$(document).width(),height:$(document).height()||document.body.parentNode.scrollHeight};}else{var element=$(ce),p=[];$(["Top","Right","Left","Bottom"]).each(function(i,name){p[i]=num(element.css("padding"+name));});self.containerOffset=element.offset();self.containerPosition=element.position();self.containerSize={height:(element.innerHeight()-p[3]),width:(element.innerWidth()-p[1])};var co=self.containerOffset,ch=self.containerSize.height,cw=self.containerSize.width,width=($.ui.hasScroll(ce,"left")?ce.scrollWidth:cw),height=($.ui.hasScroll(ce)?ce.scrollHeight:ch);
self.parentData={element:ce,left:co.left,top:co.top,width:width,height:height};}},resize:function(event,ui){var self=$(this).data("resizable"),o=self.options,ps=self.containerSize,co=self.containerOffset,cs=self.size,cp=self.position,pRatio=self._aspectRatio||event.shiftKey,cop={top:0,left:0},ce=self.containerElement;if(ce[0]!=document&&(/static/).test(ce.css("position"))){cop=co;}if(cp.left<(self._helper?co.left:0)){self.size.width=self.size.width+(self._helper?(self.position.left-co.left):(self.position.left-cop.left));
if(pRatio){self.size.height=self.size.width/o.aspectRatio;}self.position.left=o.helper?co.left:0;}if(cp.top<(self._helper?co.top:0)){self.size.height=self.size.height+(self._helper?(self.position.top-co.top):self.position.top);if(pRatio){self.size.width=self.size.height*o.aspectRatio;}self.position.top=self._helper?co.top:0;}self.offset.left=self.parentData.left+self.position.left;self.offset.top=self.parentData.top+self.position.top;var woset=Math.abs((self._helper?self.offset.left-cop.left:(self.offset.left-cop.left))+self.sizeDiff.width),hoset=Math.abs((self._helper?self.offset.top-cop.top:(self.offset.top-co.top))+self.sizeDiff.height);
var isParent=self.containerElement.get(0)==self.element.parent().get(0),isOffsetRelative=/relative|absolute/.test(self.containerElement.css("position"));if(isParent&&isOffsetRelative){woset-=self.parentData.left;}if(woset+self.size.width>=self.parentData.width){self.size.width=self.parentData.width-woset;if(pRatio){self.size.height=self.size.width/self.aspectRatio;}}if(hoset+self.size.height>=self.parentData.height){self.size.height=self.parentData.height-hoset;if(pRatio){self.size.width=self.size.height*self.aspectRatio;
}}},stop:function(event,ui){var self=$(this).data("resizable"),o=self.options,cp=self.position,co=self.containerOffset,cop=self.containerPosition,ce=self.containerElement;var helper=$(self.helper),ho=helper.offset(),w=helper.outerWidth()-self.sizeDiff.width,h=helper.outerHeight()-self.sizeDiff.height;if(self._helper&&!o.animate&&(/relative/).test(ce.css("position"))){$(this).css({left:ho.left-cop.left-co.left,width:w,height:h});}if(self._helper&&!o.animate&&(/static/).test(ce.css("position"))){$(this).css({left:ho.left-cop.left-co.left,width:w,height:h});
}}});$.ui.plugin.add("resizable","ghost",{start:function(event,ui){var self=$(this).data("resizable"),o=self.options,cs=self.size;self.ghost=self.originalElement.clone();self.ghost.css({opacity:0.25,display:"block",position:"relative",height:cs.height,width:cs.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof o.ghost=="string"?o.ghost:"");self.ghost.appendTo(self.helper);},resize:function(event,ui){var self=$(this).data("resizable"),o=self.options;if(self.ghost){self.ghost.css({position:"relative",height:self.size.height,width:self.size.width});
}},stop:function(event,ui){var self=$(this).data("resizable"),o=self.options;if(self.ghost&&self.helper){self.helper.get(0).removeChild(self.ghost.get(0));}}});$.ui.plugin.add("resizable","grid",{resize:function(event,ui){var self=$(this).data("resizable"),o=self.options,cs=self.size,os=self.originalSize,op=self.originalPosition,a=self.axis,ratio=o._aspectRatio||event.shiftKey;o.grid=typeof o.grid=="number"?[o.grid,o.grid]:o.grid;var ox=Math.round((cs.width-os.width)/(o.grid[0]||1))*(o.grid[0]||1),oy=Math.round((cs.height-os.height)/(o.grid[1]||1))*(o.grid[1]||1);
if(/^(se|s|e)$/.test(a)){self.size.width=os.width+ox;self.size.height=os.height+oy;}else{if(/^(ne)$/.test(a)){self.size.width=os.width+ox;self.size.height=os.height+oy;self.position.top=op.top-oy;}else{if(/^(sw)$/.test(a)){self.size.width=os.width+ox;self.size.height=os.height+oy;self.position.left=op.left-ox;}else{self.size.width=os.width+ox;self.size.height=os.height+oy;self.position.top=op.top-oy;self.position.left=op.left-ox;}}}}});var num=function(v){return parseInt(v,10)||0;};var isNumber=function(value){return !isNaN(parseInt(value,10));
};})(jQuery);(function($,undefined){var uiDialogClasses="ui-dialog ui-widget ui-widget-content ui-corner-all ",sizeRelatedOptions={buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},resizableRelatedOptions={maxHeight:true,maxWidth:true,minHeight:true,minWidth:true},attrFn=$.attrFn||{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true,click:true};$.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:{my:"center",at:"center",collision:"fit",using:function(pos){var topOffset=$(this).css(pos).offset().top;
if(topOffset<0){$(this).css("top",pos.top-topOffset);}}},resizable:true,show:null,stack:true,title:"",width:300,zIndex:1000},_create:function(){this.originalTitle=this.element.attr("title");if(typeof this.originalTitle!=="string"){this.originalTitle="";}this.options.title=this.options.title||this.originalTitle;var self=this,options=self.options,title=options.title||"&#160;",titleId=$.ui.dialog.getTitleId(self.element),uiDialog=(self.uiDialog=$("<div></div>")).appendTo(document.body).hide().addClass(uiDialogClasses+options.dialogClass).css({zIndex:options.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(event){if(options.closeOnEscape&&event.keyCode&&event.keyCode===$.ui.keyCode.ESCAPE){self.close(event);
event.preventDefault();}}).attr({role:"dialog","aria-labelledby":titleId}).mousedown(function(event){self.moveToTop(false,event);}),uiDialogContent=self.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(uiDialog),uiDialogTitlebar=(self.uiDialogTitlebar=$("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(uiDialog),uiDialogTitlebarClose=$('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){uiDialogTitlebarClose.addClass("ui-state-hover");
},function(){uiDialogTitlebarClose.removeClass("ui-state-hover");}).focus(function(){uiDialogTitlebarClose.addClass("ui-state-focus");}).blur(function(){uiDialogTitlebarClose.removeClass("ui-state-focus");}).click(function(event){self.close(event);return false;}).appendTo(uiDialogTitlebar),uiDialogTitlebarCloseText=(self.uiDialogTitlebarCloseText=$("<span></span>")).addClass("ui-icon ui-icon-closethick").text(options.closeText).appendTo(uiDialogTitlebarClose),uiDialogTitle=$("<span></span>").addClass("ui-dialog-title").attr("id",titleId).html(title).prependTo(uiDialogTitlebar);
if($.isFunction(options.beforeclose)&&!$.isFunction(options.beforeClose)){options.beforeClose=options.beforeclose;}uiDialogTitlebar.find("*").add(uiDialogTitlebar).disableSelection();if(options.draggable&&$.fn.draggable){self._makeDraggable();}if(options.resizable&&$.fn.resizable){self._makeResizable();}self._createButtons(options.buttons);self._isOpen=false;if($.fn.bgiframe){uiDialog.bgiframe();}},_init:function(){if(this.options.autoOpen){this.open();}},destroy:function(){var self=this;if(self.overlay){self.overlay.destroy();
}self.uiDialog.hide();self.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");self.uiDialog.remove();if(self.originalTitle){self.element.attr("title",self.originalTitle);}return self;},widget:function(){return this.uiDialog;},close:function(event){var self=this,maxZ,thisZ;if(false===self._trigger("beforeClose",event)){return;}if(self.overlay){self.overlay.destroy();}self.uiDialog.unbind("keypress.ui-dialog");self._isOpen=false;
if(self.options.hide){self.uiDialog.hide(self.options.hide,function(){self._trigger("close",event);});}else{self.uiDialog.hide();self._trigger("close",event);}$.ui.dialog.overlay.resize();if(self.options.modal){maxZ=0;$(".ui-dialog").each(function(){if(this!==self.uiDialog[0]){thisZ=$(this).css("z-index");if(!isNaN(thisZ)){maxZ=Math.max(maxZ,thisZ);}}});$.ui.dialog.maxZ=maxZ;}return self;},isOpen:function(){return this._isOpen;},moveToTop:function(force,event){var self=this,options=self.options,saveScroll;
if((options.modal&&!force)||(!options.stack&&!options.modal)){return self._trigger("focus",event);}if(options.zIndex>$.ui.dialog.maxZ){$.ui.dialog.maxZ=options.zIndex;}if(self.overlay){$.ui.dialog.maxZ+=1;self.overlay.$el.css("z-index",$.ui.dialog.overlay.maxZ=$.ui.dialog.maxZ);}saveScroll={scrollTop:self.element.attr("scrollTop"),scrollLeft:self.element.attr("scrollLeft")};$.ui.dialog.maxZ+=1;self.uiDialog.css("z-index",$.ui.dialog.maxZ);self.element.attr(saveScroll);self._trigger("focus",event);
return self;},open:function(){if(this._isOpen){return;}var self=this,options=self.options,uiDialog=self.uiDialog;self.overlay=options.modal?new $.ui.dialog.overlay(self):null;self._size();self._position(options.position);uiDialog.show(options.show);self.moveToTop(true);if(options.modal){uiDialog.bind("keypress.ui-dialog",function(event){if(event.keyCode!==$.ui.keyCode.TAB){return;}var tabbables=$(":tabbable",this),first=tabbables.filter(":first"),last=tabbables.filter(":last");if(event.target===last[0]&&!event.shiftKey){first.focus(1);
return false;}else{if(event.target===first[0]&&event.shiftKey){last.focus(1);return false;}}});}$(self.element.find(":tabbable").get().concat(uiDialog.find(".ui-dialog-buttonpane :tabbable").get().concat(uiDialog.get()))).eq(0).focus();self._isOpen=true;self._trigger("open");return self;},_createButtons:function(buttons){var self=this,hasButtons=false,uiDialogButtonPane=$("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),uiButtonSet=$("<div></div>").addClass("ui-dialog-buttonset").appendTo(uiDialogButtonPane);
self.uiDialog.find(".ui-dialog-buttonpane").remove();if(typeof buttons==="object"&&buttons!==null){$.each(buttons,function(){return !(hasButtons=true);});}if(hasButtons){$.each(buttons,function(name,props){props=$.isFunction(props)?{click:props,text:name}:props;var button=$('<button type="button"></button>').click(function(){props.click.apply(self.element[0],arguments);}).appendTo(uiButtonSet);$.each(props,function(key,value){if(key==="click"){return;}if(key in attrFn){button[key](value);}else{button.attr(key,value);
}});if($.fn.button){button.button();}});uiDialogButtonPane.appendTo(self.uiDialog);}},_makeDraggable:function(){var self=this,options=self.options,doc=$(document),heightBeforeDrag;function filteredUi(ui){return{position:ui.position,offset:ui.offset};}self.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(event,ui){heightBeforeDrag=options.height==="auto"?"auto":$(this).height();$(this).height($(this).height()).addClass("ui-dialog-dragging");
self._trigger("dragStart",event,filteredUi(ui));},drag:function(event,ui){self._trigger("drag",event,filteredUi(ui));},stop:function(event,ui){options.position=[ui.position.left-doc.scrollLeft(),ui.position.top-doc.scrollTop()];$(this).removeClass("ui-dialog-dragging").height(heightBeforeDrag);self._trigger("dragStop",event,filteredUi(ui));$.ui.dialog.overlay.resize();}});},_makeResizable:function(handles){handles=(handles===undefined?this.options.resizable:handles);var self=this,options=self.options,position=self.uiDialog.css("position"),resizeHandles=(typeof handles==="string"?handles:"n,e,s,w,se,sw,ne,nw");
function filteredUi(ui){return{originalPosition:ui.originalPosition,originalSize:ui.originalSize,position:ui.position,size:ui.size};}self.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:self.element,maxWidth:options.maxWidth,maxHeight:options.maxHeight,minWidth:options.minWidth,minHeight:self._minHeight(),handles:resizeHandles,start:function(event,ui){$(this).addClass("ui-dialog-resizing");self._trigger("resizeStart",event,filteredUi(ui));},resize:function(event,ui){self._trigger("resize",event,filteredUi(ui));
},stop:function(event,ui){$(this).removeClass("ui-dialog-resizing");options.height=$(this).height();options.width=$(this).width();self._trigger("resizeStop",event,filteredUi(ui));$.ui.dialog.overlay.resize();}}).css("position",position).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se");},_minHeight:function(){var options=this.options;if(options.height==="auto"){return options.minHeight;}else{return Math.min(options.minHeight,options.height);}},_position:function(position){var myAt=[],offset=[0,0],isVisible;
if(position){if(typeof position==="string"||(typeof position==="object"&&"0" in position)){myAt=position.split?position.split(" "):[position[0],position[1]];if(myAt.length===1){myAt[1]=myAt[0];}$.each(["left","top"],function(i,offsetPosition){if(+myAt[i]===myAt[i]){offset[i]=myAt[i];myAt[i]=offsetPosition;}});position={my:myAt.join(" "),at:myAt.join(" "),offset:offset.join(" ")};}position=$.extend({},$.ui.dialog.prototype.options.position,position);}else{position=$.ui.dialog.prototype.options.position;
}isVisible=this.uiDialog.is(":visible");if(!isVisible){this.uiDialog.show();}this.uiDialog.css({top:0,left:0}).position($.extend({of:window},position));if(!isVisible){this.uiDialog.hide();}},_setOptions:function(options){var self=this,resizableOptions={},resize=false;$.each(options,function(key,value){self._setOption(key,value);if(key in sizeRelatedOptions){resize=true;}if(key in resizableRelatedOptions){resizableOptions[key]=value;}});if(resize){this._size();}if(this.uiDialog.is(":data(resizable)")){this.uiDialog.resizable("option",resizableOptions);
}},_setOption:function(key,value){var self=this,uiDialog=self.uiDialog;switch(key){case"beforeclose":key="beforeClose";break;case"buttons":self._createButtons(value);break;case"closeText":self.uiDialogTitlebarCloseText.text(""+value);break;case"dialogClass":uiDialog.removeClass(self.options.dialogClass).addClass(uiDialogClasses+value);break;case"disabled":if(value){uiDialog.addClass("ui-dialog-disabled");}else{uiDialog.removeClass("ui-dialog-disabled");}break;case"draggable":var isDraggable=uiDialog.is(":data(draggable)");
if(isDraggable&&!value){uiDialog.draggable("destroy");}if(!isDraggable&&value){self._makeDraggable();}break;case"position":self._position(value);break;case"resizable":var isResizable=uiDialog.is(":data(resizable)");if(isResizable&&!value){uiDialog.resizable("destroy");}if(isResizable&&typeof value==="string"){uiDialog.resizable("option","handles",value);}if(!isResizable&&value!==false){self._makeResizable(value);}break;case"title":$(".ui-dialog-title",self.uiDialogTitlebar).html(""+(value||"&#160;"));
break;}$.Widget.prototype._setOption.apply(self,arguments);},_size:function(){var options=this.options,nonContentHeight,minContentHeight,isVisible=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0});if(options.minWidth>options.width){options.width=options.minWidth;}nonContentHeight=this.uiDialog.css({height:"auto",width:options.width}).height();minContentHeight=Math.max(0,options.minHeight-nonContentHeight);if(options.height==="auto"){if($.support.minHeight){this.element.css({minHeight:minContentHeight,height:"auto"});
}else{this.uiDialog.show();var autoHeight=this.element.css("height","auto").height();if(!isVisible){this.uiDialog.hide();}this.element.height(Math.max(autoHeight,minContentHeight));}}else{this.element.height(Math.max(options.height-nonContentHeight,0));}if(this.uiDialog.is(":data(resizable)")){this.uiDialog.resizable("option","minHeight",this._minHeight());}}});$.extend($.ui.dialog,{version:"1.8.14",uuid:0,maxZ:0,getTitleId:function($el){var id=$el.attr("id");if(!id){this.uuid+=1;id=this.uuid;}return"ui-dialog-title-"+id;
},overlay:function(dialog){this.$el=$.ui.dialog.overlay.create(dialog);}});$.extend($.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:$.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(event){return event+".dialog-overlay";}).join(" "),create:function(dialog){if(this.instances.length===0){setTimeout(function(){if($.ui.dialog.overlay.instances.length){$(document).bind($.ui.dialog.overlay.events,function(event){if($(event.target).zIndex()<$.ui.dialog.overlay.maxZ){return false;
}});}},1);$(document).bind("keydown.dialog-overlay",function(event){if(dialog.options.closeOnEscape&&event.keyCode&&event.keyCode===$.ui.keyCode.ESCAPE){dialog.close(event);event.preventDefault();}});$(window).bind("resize.dialog-overlay",$.ui.dialog.overlay.resize);}var $el=(this.oldInstances.pop()||$("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});if($.fn.bgiframe){$el.bgiframe();}this.instances.push($el);return $el;},destroy:function($el){var indexOf=$.inArray($el,this.instances);
if(indexOf!=-1){this.oldInstances.push(this.instances.splice(indexOf,1)[0]);}if(this.instances.length===0){$([document,window]).unbind(".dialog-overlay");}$el.remove();var maxZ=0;$.each(this.instances,function(){maxZ=Math.max(maxZ,this.css("z-index"));});this.maxZ=maxZ;},height:function(){var scrollHeight,offsetHeight;if($.browser.msie&&$.browser.version<7){scrollHeight=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);offsetHeight=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);
if(scrollHeight<offsetHeight){return $(window).height()+"px";}else{return scrollHeight+"px";}}else{return $(document).height()+"px";}},width:function(){var scrollWidth,offsetWidth;if($.browser.msie){scrollWidth=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);offsetWidth=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);if(scrollWidth<offsetWidth){return $(window).width()+"px";}else{return scrollWidth+"px";}}else{return $(document).width()+"px";}},resize:function(){var $overlays=$([]);
$.each($.ui.dialog.overlay.instances,function(){$overlays=$overlays.add(this);});$overlays.css({width:0,height:0}).css({width:$.ui.dialog.overlay.width(),height:$.ui.dialog.overlay.height()});}});$.extend($.ui.dialog.overlay.prototype,{destroy:function(){$.ui.dialog.overlay.destroy(this.$el);}});}(jQuery));(function($,undefined){$.ui=$.ui||{};var horizontalPositions=/left|center|right/,verticalPositions=/top|center|bottom/,center="center",_position=$.fn.position,_offset=$.fn.offset;$.fn.position=function(options){if(!options||!options.of){return _position.apply(this,arguments);
}options=$.extend({},options);var target=$(options.of),targetElem=target[0],collision=(options.collision||"flip").split(" "),offset=options.offset?options.offset.split(" "):[0,0],targetWidth,targetHeight,basePosition;if(targetElem.nodeType===9){targetWidth=target.width();targetHeight=target.height();basePosition={top:0,left:0};}else{if(targetElem.setTimeout){targetWidth=target.width();targetHeight=target.height();basePosition={top:target.scrollTop(),left:target.scrollLeft()};}else{if(targetElem.preventDefault){options.at="left top";
targetWidth=targetHeight=0;basePosition={top:options.of.pageY,left:options.of.pageX};}else{targetWidth=target.outerWidth();targetHeight=target.outerHeight();basePosition=target.offset();}}}$.each(["my","at"],function(){var pos=(options[this]||"").split(" ");if(pos.length===1){pos=horizontalPositions.test(pos[0])?pos.concat([center]):verticalPositions.test(pos[0])?[center].concat(pos):[center,center];}pos[0]=horizontalPositions.test(pos[0])?pos[0]:center;pos[1]=verticalPositions.test(pos[1])?pos[1]:center;
options[this]=pos;});if(collision.length===1){collision[1]=collision[0];}offset[0]=parseInt(offset[0],10)||0;if(offset.length===1){offset[1]=offset[0];}offset[1]=parseInt(offset[1],10)||0;if(options.at[0]==="right"){basePosition.left+=targetWidth;}else{if(options.at[0]===center){basePosition.left+=targetWidth/2;}}if(options.at[1]==="bottom"){basePosition.top+=targetHeight;}else{if(options.at[1]===center){basePosition.top+=targetHeight/2;}}basePosition.left+=offset[0];basePosition.top+=offset[1];return this.each(function(){var elem=$(this),elemWidth=elem.outerWidth(),elemHeight=elem.outerHeight(),marginLeft=parseInt($.curCSS(this,"marginLeft",true))||0,marginTop=parseInt($.curCSS(this,"marginTop",true))||0,collisionWidth=elemWidth+marginLeft+(parseInt($.curCSS(this,"marginRight",true))||0),collisionHeight=elemHeight+marginTop+(parseInt($.curCSS(this,"marginBottom",true))||0),position=$.extend({},basePosition),collisionPosition;
if(options.my[0]==="right"){position.left-=elemWidth;}else{if(options.my[0]===center){position.left-=elemWidth/2;}}if(options.my[1]==="bottom"){position.top-=elemHeight;}else{if(options.my[1]===center){position.top-=elemHeight/2;}}position.left=Math.round(position.left);position.top=Math.round(position.top);collisionPosition={left:position.left-marginLeft,top:position.top-marginTop};$.each(["left","top"],function(i,dir){if($.ui.position[collision[i]]){$.ui.position[collision[i]][dir](position,{targetWidth:targetWidth,targetHeight:targetHeight,elemWidth:elemWidth,elemHeight:elemHeight,collisionPosition:collisionPosition,collisionWidth:collisionWidth,collisionHeight:collisionHeight,offset:offset,my:options.my,at:options.at});
}});if($.fn.bgiframe){elem.bgiframe();}elem.offset($.extend(position,{using:options.using}));});};$.ui.position={fit:{left:function(position,data){var win=$(window),over=data.collisionPosition.left+data.collisionWidth-win.width()-win.scrollLeft();position.left=over>0?position.left-over:Math.max(position.left-data.collisionPosition.left,position.left);},top:function(position,data){var win=$(window),over=data.collisionPosition.top+data.collisionHeight-win.height()-win.scrollTop();position.top=over>0?position.top-over:Math.max(position.top-data.collisionPosition.top,position.top);
}},flip:{left:function(position,data){if(data.at[0]===center){return;}var win=$(window),over=data.collisionPosition.left+data.collisionWidth-win.width()-win.scrollLeft(),myOffset=data.my[0]==="left"?-data.elemWidth:data.my[0]==="right"?data.elemWidth:0,atOffset=data.at[0]==="left"?data.targetWidth:-data.targetWidth,offset=-2*data.offset[0];position.left+=data.collisionPosition.left<0?myOffset+atOffset+offset:over>0?myOffset+atOffset+offset:0;},top:function(position,data){if(data.at[1]===center){return;
}var win=$(window),over=data.collisionPosition.top+data.collisionHeight-win.height()-win.scrollTop(),myOffset=data.my[1]==="top"?-data.elemHeight:data.my[1]==="bottom"?data.elemHeight:0,atOffset=data.at[1]==="top"?data.targetHeight:-data.targetHeight,offset=-2*data.offset[1];position.top+=data.collisionPosition.top<0?myOffset+atOffset+offset:over>0?myOffset+atOffset+offset:0;}}};if(!$.offset.setOffset){$.offset.setOffset=function(elem,options){if(/static/.test($.curCSS(elem,"position"))){elem.style.position="relative";
}var curElem=$(elem),curOffset=curElem.offset(),curTop=parseInt($.curCSS(elem,"top",true),10)||0,curLeft=parseInt($.curCSS(elem,"left",true),10)||0,props={top:(options.top-curOffset.top)+curTop,left:(options.left-curOffset.left)+curLeft};if("using" in options){options.using.call(elem,props);}else{curElem.css(props);}};$.fn.offset=function(options){var elem=this[0];if(!elem||!elem.ownerDocument){return null;}if(options){return this.each(function(){$.offset.setOffset(this,options);});}return _offset.call(this);
};}}(jQuery));(function($,undefined){var requestIndex=0;$.widget("ui.autocomplete",{options:{appendTo:"body",autoFocus:false,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var self=this,doc=this.element[0].ownerDocument,suppressKeyPress;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(event){if(self.options.disabled||self.element.attr("readonly")){return;
}suppressKeyPress=false;var keyCode=$.ui.keyCode;switch(event.keyCode){case keyCode.PAGE_UP:self._move("previousPage",event);break;case keyCode.PAGE_DOWN:self._move("nextPage",event);break;case keyCode.UP:self._move("previous",event);event.preventDefault();break;case keyCode.DOWN:self._move("next",event);event.preventDefault();break;case keyCode.ENTER:case keyCode.NUMPAD_ENTER:if(self.menu.active){suppressKeyPress=true;event.preventDefault();}case keyCode.TAB:if(!self.menu.active){return;}self.menu.select(event);
break;case keyCode.ESCAPE:self.element.val(self.term);self.close(event);break;default:clearTimeout(self.searching);self.searching=setTimeout(function(){if(self.term!=self.element.val()){self.selectedItem=null;self.search(null,event);}},self.options.delay);break;}}).bind("keypress.autocomplete",function(event){if(suppressKeyPress){suppressKeyPress=false;event.preventDefault();}}).bind("focus.autocomplete",function(){if(self.options.disabled){return;}self.selectedItem=null;self.previous=self.element.val();
}).bind("blur.autocomplete",function(event){if(self.options.disabled){return;}clearTimeout(self.searching);self.closing=setTimeout(function(){self.close(event);self._change(event);},150);});this._initSource();this.response=function(){return self._response.apply(self,arguments);};this.menu=$("<ul></ul>").addClass("ui-autocomplete").appendTo($(this.options.appendTo||"body",doc)[0]).mousedown(function(event){var menuElement=self.menu.element[0];if(!$(event.target).closest(".ui-menu-item").length){setTimeout(function(){$(document).one("mousedown",function(event){if(event.target!==self.element[0]&&event.target!==menuElement&&!$.ui.contains(menuElement,event.target)){self.close();
}});},1);}setTimeout(function(){clearTimeout(self.closing);},13);}).menu({focus:function(event,ui){var item=ui.item.data("item.autocomplete");if(false!==self._trigger("focus",event,{item:item})){if(/^key/.test(event.originalEvent.type)){self.element.val(item.value);}}},selected:function(event,ui){var item=ui.item.data("item.autocomplete"),previous=self.previous;if(self.element[0]!==doc.activeElement){self.element.focus();self.previous=previous;setTimeout(function(){self.previous=previous;self.selectedItem=item;
},1);}if(false!==self._trigger("select",event,{item:item})){self.element.val(item.value);}self.term=self.element.val();self.close(event);self.selectedItem=item;},blur:function(event,ui){if(self.menu.element.is(":visible")&&(self.element.val()!==self.term)){self.element.val(self.term);}}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");if($.fn.bgiframe){this.menu.element.bgiframe();}},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");
this.menu.element.remove();$.Widget.prototype.destroy.call(this);},_setOption:function(key,value){$.Widget.prototype._setOption.apply(this,arguments);if(key==="source"){this._initSource();}if(key==="appendTo"){this.menu.element.appendTo($(value||"body",this.element[0].ownerDocument)[0]);}if(key==="disabled"&&value&&this.xhr){this.xhr.abort();}},_initSource:function(){var self=this,array,url;if($.isArray(this.options.source)){array=this.options.source;this.source=function(request,response){response($.ui.autocomplete.filter(array,request.term));
};}else{if(typeof this.options.source==="string"){url=this.options.source;this.source=function(request,response){if(self.xhr){self.xhr.abort();}self.xhr=$.ajax({url:url,data:request,dataType:"json",autocompleteRequest:++requestIndex,success:function(data,status){if(this.autocompleteRequest===requestIndex){response(data);}},error:function(){if(this.autocompleteRequest===requestIndex){response([]);}}});};}else{this.source=this.options.source;}}},search:function(value,event){value=value!=null?value:this.element.val();
this.term=this.element.val();if(value.length<this.options.minLength){return this.close(event);}clearTimeout(this.closing);if(this._trigger("search",event)===false){return;}return this._search(value);},_search:function(value){this.pending++;this.element.addClass("ui-autocomplete-loading");this.source({term:value},this.response);},_response:function(content){if(!this.options.disabled&&content&&content.length){content=this._normalize(content);this._suggest(content);this._trigger("open");}else{this.close();
}this.pending--;if(!this.pending){this.element.removeClass("ui-autocomplete-loading");}},close:function(event){clearTimeout(this.closing);if(this.menu.element.is(":visible")){this.menu.element.hide();this.menu.deactivate();this._trigger("close",event);}},_change:function(event){if(this.previous!==this.element.val()){this._trigger("change",event,{item:this.selectedItem});}},_normalize:function(items){if(items.length&&items[0].label&&items[0].value){return items;}return $.map(items,function(item){if(typeof item==="string"){return{label:item,value:item};
}return $.extend({label:item.label||item.value,value:item.value||item.label},item);});},_suggest:function(items){var ul=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(ul,items);this.menu.deactivate();this.menu.refresh();ul.show();this._resizeMenu();ul.position($.extend({of:this.element},this.options.position));if(this.options.autoFocus){this.menu.next(new $.Event("mouseover"));}},_resizeMenu:function(){var ul=this.menu.element;ul.outerWidth(Math.max(ul.width("").outerWidth(),this.element.outerWidth()));
},_renderMenu:function(ul,items){var self=this;$.each(items,function(index,item){self._renderItem(ul,item);});},_renderItem:function(ul,item){return $("<li></li>").data("item.autocomplete",item).append($("<a></a>").text(item.label)).appendTo(ul);},_move:function(direction,event){if(!this.menu.element.is(":visible")){this.search(null,event);return;}if(this.menu.first()&&/^previous/.test(direction)||this.menu.last()&&/^next/.test(direction)){this.element.val(this.term);this.menu.deactivate();return;
}this.menu[direction](event);},widget:function(){return this.menu.element;}});$.extend($.ui.autocomplete,{escapeRegex:function(value){return value.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");},filter:function(array,term){var matcher=new RegExp($.ui.autocomplete.escapeRegex(term),"i");return $.grep(array,function(value){return matcher.test(value.label||value.value||value);});}});}(jQuery));(function($){$.widget("ui.menu",{_create:function(){var self=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(event){if(!$(event.target).closest(".ui-menu-item a").length){return;
}event.preventDefault();self.select(event);});this.refresh();},refresh:function(){var self=this;var items=this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem");items.children("a").addClass("ui-corner-all").attr("tabindex",-1).mouseenter(function(event){self.activate(event,$(this).parent());}).mouseleave(function(){self.deactivate();});},activate:function(event,item){this.deactivate();if(this.hasScroll()){var offset=item.offset().top-this.element.offset().top,scroll=this.element.scrollTop(),elementHeight=this.element.height();
if(offset<0){this.element.scrollTop(scroll+offset);}else{if(offset>=elementHeight){this.element.scrollTop(scroll+offset-elementHeight+item.height());}}}this.active=item.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",event,{item:item});},deactivate:function(){if(!this.active){return;}this.active.children("a").removeClass("ui-state-hover").removeAttr("id");this._trigger("blur");this.active=null;},next:function(event){this.move("next",".ui-menu-item:first",event);
},previous:function(event){this.move("prev",".ui-menu-item:last",event);},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length;},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length;},move:function(direction,edge,event){if(!this.active){this.activate(event,this.element.children(edge));return;}var next=this.active[direction+"All"](".ui-menu-item").eq(0);if(next.length){this.activate(event,next);}else{this.activate(event,this.element.children(edge));
}},nextPage:function(event){if(this.hasScroll()){if(!this.active||this.last()){this.activate(event,this.element.children(".ui-menu-item:first"));return;}var base=this.active.offset().top,height=this.element.height(),result=this.element.children(".ui-menu-item").filter(function(){var close=$(this).offset().top-base-height+$(this).height();return close<10&&close>-10;});if(!result.length){result=this.element.children(".ui-menu-item:last");}this.activate(event,result);}else{this.activate(event,this.element.children(".ui-menu-item").filter(!this.active||this.last()?":first":":last"));
}},previousPage:function(event){if(this.hasScroll()){if(!this.active||this.first()){this.activate(event,this.element.children(".ui-menu-item:last"));return;}var base=this.active.offset().top,height=this.element.height();result=this.element.children(".ui-menu-item").filter(function(){var close=$(this).offset().top-base+height-$(this).height();return close<10&&close>-10;});if(!result.length){result=this.element.children(".ui-menu-item:first");}this.activate(event,result);}else{this.activate(event,this.element.children(".ui-menu-item").filter(!this.active||this.first()?":last":":first"));
}},hasScroll:function(){return this.element.height()<this.element[$.fn.prop?"prop":"attr"]("scrollHeight");},select:function(event){this._trigger("selected",event,{item:this.active});}});}(jQuery));(function($,undefined){$.widget("ui.draggable",$.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false},_create:function(){if(this.options.helper=="original"&&!(/^(?:r|a|f)/).test(this.element.css("position"))){this.element[0].style.position="relative";
}(this.options.addClasses&&this.element.addClass("ui-draggable"));(this.options.disabled&&this.element.addClass("ui-draggable-disabled"));this._mouseInit();},destroy:function(){if(!this.element.data("draggable")){return;}this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy();return this;},_mouseCapture:function(event){var o=this.options;if(this.helper||o.disabled||$(event.target).is(".ui-resizable-handle")){return false;
}this.handle=this._getHandle(event);if(!this.handle){return false;}$(o.iframeFix===true?"iframe":o.iframeFix).each(function(){$('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css($(this).offset()).appendTo("body");});return true;},_mouseStart:function(event){var o=this.options;this.helper=this._createHelper(event);this._cacheHelperProportions();if($.ui.ddmanager){$.ui.ddmanager.current=this;
}this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};$.extend(this.offset,{click:{left:event.pageX-this.offset.left,top:event.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(event);this.originalPageX=event.pageX;
this.originalPageY=event.pageY;(o.cursorAt&&this._adjustOffsetFromHelper(o.cursorAt));if(o.containment){this._setContainment();}if(this._trigger("start",event)===false){this._clear();return false;}this._cacheHelperProportions();if($.ui.ddmanager&&!o.dropBehaviour){$.ui.ddmanager.prepareOffsets(this,event);}this.helper.addClass("ui-draggable-dragging");this._mouseDrag(event,true);if($.ui.ddmanager){$.ui.ddmanager.dragStart(this,event);}return true;},_mouseDrag:function(event,noPropagation){this.position=this._generatePosition(event);
this.positionAbs=this._convertPositionTo("absolute");if(!noPropagation){var ui=this._uiHash();if(this._trigger("drag",event,ui)===false){this._mouseUp({});return false;}this.position=ui.position;}if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px";}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px";}if($.ui.ddmanager){$.ui.ddmanager.drag(this,event);}return false;},_mouseStop:function(event){var dropped=false;
if($.ui.ddmanager&&!this.options.dropBehaviour){dropped=$.ui.ddmanager.drop(this,event);}if(this.dropped){dropped=this.dropped;this.dropped=false;}if((!this.element[0]||!this.element[0].parentNode)&&this.options.helper=="original"){return false;}if((this.options.revert=="invalid"&&!dropped)||(this.options.revert=="valid"&&dropped)||this.options.revert===true||($.isFunction(this.options.revert)&&this.options.revert.call(this.element,dropped))){var self=this;$(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){if(self._trigger("stop",event)!==false){self._clear();
}});}else{if(this._trigger("stop",event)!==false){this._clear();}}return false;},_mouseUp:function(event){if(this.options.iframeFix===true){$("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this);});}if($.ui.ddmanager){$.ui.ddmanager.dragStop(this,event);}return $.ui.mouse.prototype._mouseUp.call(this,event);},cancel:function(){if(this.helper.is(".ui-draggable-dragging")){this._mouseUp({});}else{this._clear();}return this;},_getHandle:function(event){var handle=!this.options.handle||!$(this.options.handle,this.element).length?true:false;
$(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==event.target){handle=true;}});return handle;},_createHelper:function(event){var o=this.options;var helper=$.isFunction(o.helper)?$(o.helper.apply(this.element[0],[event])):(o.helper=="clone"?this.element.clone().removeAttr("id"):this.element);if(!helper.parents("body").length){helper.appendTo((o.appendTo=="parent"?this.element[0].parentNode:o.appendTo));}if(helper[0]!=this.element[0]&&!(/(fixed|absolute)/).test(helper.css("position"))){helper.css("position","absolute");
}return helper;},_adjustOffsetFromHelper:function(obj){if(typeof obj=="string"){obj=obj.split(" ");}if($.isArray(obj)){obj={left:+obj[0],top:+obj[1]||0};}if("left" in obj){this.offset.click.left=obj.left+this.margins.left;}if("right" in obj){this.offset.click.left=this.helperProportions.width-obj.right+this.margins.left;}if("top" in obj){this.offset.click.top=obj.top+this.margins.top;}if("bottom" in obj){this.offset.click.top=this.helperProportions.height-obj.bottom+this.margins.top;}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();
var po=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&$.ui.contains(this.scrollParent[0],this.offsetParent[0])){po.left+=this.scrollParent.scrollLeft();po.top+=this.scrollParent.scrollTop();}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&$.browser.msie)){po={top:0,left:0};}return{top:po.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:po.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)};
},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var p=this.element.position();return{top:p.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:p.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()};}else{return{top:0,left:0};}},_cacheMargins:function(){this.margins={left:(parseInt(this.element.css("marginLeft"),10)||0),top:(parseInt(this.element.css("marginTop"),10)||0),right:(parseInt(this.element.css("marginRight"),10)||0),bottom:(parseInt(this.element.css("marginBottom"),10)||0)};
},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()};},_setContainment:function(){var o=this.options;if(o.containment=="parent"){o.containment=this.helper[0].parentNode;}if(o.containment=="document"||o.containment=="window"){this.containment=[o.containment=="document"?0:$(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,o.containment=="document"?0:$(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,(o.containment=="document"?0:$(window).scrollLeft())+$(o.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(o.containment=="document"?0:$(window).scrollTop())+($(o.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];
}if(!(/^(document|window|parent)$/).test(o.containment)&&o.containment.constructor!=Array){var c=$(o.containment);var ce=c[0];if(!ce){return;}var co=c.offset();var over=($(ce).css("overflow")!="hidden");this.containment=[(parseInt($(ce).css("borderLeftWidth"),10)||0)+(parseInt($(ce).css("paddingLeft"),10)||0),(parseInt($(ce).css("borderTopWidth"),10)||0)+(parseInt($(ce).css("paddingTop"),10)||0),(over?Math.max(ce.scrollWidth,ce.offsetWidth):ce.offsetWidth)-(parseInt($(ce).css("borderLeftWidth"),10)||0)-(parseInt($(ce).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(over?Math.max(ce.scrollHeight,ce.offsetHeight):ce.offsetHeight)-(parseInt($(ce).css("borderTopWidth"),10)||0)-(parseInt($(ce).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom];
this.relative_container=c;}else{if(o.containment.constructor==Array){this.containment=o.containment;}}},_convertPositionTo:function(d,pos){if(!pos){pos=this.position;}var mod=d=="absolute"?1:-1;var o=this.options,scroll=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&$.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,scrollIsRootNode=(/(html|body)/i).test(scroll[0].tagName);return{top:(pos.top+this.offset.relative.top*mod+this.offset.parent.top*mod-($.browser.safari&&$.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(scrollIsRootNode?0:scroll.scrollTop()))*mod)),left:(pos.left+this.offset.relative.left*mod+this.offset.parent.left*mod-($.browser.safari&&$.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():scrollIsRootNode?0:scroll.scrollLeft())*mod))};
},_generatePosition:function(event){var o=this.options,scroll=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&$.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,scrollIsRootNode=(/(html|body)/i).test(scroll[0].tagName);var pageX=event.pageX;var pageY=event.pageY;if(this.originalPosition){var containment;if(this.containment){if(this.relative_container){var co=this.relative_container.offset();containment=[this.containment[0]+co.left,this.containment[1]+co.top,this.containment[2]+co.left,this.containment[3]+co.top];
}else{containment=this.containment;}if(event.pageX-this.offset.click.left<containment[0]){pageX=containment[0]+this.offset.click.left;}if(event.pageY-this.offset.click.top<containment[1]){pageY=containment[1]+this.offset.click.top;}if(event.pageX-this.offset.click.left>containment[2]){pageX=containment[2]+this.offset.click.left;}if(event.pageY-this.offset.click.top>containment[3]){pageY=containment[3]+this.offset.click.top;}}if(o.grid){var top=o.grid[1]?this.originalPageY+Math.round((pageY-this.originalPageY)/o.grid[1])*o.grid[1]:this.originalPageY;
pageY=containment?(!(top-this.offset.click.top<containment[1]||top-this.offset.click.top>containment[3])?top:(!(top-this.offset.click.top<containment[1])?top-o.grid[1]:top+o.grid[1])):top;var left=o.grid[0]?this.originalPageX+Math.round((pageX-this.originalPageX)/o.grid[0])*o.grid[0]:this.originalPageX;pageX=containment?(!(left-this.offset.click.left<containment[0]||left-this.offset.click.left>containment[2])?left:(!(left-this.offset.click.left<containment[0])?left-o.grid[0]:left+o.grid[0])):left;
}}return{top:(pageY-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+($.browser.safari&&$.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(scrollIsRootNode?0:scroll.scrollTop())))),left:(pageX-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+($.browser.safari&&$.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():scrollIsRootNode?0:scroll.scrollLeft())))};
},_clear:function(){this.helper.removeClass("ui-draggable-dragging");if(this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval){this.helper.remove();}this.helper=null;this.cancelHelperRemoval=false;},_trigger:function(type,event,ui){ui=ui||this._uiHash();$.ui.plugin.call(this,type,[event,ui]);if(type=="drag"){this.positionAbs=this._convertPositionTo("absolute");}return $.Widget.prototype._trigger.call(this,type,event,ui);},plugins:{},_uiHash:function(event){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs};
}});$.extend($.ui.draggable,{version:"1.8.14"});$.ui.plugin.add("draggable","connectToSortable",{start:function(event,ui){var inst=$(this).data("draggable"),o=inst.options,uiSortable=$.extend({},ui,{item:inst.element});inst.sortables=[];$(o.connectToSortable).each(function(){var sortable=$.data(this,"sortable");if(sortable&&!sortable.options.disabled){inst.sortables.push({instance:sortable,shouldRevert:sortable.options.revert});sortable.refreshPositions();sortable._trigger("activate",event,uiSortable);
}});},stop:function(event,ui){var inst=$(this).data("draggable"),uiSortable=$.extend({},ui,{item:inst.element});$.each(inst.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;inst.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert){this.instance.options.revert=true;}this.instance._mouseStop(event);this.instance.options.helper=this.instance.options._helper;if(inst.options.helper=="original"){this.instance.currentItem.css({top:"auto",left:"auto"});
}}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",event,uiSortable);}});},drag:function(event,ui){var inst=$(this).data("draggable"),self=this;var checkPos=function(o){var dyClick=this.offset.click.top,dxClick=this.offset.click.left;var helperTop=this.positionAbs.top,helperLeft=this.positionAbs.left;var itemHeight=o.height,itemWidth=o.width;var itemTop=o.top,itemLeft=o.left;return $.ui.isOver(helperTop+dyClick,helperLeft+dxClick,itemTop,itemLeft,itemHeight,itemWidth);
};$.each(inst.sortables,function(i){this.instance.positionAbs=inst.positionAbs;this.instance.helperProportions=inst.helperProportions;this.instance.offset.click=inst.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=$(self).clone().removeAttr("id").appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return ui.helper[0];
};event.target=this.instance.currentItem[0];this.instance._mouseCapture(event,true);this.instance._mouseStart(event,true,true);this.instance.offset.click.top=inst.offset.click.top;this.instance.offset.click.left=inst.offset.click.left;this.instance.offset.parent.left-=inst.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=inst.offset.parent.top-this.instance.offset.parent.top;inst._trigger("toSortable",event);inst.dropped=this.instance.element;inst.currentItem=inst.element;
this.instance.fromOutside=inst;}if(this.instance.currentItem){this.instance._mouseDrag(event);}}else{if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",event,this.instance._uiHash(this.instance));this.instance._mouseStop(event,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();if(this.instance.placeholder){this.instance.placeholder.remove();}inst._trigger("fromSortable",event);
inst.dropped=false;}}});}});$.ui.plugin.add("draggable","cursor",{start:function(event,ui){var t=$("body"),o=$(this).data("draggable").options;if(t.css("cursor")){o._cursor=t.css("cursor");}t.css("cursor",o.cursor);},stop:function(event,ui){var o=$(this).data("draggable").options;if(o._cursor){$("body").css("cursor",o._cursor);}}});$.ui.plugin.add("draggable","opacity",{start:function(event,ui){var t=$(ui.helper),o=$(this).data("draggable").options;if(t.css("opacity")){o._opacity=t.css("opacity");
}t.css("opacity",o.opacity);},stop:function(event,ui){var o=$(this).data("draggable").options;if(o._opacity){$(ui.helper).css("opacity",o._opacity);}}});$.ui.plugin.add("draggable","scroll",{start:function(event,ui){var i=$(this).data("draggable");if(i.scrollParent[0]!=document&&i.scrollParent[0].tagName!="HTML"){i.overflowOffset=i.scrollParent.offset();}},drag:function(event,ui){var i=$(this).data("draggable"),o=i.options,scrolled=false;if(i.scrollParent[0]!=document&&i.scrollParent[0].tagName!="HTML"){if(!o.axis||o.axis!="x"){if((i.overflowOffset.top+i.scrollParent[0].offsetHeight)-event.pageY<o.scrollSensitivity){i.scrollParent[0].scrollTop=scrolled=i.scrollParent[0].scrollTop+o.scrollSpeed;
}else{if(event.pageY-i.overflowOffset.top<o.scrollSensitivity){i.scrollParent[0].scrollTop=scrolled=i.scrollParent[0].scrollTop-o.scrollSpeed;}}}if(!o.axis||o.axis!="y"){if((i.overflowOffset.left+i.scrollParent[0].offsetWidth)-event.pageX<o.scrollSensitivity){i.scrollParent[0].scrollLeft=scrolled=i.scrollParent[0].scrollLeft+o.scrollSpeed;}else{if(event.pageX-i.overflowOffset.left<o.scrollSensitivity){i.scrollParent[0].scrollLeft=scrolled=i.scrollParent[0].scrollLeft-o.scrollSpeed;}}}}else{if(!o.axis||o.axis!="x"){if(event.pageY-$(document).scrollTop()<o.scrollSensitivity){scrolled=$(document).scrollTop($(document).scrollTop()-o.scrollSpeed);
}else{if($(window).height()-(event.pageY-$(document).scrollTop())<o.scrollSensitivity){scrolled=$(document).scrollTop($(document).scrollTop()+o.scrollSpeed);}}}if(!o.axis||o.axis!="y"){if(event.pageX-$(document).scrollLeft()<o.scrollSensitivity){scrolled=$(document).scrollLeft($(document).scrollLeft()-o.scrollSpeed);}else{if($(window).width()-(event.pageX-$(document).scrollLeft())<o.scrollSensitivity){scrolled=$(document).scrollLeft($(document).scrollLeft()+o.scrollSpeed);}}}}if(scrolled!==false&&$.ui.ddmanager&&!o.dropBehaviour){$.ui.ddmanager.prepareOffsets(i,event);
}}});$.ui.plugin.add("draggable","snap",{start:function(event,ui){var i=$(this).data("draggable"),o=i.options;i.snapElements=[];$(o.snap.constructor!=String?(o.snap.items||":data(draggable)"):o.snap).each(function(){var $t=$(this);var $o=$t.offset();if(this!=i.element[0]){i.snapElements.push({item:this,width:$t.outerWidth(),height:$t.outerHeight(),top:$o.top,left:$o.left});}});},drag:function(event,ui){var inst=$(this).data("draggable"),o=inst.options;var d=o.snapTolerance;var x1=ui.offset.left,x2=x1+inst.helperProportions.width,y1=ui.offset.top,y2=y1+inst.helperProportions.height;
for(var i=inst.snapElements.length-1;i>=0;i--){var l=inst.snapElements[i].left,r=l+inst.snapElements[i].width,t=inst.snapElements[i].top,b=t+inst.snapElements[i].height;if(!((l-d<x1&&x1<r+d&&t-d<y1&&y1<b+d)||(l-d<x1&&x1<r+d&&t-d<y2&&y2<b+d)||(l-d<x2&&x2<r+d&&t-d<y1&&y1<b+d)||(l-d<x2&&x2<r+d&&t-d<y2&&y2<b+d))){if(inst.snapElements[i].snapping){(inst.options.snap.release&&inst.options.snap.release.call(inst.element,event,$.extend(inst._uiHash(),{snapItem:inst.snapElements[i].item})));}inst.snapElements[i].snapping=false;
continue;}if(o.snapMode!="inner"){var ts=Math.abs(t-y2)<=d;var bs=Math.abs(b-y1)<=d;var ls=Math.abs(l-x2)<=d;var rs=Math.abs(r-x1)<=d;if(ts){ui.position.top=inst._convertPositionTo("relative",{top:t-inst.helperProportions.height,left:0}).top-inst.margins.top;}if(bs){ui.position.top=inst._convertPositionTo("relative",{top:b,left:0}).top-inst.margins.top;}if(ls){ui.position.left=inst._convertPositionTo("relative",{top:0,left:l-inst.helperProportions.width}).left-inst.margins.left;}if(rs){ui.position.left=inst._convertPositionTo("relative",{top:0,left:r}).left-inst.margins.left;
}}var first=(ts||bs||ls||rs);if(o.snapMode!="outer"){var ts=Math.abs(t-y1)<=d;var bs=Math.abs(b-y2)<=d;var ls=Math.abs(l-x1)<=d;var rs=Math.abs(r-x2)<=d;if(ts){ui.position.top=inst._convertPositionTo("relative",{top:t,left:0}).top-inst.margins.top;}if(bs){ui.position.top=inst._convertPositionTo("relative",{top:b-inst.helperProportions.height,left:0}).top-inst.margins.top;}if(ls){ui.position.left=inst._convertPositionTo("relative",{top:0,left:l}).left-inst.margins.left;}if(rs){ui.position.left=inst._convertPositionTo("relative",{top:0,left:r-inst.helperProportions.width}).left-inst.margins.left;
}}if(!inst.snapElements[i].snapping&&(ts||bs||ls||rs||first)){(inst.options.snap.snap&&inst.options.snap.snap.call(inst.element,event,$.extend(inst._uiHash(),{snapItem:inst.snapElements[i].item})));}inst.snapElements[i].snapping=(ts||bs||ls||rs||first);}}});$.ui.plugin.add("draggable","stack",{start:function(event,ui){var o=$(this).data("draggable").options;var group=$.makeArray($(o.stack)).sort(function(a,b){return(parseInt($(a).css("zIndex"),10)||0)-(parseInt($(b).css("zIndex"),10)||0);});if(!group.length){return;
}var min=parseInt(group[0].style.zIndex)||0;$(group).each(function(i){this.style.zIndex=min+i;});this[0].style.zIndex=min+group.length;}});$.ui.plugin.add("draggable","zIndex",{start:function(event,ui){var t=$(ui.helper),o=$(this).data("draggable").options;if(t.css("zIndex")){o._zIndex=t.css("zIndex");}t.css("zIndex",o.zIndex);},stop:function(event,ui){var o=$(this).data("draggable").options;if(o._zIndex){$(ui.helper).css("zIndex",o._zIndex);}}});})(jQuery);eval(function(p,a,c,k,e,r){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36));
};if(!"".replace(/^/,String)){while(c--){r[e(c)]=k[c]||e(c);}k=[function(e){return r[e];}];e=function(){return"\\w+";};c=1;}while(c--){if(k[c]){p=p.replace(new RegExp("\\b"+e(c)+"\\b","g"),k[c]);}}return p;}('(6(a){a.1j.3C=6(){4 c=X;a(W).1g(6(d,e){4 b=a(e).1K("1U");5(b!=X&&7 b=="1a"&&!a.19(b)&&!a.18(b)&&b.3!=X&&7 b.3=="1a"&&!a.19(b.3)&&!a.18(b.3)&&7 b.3.1v!="1w"){c=b.3.1v?U:Q}12 Q});12 c};a.1j.45=6(){4 b=X;a(W).1g(6(e,f){4 d=a(f).1K("1U");5(d!=X&&7 d=="1a"&&!a.19(d)&&!a.18(d)&&d.3!=X&&7 d.3=="1a"&&!a.19(d.3)&&!a.18(d.3)&&7 d.3.1V!="1w"&&d.3.1V!=X){b=c(d.3.1V)}12 Q});6 c(d){12 2z 2Q(d*2R)}12 b};a.1j.4d=6(){4 b=X;a(W).1g(6(e,f){4 d=a(f).1K("1U");5(d!=X&&7 d=="1a"&&!a.19(d)&&!a.18(d)&&d.3!=X&&7 d.3=="1a"&&!a.19(d.3)&&!a.18(d.3)&&7 d.3.1W!="1w"&&d.3.1W!=X){b=c(d.3.1W)}12 Q});6 c(d){12 2z 2Q(d*2R)}12 b};a.1j.3G=6(){4 b=X;a(W).1g(6(e,f){4 d=a(f).1K("1U");5(d!=X&&7 d=="1a"&&!a.19(d)&&!a.18(d)&&d.3!=X&&7 d.3=="1a"&&!a.19(d.3)&&!a.18(d.3)&&7 d.3.1L!="1w"&&d.3.1L!=X){b=c(d.3.1L)}12 Q});6 c(d){12 2z 2Q(d*2R)}12 b};a.1j.3H=6(){4 b=X;a(W).1g(6(d,e){4 c=a(e).1K("1U");5(c!=X&&7 c=="1a"&&!a.19(c)&&!a.18(c)&&c.3!=X&&7 c.3=="1a"&&!a.19(c.3)&&!a.18(c.3)&&7 c.3.T!="1w"){b=a("#"+c.3.T).Z>0?a("#"+c.3.T).2p():X}12 Q});12 b};a.1j.3D=6(){4 b=X;a(W).1g(6(d,e){4 c=a(e).1K("1U");5(c!=X&&7 c=="1a"&&!a.19(c)&&!a.18(c)&&c.3!=X&&7 c.3=="1a"&&!a.19(c.3)&&!a.18(c.3)&&7 c.3.T!="1w"){b=c.3.T}12 Q});12 b};a.1j.4h=6(){4 b=0;a(W).1g(6(d,e){4 c=a(e).1K("1U");5(c!=X&&7 c=="1a"&&!a.19(c)&&!a.18(c)&&c.3!=X&&7 c.3=="1a"&&!a.19(c.3)&&!a.18(c.3)&&7 c.3.T!="1w"){a(e).2h("33");a(e).2h("2S");a(e).2h("30");a(e).2h("2G");a(e).2h("2L");a(e).2h("2x");a(e).2h("2s");a(e).2h("28");a(e).1K("1U",{});5(a("#"+c.3.T).Z>0){a("#"+c.3.T).2H()}b++}});12 b};a.1j.3x=6(){4 c=Q;a(W).1g(6(d,e){4 b=a(e).1K("1U");5(b!=X&&7 b=="1a"&&!a.19(b)&&!a.18(b)&&b.3!=X&&7 b.3=="1a"&&!a.19(b.3)&&!a.18(b.3)&&7 b.3.T!="1w"){c=U}12 Q});12 c};a.1j.48=6(){4 b={};a(W).1g(6(c,d){b=a(d).1K("1U");5(b!=X&&7 b=="1a"&&!a.19(b)&&!a.18(b)&&b.3!=X&&7 b.3=="1a"&&!a.19(b.3)&&!a.18(b.3)){44 b.3}1d{b=X}12 Q});5(a.18(b)){b=X}12 b};a.1j.4e=6(b,c){a(W).1g(6(d,e){5(7 c!="1I"){c=U}a(e).1e("2S",[b,c])})};a.1j.4c=6(b){a(W).1g(6(c,d){a(d).1e("30",[b])})};a.1j.47=6(b,c){a(W).1g(6(d,e){a(e).1e("2s",[b,c,U]);12 Q})};a.1j.46=6(b,c){a(W).1g(6(d,e){a(e).1e("2s",[b,c,U])})};a.1j.3X=6(){a(W).1g(6(b,c){a(c).1e("28",[U]);12 Q})};a.1j.3U=6(){a(W).1g(6(b,c){a(c).1e("28",[U])})};a.1j.3P=6(){a(W).1g(6(b,c){a(c).1e("2L");12 Q})};a.1j.3O=6(){a(W).1g(6(b,c){a(c).1e("2L")})};a.1j.3N=6(){a(W).1g(6(b,c){a(c).1e("2x");12 Q})};a.1j.3M=6(){a(W).1g(6(b,c){a(c).1e("2x")})};a.1j.3J=6(e){4 r={2J:W,2X:[],2Y:"1U",3w:["S","13","1b"],3n:["R","13","1c"],3j:\'<3i 1y="{1N} {3g}"{36} T="{37}"> 									<38{3b}> 									<3c> 									<2y> 										<14 1y="{1N}-S-R"{2m-2Z}>{2m-2O}</14> 										<14 1y="{1N}-S-13"{2m-3u}>{2m-20}</14> 										<14 1y="{1N}-S-1c"{2m-2U}>{2m-2P}</14> 									</2y> 									<2y> 										<14 1y="{1N}-13-R"{20-2Z}>{20-2O}</14> 										<14 1y="{1N}-1H"{31}>{2T}</14> 										<14 1y="{1N}-13-1c"{20-2U}>{20-2P}</14> 									</2y> 									<2y> 										<14 1y="{1N}-1b-R"{2l-2Z}>{2l-2O}</14> 										<14 1y="{1N}-1b-13"{2l-3u}>{2l-20}</14> 										<14 1y="{1N}-1b-1c"{2l-2U}>{2l-2P}</14> 									</2y> 									</3c> 									</38> 									</3i>\',3:{T:X,1L:X,1W:X,1V:X,1v:Q,1J:Q,1r:Q,1A:Q,1Y:Q,1B:Q,25:{}},15:"S",3v:["R","S","1c","1b"],11:"27",35:["R","27","1c","S","13","1b"],2K:["R","27","1c"],32:["S","13","1b"],1n:"3Y",1p:X,1o:X,1x:{},1u:{},1H:X,1O:{},V:{11:"27",1F:Q},1i:U,2q:U,22:Q,2k:U,23:"2E",3t:["2E","2V"],26:"2V",3o:["2E","2V"],1M:3h,1P:3h,29:0,2a:0,Y:"3e",21:"3F",2b:"3e-4f/",1h:{2A:"4a",1E:"43"},1T:6(){},1S:6(){},1m:[]};h(e);6 g(v){4 w={3:{},1p:r.1p,1o:r.1o,1x:r.1x,1u:r.1u,15:r.15,11:r.11,1n:r.1n,1M:r.1M,1P:r.1P,29:r.29,2a:r.2a,23:r.23,26:r.26,V:r.V,1H:r.1H,1O:r.1O,Y:r.Y,21:r.21,2b:r.2b,1h:r.1h,1i:r.1i,2k:r.2k,2q:r.2q,22:r.22,1T:r.1T,1S:r.1S,1m:r.1m};4 t=a.3E(Q,w,(7 v=="1a"&&!a.19(v)&&!a.18(v)&&v!=X?v:{}));t.3.T=r.3.T;t.3.1L=r.3.1L;t.3.1W=r.3.1W;t.3.1V=r.3.1V;t.3.1v=r.3.1v;t.3.1J=r.3.1J;t.3.1r=r.3.1r;t.3.1A=r.3.1A;t.3.1Y=r.3.1Y;t.3.1B=r.3.1B;t.3.25=r.3.25;t.1p=(7 t.1p=="1Q"||7 t.1p=="2c")&&10(t.1p)>0?10(t.1p):r.1p;t.1o=(7 t.1o=="1Q"||7 t.1o=="2c")&&10(t.1o)>0?10(t.1o):r.1o;t.1x=t.1x!=X&&7 t.1x=="1a"&&!a.19(t.1x)&&!a.18(t.1x)?t.1x:r.1x;t.1u=t.1u!=X&&7 t.1u=="1a"&&!a.19(t.1u)&&!a.18(t.1u)?t.1u:r.1u;t.15=7 t.15=="1Q"&&o(t.15.1X(),r.3v)?t.15.1X():r.15;t.11=7 t.11=="1Q"&&o(t.11.1X(),r.35)?t.11.1X():r.11;t.1n=(7 t.1n=="1Q"||7 t.1n=="2c")&&10(t.1n)>=0?10(t.1n):r.1n;t.1M=7 t.1M=="2c"&&10(t.1M)>0?10(t.1M):r.1M;t.1P=7 t.1P=="2c"&&10(t.1P)>0?10(t.1P):r.1P;t.29=7 t.29=="2c"&&t.29>=0?t.29:r.29;t.2a=7 t.2a=="2c"&&t.2a>=0?t.2a:r.2a;t.23=7 t.23=="1Q"&&o(t.23.1X(),r.3t)?t.23.1X():r.23;t.26=7 t.26=="1Q"&&o(t.26.1X(),r.3o)?t.26.1X():r.26;t.V=t.V!=X&&7 t.V=="1a"&&!a.19(t.V)&&!a.18(t.V)?t.V:r.V;t.V.11=7 t.V.11!="1w"?t.V.11:r.V.11;t.V.1F=7 t.V.1F!="1w"?t.V.1F:r.V.1F;t.1H=7 t.1H=="1Q"&&t.1H.Z>0?t.1H:r.1H;t.1O=t.1O!=X&&7 t.1O=="1a"&&!a.19(t.1O)&&!a.18(t.1O)?t.1O:r.1O;t.Y=j(7 t.Y=="1Q"&&t.Y.Z>0?t.Y:r.Y);t.21=7 t.21=="1Q"&&t.21.Z>0?a.3d(t.21):r.21;t.2b=7 t.2b=="1Q"&&t.2b.Z>0?a.3d(t.2b):r.2b;t.1h=t.1h!=X&&7 t.1h=="1a"&&!a.19(t.1h)&&!a.18(t.1h)&&(7 10(t.1h.2A)=="2c"&&7 10(t.1h.1E)=="2c")?t.1h:r.1h;t.1i=7 t.1i=="1I"&&t.1i==U?U:Q;t.2k=7 t.2k=="1I"&&t.2k==U?U:Q;t.2q=7 t.2q=="1I"&&t.2q==U?U:Q;t.22=7 t.22=="1I"&&t.22==U?U:Q;t.1T=7 t.1T=="6"?t.1T:r.1T;t.1S=7 t.1S=="6"?t.1S:r.1S;t.1m=a.19(t.1m)?t.1m:r.1m;5(t.15=="R"||t.15=="1c"){t.11=o(t.11,r.32)?t.11:"13"}1d{t.11=o(t.11,r.2K)?t.11:"27"}1R(4 u 2r t.V){2g(u){17"11":t.V.11=7 t.V.11=="1Q"&&o(t.V.11.1X(),r.35)?t.V.11.1X():r.V.11;5(t.15=="R"||t.15=="1c"){t.V.11=o(t.V.11,r.32)?t.V.11:"13"}1d{t.V.11=o(t.V.11,r.2K)?t.V.11:"27"}16;17"1F":t.V.1F=t.V.1F==U?U:Q;16}}12 t}6 l(t){5(t==0){12 0}5(t>0){12-(1s.1t(t))}1d{12 1s.1t(t)}}6 o(v,w){4 t=Q;1R(4 u 2r w){5(w[u]==v){t=U;16}}12 t}6 k(t){5(2W.3q){1R(4 v=t.Z-1;v>=0;v--){4 u=2W.3q("1G");u.2o=t[v];5(a.4g(t[v],r.2X)>-1){r.2X.3s(t[v])}}}}6 b(t){5(t.1m&&t.1m.Z>0){1R(4 u=0;u<t.1m.Z;u++){4 v=(t.1m[u].3m(0)!="#"?"#"+t.1m[u]:t.1m[u]);a(v).1k({34:"1F"})}}}6 s(u){5(u.1m&&u.1m.Z>0){1R(4 v=0;v<u.1m.Z;v++){4 x=(u.1m[v].3m(0)!="#"?"#"+u.1m[v]:u.1m[v]);a(x).1k({34:"3f"});4 w=a(x).Z;1R(4 t=0;t<w.Z;t++){a(w[t]).1k({34:"3f"})}}}}6 m(u){4 w=u.2b;4 t=u.21;4 v=(w.2I(w.Z-1)=="/"||w.2I(w.Z-1)=="\\\\")?w.2I(0,w.Z-1)+"/"+t+"/":w+"/"+t+"/";12 v+(u.1i==U?(a.1l.1D?"2e/":""):"2e/")}6 j(t){4 u=t.2I(0,1)=="."?t.2I(1,t.Z):t;12 u}6 q(u){5(a("#"+u.3.T).Z>0){4 t="1b-13";2g(u.15){17"R":t="13-1c";16;17"S":t="1b-13";16;17"1c":t="13-R";16;17"1b":t="S-13";16}5(o(u.V.11,r.2K)){a("#"+u.3.T).1f("14."+u.Y+"-"+t).1k("3a-11",u.V.11)}1d{a("#"+u.3.T).1f("14."+u.Y+"-"+t).1k("39-11",u.V.11)}}}6 p(v){4 H=r.3j;4 F=m(v);4 x="";4 G="";4 u="";5(!v.V.1F){2g(v.15){17"R":G="1c";u="{20-2P}";16;17"S":G="1b";u="{2l-20}";16;17"1c":G="R";u="{20-2O}";16;17"1b":G="S";u="{2m-20}";16}x=\'<1G 2o="\'+F+"V-"+G+"."+(v.1i==U?(a.1l.1D?"1C":"2n"):"1C")+\'" 2w="" 1y="\'+v.Y+\'-V" />\'}4 t=r.3w;4 z=r.3n;4 K,E,A,J;4 B="";4 y="";4 D=2z 3p();1R(E 2r t){A="";J="";1R(K 2r z){A=t[E]+"-"+z[K];A=A.42();J="{"+A+"40}";A="{"+A+"}";5(A==u){H=H.1z(A,x);B=""}1d{H=H.1z(A,"");B=""}5(t[E]+"-"+z[K]!="13-13"){y=F+t[E]+"-"+z[K]+"."+(v.1i==U?(a.1l.1D?"1C":"2n"):"1C");D.3s(y);H=H.1z(J,\' 2M="\'+B+"3L-3K:3I("+y+\');"\')}}}5(D.Z>0){k(D)}4 w="";5(v.1u!=X&&7 v.1u=="1a"&&!a.19(v.1u)&&!a.18(v.1u)){1R(4 C 2r v.1u){w+=C+":"+v.1u[C]+";"}}w+=(v.1p!=X||v.1o!=X)?(v.1p!=X?"1p:"+v.1p+"1Z;":"")+(v.1o!=X?"1o:"+v.1o+"1Z;":""):"";H=w.Z>0?H.1z("{3b}",\' 2M="\'+w+\'"\'):H.1z("{3b}","");4 I="";5(v.1x!=X&&7 v.1x=="1a"&&!a.19(v.1x)&&!a.18(v.1x)){1R(4 C 2r v.1x){I+=C+":"+v.1x[C]+";"}}H=I.Z>0?H.1z("{36}",\' 2M="\'+I+\'"\'):H.1z("{36}","");H=H.1z("{3g}",v.Y+"-"+v.21);H=v.3.T!=X?H.1z("{37}",v.3.T):H.1z("{37}","");3y(H.3z("{1N}")>-1){H=H.1z("{1N}",v.Y)}H=v.1H!=X?H.1z("{2T}",v.1H):H.1z("{2T}","");J="";1R(4 C 2r v.1O){J+=C+":"+v.1O[C]+";"}H=J.Z>0?H.1z("{31}",\' 2M="\'+J+\'"\'):H.1z("{31}","");12 H}6 f(){12 1s.3A(2z 2Q().3B()/2R)}6 c(E,N,x){4 O=x.15;4 K=x.11;4 z=x.1n;4 F=x.1h;4 I=2z 3p();4 u=N.2F();4 t=10(u.S);4 y=10(u.R);4 P=10(N.2v(Q));4 L=10(N.2u(Q));4 v=10(E.2v(Q));4 M=10(E.2u(Q));F.1E=1s.1t(10(F.1E));F.2A=1s.1t(10(F.2A));4 w=l(F.1E);4 J=l(F.1E);4 A=l(F.2A);4 H=m(x);2g(K){17"R":I.S=O=="S"?t-M-z+l(w):t+L+z+w;I.R=y+A;16;17"27":4 D=1s.1t(v-P)/2;I.S=O=="S"?t-M-z+l(w):t+L+z+w;I.R=v>=P?y-D:y+D;16;17"1c":4 D=1s.1t(v-P);I.S=O=="S"?t-M-z+l(w):t+L+z+w;I.R=v>=P?y-D+l(A):y+D+l(A);16;17"S":I.S=t+A;I.R=O=="R"?y-v-z+l(J):y+P+z+J;16;17"13":4 D=1s.1t(M-L)/2;I.S=M>=L?t-D:t+D;I.R=O=="R"?y-v-z+l(J):y+P+z+J;16;17"1b":4 D=1s.1t(M-L);I.S=M>=L?t-D+l(A):t+D+l(A);I.R=O=="R"?y-v-z+l(J):y+P+z+J;16}I.15=O;5(a("#"+x.3.T).Z>0&&a("#"+x.3.T).1f("1G."+x.Y+"-V").Z>0){a("#"+x.3.T).1f("1G."+x.Y+"-V").2H();4 G="1b";4 C="1b-13";2g(O){17"R":G="1c";C="13-1c";16;17"S":G="1b";C="1b-13";16;17"1c":G="R";C="13-R";16;17"1b":G="S";C="S-13";16}a("#"+x.3.T).1f("14."+x.Y+"-"+C).2D();a("#"+x.3.T).1f("14."+x.Y+"-"+C).2p(\'<1G 2o="\'+H+"V-"+G+"."+(x.1i==U?(a.1l.1D?"1C":"2n"):"1C")+\'" 2w="" 1y="\'+x.Y+\'-V" />\');q(x)}5(x.2q==U){5(I.S<a(1q).2i()||I.S+M>a(1q).2i()+a(1q).1o()){5(a("#"+x.3.T).Z>0&&a("#"+x.3.T).1f("1G."+x.Y+"-V").Z>0){a("#"+x.3.T).1f("1G."+x.Y+"-V").2H()}4 B="";5(I.S<a(1q).2i()){I.15="1b";I.S=t+L+z+w;5(a("#"+x.3.T).Z>0&&!x.V.1F){a("#"+x.3.T).1f("14."+x.Y+"-S-13").2D();a("#"+x.3.T).1f("14."+x.Y+"-S-13").2p(\'<1G 2o="\'+H+"V-S."+(x.1i==U?(a.1l.1D?"1C":"2n"):"1C")+\'" 2w="" 1y="\'+x.Y+\'-V" />\');B="S-13"}}1d{5(I.S+M>a(1q).2i()+a(1q).1o()){I.15="S";I.S=t-M-z+l(w);5(a("#"+x.3.T).Z>0&&!x.V.1F){a("#"+x.3.T).1f("14."+x.Y+"-1b-13").2D();a("#"+x.3.T).1f("14."+x.Y+"-1b-13").2p(\'<1G 2o="\'+H+"V-1b."+(x.1i==U?(a.1l.1D?"1C":"2n"):"1C")+\'" 2w="" 1y="\'+x.Y+\'-V" />\');B="1b-13"}}}5(I.R<0){I.R=0;5(B.Z>0){a("#"+x.3.T).1f("14."+x.Y+"-"+B).1k("3a-11","27")}}1d{5(I.R+v>a(1q).1p()){I.R=a(1q).1p()-v;5(B.Z>0){a("#"+x.3.T).1f("14."+x.Y+"-"+B).1k("3a-11","27")}}}}1d{5(I.R<0||I.R+v>a(1q).1p()){5(a("#"+x.3.T).Z>0&&a("#"+x.3.T).1f("1G."+x.Y+"-V").Z>0){a("#"+x.3.T).1f("1G."+x.Y+"-V").2H()}4 B="";5(I.R<0){I.15="1c";I.R=y+P+z+J;5(a("#"+x.3.T).Z>0&&!x.V.1F){a("#"+x.3.T).1f("14."+x.Y+"-13-R").2D();a("#"+x.3.T).1f("14."+x.Y+"-13-R").2p(\'<1G 2o="\'+H+"V-R."+(x.1i==U?(a.1l.1D?"1C":"2n"):"1C")+\'" 2w="" 1y="\'+x.Y+\'-V" />\');B="13-R"}}1d{5(I.R+v>a(1q).1p()){I.15="R";I.R=y-v-z+l(J);5(a("#"+x.3.T).Z>0&&!x.V.1F){a("#"+x.3.T).1f("14."+x.Y+"-13-1c").2D();a("#"+x.3.T).1f("14."+x.Y+"-13-1c").2p(\'<1G 2o="\'+H+"V-1c."+(x.1i==U?(a.1l.1D?"1C":"2n"):"1C")+\'" 2w="" 1y="\'+x.Y+\'-V" />\');B="13-1c"}}}5(I.S<a(1q).2i()){I.S=a(1q).2i();5(B.Z>0){a("#"+x.3.T).1f("14."+x.Y+"-"+B).1k("39-11","13")}}1d{5(I.S+M>a(1q).2i()+a(1q).1o()){I.S=(a(1q).2i()+a(1q).1o())-M;5(B.Z>0){a("#"+x.3.T).1f("14."+x.Y+"-"+B).1k("39-11","13")}}}}}}12 I}6 d(u,t){a(u).1K(r.2Y,t)}6 n(t){12 a(t).1K(r.2Y)}6 i(t){4 u=t!=X&&7 t=="1a"&&!a.19(t)&&!a.18(t)?U:Q;12 u}6 h(t){a(1q).3Q(6(){a(r.2J).1g(6(u,v){a(v).1e("2G")})});a(2W).3R(6(u){a(r.2J).1g(6(v,w){a(w).1e("33",[u.3S,u.3T])})});a(r.2J).1g(6(v,w){4 u=g(t);u.3.1L=f();u.3.T=u.Y+"-"+u.3.1L+"-"+v;d(w,u);a(w).2f("33",6(y,C,B){4 N=n(W);5(i(N)&&i(N.3)&&7 C!="1w"&&7 B!="1w"){5(N.2k){4 E=a(W);4 z=E.2F();4 L=10(z.S);4 H=10(z.R);4 F=10(E.2v(Q));4 K=10(E.2u(Q));4 J=Q;5(H<=C&&C<=F+H&&L<=B&&B<=K+L){J=U}1d{J=Q}5(J&&!N.3.1Y){N.3.1Y=U;d(W,N);5(N.23=="2E"){a(W).1e("2s")}1d{5(N.22&&a("#"+N.3.T).Z>0){4 x=a("#"+N.3.T);4 A=x.2F();4 D=10(A.S);4 I=10(A.R);4 G=10(x.2v(Q));4 M=10(x.2u(Q));5(I<=C&&C<=G+I&&D<=B&&B<=M+D){}1d{a(W).1e("28")}}1d{a(W).1e("28")}}}1d{5(!J&&N.3.1Y){N.3.1Y=Q;d(W,N);5(N.26=="2E"){a(W).1e("2s")}1d{5(N.22&&a("#"+N.3.T).Z>0){4 x=a("#"+N.3.T);4 A=x.2F();4 D=10(A.S);4 I=10(A.R);4 G=10(x.2v(Q));4 M=10(x.2u(Q));5(I<=C&&C<=G+I&&D<=B&&B<=M+D){}1d{a(W).1e("28")}}1d{a(W).1e("28")}}}1d{5(!J&&!N.3.1Y){5(N.22&&a("#"+N.3.T).Z>0&&!N.3.1r){4 x=a("#"+N.3.T);4 A=x.2F();4 D=10(A.S);4 I=10(A.R);4 G=10(x.2v(Q));4 M=10(x.2u(Q));5(I<=C&&C<=G+I&&D<=B&&B<=M+D){}1d{a(W).1e("28")}}}}}}}});a(w).2f("2S",6(A,x,z){4 y=n(W);5(i(y)&&i(y.3)&&7 x!="1w"){y.3.1W=f();5(7 z=="1I"&&z==U){y.1H=x}d(W,y);5(a("#"+y.3.T).Z>0){a("#"+y.3.T).1f("14."+y.Y+"-1H").2p(x);5(y.3.1A){a(W).1e("2G",[Q])}1d{a(W).1e("2G",[U])}}}});a(w).2f("30",6(A,z){4 x=n(W);5(i(x)&&i(x.3)){4 y=x;x=g(z);x.3.T=y.3.T;x.3.1L=y.3.1L;x.3.1W=f();x.3.1V=y.3.1V;x.3.1v=y.3.1v;x.3.1J=y.3.1J;x.3.25={};d(W,x)}});a(w).2f("2G",6(A,y){4 z=n(W);5(i(z)&&i(z.3)&&a("#"+z.3.T).Z>0&&z.3.1v==U){4 x=a("#"+z.3.T);4 C=c(x,a(W),z);4 B=2;5(7 y=="1I"&&y==U){x.1k({S:C.S,R:C.R})}1d{2g(z.15){17"R":x.1k({S:C.S,R:(C.15!=z.15?C.R-(1s.1t(z.1h.1E)*B):C.R+(1s.1t(z.1h.1E)*B))});16;17"S":x.1k({S:(C.15!=z.15?C.S-(1s.1t(z.1h.1E)*B):C.S+(1s.1t(z.1h.1E)*B)),R:C.R});16;17"1c":x.1k({S:C.S,R:(C.15!=z.15?C.R+(1s.1t(z.1h.1E)*B):C.R-(1s.1t(z.1h.1E)*B))});16;17"1b":x.1k({S:(C.15!=z.15?C.S+(1s.1t(z.1h.1E)*B):C.S-(1s.1t(z.1h.1E)*B)),R:C.R});16}}}});a(w).2f("2L",6(){4 x=n(W);5(i(x)&&i(x.3)){x.3.1J=U;d(W,x)}});a(w).2f("2x",6(){4 x=n(W);5(i(x)&&i(x.3)){x.3.1J=Q;d(W,x)}});a(w).2f("2s",6(x,A,D,G){4 H=n(W);5((7 G=="1I"&&G==U&&(i(H)&&i(H.3)))||(7 G=="1w"&&(i(H)&&i(H.3)&&!H.3.1J&&!H.3.1v))){5(7 G=="1I"&&G==U){a(W).1e("2x")}H.3.1v=U;H.3.1J=Q;H.3.1r=Q;H.3.1A=Q;5(i(H.3.25)){H=H.3.25}1d{H.3.25={}}5(i(A)){4 C=H;4 F=f();H=g(A);H.3.T=C.3.T;H.3.1L=C.3.1L;H.3.1W=F;H.3.1V=F;H.3.1v=U;H.3.1J=Q;H.3.1r=Q;H.3.1A=Q;H.3.1Y=C.3.1Y;H.3.1B=C.3.1B;H.3.25={};5(7 D=="1I"&&D==Q){C.3.1W=F;C.3.1V=F;H.3.25=C}}d(W,H);b(H);5(a("#"+H.3.T).Z>0){a("#"+H.3.T).2H()}4 y={};4 B=p(H);y=a(B);y.3V("3W");y=a("#"+H.3.T);y.1k({24:0,S:"3r",R:"3r",15:"3Z",2C:"41"});5(H.1i==U){5(a.1l.1D&&10(a.1l.2t)<9){a("#"+H.3.T+" 38").2B(H.Y+"-2e")}}q(H);4 E=c(y,a(W),H);y.1k({S:E.S,R:E.R});5(E.15==H.15){H.3.1B=Q}1d{H.3.1B=U}d(W,H);4 z=3l(6(){H.3.1r=U;d(w,H);y.3k();2g(H.15){17"R":y.2d({24:1,R:(H.3.1B?"-=":"+=")+H.1n+"1Z"},H.1M,"2j",6(){H.3.1r=Q;H.3.1A=U;d(w,H);5(H.1i==U){5(a.1l.1D&&10(a.1l.2t)>8){y.2B(H.Y+"-2e")}}H.1T()});16;17"S":y.2d({24:1,S:(H.3.1B?"-=":"+=")+H.1n+"1Z"},H.1M,"2j",6(){H.3.1r=Q;H.3.1A=U;d(w,H);5(H.1i==U){5(a.1l.1D&&10(a.1l.2t)>8){y.2B(H.Y+"-2e")}}H.1T()});16;17"1c":y.2d({24:1,R:(H.3.1B?"+=":"-=")+H.1n+"1Z"},H.1M,"2j",6(){H.3.1r=Q;H.3.1A=U;d(w,H);5(H.1i==U){5(a.1l.1D&&10(a.1l.2t)>8){y.2B(H.Y+"-2e")}}H.1T()});16;17"1b":y.2d({24:1,S:(H.3.1B?"+=":"-=")+H.1n+"1Z"},H.1M,"2j",6(){H.3.1r=Q;H.3.1A=U;d(w,H);5(H.1i==U){5(a.1l.1D&&10(a.1l.2t)>8){y.2B(H.Y+"-2e")}}H.1T()});16}},H.29)}});a(w).2f("28",6(B,x){4 A=n(W);5((7 x=="1I"&&x==U&&(i(A)&&i(A.3)&&a("#"+A.3.T).Z>0))||(7 x=="1w"&&(i(A)&&i(A.3)&&a("#"+A.3.T).Z>0&&!A.3.1J&&A.3.1v))){5(7 x=="1I"&&x==U){a(W).1e("2x")}A.3.1r=Q;A.3.1A=Q;d(W,A);4 y=a("#"+A.3.T);4 z=7 x=="1w"?A.2a:0;4 C=3l(6(){A.3.1r=U;d(w,A);y.3k();5(A.1i==U){5(a.1l.1D&&10(a.1l.2t)>8){y.49(A.Y+"-2e")}}2g(A.15){17"R":y.2d({24:0,R:(A.3.1B?"+=":"-=")+A.1n+"1Z"},A.1P,"2j",6(){A.3.1v=Q;A.3.1r=Q;A.3.1A=U;d(w,A);y.1k("2C","2N");A.1S()});16;17"S":y.2d({24:0,S:(A.3.1B?"+=":"-=")+A.1n+"1Z"},A.1P,"2j",6(){A.3.1v=Q;A.3.1r=Q;A.3.1A=U;d(w,A);y.1k("2C","2N");A.1S()});16;17"1c":y.2d({24:0,R:(A.3.1B?"-=":"+=")+A.1n+"1Z"},A.1P,"2j",6(){A.3.1v=Q;A.3.1r=Q;A.3.1A=U;d(w,A);y.1k("2C","2N");A.1S()});16;17"1b":y.2d({24:0,S:(A.3.1B?"-=":"+=")+A.1n+"1Z"},A.1P,"2j",6(){A.3.1v=Q;A.3.1r=Q;A.3.1A=U;d(w,A);y.1k("2C","2N");A.1S()});16}},z);A.3.1V=f();A.3.1J=Q;d(W,A);s(A)}})})}12 W}})(4b);',62,266,"|||privateVars|var|if|function|typeof|||||||||||||||||||||||||||||||||||||||||||||false|left|top|id|true|tail|this|null|baseClass|length|parseInt|align|return|middle|td|position|break|case|isEmptyObject|isArray|object|bottom|right|else|trigger|find|each|themeMargins|dropShadow|fn|css|browser|hideElementId|distance|height|width|window|is_animating|Math|abs|tableStyle|is_open|undefined|divStyle|class|replace|is_animation_complete|is_position_changed|gif|msie|difference|hidden|img|innerHtml|boolean|is_freezed|data|creation_datetime|openingSpeed|BASE_CLASS|innerHtmlStyle|closingSpeed|string|for|afterHidden|afterShown|private_jquerybubblepopup_options|last_display_datetime|last_modified_datetime|toLowerCase|is_mouse_over|px|MIDDLE|themeName|selectable|mouseOver|opacity|last_options|mouseOut|center|hidebubblepopup|openingDelay|closingDelay|themePath|number|animate|ie|bind|switch|unbind|scrollTop|swing|manageMouseEvents|BOTTOM|TOP|png|src|html|alwaysVisible|in|showbubblepopup|version|outerHeight|outerWidth|alt|unfreezebubblepopup|tr|new|total|addClass|display|empty|show|offset|positionbubblepopup|remove|substring|me|alignHorizontalValues|freezebubblepopup|style|none|LEFT|RIGHT|Date|1000|setbubblepopupinnerhtml|INNERHTML|RIGHT_STYLE|hide|document|cache|options_key|LEFT_STYLE|setbubblepopupoptions|INNERHTML_STYLE|alignVerticalValues|managebubblepopup|visibility|alignValues|DIV_STYLE|DIV_ID|table|vertical|text|TABLE_STYLE|tbody|trim|jquerybubblepopup|visible|TEMPLATE_CLASS|250|div|model_markup|stop|setTimeout|charAt|model_td|mouseOutValues|Array|createElement|0px|push|mouseOverValues|MIDDLE_STYLE|positionValues|model_tr|HasBubblePopup|while|indexOf|round|getTime|IsBubblePopupOpen|GetBubblePopupID|extend|azure|GetBubblePopupCreationDateTime|GetBubblePopupMarkup|url|CreateBubblePopup|image|background|UnfreezeAllBubblePopups|UnfreezeBubblePopup|FreezeAllBubblePopups|FreezeBubblePopup|resize|mousemove|pageX|pageY|HideAllBubblePopups|appendTo|body|HideBubblePopup|20px|absolute|_STYLE|block|toUpperCase|10px|delete|GetBubblePopupLastDisplayDateTime|ShowAllBubblePopups|ShowBubblePopup|GetBubblePopupOptions|removeClass|13px|jQuery|SetBubblePopupOptions|GetBubblePopupLastModifiedDateTime|SetBubblePopupInnerHtml|theme|inArray|RemoveBubblePopup".split("|"),0,{}));
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($,window,undefined){var TRUE=true,FALSE=false,NULL=null,QTIP,PLUGINS,MOUSE,usedIDs={},uitooltip="ui-tooltip",widget="ui-widget",disabled="ui-state-disabled",selector="div.qtip."+uitooltip,defaultClass=uitooltip+"-default",focusClass=uitooltip+"-focus",hoverClass=uitooltip+"-hover",fluidClass=uitooltip+"-fluid",hideOffset="-31000px",replaceSuffix="_replacedByqTip",oldtitle="oldtitle",trackingBound;
function log(){log.history=log.history||[];log.history.push(arguments);if("object"===typeof console){var c=console[console.warn?"warn":"log"],args=Array.prototype.slice.call(arguments),a;if(typeof arguments[0]==="string"){args[0]="qTip2: "+args[0];}a=c.apply?c.apply(console,args):c(args);}}function sanitizeOptions(opts){var content;if(!opts||"object"!==typeof opts){return FALSE;}if("object"!==typeof opts.metadata){opts.metadata={type:opts.metadata};}if("content" in opts){if("object"!==typeof opts.content||opts.content.jquery){opts.content={text:opts.content};
}content=opts.content.text||FALSE;if(!$.isFunction(content)&&((!content&&!content.attr)||content.length<1||("object"===typeof content&&!content.jquery))){opts.content.text=FALSE;}if("title" in opts.content){if("object"!==typeof opts.content.title){opts.content.title={text:opts.content.title};}content=opts.content.title.text||FALSE;if(!$.isFunction(content)&&((!content&&!content.attr)||content.length<1||("object"===typeof content&&!content.jquery))){opts.content.title.text=FALSE;}}}if("position" in opts){if("object"!==typeof opts.position){opts.position={my:opts.position,at:opts.position};
}}if("show" in opts){if("object"!==typeof opts.show){if(opts.show.jquery){opts.show={target:opts.show};}else{opts.show={event:opts.show};}}}if("hide" in opts){if("object"!==typeof opts.hide){if(opts.hide.jquery){opts.hide={target:opts.hide};}else{opts.hide={event:opts.hide};}}}if("style" in opts){if("object"!==typeof opts.style){opts.style={classes:opts.style};}}$.each(PLUGINS,function(){if(this.sanitize){this.sanitize(opts);}});return opts;}function QTip(target,options,id,attr){var self=this,docBody=document.body,tooltipID=uitooltip+"-"+id,isPositioning=0,isDrawing=0,tooltip=$(),namespace=".qtip-"+id,elements,cache;
self.id=id;self.rendered=FALSE;self.elements=elements={target:target};self.timers={img:{}};self.options=options;self.checks={};self.plugins={};self.cache=cache={event:{},target:$(),disabled:FALSE,attr:attr};function convertNotation(notation){var i=0,obj,option=options,levels=notation.split(".");while(option=option[levels[i++]]){if(i<levels.length){obj=option;}}return[obj||options,levels.pop()];}function setWidget(){var on=options.style.widget;tooltip.toggleClass(widget,on).toggleClass(defaultClass,!on);
elements.content.toggleClass(widget+"-content",on);if(elements.titlebar){elements.titlebar.toggleClass(widget+"-header",on);}if(elements.button){elements.button.toggleClass(uitooltip+"-icon",!on);}}function removeTitle(reposition){if(elements.title){elements.titlebar.remove();elements.titlebar=elements.title=elements.button=NULL;if(reposition!==FALSE){self.reposition();}}}function createButton(){var button=options.content.title.button,isString=typeof button==="string",close=isString?button:"Close tooltip";
if(elements.button){elements.button.remove();}if(button.jquery){elements.button=button;}else{elements.button=$("<a />",{"class":"ui-state-default "+(options.style.widget?"":uitooltip+"-icon"),title:close,"aria-label":close}).prepend($("<span />",{"class":"ui-icon ui-icon-close",html:"&times;"}));}elements.button.appendTo(elements.titlebar).attr("role","button").hover(function(event){$(this).toggleClass("ui-state-hover",event.type==="mouseenter");}).click(function(event){if(!tooltip.hasClass(disabled)){self.hide(event);
}return FALSE;}).bind("mousedown keydown mouseup keyup mouseout",function(event){$(this).toggleClass("ui-state-active ui-state-focus",event.type.substr(-4)==="down");});self.redraw();}function createTitle(){var id=tooltipID+"-title";if(elements.titlebar){removeTitle();}elements.titlebar=$("<div />",{"class":uitooltip+"-titlebar "+(options.style.widget?"ui-widget-header":"")}).append(elements.title=$("<div />",{id:id,"class":uitooltip+"-title","aria-atomic":TRUE})).insertBefore(elements.content);if(options.content.title.button){createButton();
}else{if(self.rendered){self.redraw();}}}function updateButton(button){var elem=elements.button,title=elements.title;if(!self.rendered){return FALSE;}if(!button){elem.remove();}else{if(!title){createTitle();}createButton();}}function updateTitle(content,reposition){var elem=elements.title;if(!self.rendered||!content){return FALSE;}if($.isFunction(content)){content=content.call(target,cache.event,self);}if(content===FALSE){return removeTitle(FALSE);}else{if(content.jquery&&content.length>0){elem.empty().append(content.css({display:"block"}));
}else{elem.html(content);}}self.redraw();if(reposition!==FALSE&&self.rendered&&tooltip.is(":visible")){self.reposition(cache.event);}}function updateContent(content,reposition){var elem=elements.content;if(!self.rendered||!content){return FALSE;}if($.isFunction(content)){content=content.call(target,cache.event,self)||"";}if(content.jquery&&content.length>0){elem.empty().append(content.css({display:"block"}));}else{elem.html(content);}function detectImages(next){var images,srcs={};function imageLoad(image){if(image){delete srcs[image.src];
clearTimeout(self.timers.img[image.src]);$(image).unbind(namespace);}if($.isEmptyObject(srcs)){self.redraw();if(reposition!==FALSE){self.reposition(cache.event);}next();}}if((images=elem.find("img:not([height]):not([width])")).length===0){return imageLoad();}images.each(function(i,elem){if(srcs[elem.src]!==undefined){return;}(function timer(){if(elem.height||elem.width){return imageLoad(elem);}self.timers.img[elem.src]=setTimeout(timer,700);}());$(elem).bind("error"+namespace+" load"+namespace,function(){imageLoad(this);
});srcs[elem.src]=elem;});}if(self.rendered<0){tooltip.queue("fx",detectImages);}else{isDrawing=0;detectImages($.noop);}return self;}function assignEvents(){var posOptions=options.position,targets={show:options.show.target,hide:options.hide.target,viewport:$(posOptions.viewport),document:$(document),window:$(window)},events={show:$.trim(""+options.show.event).split(" "),hide:$.trim(""+options.hide.event).split(" ")},IE6=$.browser.msie&&parseInt($.browser.version,10)===6;function showMethod(event){if(tooltip.hasClass(disabled)){return FALSE;
}targets.show.trigger("qtip-"+id+"-inactive");clearTimeout(self.timers.show);clearTimeout(self.timers.hide);var callback=function(){self.toggle(TRUE,event);};if(options.show.delay>0){self.timers.show=setTimeout(callback,options.show.delay);}else{callback();}}function hideMethod(event){if(tooltip.hasClass(disabled)||isPositioning||isDrawing){return FALSE;}var relatedTarget=$(event.relatedTarget||event.target),ontoTooltip=relatedTarget.closest(selector)[0]===tooltip[0],ontoTarget=relatedTarget[0]===targets.show[0];
clearTimeout(self.timers.show);clearTimeout(self.timers.hide);if((posOptions.target==="mouse"&&ontoTooltip)||(options.hide.fixed&&((/mouse(out|leave|move)/).test(event.type)&&(ontoTooltip||ontoTarget)))){event.preventDefault();event.stopImmediatePropagation();return;}if(options.hide.delay>0){self.timers.hide=setTimeout(function(){self.hide(event);},options.hide.delay);}else{self.hide(event);}}function inactiveMethod(event){if(tooltip.hasClass(disabled)){return FALSE;}clearTimeout(self.timers.inactive);
self.timers.inactive=setTimeout(function(){self.hide(event);},options.hide.inactive);}function repositionMethod(event){if(tooltip.is(":visible")){self.reposition(event);}}tooltip.bind("mouseenter"+namespace+" mouseleave"+namespace,function(event){var state=event.type==="mouseenter";if(state){self.focus(event);}tooltip.toggleClass(hoverClass,state);});if(options.hide.fixed){targets.hide=targets.hide.add(tooltip);tooltip.bind("mouseover"+namespace,function(){if(!tooltip.hasClass(disabled)){clearTimeout(self.timers.hide);
}});}if(/mouse(out|leave)/i.test(options.hide.event)){if(options.hide.leave==="window"){targets.window.bind("mouseout"+namespace,function(event){if(/select|option/.test(event.target)&&!event.relatedTarget){self.hide(event);}});}}else{if(/mouse(over|enter)/i.test(options.show.event)){targets.hide.bind("mouseleave"+namespace,function(event){clearTimeout(self.timers.show);});}}if((""+options.hide.event).indexOf("unfocus")>-1){targets.document.bind("mousedown"+namespace,function(event){var $target=$(event.target),enabled=!tooltip.hasClass(disabled)&&tooltip.is(":visible");
if($target[0]!==tooltip[0]&&$target.parents(selector).length===0&&$target.add(target).length>1){self.hide(event);}});}if("number"===typeof options.hide.inactive){targets.show.bind("qtip-"+id+"-inactive",inactiveMethod);$.each(QTIP.inactiveEvents,function(index,type){targets.hide.add(elements.tooltip).bind(type+namespace+"-inactive",inactiveMethod);});}$.each(events.hide,function(index,type){var showIndex=$.inArray(type,events.show),targetHide=$(targets.hide);if((showIndex>-1&&targetHide.add(targets.show).length===targetHide.length)||type==="unfocus"){targets.show.bind(type+namespace,function(event){if(tooltip.is(":visible")){hideMethod(event);
}else{showMethod(event);}});delete events.show[showIndex];}else{targets.hide.bind(type+namespace,hideMethod);}});$.each(events.show,function(index,type){targets.show.bind(type+namespace,showMethod);});if("number"===typeof options.hide.distance){targets.show.add(tooltip).bind("mousemove"+namespace,function(event){var origin=cache.origin||{},limit=options.hide.distance,abs=Math.abs;if(abs(event.pageX-origin.pageX)>=limit||abs(event.pageY-origin.pageY)>=limit){self.hide(event);}});}if(posOptions.target==="mouse"){targets.show.bind("mousemove"+namespace,function(event){MOUSE={pageX:event.pageX,pageY:event.pageY,type:"mousemove"};
});if(posOptions.adjust.mouse){if(options.hide.event){tooltip.bind("mouseleave"+namespace,function(event){if((event.relatedTarget||event.target)!==targets.show[0]){self.hide(event);}});}targets.document.bind("mousemove"+namespace,function(event){if(!tooltip.hasClass(disabled)&&tooltip.is(":visible")){self.reposition(event||MOUSE);}});}}if(posOptions.adjust.resize||targets.viewport.length){($.event.special.resize?targets.viewport:targets.window).bind("resize"+namespace,repositionMethod);}if(targets.viewport.length||(IE6&&tooltip.css("position")==="fixed")){targets.viewport.bind("scroll"+namespace,repositionMethod);
}}function unassignEvents(){var targets=[options.show.target[0],options.hide.target[0],self.rendered&&elements.tooltip[0],options.position.container[0],options.position.viewport[0],window,document];if(self.rendered){$([]).pushStack($.grep(targets,function(i){return typeof i==="object";})).unbind(namespace);}else{options.show.target.unbind(namespace+"-create");}}self.checks.builtin={"^id$":function(obj,o,v){var id=v===TRUE?QTIP.nextid:v,tooltipID=uitooltip+"-"+id;if(id!==FALSE&&id.length>0&&!$("#"+tooltipID).length){tooltip[0].id=tooltipID;
elements.content[0].id=tooltipID+"-content";elements.title[0].id=tooltipID+"-title";}},"^content.text$":function(obj,o,v){updateContent(v);},"^content.title.text$":function(obj,o,v){if(!v){return removeTitle();}if(!elements.title&&v){createTitle();}updateTitle(v);},"^content.title.button$":function(obj,o,v){updateButton(v);},"^position.(my|at)$":function(obj,o,v){if("string"===typeof v){obj[o]=new PLUGINS.Corner(v);}},"^position.container$":function(obj,o,v){if(self.rendered){tooltip.appendTo(v);
}},"^show.ready$":function(){if(!self.rendered){self.render(1);}else{self.toggle(TRUE);}},"^style.classes$":function(obj,o,v){tooltip.attr("class",uitooltip+" qtip ui-helper-reset "+v);},"^style.widget|content.title":setWidget,"^events.(render|show|move|hide|focus|blur)$":function(obj,o,v){tooltip[($.isFunction(v)?"":"un")+"bind"]("tooltip"+o,v);},"^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)":function(){var posOptions=options.position;tooltip.attr("tracking",posOptions.target==="mouse"&&posOptions.adjust.mouse);
unassignEvents();assignEvents();}};$.extend(self,{render:function(show){if(self.rendered){return self;}var title=options.content.title.text,posOptions=options.position,callback=$.Event("tooltiprender");$.attr(target[0],"aria-describedby",tooltipID);tooltip=elements.tooltip=$("<div/>",{id:tooltipID,"class":uitooltip+" qtip ui-helper-reset "+defaultClass+" "+options.style.classes,width:options.style.width||"",tracking:posOptions.target==="mouse"&&posOptions.adjust.mouse,role:"alert","aria-live":"polite","aria-atomic":FALSE,"aria-describedby":tooltipID+"-content","aria-hidden":TRUE}).toggleClass(disabled,cache.disabled).data("qtip",self).appendTo(options.position.container).append(elements.content=$("<div />",{"class":uitooltip+"-content",id:tooltipID+"-content","aria-atomic":TRUE}));
self.rendered=-1;isDrawing=1;isPositioning=1;if(title){createTitle();updateTitle(title,FALSE);}updateContent(options.content.text,FALSE);self.rendered=TRUE;setWidget();$.each(options.events,function(name,callback){if($.isFunction(callback)){tooltip.bind(name==="toggle"?"tooltipshow tooltiphide":"tooltip"+name,callback);}});$.each(PLUGINS,function(){if(this.initialize==="render"){this(self);}});assignEvents();tooltip.queue("fx",function(next){callback.originalEvent=cache.event;tooltip.trigger(callback,[self]);
isDrawing=0;isPositioning=0;self.redraw();if(options.show.ready||show){self.toggle(TRUE,cache.event);}next();});return self;},get:function(notation){var result,o;switch(notation.toLowerCase()){case"dimensions":result={height:tooltip.outerHeight(),width:tooltip.outerWidth()};break;case"offset":result=PLUGINS.offset(tooltip,options.position.container);break;default:o=convertNotation(notation.toLowerCase());result=o[0][o[1]];result=result.precedance?result.string():result;break;}return result;},set:function(option,value){var rmove=/^position\.(my|at|adjust|target|container)|style|content|show\.ready/i,rdraw=/^content\.(title|attr)|style/i,reposition=FALSE,redraw=FALSE,checks=self.checks,name;
function callback(notation,args){var category,rule,match;for(category in checks){for(rule in checks[category]){if(match=(new RegExp(rule,"i")).exec(notation)){args.push(match);checks[category][rule].apply(self,args);}}}}if("string"===typeof option){name=option;option={};option[name]=value;}else{option=$.extend(TRUE,{},option);}$.each(option,function(notation,value){var obj=convertNotation(notation.toLowerCase()),previous;previous=obj[0][obj[1]];obj[0][obj[1]]="object"===typeof value&&value.nodeType?$(value):value;
option[notation]=[obj[0],obj[1],value,previous];reposition=rmove.test(notation)||reposition;redraw=rdraw.test(notation)||redraw;});sanitizeOptions(options);isPositioning=isDrawing=1;$.each(option,callback);isPositioning=isDrawing=0;if(tooltip.is(":visible")&&self.rendered){if(reposition){self.reposition(options.position.target==="mouse"?NULL:cache.event);}if(redraw){self.redraw();}}return self;},toggle:function(state,event){if(!self.rendered){if(state){self.render(1);}else{return self;}}var type=state?"show":"hide",opts=options[type],visible=tooltip.is(":visible"),sameTarget=!event||options[type].target.length<2||cache.target[0]===event.target,posOptions=options.position,contentOptions=options.content,delay,callback;
if((typeof state).search("boolean|number")){state=!visible;}if(!tooltip.is(":animated")&&visible===state&&sameTarget){return self;}if(event){if((/over|enter/).test(event.type)&&(/out|leave/).test(cache.event.type)&&event.target===options.show.target[0]&&tooltip.has(event.relatedTarget).length){return self;}cache.event=$.extend({},event);}callback=$.Event("tooltip"+type);callback.originalEvent=event?cache.event:NULL;tooltip.trigger(callback,[self,90]);if(callback.isDefaultPrevented()){return self;
}$.attr(tooltip[0],"aria-hidden",!!!state);if(state){cache.origin=$.extend({},MOUSE);self.focus(event);if($.isFunction(contentOptions.text)){updateContent(contentOptions.text,FALSE);}if($.isFunction(contentOptions.title.text)){updateTitle(contentOptions.title.text,FALSE);}if(!trackingBound&&posOptions.target==="mouse"&&posOptions.adjust.mouse){$(document).bind("mousemove.qtip",function(event){MOUSE={pageX:event.pageX,pageY:event.pageY,type:"mousemove"};});trackingBound=TRUE;}self.reposition(event);
if(opts.solo){$(selector,opts.solo).not(tooltip).qtip("hide",callback);}}else{clearTimeout(self.timers.show);delete cache.origin;if(trackingBound&&!$(selector+'[tracking="true"]:visible',opts.solo).not(tooltip).length){$(document).unbind("mousemove.qtip");trackingBound=FALSE;}self.blur(event);}function after(){if(!state){tooltip.css({display:"",visibility:"",opacity:"",left:"",top:""});if("string"===typeof opts.autofocus){$(opts.autofocus,tooltip).focus();}}else{if($.browser.msie){tooltip[0].style.removeAttribute("filter");
}tooltip.css("overflow","");}}if(sameTarget){tooltip.stop(0,1);}if(opts.effect===FALSE){tooltip[type]();after.call(tooltip);}else{if($.isFunction(opts.effect)){opts.effect.call(tooltip,self);tooltip.queue("fx",function(n){after();n();});}else{tooltip.fadeTo(90,state?1:0,after);}}if(state){opts.target.trigger("qtip-"+id+"-inactive");}return self;},show:function(event){return self.toggle(TRUE,event);},hide:function(event){return self.toggle(FALSE,event);},focus:function(event){if(!self.rendered){return self;
}var qtips=$(selector),curIndex=parseInt(tooltip[0].style.zIndex,10),newIndex=QTIP.zindex+qtips.length,cachedEvent=$.extend({},event),focusedElem,callback;if(!tooltip.hasClass(focusClass)){callback=$.Event("tooltipfocus");callback.originalEvent=cachedEvent;tooltip.trigger(callback,[self,newIndex]);if(!callback.isDefaultPrevented()){if(curIndex!==newIndex){qtips.each(function(){if(this.style.zIndex>curIndex){this.style.zIndex=this.style.zIndex-1;}});qtips.filter("."+focusClass).qtip("blur",cachedEvent);
}tooltip.addClass(focusClass)[0].style.zIndex=newIndex;}}return self;},blur:function(event){var cachedEvent=$.extend({},event),callback;tooltip.removeClass(focusClass);callback=$.Event("tooltipblur");callback.originalEvent=cachedEvent;tooltip.trigger(callback,[self]);return self;},reposition:function(event,effect){if(!self.rendered||isPositioning){return self;}isPositioning=1;var target=options.position.target,posOptions=options.position,my=posOptions.my,at=posOptions.at,adjust=posOptions.adjust,method=adjust.method.split(" "),elemWidth=tooltip.outerWidth(),elemHeight=tooltip.outerHeight(),targetWidth=0,targetHeight=0,callback=$.Event("tooltipmove"),fixed=tooltip.css("position")==="fixed",viewport=posOptions.viewport,position={left:0,top:0},tip=self.plugins.tip,readjust={horizontal:method[0],vertical:method[1]||method[0],left:function(posLeft){var isShift=readjust.horizontal==="shift",viewportScroll=viewport.offset.left+viewport.scrollLeft,myWidth=my.x==="left"?elemWidth:my.x==="right"?-elemWidth:-elemWidth/2,atWidth=at.x==="left"?targetWidth:at.x==="right"?-targetWidth:-targetWidth/2,tipWidth=tip&&tip.size?tip.size.width||0:0,tipAdjust=tip&&tip.corner&&tip.corner.precedance==="x"&&!isShift?tipWidth:0,overflowLeft=viewportScroll-posLeft+tipAdjust,overflowRight=posLeft+elemWidth-viewport.width-viewportScroll+tipAdjust,offset=myWidth-(my.precedance==="x"||my.x===my.y?atWidth:0),isCenter=my.x==="center";
if(isShift){tipAdjust=tip&&tip.corner&&tip.corner.precedance==="y"?tipWidth:0;offset=(my.x==="left"?1:-1)*myWidth-tipAdjust;position.left+=overflowLeft>0?overflowLeft:overflowRight>0?-overflowRight:0;position.left=Math.max(viewport.offset.left+(tipAdjust&&tip.corner.x==="center"?tip.offset:0),posLeft-offset,Math.min(Math.max(viewport.offset.left+viewport.width,posLeft+offset),position.left));}else{if(overflowLeft>0&&(my.x!=="left"||overflowRight>0)){position.left-=offset+(isCenter?0:2*adjust.x);}else{if(overflowRight>0&&(my.x!=="right"||overflowLeft>0)){position.left-=isCenter?-offset:offset+(2*adjust.x);
}}if(position.left!==posLeft&&isCenter){position.left-=adjust.x;}if(position.left<viewportScroll&&-position.left>overflowRight){position.left=posLeft;}}return position.left-posLeft;},top:function(posTop){var isShift=readjust.vertical==="shift",viewportScroll=viewport.offset.top+viewport.scrollTop,myHeight=my.y==="top"?elemHeight:my.y==="bottom"?-elemHeight:-elemHeight/2,atHeight=at.y==="top"?targetHeight:at.y==="bottom"?-targetHeight:-targetHeight/2,tipHeight=tip&&tip.size?tip.size.height||0:0,tipAdjust=tip&&tip.corner&&tip.corner.precedance==="y"&&!isShift?tipHeight:0,overflowTop=viewportScroll-posTop+tipAdjust,overflowBottom=posTop+elemHeight-viewport.height-viewportScroll+tipAdjust,offset=myHeight-(my.precedance==="y"||my.x===my.y?atHeight:0),isCenter=my.y==="center";
if(isShift){tipAdjust=tip&&tip.corner&&tip.corner.precedance==="x"?tipHeight:0;offset=(my.y==="top"?1:-1)*myHeight-tipAdjust;position.top+=overflowTop>0?overflowTop:overflowBottom>0?-overflowBottom:0;position.top=Math.max(viewport.offset.top+(tipAdjust&&tip.corner.x==="center"?tip.offset:0),posTop-offset,Math.min(Math.max(viewport.offset.top+viewport.height,posTop+offset),position.top));}else{if(overflowTop>0&&(my.y!=="top"||overflowBottom>0)){position.top-=offset+(isCenter?0:2*adjust.y);}else{if(overflowBottom>0&&(my.y!=="bottom"||overflowTop>0)){position.top-=isCenter?-offset:offset+(2*adjust.y);
}}if(position.top!==posTop&&isCenter){position.top-=adjust.y;}if(position.top<0&&-position.top>overflowBottom){position.top=posTop;}}return position.top-posTop;}};if($.isArray(target)&&target.length===2){at={x:"left",y:"top"};position={left:target[0],top:target[1]};}else{if(target==="mouse"&&((event&&event.pageX)||cache.event.pageX)){at={x:"left",y:"top"};event=(event&&(event.type==="resize"||event.type==="scroll")?cache.event:event&&event.pageX&&event.type==="mousemove"?event:MOUSE&&MOUSE.pageX&&(adjust.mouse||!event||!event.pageX)?{pageX:MOUSE.pageX,pageY:MOUSE.pageY}:!adjust.mouse&&cache.origin&&cache.origin.pageX?cache.origin:event)||event||cache.event||MOUSE||{};
position={top:event.pageY,left:event.pageX};}else{if(target==="event"){if(event&&event.target&&event.type!=="scroll"&&event.type!=="resize"){target=cache.target=$(event.target);}else{target=cache.target;}}else{cache.target=$(target);}target=$(target).eq(0);if(target.length===0){return self;}else{if(target[0]===document||target[0]===window){targetWidth=PLUGINS.iOS?window.innerWidth:target.width();targetHeight=PLUGINS.iOS?window.innerHeight:target.height();if(target[0]===window){position={top:!fixed||PLUGINS.iOS?(viewport||target).scrollTop():0,left:!fixed||PLUGINS.iOS?(viewport||target).scrollLeft():0};
}}else{if(target.is("area")&&PLUGINS.imagemap){position=PLUGINS.imagemap(target,at);}else{if(target[0].namespaceURI==="http://www.w3.org/2000/svg"&&PLUGINS.svg){position=PLUGINS.svg(target,at);}else{targetWidth=target.outerWidth();targetHeight=target.outerHeight();position=PLUGINS.offset(target,posOptions.container,fixed);}}}}if(position.offset){targetWidth=position.width;targetHeight=position.height;position=position.offset;}position.left+=at.x==="right"?targetWidth:at.x==="center"?targetWidth/2:0;
position.top+=at.y==="bottom"?targetHeight:at.y==="center"?targetHeight/2:0;}}position.left+=adjust.x+(my.x==="right"?-elemWidth:my.x==="center"?-elemWidth/2:0);position.top+=adjust.y+(my.y==="bottom"?-elemHeight:my.y==="center"?-elemHeight/2:0);if(viewport.jquery&&target[0]!==window&&target[0]!==docBody&&readjust.vertical+readjust.horizontal!=="nonenone"){viewport={elem:viewport,height:viewport[(viewport[0]===window?"h":"outerH")+"eight"](),width:viewport[(viewport[0]===window?"w":"outerW")+"idth"](),scrollLeft:fixed?0:viewport.scrollLeft(),scrollTop:fixed?0:viewport.scrollTop(),offset:viewport.offset()||{left:0,top:0}};
position.adjusted={left:readjust.horizontal!=="none"?readjust.left(position.left):0,top:readjust.vertical!=="none"?readjust.top(position.top):0};}else{position.adjusted={left:0,top:0};}tooltip.attr("class",function(i,val){return $.attr(this,"class").replace(/ui-tooltip-pos-\w+/i,"");}).addClass(uitooltip+"-pos-"+my.abbreviation());callback.originalEvent=$.extend({},event);tooltip.trigger(callback,[self,position,viewport.elem||viewport]);if(callback.isDefaultPrevented()){return self;}delete position.adjusted;
if(effect===FALSE||isNaN(position.left)||isNaN(position.top)||target==="mouse"||!$.isFunction(posOptions.effect)){tooltip.css(position);}else{if($.isFunction(posOptions.effect)){posOptions.effect.call(tooltip,self,$.extend({},position));tooltip.queue(function(next){$(this).css({opacity:"",height:""});if($.browser.msie){this.style.removeAttribute("filter");}next();});}}isPositioning=0;return self;},redraw:function(){if(self.rendered<1||isDrawing){return self;}var container=options.position.container,perc,width,max,min;
isDrawing=1;if(options.style.width){tooltip.css("width",options.style.width);}else{tooltip.css("width","").addClass(fluidClass);width=tooltip.width()+1;max=tooltip.css("max-width")||"";min=tooltip.css("min-width")||"";perc=(max+min).indexOf("%")>-1?container.width()/100:0;max=((max.indexOf("%")>-1?perc:1)*parseInt(max,10))||width;min=((min.indexOf("%")>-1?perc:1)*parseInt(min,10))||0;width=max+min?Math.min(Math.max(width,min),max):width;tooltip.css("width",Math.round(width)).removeClass(fluidClass);
}isDrawing=0;return self;},disable:function(state){if("boolean"!==typeof state){state=!(tooltip.hasClass(disabled)||cache.disabled);}if(self.rendered){tooltip.toggleClass(disabled,state);$.attr(tooltip[0],"aria-disabled",state);}else{cache.disabled=!!state;}return self;},enable:function(){return self.disable(FALSE);},destroy:function(){var t=target[0],title=$.attr(t,oldtitle);if(self.rendered){tooltip.remove();$.each(self.plugins,function(){if(this.destroy){this.destroy();}});}clearTimeout(self.timers.show);
clearTimeout(self.timers.hide);unassignEvents();$.removeData(t,"qtip");if(title){$.attr(t,"title",title);target.removeAttr(oldtitle);}target.removeAttr("aria-describedby").unbind(".qtip");delete usedIDs[self.id];return target;}});}function init(id,opts){var obj,posOptions,attr,config,title,elem=$(this),docBody=$(document.body),newTarget=this===document?docBody:elem,metadata=(elem.metadata)?elem.metadata(opts.metadata):NULL,metadata5=opts.metadata.type==="html5"&&metadata?metadata[opts.metadata.name]:NULL,html5=elem.data(opts.metadata.name||"qtipopts");
try{html5=typeof html5==="string"?(new Function("return "+html5))():html5;}catch(e){log("Unable to parse HTML5 attribute data: "+html5);}config=$.extend(TRUE,{},QTIP.defaults,opts,typeof html5==="object"?sanitizeOptions(html5):NULL,sanitizeOptions(metadata5||metadata));posOptions=config.position;config.id=id;if("boolean"===typeof config.content.text){attr=elem.attr(config.content.attr);if(config.content.attr!==FALSE&&attr){config.content.text=attr;}else{log("Unable to locate content for tooltip! Aborting render of tooltip on element: ",elem);
return FALSE;}}if(posOptions.container===FALSE){posOptions.container=docBody;}if(posOptions.target===FALSE){posOptions.target=newTarget;}if(config.show.target===FALSE){config.show.target=newTarget;}if(config.show.solo===TRUE){config.show.solo=docBody;}if(config.hide.target===FALSE){config.hide.target=newTarget;}if(config.position.viewport===TRUE){config.position.viewport=posOptions.container;}posOptions.at=new PLUGINS.Corner(posOptions.at);posOptions.my=new PLUGINS.Corner(posOptions.my);if($.data(this,"qtip")){if(config.overwrite){elem.qtip("destroy");
}else{if(config.overwrite===FALSE){return FALSE;}}}if(title=$.attr(this,"title")){$(this).removeAttr("title").attr(oldtitle,title);}obj=new QTip(elem,config,id,!!attr);$.data(this,"qtip",obj);elem.bind("remove.qtip",function(){obj.destroy();});return obj;}QTIP=$.fn.qtip=function(options,notation,newValue){var command=(""+options).toLowerCase(),returned=NULL,args=command==="disable"?[TRUE]:$.makeArray(arguments).slice(1),event=args[args.length-1],opts=this[0]?$.data(this[0],"qtip"):NULL;if((!arguments.length&&opts)||command==="api"){return opts;
}else{if("string"===typeof options){this.each(function(){var api=$.data(this,"qtip");if(!api){return TRUE;}if(event&&event.timeStamp){api.cache.event=event;}if((command==="option"||command==="options")&&notation){if($.isPlainObject(notation)||newValue!==undefined){api.set(notation,newValue);}else{returned=api.get(notation);return FALSE;}}else{if(api[command]){api[command].apply(api[command],args);}}});return returned!==NULL?returned:this;}else{if("object"===typeof options||!arguments.length){opts=sanitizeOptions($.extend(TRUE,{},options));
return QTIP.bind.call(this,opts,event);}}}};QTIP.bind=function(opts,event){return this.each(function(i){var options,targets,events,namespace,api,id;id=$.isArray(opts.id)?opts.id[i]:opts.id;id=!id||id===FALSE||id.length<1||usedIDs[id]?QTIP.nextid++:(usedIDs[id]=id);namespace=".qtip-"+id+"-create";api=init.call(this,id,opts);if(api===FALSE){return TRUE;}options=api.options;$.each(PLUGINS,function(){if(this.initialize==="initialize"){this(api);}});targets={show:options.show.target,hide:options.hide.target};
events={show:$.trim(""+options.show.event).replace(/ /g,namespace+" ")+namespace,hide:$.trim(""+options.hide.event).replace(/ /g,namespace+" ")+namespace};if(/mouse(over|enter)/i.test(events.show)&&!/mouse(out|leave)/i.test(events.hide)){events.hide+=" mouseleave"+namespace;}function hoverIntent(event){function render(){api.render(typeof event==="object"||options.show.ready);targets.show.add(targets.hide).unbind(namespace);}if(api.cache.disabled){return FALSE;}api.cache.event=$.extend({},event);api.cache.target=event?$(event.target):[undefined];
if(options.show.delay>0){clearTimeout(api.timers.show);api.timers.show=setTimeout(render,options.show.delay);if(events.show!==events.hide){targets.hide.bind(events.hide,function(){clearTimeout(api.timers.show);});}}else{render();}}targets.show.bind(events.show,hoverIntent);if(options.show.ready||options.prerender){hoverIntent(event);}});};PLUGINS=QTIP.plugins={Corner:function(corner){corner=(""+corner).replace(/([A-Z])/," $1").replace(/middle/gi,"center").toLowerCase();this.x=(corner.match(/left|right/i)||corner.match(/center/)||["inherit"])[0].toLowerCase();
this.y=(corner.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase();this.precedance=(corner.charAt(0).search(/^(t|b)/)>-1)?"y":"x";this.string=function(){return this.precedance==="y"?this.y+this.x:this.x+this.y;};this.abbreviation=function(){var x=this.x.substr(0,1),y=this.y.substr(0,1);return x===y?x:(x==="c"||(x!=="c"&&y!=="c"))?y+x:x+y;};},offset:function(elem,container,fixed){var pos=elem.offset(),parent=container,deep=0,docBody=document.body,coffset;function scroll(e,i){pos.left+=i*e.scrollLeft();
pos.top+=i*e.scrollTop();}if(parent){do{if(parent.css("position")!=="static"){coffset=parent[0]===docBody?{left:parseInt(parent.css("left"),10)||0,top:parseInt(parent.css("top"),10)||0}:parent.position();pos.left-=coffset.left+(parseInt(parent.css("borderLeftWidth"),10)||0);pos.top-=coffset.top+(parseInt(parent.css("borderTopWidth"),10)||0);deep++;}if(parent[0]===docBody){break;}}while(parent=parent.offsetParent());if(container[0]!==docBody&&deep>1){scroll(container,1);}if((PLUGINS.iOS<4.1&&PLUGINS.iOS>3.1)||(!PLUGINS.iOS&&fixed)){scroll($(window),-1);
}}return pos;},iOS:parseFloat((""+(/CPU.*OS ([0-9_]{1,3})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_","."))||FALSE,fn:{attr:function(attr,val){if(!this.length){return;}var self=this[0],title="title",api=$.data(self,"qtip");if(attr===title){if(arguments.length<2){return $.attr(self,oldtitle);}else{if(typeof api==="object"){if(api&&api.rendered&&api.options.content.attr===title&&api.cache.attr){api.set("content.text",val);}$.fn["attr"+replaceSuffix].apply(this,arguments);
$.attr(self,oldtitle,$.attr(self,title));return this.removeAttr(title);}}}},clone:function(keepData){var titles=$([]),title="title",elem;elem=$.fn["clone"+replaceSuffix].apply(this,arguments).filter("[oldtitle]").each(function(){$.attr(this,title,$.attr(this,oldtitle));this.removeAttribute(oldtitle);}).end();return elem;},remove:$.ui?NULL:function(selector,keepData){$(this).each(function(){if(!keepData){if(!selector||$.filter(selector,[this]).length){$("*",this).add(this).each(function(){$(this).triggerHandler("remove");
});}}});}}};$.each(PLUGINS.fn,function(name,func){if(!func){return TRUE;}var old=$.fn[name+replaceSuffix]=$.fn[name];$.fn[name]=function(){return func.apply(this,arguments)||old.apply(this,arguments);};});QTIP.version="nightly";QTIP.nextid=0;QTIP.inactiveEvents="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" ");QTIP.zindex=15000;QTIP.defaults={prerender:FALSE,id:FALSE,overwrite:TRUE,content:{text:TRUE,attr:"title",title:{text:FALSE,button:FALSE}},position:{my:"top left",at:"bottom right",target:FALSE,container:FALSE,viewport:FALSE,adjust:{x:0,y:0,mouse:TRUE,resize:TRUE,method:"flip flip"},effect:function(api,pos,viewport){$(this).animate(pos,{duration:200,queue:FALSE});
}},show:{target:FALSE,event:"mouseenter",effect:TRUE,delay:90,solo:FALSE,ready:FALSE,autofocus:FALSE},hide:{target:FALSE,event:"mouseleave",effect:TRUE,delay:0,fixed:FALSE,inactive:FALSE,leave:"window",distance:FALSE},style:{classes:"",widget:FALSE,width:FALSE},events:{render:NULL,move:NULL,show:NULL,hide:NULL,toggle:NULL,focus:NULL,blur:NULL}};function Ajax(api){var self=this,tooltip=api.elements.tooltip,opts=api.options.content.ajax,namespace=".qtip-ajax",rscript=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,first=TRUE;
api.checks.ajax={"^content.ajax":function(obj,name,v){if(name==="ajax"){opts=v;}if(name==="once"){self.init();}else{if(opts&&opts.url){self.load();}else{tooltip.unbind(namespace);}}}};$.extend(self,{init:function(){if(opts&&opts.url){tooltip.unbind(namespace)[opts.once?"one":"bind"]("tooltipshow"+namespace,self.load);}return self;},load:function(event,first){if(event&&event.isDefaultPrevented()){return self;}var hasSelector=opts.url.indexOf(" "),url=opts.url,selector,hideFirst=opts.once&&!opts.loading&&first;
if(hideFirst){tooltip.css("visibility","hidden");}if(hasSelector>-1){selector=url.substr(hasSelector);url=url.substr(0,hasSelector);}function after(){if(hideFirst){tooltip.css("visibility","");first=FALSE;}if($.isFunction(opts.complete)){opts.complete.apply(this,arguments);}}function successHandler(content){if(selector){content=$("<div/>").append(content.replace(rscript,"")).find(selector);}api.set("content.text",content);}function errorHandler(xh,status,error){api.set("content.text",status+": "+error);
}$.ajax($.extend({success:successHandler,error:errorHandler,context:api},opts,{url:url,complete:after}));return self;}});self.init();}PLUGINS.ajax=function(api){var self=api.plugins.ajax;return"object"===typeof self?self:(api.plugins.ajax=new Ajax(api));};PLUGINS.ajax.initialize="render";PLUGINS.ajax.sanitize=function(options){var content=options.content,opts;if(content&&"ajax" in content){opts=content.ajax;if(typeof opts!=="object"){opts=options.content.ajax={url:opts};}if("boolean"!==typeof opts.once&&opts.once){opts.once=!!opts.once;
}}};$.extend(TRUE,QTIP.defaults,{content:{ajax:{loading:TRUE,once:TRUE}}});function calculateTip(corner,width,height){var width2=Math.ceil(width/2),height2=Math.ceil(height/2),tips={bottomright:[[0,0],[width,height],[width,0]],bottomleft:[[0,0],[width,0],[0,height]],topright:[[0,height],[width,0],[width,height]],topleft:[[0,0],[0,height],[width,height]],topcenter:[[0,height],[width2,0],[width,height]],bottomcenter:[[0,0],[width,0],[width2,height]],rightcenter:[[0,0],[width,height2],[0,height]],leftcenter:[[width,0],[width,height],[0,height2]]};
tips.lefttop=tips.bottomright;tips.righttop=tips.bottomleft;tips.leftbottom=tips.topright;tips.rightbottom=tips.topleft;return tips[corner.string()];}function Tip(qTip,command){var self=this,opts=qTip.options.style.tip,elems=qTip.elements,tooltip=elems.tooltip,cache={top:0,left:0,corner:""},size={width:opts.width,height:opts.height},color={},border=opts.border||0,namespace=".qtip-tip",hasCanvas=!!($("<canvas />")[0]||{}).getContext;self.corner=NULL;self.mimic=NULL;self.border=border;self.offset=opts.offset;
self.size=size;qTip.checks.tip={"^position.my|style.tip.(corner|mimic|border)$":function(){if(!self.init()){self.destroy();}qTip.reposition();},"^style.tip.(height|width)$":function(){size={width:opts.width,height:opts.height};self.create();self.update();qTip.reposition();},"^content.title.text|style.(classes|widget)$":function(){if(elems.tip){self.update();}}};function reposition(event,api,pos,viewport){if(!elems.tip){return;}var newCorner=$.extend({},self.corner),adjust=pos.adjusted,method=qTip.options.position.adjust.method.split(" "),horizontal=method[0],vertical=method[1]||method[0],shift={left:FALSE,top:FALSE,x:0,y:0},offset,css={},props;
if(self.corner.fixed!==TRUE){if(horizontal==="shift"&&newCorner.precedance==="x"&&adjust.left&&newCorner.y!=="center"){newCorner.precedance=newCorner.precedance==="x"?"y":"x";}else{if(horizontal==="flip"&&adjust.left){newCorner.x=newCorner.x==="center"?(adjust.left>0?"left":"right"):(newCorner.x==="left"?"right":"left");}}if(vertical==="shift"&&newCorner.precedance==="y"&&adjust.top&&newCorner.x!=="center"){newCorner.precedance=newCorner.precedance==="y"?"x":"y";}else{if(vertical==="flip"&&adjust.top){newCorner.y=newCorner.y==="center"?(adjust.top>0?"top":"bottom"):(newCorner.y==="top"?"bottom":"top");
}}if(newCorner.string()!==cache.corner&&(cache.top!==adjust.top||cache.left!==adjust.left)){self.update(newCorner,FALSE);}}offset=self.position(newCorner,adjust);if(offset.right!==undefined){offset.left=-offset.right;}if(offset.bottom!==undefined){offset.top=-offset.bottom;}offset.user=Math.max(0,opts.offset);if(shift.left=(horizontal==="shift"&&!!adjust.left)){if(newCorner.x==="center"){css["margin-left"]=shift.x=offset["margin-left"]-adjust.left;}else{props=offset.right!==undefined?[adjust.left,-offset.left]:[-adjust.left,offset.left];
if((shift.x=Math.max(props[0],props[1]))>props[0]){pos.left-=adjust.left;shift.left=FALSE;}css[offset.right!==undefined?"right":"left"]=shift.x;}}if(shift.top=(vertical==="shift"&&!!adjust.top)){if(newCorner.y==="center"){css["margin-top"]=shift.y=offset["margin-top"]-adjust.top;}else{props=offset.bottom!==undefined?[adjust.top,-offset.top]:[-adjust.top,offset.top];if((shift.y=Math.max(props[0],props[1]))>props[0]){pos.top-=adjust.top;shift.top=FALSE;}css[offset.bottom!==undefined?"bottom":"top"]=shift.y;
}}elems.tip.css(css).toggle(!((shift.x&&shift.y)||(newCorner.x==="center"&&shift.y)||(newCorner.y==="center"&&shift.x)));pos.left-=offset.left.charAt?offset.user:horizontal!=="shift"||shift.top||!shift.left&&!shift.top?offset.left:0;pos.top-=offset.top.charAt?offset.user:vertical!=="shift"||shift.left||!shift.left&&!shift.top?offset.top:0;cache.left=adjust.left;cache.top=adjust.top;cache.corner=newCorner.string();}function borderWidth(corner,side,backup){side=!side?corner[corner.precedance]:side;
var isFluid=tooltip.hasClass(fluidClass),isTitleTop=elems.titlebar&&corner.y==="top",elem=isTitleTop?elems.titlebar:elems.content,css="border-"+side+"-width",val;tooltip.addClass(fluidClass);val=parseInt(elem.css(css),10);val=(backup?val||parseInt(tooltip.css(css),10):val)||0;tooltip.toggleClass(fluidClass,isFluid);return val;}function borderRadius(corner){var isTitleTop=elems.titlebar&&corner.y==="top",elem=isTitleTop?elems.titlebar:elems.content,moz=$.browser.mozilla,prefix=moz?"-moz-":$.browser.webkit?"-webkit-":"",side=corner.y+(moz?"":"-")+corner.x,css=prefix+(moz?"border-radius-"+side:"border-"+side+"-radius");
return parseInt(elem.css(css),10)||parseInt(tooltip.css(css),10)||0;}function calculateSize(corner){var y=corner.precedance==="y",width=size[y?"width":"height"],height=size[y?"height":"width"],isCenter=corner.string().indexOf("center")>-1,base=width*(isCenter?0.5:1),pow=Math.pow,round=Math.round,bigHyp,ratio,result,smallHyp=Math.sqrt(pow(base,2)+pow(height,2)),hyp=[(border/base)*smallHyp,(border/height)*smallHyp];hyp[2]=Math.sqrt(pow(hyp[0],2)-pow(border,2));hyp[3]=Math.sqrt(pow(hyp[1],2)-pow(border,2));
bigHyp=smallHyp+hyp[2]+hyp[3]+(isCenter?0:hyp[0]);ratio=bigHyp/smallHyp;result=[round(ratio*height),round(ratio*width)];return{height:result[y?0:1],width:result[y?1:0]};}$.extend(self,{init:function(){var enabled=self.detectCorner()&&(hasCanvas||$.browser.msie);if(enabled){self.create();self.update();tooltip.unbind(namespace).bind("tooltipmove"+namespace,reposition);}return enabled;},detectCorner:function(){var corner=opts.corner,posOptions=qTip.options.position,at=posOptions.at,my=posOptions.my.string?posOptions.my.string():posOptions.my;
if(corner===FALSE||(my===FALSE&&at===FALSE)){return FALSE;}else{if(corner===TRUE){self.corner=new PLUGINS.Corner(my);}else{if(!corner.string){self.corner=new PLUGINS.Corner(corner);self.corner.fixed=TRUE;}}}return self.corner.string()!=="centercenter";},detectColours:function(){var i,fill,border,tip=elems.tip.css({backgroundColor:"",border:""}),corner=self.corner,precedance=corner[corner.precedance],borderSide="border-"+precedance+"-color",borderSideCamel="border"+precedance.charAt(0)+precedance.substr(1)+"Color",invalid=/rgba?\(0, 0, 0(, 0)?\)|transparent/i,backgroundColor="background-color",transparent="transparent",bodyBorder=$(document.body).css("color"),contentColour=qTip.elements.content.css("color"),useTitle=elems.titlebar&&(corner.y==="top"||(corner.y==="center"&&tip.position().top+(size.height/2)+opts.offset<elems.titlebar.outerHeight(1))),colorElem=useTitle?elems.titlebar:elems.content;
tooltip.addClass(fluidClass);color.fill=fill=tip.css(backgroundColor);color.border=border=tip[0].style[borderSideCamel]||tooltip.css(borderSide);if(!fill||invalid.test(fill)){color.fill=colorElem.css(backgroundColor)||transparent;if(invalid.test(color.fill)){color.fill=tooltip.css(backgroundColor)||fill;}}if(!border||invalid.test(border)||border===bodyBorder){color.border=colorElem.css(borderSide)||transparent;if(invalid.test(color.border)||color.border===contentColour){color.border=border;}}$("*",tip).add(tip).css(backgroundColor,transparent).css("border","");
tooltip.removeClass(fluidClass);},create:function(){var width=size.width,height=size.height,vml;if(elems.tip){elems.tip.remove();}elems.tip=$("<div />",{"class":"ui-tooltip-tip"}).css({width:width,height:height}).prependTo(tooltip);if(hasCanvas){$("<canvas />").appendTo(elems.tip)[0].getContext("2d").save();}else{vml='<vml:shape coordorigin="0,0" style="display:inline-block; position:absolute; behavior:url(#default#VML);"></vml:shape>';elems.tip.html(vml+vml);}},update:function(corner,position){var tip=elems.tip,inner=tip.children(),width=size.width,height=size.height,regular="px solid ",transparent="px dashed transparent",mimic=opts.mimic,round=Math.round,precedance,context,coords,translate,newSize;
if(!corner){corner=self.corner;}if(mimic===FALSE){mimic=corner;}else{mimic=new PLUGINS.Corner(mimic);mimic.precedance=corner.precedance;if(mimic.x==="inherit"){mimic.x=corner.x;}else{if(mimic.y==="inherit"){mimic.y=corner.y;}else{if(mimic.x===mimic.y){mimic[corner.precedance]=corner[corner.precedance];}}}}precedance=mimic.precedance;self.detectColours();if(color.border!=="transparent"&&color.border!=="#123456"){border=borderWidth(corner,NULL,TRUE);if(opts.border===0&&border>0){color.fill=color.border;
}self.border=border=opts.border!==TRUE?opts.border:border;}else{self.border=border=0;}coords=calculateTip(mimic,width,height);self.size=newSize=calculateSize(corner);tip.css(newSize);if(corner.precedance==="y"){translate=[round(mimic.x==="left"?border:mimic.x==="right"?newSize.width-width-border:(newSize.width-width)/2),round(mimic.y==="top"?newSize.height-height:0)];}else{translate=[round(mimic.x==="left"?newSize.width-width:0),round(mimic.y==="top"?border:mimic.y==="bottom"?newSize.height-height-border:(newSize.height-height)/2)];
}if(hasCanvas){inner.attr(newSize);context=inner[0].getContext("2d");context.restore();context.save();context.clearRect(0,0,3000,3000);context.translate(translate[0],translate[1]);context.beginPath();context.moveTo(coords[0][0],coords[0][1]);context.lineTo(coords[1][0],coords[1][1]);context.lineTo(coords[2][0],coords[2][1]);context.closePath();context.fillStyle=color.fill;context.strokeStyle=color.border;context.lineWidth=border*2;context.lineJoin="miter";context.miterLimit=100;if(border){context.stroke();
}context.fill();}else{coords="m"+coords[0][0]+","+coords[0][1]+" l"+coords[1][0]+","+coords[1][1]+" "+coords[2][0]+","+coords[2][1]+" xe";translate[2]=border&&/^(r|b)/i.test(corner.string())?parseFloat($.browser.version,10)===8?2:1:0;inner.css({antialias:""+(mimic.string().indexOf("center")>-1),left:translate[0]-(translate[2]*Number(precedance==="x")),top:translate[1]-(translate[2]*Number(precedance==="y")),width:width+border,height:height+border}).each(function(i){var $this=$(this);$this[$this.prop?"prop":"attr"]({coordsize:(width+border)+" "+(height+border),path:coords,fillcolor:color.fill,filled:!!i,stroked:!!!i}).css({display:border||i?"block":"none"});
if(!i&&$this.html()===""){$this.html('<vml:stroke weight="'+(border*2)+'px" color="'+color.border+'" miterlimit="1000" joinstyle="miter"  style="behavior:url(#default#VML); display:inline-block;" />');}});}if(position!==FALSE){self.position(corner);}},position:function(corner){var tip=elems.tip,position={},userOffset=Math.max(0,opts.offset),precedance,dimensions,corners;if(opts.corner===FALSE||!tip){return FALSE;}corner=corner||self.corner;precedance=corner.precedance;dimensions=calculateSize(corner);
corners=[corner.x,corner.y];if(precedance==="x"){corners.reverse();}$.each(corners,function(i,side){var b,br;if(side==="center"){b=precedance==="y"?"left":"top";position[b]="50%";position["margin-"+b]=-Math.round(dimensions[precedance==="y"?"width":"height"]/2)+userOffset;}else{b=borderWidth(corner,side,TRUE);br=borderRadius(corner);position[side]=i?border?borderWidth(corner,side):0:userOffset+(br>b?br:0);}});position[corner[precedance]]-=dimensions[precedance==="x"?"width":"height"];tip.css({top:"",bottom:"",left:"",right:"",margin:""}).css(position);
return position;},destroy:function(){if(elems.tip){elems.tip.remove();}tooltip.unbind(namespace);}});self.init();}PLUGINS.tip=function(api){var self=api.plugins.tip;return"object"===typeof self?self:(api.plugins.tip=new Tip(api));};PLUGINS.tip.initialize="render";PLUGINS.tip.sanitize=function(options){var style=options.style,opts;if(style&&"tip" in style){opts=options.style.tip;if(typeof opts!=="object"){options.style.tip={corner:opts};}if(!(/string|boolean/i).test(typeof opts.corner)){opts.corner=TRUE;
}if(typeof opts.width!=="number"){delete opts.width;}if(typeof opts.height!=="number"){delete opts.height;}if(typeof opts.border!=="number"&&opts.border!==TRUE){delete opts.border;}if(typeof opts.offset!=="number"){delete opts.offset;}}};$.extend(TRUE,QTIP.defaults,{style:{tip:{corner:TRUE,mimic:FALSE,width:6,height:6,border:TRUE,offset:0}}});function Modal(api){var self=this,options=api.options.show.modal,elems=api.elements,tooltip=elems.tooltip,overlaySelector="#qtip-overlay",globalNamespace=".qtipmodal",namespace=globalNamespace+api.id,attr="is-modal-qtip",docBody=$(document.body),overlay;
api.checks.modal={"^show.modal.(on|blur)$":function(){self.init();elems.overlay.toggle(tooltip.is(":visible"));}};$.extend(self,{init:function(){if(!options.on){return self;}overlay=self.create();tooltip.attr(attr,TRUE).unbind(globalNamespace).unbind(namespace).bind("tooltipshow"+globalNamespace+" tooltiphide"+globalNamespace,function(event,api,duration){var oEvent=event.originalEvent;if(oEvent&&event.type==="tooltiphide"&&/mouse(leave|enter)/.test(oEvent.type)&&$(oEvent.relatedTarget).closest(overlay[0]).length){event.preventDefault();
}else{self[event.type.replace("tooltip","")](event,duration);}}).bind("tooltipfocus"+globalNamespace,function(event,api,zIndex){overlay[0].style.zIndex=zIndex-1;}).bind("tooltipblur"+globalNamespace,function(event){$("["+attr+"]:visible").not(tooltip).last().qtip("focus",event);});if(options.escape){$(window).unbind(namespace).bind("keydown"+namespace,function(event){if(event.keyCode===27&&tooltip.hasClass(focusClass)){api.hide(event);}});}if(options.blur){elems.overlay.unbind(namespace).bind("click"+namespace,function(event){if(tooltip.hasClass(focusClass)){api.hide(event);
}});}return self;},create:function(){var elem=$(overlaySelector);if(elem.length){elems.overlay=elem;return elem;}overlay=elems.overlay=$("<div />",{id:overlaySelector.substr(1),html:"<div></div>",mousedown:function(){return FALSE;}}).insertBefore($(selector).last());$(window).unbind(globalNamespace).bind("resize"+globalNamespace,function(){overlay.css({height:$(window).height(),width:$(window).width()});}).triggerHandler("resize");return overlay;},toggle:function(event,state,duration){if(event&&event.isDefaultPrevented()){return self;
}var effect=options.effect,type=state?"show":"hide",visible=overlay.is(":visible"),modals=$("["+attr+"]:visible").not(tooltip),zindex;if(!overlay){overlay=self.create();}if((overlay.is(":animated")&&visible===state)||(!state&&modals.length)){return self;}if(state){overlay.css({left:0,top:0});overlay.toggleClass("blurs",options.blur);docBody.delegate("*","focusin"+namespace,function(event){if($(event.target).closest(selector)[0]!==tooltip[0]){$("a, :input, img",tooltip).add(tooltip).focus();}});}else{docBody.undelegate("*","focusin"+namespace);
}overlay.stop(TRUE,FALSE);if($.isFunction(effect)){effect.call(overlay,state);}else{if(effect===FALSE){overlay[type]();}else{overlay.fadeTo(parseInt(duration,10)||90,state?1:0,function(){if(!state){$(this).hide();}});}}if(!state){overlay.queue(function(next){overlay.css({left:"",top:""});next();});}return self;},show:function(event,duration){return self.toggle(event,TRUE,duration);},hide:function(event,duration){return self.toggle(event,FALSE,duration);},destroy:function(){var delBlanket=overlay;
if(delBlanket){delBlanket=$("["+attr+"]").not(tooltip).length<1;if(delBlanket){elems.overlay.remove();$(window).unbind(globalNamespace);}else{elems.overlay.unbind(globalNamespace+api.id);}docBody.undelegate("*","focusin"+namespace);}return tooltip.removeAttr(attr).unbind(globalNamespace);}});self.init();}PLUGINS.modal=function(api){var self=api.plugins.modal;return"object"===typeof self?self:(api.plugins.modal=new Modal(api));};PLUGINS.modal.initialize="render";PLUGINS.modal.sanitize=function(opts){if(opts.show){if(typeof opts.show.modal!=="object"){opts.show.modal={on:!!opts.show.modal};
}else{if(typeof opts.show.modal.on==="undefined"){opts.show.modal.on=TRUE;}}}};$.extend(TRUE,QTIP.defaults,{show:{modal:{on:FALSE,effect:TRUE,blur:TRUE,escape:TRUE}}});function BGIFrame(api){var self=this,elems=api.elements,tooltip=elems.tooltip,namespace=".bgiframe-"+api.id;$.extend(self,{init:function(){elems.bgiframe=$('<iframe class="ui-tooltip-bgiframe" frameborder="0" tabindex="-1" src="javascript:\'\';"  style="display:block; position:absolute; z-index:-1; filter:alpha(opacity=0); -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";"></iframe>');
elems.bgiframe.appendTo(tooltip);tooltip.bind("tooltipmove"+namespace,self.adjust);},adjust:function(){var dimensions=api.get("dimensions"),plugin=api.plugins.tip,tip=elems.tip,tipAdjust,offset;offset=parseInt(tooltip.css("border-left-width"),10)||0;offset={left:-offset,top:-offset};if(plugin&&tip){tipAdjust=(plugin.corner.precedance==="x")?["width","left"]:["height","top"];offset[tipAdjust[1]]-=tip[tipAdjust[0]]();}elems.bgiframe.css(offset).css(dimensions);},destroy:function(){elems.bgiframe.remove();
tooltip.unbind(namespace);}});self.init();}PLUGINS.bgiframe=function(api){var browser=$.browser,self=api.plugins.bgiframe;if($("select, object").length<1||!(browser.msie&&browser.version.charAt(0)==="6")){return FALSE;}return"object"===typeof self?self:(api.plugins.bgiframe=new BGIFrame(api));};PLUGINS.bgiframe.initialize="render";}(jQuery,window));var naseptavacDialog;$(function(){naseptavacDialog=$('<div id="naseptavacDialog">Nahrávám...</div>');console.log(naseptavacDialog);naseptavacDialog.dialog({width:402,height:320,autoOpen:false,title:"Dohledávač",dialogClass:"naseptavacDialog",beforeClose:function(){$(document).unbind("click");
},open:function(event,ui){$(document).click(function(y){var $tgt=$(y.target);if(!$tgt.is(".suggestBtn")){naseptavacDialog.dialog("close");}});}});console.log(naseptavacDialog);});function naseptavacDialogCall(){var url=naseptavacDialogCall.arguments[0];var data=naseptavacDialogCall.arguments[1];var button=naseptavacDialogCall.arguments[2];if(button!=null){naseptavacDialog.dialog("option","position",[($(button).position().left-$(document).scrollLeft()+20),($(button).position().top-$(document).scrollTop()+20)]);
}naseptavacDialog.empty().html(Suggest.prototype.loadingLabel);naseptavacDialog.dialog("option","title","Dohledávač").dialog("open");var myAjax=jQuery.ajax({type:"POST",url:url,timeout:20000,data:data,success:function(msg,textStatus){var titleElm=$(msg).filter("#naseptavacHlavicka").attr("title");if(titleElm){naseptavacDialog.dialog("option","title",titleElm);}naseptavacDialog.html(msg);var lis=jQuery("#naseptavacDialog 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"));}naseptavacDialog.dialog("close");},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="";}naseptavacDialog.html('<div class="xg_msgFromServerError">'+Suggest.prototype.errorDiv+textStatus+errorThrown+"</div>");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.timeoutLabel2="Vypršel čas pro volání našeptávače (10 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.enterDetails='<div class="xg_msgFromServerError">Zadejte podrobnější parametry vyhledávání</div>';Suggest.prototype.loadingLabel='<div class="xg_msgFromServerDefault"><img src="/zdroje/images/icons/spinner.gif" alt="Nahrávám data...">Nahrávám data...</div>';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)",this.katedraTitle));};Suggest.prototype.initKatedraPlatnaSearch=function(parentDiv){jQuery("#"+parentDiv+" input[name="+this.inputTxtKatedra+"]").after(this.getSuggestButton(".hledejKatedruPlatnou('"+parentDiv+"', this)",this.katedraTitle));
};Suggest.prototype.initMistnostSearch=function(parentDiv){this.initBudovaSearch(parentDiv);jQuery("#"+parentDiv+" input[name="+this.inputTxtMistCislo+"]").after(this.getSuggestButton(".hledejMistnost('"+parentDiv+"', this)",this.mistnostTitle));};Suggest.prototype.initPredmetSearch=function(parentDiv){this.initKatedraSearch(parentDiv);jQuery("#"+parentDiv+" input[name="+this.inputTxtPredmet+"]").after(this.getSuggestButton(".hledejPredmet('"+parentDiv+"', this)",this.predmetTitle));};Suggest.prototype.initPredmetBezRokuSearch=function(parentDiv){this.initKatedraSearch(parentDiv);
jQuery("#"+parentDiv+" input[name="+this.inputTxtPredmet+"]").after(this.getSuggestButton(".hledejPredmetBezRoku('"+parentDiv+"', this)",this.predmetTitle));};Suggest.prototype.initPredmetTermSearch=function(parentDiv){this.initKatedraSearch(parentDiv);jQuery("#"+parentDiv+" input[name="+this.inputTxtPredmet+"]").after(this.getSuggestButton(".hledejPredmetTerm('"+parentDiv+"', this)",this.predmetTitle));jQuery("#"+parentDiv+" input[name="+this.inputTxtNazev+"]").after(this.getSuggestButton(".hledejPredmetTerm('"+parentDiv+"', this)",this.predmetTitle));
};Suggest.prototype.initUcitelSearch=function(parentDiv){jQuery("#"+parentDiv+" input[name="+this.inputTxtUcitel+"]").after(this.getSuggestButton(".hledejUcitele('"+parentDiv+"', this)",this.ucitelTitle));jQuery("#"+parentDiv+" input[name="+this.inputTxtUcitelPlneJmeno+"]").after(this.getSuggestButton(".hledejUcitele('"+parentDiv+"', this)",this.ucitelTitle));};Suggest.prototype.initLiteraturaSearch=function(parentDiv){jQuery("#"+parentDiv+" input[name="+this.inputTxtLiterAutor+"]").after(this.getSuggestButton(".hledejLiteraturu('"+parentDiv+"', 'a', this)",this.literaturaTitle));
jQuery("#"+parentDiv+" input[name="+this.inputTxtLiterNazev+"]").after(this.getSuggestButton(".hledejLiteraturu('"+parentDiv+"', 'a', this)",this.literaturaTitle));jQuery("#"+parentDiv+" input[name="+this.inputTxtLiterISBN+"]").after(this.getSuggestButton(".hledejLiteraturu('"+parentDiv+"', 'b', this)",this.literaturaTitle));jQuery("#"+parentDiv+" input[name="+this.inputTxtLiterISSN+"]").after(this.getSuggestButton(".hledejLiteraturu('"+parentDiv+"', 's', this)",this.literaturaTitle));};Suggest.prototype.initKrouzekSearch=function(parentDiv){jQuery("#"+parentDiv+" input[name="+this.inputTxtKrouzek+"]").after(this.getSuggestButton(".hledejKrouzek('"+parentDiv+"', this)",this.krouzekTitle));
};Suggest.prototype.initProgramSearch=function(parentDiv){jQuery("#"+parentDiv+" input[name="+this.inputTxtProgram+"]").after(this.getSuggestButton(".hledejProgram('"+parentDiv+"', this)",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)",this.oborTitle));};Suggest.prototype.initZkrKombinaceSearch=function(parentDiv){jQuery("#"+parentDiv+" input[name="+this.inputTxtZkrKombinace+"]").after(this.getSuggestButton(".hledejZkrKombinace('"+parentDiv+"', this)",this.zkrKombinaceTitle));
};Suggest.prototype.initStudentSearch=function(parentDiv){jQuery("#"+parentDiv+" input[type^=hidden][name="+this.inputTxtPrijmeni+"]").after(this.getSuggestButton(".hledejStudenta('"+parentDiv+"', this)",this.studentTitle));jQuery("#"+parentDiv+" input[type^=hidden][name="+this.inputTxtOsCislo+"]").after(this.getSuggestButton(".hledejStudenta('"+parentDiv+"', this)",this.studentTitle));};Suggest.prototype.initStudentTerminuSearch=function(parentDiv){jQuery("#"+parentDiv+" input[name="+this.inputTxtStudent+"]").after(this.getSuggestButton(".hledejStudentaTerminu('"+parentDiv+"', this)",this.studentTitle));
};Suggest.prototype.initStudentKPSearch=function(parentDiv){jQuery("#"+parentDiv+" input[name="+this.inputTxtPrijmeni+"]").after(this.getSuggestButton(".hledejStudentaKP('"+parentDiv+"', this)",this.studentTitle));jQuery("#"+parentDiv+" input[name="+this.inputTxtOsCislo+"]").after(this.getSuggestButton(".hledejStudentaKP('"+parentDiv+"', this)",this.studentTitle));};Suggest.prototype.initBudovaSearch=function(parentDiv){jQuery("#"+parentDiv+" input[name="+this.inputTxtBudova+"]").after(this.getSuggestButton(".hledejBudova('"+parentDiv+"', this)",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);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);}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);
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);}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);return this.literaturaSet();};Suggest.prototype.nastavPredzKrouzek=function(kodKrouzku){jQuery("#"+this.parentDiv+" input[name="+this.inputTxtKrouzek+"]").val(kodKrouzku);return this.krouzekSet();};Suggest.prototype.nastavProgram=function(program){jQuery("#"+this.parentDiv+" input[name="+this.inputTxtProgram+"]").val(program);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);return this.programSet();};Suggest.prototype.nastavObor=function(obor){jQuery("#"+this.parentDiv+" input[name="+this.inputTxtObor+"]").val(obor);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);return this.oborSet();};Suggest.prototype.nastavZkrKombinace=function(zkrKombinace){jQuery("#"+this.parentDiv+" input[name="+this.inputTxtZkrKombinace+"]").val(zkrKombinace);
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);}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);}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);return this.budovaSet();};Suggest.prototype.hledejKatedru=function(parentDiv,button){this.parentDiv=parentDiv;
var pars=jQuery("#"+parentDiv).formSerialize();return naseptavacDialogCall(this.sugestURL,"type=katedra&varName="+this.varName+"&"+pars+"&porLo="+this.porLo,button);};Suggest.prototype.hledejKatedruPlatnou=function(parentDiv,button){this.parentDiv=parentDiv;var pars=jQuery("#"+parentDiv).formSerialize();return naseptavacDialogCall(this.sugestURL,"type=katedraPlatna&varName="+this.varName+"&"+pars+"&porLo="+this.porLo,button);};Suggest.prototype.hledejUcitele=function(parentDiv,button){this.parentDiv=parentDiv;
var pars=jQuery("#"+parentDiv+" input[type=text]").serialize();return naseptavacDialogCall(this.sugestURL,"type=ucitel&varName="+this.varName+"&"+pars+"&porLo="+this.porLo,button);};Suggest.prototype.hledejMistnost=function(parentDiv,button){this.parentDiv=parentDiv;var pars=jQuery("#"+parentDiv+" input").serialize();var val=jQuery("#"+parentDiv+" input[name="+this.inputTxtBudova+"]").val();if(val==""||val=="%"){this.budovaSet=function(){var that=this;window.setTimeout(function(){that.hledejMistnost(parentDiv,button);
},100);};return this.hledejBudova(parentDiv,button);}console.log("ready?");return naseptavacDialogCall(this.sugestURL,"type=mistnost&varName="+this.varName+"&"+pars+"&porLo="+this.porLo,button);};Suggest.prototype.hledejPredmet=function(parentDiv,button){this.parentDiv=parentDiv;var pars=jQuery("#"+parentDiv+" input[type=text], #"+parentDiv+" select").serialize();return naseptavacDialogCall(this.sugestURL,"type=predmet&varName="+this.varName+"&"+pars+"&porLo="+this.porLo,button);};Suggest.prototype.hledejPredmetBezRoku=function(parentDiv,button){this.parentDiv=parentDiv;
var pars=jQuery("#"+parentDiv+" input[type=text], #"+parentDiv+" select").serialize();return naseptavacDialogCall(this.sugestURL,"type=predmetBezRoku&varName="+this.varName+"&"+pars+"&porLo="+this.porLo,button);};Suggest.prototype.hledejPredmetTerm=function(parentDiv,button){this.parentDiv=parentDiv;var pars=jQuery("#"+parentDiv+" input").serialize();return naseptavacDialogCall(this.sugestURL,"type=predmetTerm&varName="+this.varName+"&"+pars+"&porLo="+this.porLo,button);};Suggest.prototype.hledejLiteraturu=function(parentDiv,subType,button){this.parentDiv=parentDiv;
var pars=jQuery("#"+parentDiv+" input[type=text]").serialize();return naseptavacDialogCall(this.sugestURL,"type=literatura&varName="+this.varName+"&subType="+subType+"&"+pars+"&porLo="+this.porLo,button);};Suggest.prototype.hledejKrouzek=function(parentDiv,button){this.parentDiv=parentDiv;var pars=jQuery("#"+parentDiv).formSerialize();return naseptavacDialogCall(this.sugestURL,"type=predzapisKrouzek&varName="+this.varName+"&"+pars+"&porLo="+this.porLo,button);};Suggest.prototype.hledejProgram=function(parentDiv,button){this.parentDiv=parentDiv;
var pars=jQuery("#"+parentDiv).formSerialize();return naseptavacDialogCall(this.sugestURL,"type=program&varName="+this.varName+"&"+pars+"&porLo="+this.porLo,button);};Suggest.prototype.hledejObor=function(parentDiv,button){this.parentDiv=parentDiv;var pars=jQuery("#"+parentDiv).formSerialize();return naseptavacDialogCall(this.sugestURL,"type=obor&varName="+this.varName+"&"+pars+"&porLo="+this.porLo,button);};Suggest.prototype.hledejStudenta=function(parentDiv,button){this.parentDiv=parentDiv;var fooVal=jQuery("#"+parentDiv+" input[name="+this.inputTxtOsCislo+"]").val();
var fooVal2=jQuery("#"+parentDiv+" input[name="+this.inputTxtPrijmeni+"]").val();if((fooVal==undefined||fooVal.length==0||fooVal=="%")&&(fooVal2==undefined||fooVal2.length==0||fooVal2=="%")){naseptavacDialogVar.html(Suggest.prototype.enterDetails).dialog("option","position",[($(button).position().left+20),($(button).position().top+20)]).dialog("open");bindDialogClose();}var pars=jQuery("#"+parentDiv).formSerialize();return naseptavacDialogCall(this.sugestURL,"type=student&varName="+this.varName+"&"+pars+"&porLo="+this.porLo,button);
};Suggest.prototype.hledejStudentaTerminu=function(parentDiv,button){this.parentDiv=parentDiv;var pars=jQuery("#"+parentDiv).formSerialize();return naseptavacDialogCall(this.sugestURL,"type=studentTerminu&varName="+this.varName+"&"+pars+"&porLo="+this.porLo,button);};Suggest.prototype.hledejStudentaKP=function(parentDiv,button){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=="%")){naseptavacDialogVar.html(Suggest.prototype.enterDetails).dialog("option","position",[($(button).position().left+20),($(button).position().top+20)]).dialog("open");bindDialogClose();}var pars=jQuery("#"+parentDiv).formSerialize();return naseptavacDialogCall(this.sugestURL,"type=studentKP&varName="+this.varName+"&"+pars+"&porLo="+this.porLo,button);};Suggest.prototype.hledejBudova=function(parentDiv,button){this.parentDiv=parentDiv;
var pars=jQuery("#"+parentDiv).formSerialize();return naseptavacDialogCall(this.sugestURL,"type=budova&varName="+this.varName+"&"+pars+"&porLo="+this.porLo,button);};Suggest.prototype.hledejZkrKombinace=function(parentDiv,button){alert("Nepodporováno!");};function PVCreateBubble(object,text,manageMouseEvents,themeName,position,color){return object.CreateBubblePopup({alwaysVisible:true,position:position,align:"center",divStyle:{"z-index":"1005"},manageMouseEvents:manageMouseEvents,width:"300pt",selectable:true,innerHtml:text,innerHtmlStyle:{color:color,"text-align":"center"},themeName:themeName,themePath:"/zdroje/js/bubble/theme"});
}function PVCreateBubbleOneTime(object,text,themeName,position,color){object.HideAllBubblePopups();object.RemoveBubblePopup();var result=PVCreateBubble(object,text,false,themeName,position,color);object.ShowBubblePopup();object.oneTime(5000,"remove-timer",function(){object.HideAllBubblePopups();object.RemoveBubblePopup();});return result;}function PVInitFocusBubble(object){object.focus(function(){object.ShowBubblePopup();});object.blur(function(){object.HideBubblePopup();});}function PVInitAutoComplete(keyField,valueField,keyFieldOnChangeFuncName,valueFieldOnChangeFuncName,valueFieldMapName,valueFieldMapIndex,url,inputData,minLength){var result=valueField.autocomplete({source:function(request,response){keyFieldIs=(typeof(keyField)!="undefined"&&keyField!=null);
$.ajax({url:url,contentType:"application/x-www-form-urlencoded; charset=UTF-8",type:"POST",timeout:10000,dataType:"json",data:"acFieldName="+(keyFieldIs?keyField.attr("name"):valueField.attr("name"))+"&field_"+valueField.attr("name")+"="+valueField.serialize()+"&"+eval(inputData),success:function(data){keyFieldIs=(typeof(keyField)!="undefined"&&keyField!=null);if(typeof(data.error)!="undefined"){PVCreateBubbleOneTime(typeof(data.errorField)!="undefined"?jQuery("#"+data.errorField):valueField,data.error,"orange","right","#CC3333");
}else{if(keyFieldIs){if(data.autocomplete.length==1&&data.autocomplete[0].value==valueField.val()&&keyField.val()==""){keyField.val(data.autocomplete[0].id);}}response(data.autocomplete);}},error:function(request,textStatus,errorThrown){request.abort();if(textStatus=="timeout"){textStatus=Suggest.prototype.timeoutLabel2;}if(textStatus=="error"){textStatus=Suggest.prototype.errorLabel;}if(errorThrown){errorThrown=" ("+errorThrown+")";}else{errorThrown="";}PVCreateBubbleOneTime(valueField,textStatus+errorThrown,"orange","right","#CC3333");
}});},minLength:minLength,delay:500,select:function(event,ui){keyFieldIs=(typeof(keyField)!="undefined"&&keyField!=null);if(keyFieldIs){keyField.val(ui.item.id);}if(typeof(keyFieldOnChangeFuncName)!="undefined"&&keyFieldOnChangeFuncName!=null){eval(keyFieldOnChangeFuncName+"();");}valueField.val(ui.item.value);if(typeof(valueFieldOnChangeFuncName)!="undefined"&&valueFieldOnChangeFuncName!=null){eval(valueFieldOnChangeFuncName+"();");}if(typeof(valueFieldMapName)!="undefined"&&valueFieldMapName!=null){eval(valueFieldMapName+"['"+valueFieldMapIndex+"'] = ui.item.value;");
}if(typeof(ui.item.execute)!="undefined"){eval(ui.item.execute);}}}).data("autocomplete")._renderItem=function(ul,item){return $("<li></li>").data("item.autocomplete",item).append("<a>"+item.label+"</a>").appendTo(ul);};valueField.focus(function(event){keyFieldIs=(typeof(keyField)!="undefined"&&keyField!=null);if(keyFieldIs){if(keyField.val()==""&&!valueField.data("autocomplete").menu.element.is(":visible")){valueField.data("autocomplete").search(null,event);}}else{if(valueField.val()==""&&!valueField.data("autocomplete").menu.element.is(":visible")){valueField.data("autocomplete").search(null,event);
}}});valueField.blur(function(event){keyFieldIs=(typeof(keyField)!="undefined"&&keyField!=null);if(keyFieldIs&&keyField.val()==""&&valueField.val()!=""){valueField.oneTime(500,"leave-timer",function(){if(keyField.val()==""&&valueField.val()!=""){if(valueField.data("autocomplete").menu.element.is(":visible")){valueField.data("autocomplete").close();}$.ajax({url:url,contentType:"application/x-www-form-urlencoded; charset=UTF-8",type:"POST",timeout:10000,dataType:"json",data:"acFieldName="+keyField.attr("name")+"&onblur=true&field_"+valueField.attr("name")+"="+valueField.serialize()+"&"+eval(inputData),success:function(data){if(typeof(data.error)!="undefined"){PVCreateBubbleOneTime(typeof(data.errorField)!="undefined"?jQuery("#"+data.errorField):valueField,data.error,"orange","right","#CC3333").ShowBubblePopup();
}else{if(data.autocomplete.length==1){var x=data.autocomplete[0];keyField.val(x.id);if(typeof(keyFieldOnChangeFuncName)!="undefined"&&keyFieldOnChangeFuncName!=null){eval(keyFieldOnChangeFuncName+"();");}valueField.val(x.value);if(typeof(valueFieldOnChangeFuncName)!="undefined"&&valueFieldOnChangeFuncName!=null){eval(valueFieldOnChangeFuncName+"();");}if(typeof(valueFieldMapName)!="undefined"&&valueFieldMapName!=null){eval(valueFieldMapName+"['"+valueFieldMapIndex+"'] = x.value;");}if(typeof(x.execute)!="undefined"){eval(x.execute);
}}else{PVCreateBubbleOneTime(typeof(data.errorField)!="undefined"?jQuery("#"+data.errorField):valueField,data.error,"orange","right","#CC3333");}}},error:function(request,textStatus,errorThrown){request.abort();if(textStatus=="timeout"){textStatus=Suggest.prototype.timeoutLabel2;}if(textStatus=="error"){textStatus=Suggest.prototype.errorLabel;}if(errorThrown){errorThrown=" ("+errorThrown+")";}else{errorThrown="";}PVCreateBubbleOneTime(valueField,textStatus+errorThrown,"orange","right","#CC3333");
}});}});}});return result;}function GenericAjaxLoad(url,data,destinationElement,formToSerialize,dialogOptions){$("html").addClass("cursor-busy");$("input").addClass("cursor-busy");$.ajax({url:url,contentType:"application/x-www-form-urlencoded; charset=UTF-8",type:"POST",timeout:20000,dataType:"html",data:data+(formToSerialize?"&"+jQuery(formToSerialize).serialize():""),success:function(data){$("html").removeClass("cursor-busy");$("input").removeClass("cursor-busy");if(destinationElement.toLowerCase()=="dialog"){jQuery("div").remove("#ppDialog");
jQuery("body").append('<div id="ppDialog" style="display:none"></div>');jQuery("#ppDialog").html(data);var default_args={position:"center",modal:true,width:600,height:500,resizable:true,draggable:true,autoOpen:true,title:"",zIndex:90};for(var index in default_args){if(typeof dialogOptions[index]=="undefined"){dialogOptions[index]=default_args[index];}}jQuery("#ppDialog").dialog(dialogOptions);}else{jQuery(destinationElement).html(data);}},error:function(request,textStatus,errorThrown){$("html").removeClass("cursor-busy");
$("input").removeClass("cursor-busy");request.abort();if(textStatus=="timeout"){textStatus=Suggest.prototype.timeoutLabel;}if(textStatus=="error"){textStatus=Suggest.prototype.errorLabel;}if(errorThrown){errorThrown=" ("+errorThrown+")";}else{errorThrown="";}PVCreateBubble(jQuery(destinationElement),textStatus+errorThrown,true,"orange","right","#CC3333").ShowBubblePopup();}});}if(typeof(console)==="undefined"){var console={};console.log=console.error=console.info=console.debug=console.warn=console.trace=console.dir=console.dirxml=console.group=console.groupEnd=console.time=console.timeEnd=console.assert=console.profile=function(){};
}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){$("#"+elId).attr("class",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;}}};this.selectPageByIndex=function(i,skipCooking){if(skipCooking==undefined){skipCooking=false;}if(this.pages[i]==undefined){}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){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){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){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){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{}}}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){}}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{return;}}}if(!initialized){}}};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{}}}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){}}else{if(this.pages[idx]!=undefined){if(this.pages[idx].active==true){this.selectPageByName(this.pages[idx].name,true);initialized=1;}else{return;}}else{return;}if(!initialized){}}};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");}(function(){fdTableSort={regExp_Currency:/^[£$€¥¤]/,regExp_Number:/^(\-)?[0-9]+(\.[0-9]*)?$/,pos:-1,uniqueHash:1,thNode:null,tableId:null,tableCache:{},tmpCache:{},sortActiveClass:"sort-active",
/*@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;
},parseClassName:function(head,tbl){var colMatch=tbl.className.match(new RegExp(head+"((-[\\d]+([r]){0,1})+)"));return colMatch&&colMatch.length?colMatch[0].replace(head,"").split("-"):[];},disableSelection:function(element){element.onselectstart=function(){return false;};element.unselectable="on";element.style.MozUserSelect="none";},removeTableCache:function(tableId){if(!(tableId in fdTableSort.tableCache)){return;}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].onkeydown=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].onkeydown=a[0].onclick=null;}th.onclick=th.onselectstart=th=a=null;
}}fdTableSort.tmpCache[tableId]=null;delete fdTableSort.tmpCache[tableId];},initEvt:function(e){fdTableSort.init(false);},init:function(tableId){if(!document.getElementsByTagName||!document.createElement||!document.getElementById){return;}var tables=tableId&&document.getElementById(tableId)?[document.getElementById(tableId)]:document.getElementsByTagName("table");var c,ii,len,colMatch,showOnly,match,showArrow,columnNumSortObj,obj,workArr,headers,thtext,aclone,multi,colCnt,cel,allRowArr,rowArr,sortableTable,celCount,colspan,rowspan,rowLength;
var a=document.createElement("a");a.href="#";a.className="fdTableSortTrigger";var span=document.createElement("span");for(var k=0,tbl;tbl=tables[k];k++){if(tbl.id){fdTableSort.removeTableCache(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++;}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;showOnly=tbl.className.search("sortable-onload-show")!=-1;columnNumSortObj={};colMatch=fdTableSort.parseClassName(showOnly?"sortable-onload-show":"sortable-onload",tbl);for(match=1;match<colMatch.length;match++){columnNumSortObj[parseInt(colMatch[match],10)]={reverse:colMatch[match].search("r")!=-1};
}rowLength=rowArr[0].length;for(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(c=rowArr.length;c--;){workArr[c]=new Array(rowLength);}for(c=0;c<workArr.length;c++){celCount=0;for(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(c=0;c<workArr.length;c++){for(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 in columnNumSortObj){columnNumSortObj[i]["thNode"]=workArr[c][i];columnNumSortObj.active=true;}thtext=fdTableSort.getInnerText(workArr[c][i],true);for(var cn=workArr[c][i].childNodes.length;cn--;){if(workArr[c][i].childNodes[cn].nodeType==1&&(workArr[c][i].childNodes[cn].className=="fdFilterTrigger"||/img/i.test(workArr[c][i].childNodes[cn].nodeName))){continue;}if(workArr[c][i].childNodes[cn].nodeType==1&&/^a$/i.test(workArr[c][i].childNodes[cn].nodeName)){workArr[c][i].childNodes[cn].onclick=workArr[c][i].childNodes[cn].onkeydown=null;
}workArr[c][i].removeChild(workArr[c][i].childNodes[cn]);}aclone=a.cloneNode(true);aclone.innerHTML=thtext;aclone.title="Seradit podle \u201c"+thtext.replace("<br />","")+"\u201d";aclone.onclick=aclone.onkeydown=workArr[c][i].onclick=fdTableSort.initWrapper;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;multi=0;if("active" in columnNumSortObj){fdTableSort.tableId=tbl.id;fdTableSort.prepareTableData(document.getElementById(fdTableSort.tableId));delete columnNumSortObj.active;for(col in columnNumSortObj){obj=columnNumSortObj[col];if(!("thNode" in obj)){continue;}fdTableSort.multi=true;len=obj.reverse?2:1;for(ii=0;ii<len;ii++){fdTableSort.thNode=obj.thNode;if(!showOnly){fdTableSort.initSort(false,true,true);}else{fdTableSort.addThNode();
}}if(showOnly){fdTableSort.removeClass(obj.thNode,"(forwardSort|reverseSort)");fdTableSort.addClass(obj.thNode,obj.reverse?"reverseSort":"forwardSort");if(showArrow){span=fdTableSort.thNode.getElementsByTagName("span")[0];if(span.firstChild){span.removeChild(span.firstChild);}span.appendChild(document.createTextNode(len==1?" \u2193":" \u2191"));}}}if(showOnly&&(fdTableSort.tableCache[tbl.id].colStyle||fdTableSort.tableCache[tbl.id].rowStyle)){fdTableSort.redraw(tbl.id,false);}}else{if(tbl.className.search(/onload-zebra/)!=-1){fdTableSort.tableId=tbl.id;
fdTableSort.prepareTableData(tbl);if(fdTableSort.tableCache[tbl.id].rowStyle){fdTableSort.redraw(tbl.id,false);}}}}fdTableSort.thNode=aclone=a=span=columnNumSortObj=thNode=tbl=allRowArr=rowArr=null;},initWrapper:function(e){e=e||window.event;var kc=e.type=="keydown"?e.keyCode!=null?e.keyCode:e.charCode:-1;if(fdTableSort.thNode==null&&(e.type=="click"||kc==13)){var targ=this;while(targ.tagName.toLowerCase()!="th"){targ=targ.parentNode;}fdTableSort.thNode=targ;while(targ.tagName.toLowerCase()!="table"){targ=targ.parentNode;
}fdTableSort.tableId=targ.id;fdTableSort.multi=e.shiftKey;fdTableSort.addSortActiveClass();setTimeout(fdTableSort.initSort,5,false,false);return fdTableSort.stopEvent(e);}return kc!=-1?true:fdTableSort.stopEvent(e);},jsWrapper:function(tableid,colNums){if(!(tableid in fdTableSort.tmpCache)){return false;}if(!(tableid in fdTableSort.tableCache)){fdTableSort.prepareTableData(document.getElementById(tableid));}if(!(colNums instanceof Array)){colNums=[colNums];}fdTableSort.tableId=tableid;var len=colNums.length,colNum;
if(fdTableSort.tableCache[tableid].thList.length==colNums.length){var identical=true;var th;for(var i=0;i<len;i++){colNum=colNums[i];th=fdTableSort.tmpCache[tableid].headers[0][colNum];if(th!=fdTableSort.tableCache[tableid].thList[i]){identical=false;break;}}if(identical){fdTableSort.thNode=th;fdTableSort.initSort(true,false,false);return;}}fdTableSort.addSortActiveClass();for(var i=0;i<len;i++){fdTableSort.multi=i;colNum=colNums[i];fdTableSort.thNode=fdTableSort.tmpCache[tableid].headers[0][colNum];
fdTableSort.initSort(true,false,false);}},addSortActiveClass:function(){if(fdTableSort.thNode==null){return;}fdTableSort.addClass(fdTableSort.thNode,fdTableSort.sortActiveClass);fdTableSort.addClass(document.getElementsByTagName("body")[0],fdTableSort.sortActiveClass);},removeSortActiveClass:function(){if(fdTableSort.thNode==null){return;}fdTableSort.removeClass(fdTableSort.thNode,fdTableSort.sortActiveClass);fdTableSort.removeClass(document.getElementsByTagName("body")[0],fdTableSort.sortActiveClass);
},doCallback:function(init){if(!fdTableSort.tableId||!(fdTableSort.tableId in fdTableSort.tableCache)){return;}fdTableSort.callback(fdTableSort.tableId,init?fdTableSort.tableCache[fdTableSort.tableId].initiatedCallback:fdTableSort.tableCache[fdTableSort.tableId].completeCallback);},addClass:function(e,c){if(new RegExp("(^|\\s)"+c+"(\\s|$)").test(e.className)){return;}e.className+=(e.className?" ":"")+c;},
/*@cc_on
        /*@if (@_win32)
        removeClass: function(e,c) {
                e.className = !c ? "" : e.className.replace(new RegExp("(^|\\s)" + c + "(\\s|$)"), " ").replace(/^\s*((?:[\S\s]*\S)?)\s*$/, '$1');
        },
        @else @*/
removeClass:function(e,c){e.className=!c?"":e.className.replace(new RegExp("(^|\\s)"+c+"(\\s|$)")," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"");
},
/*@end
        @*/
callback:function(tblId,cb){var func,parts;try{if(cb.indexOf(".")!=-1){parts=cb.split(".");obj=window;for(var x=0,part;part=obj[parts[x]];x++){if(part instanceof Function){(function(){var method=part;func=function(data){method.apply(obj,[data]);};})();}else{obj=part;}}}else{if(cb+tblId in window){func=window[cb+tblId];}else{if(cb in window){func=window[cb];}else{func=null;}}}}catch(err){}if(!(func instanceof Function)){return;}func(tblId,fdTableSort.tableCache[tblId].thList);
},prepareTableData:function(table){var data=[];var start=table.getElementsByTagName("tbody");start=start.length?start[0]:table;var trs=start.rows;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&&tr.parentNode.tagName.toLowerCase().search(/thead|tfoot/)!=-1)){continue;}data[rowCnt]=[];tds=tr.cells;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;var iCBack=table.className.search(/sortinitiatedcallback-([\S-]+)/)==-1?"sortInitiatedCallback":table.className.match(/sortinitiatedcallback-([\S]+)/)[1];var cCBack=table.className.search(/sortcompletecallback-([\S-]+)/)==-1?"sortCompleteCallback":table.className.match(/sortcompletecallback-([\S]+)/)[1];
iCBack=iCBack.replace("-",".");cCBack=cCBack.replace("-",".");fdTableSort.tableCache[table.id]={hook:start,initiatedCallback:iCBack,completeCallback:cCBack,thList:[],colOrder:{},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;},addThNode:function(){var dataObj=fdTableSort.tableCache[fdTableSort.tableId];var pos=fdTableSort.thNode.className.match(/fd-column-([0-9]+)/)[1];var alt=false;if(!fdTableSort.multi){if(dataObj.colStyle){var len=dataObj.thList.length;for(var i=0;i<len;i++){dataObj.colOrder[dataObj.thList[i].className.match(/fd-column-([0-9]+)/)[1]]=false;
}}if(dataObj.thList.length&&dataObj.thList[0]==fdTableSort.thNode){alt=true;}dataObj.thList=[];}var found=false;var l=dataObj.thList.length;for(var i=0,n;n=dataObj.thList[i];i++){if(n==fdTableSort.thNode){found=true;break;}}if(!found){dataObj.thList.push(fdTableSort.thNode);if(dataObj.colStyle){dataObj.colOrder[pos]=true;}}var ths=document.getElementById(fdTableSort.tableId).getElementsByTagName("th");for(var i=0,th;th=ths[i];i++){found=false;for(var z=0,n;n=dataObj.thList[z];z++){if(n==th){found=true;
break;}}if(!found){fdTableSort.removeClass(th,"(forwardSort|reverseSort)");if(!dataObj.noArrow){span=th.getElementsByTagName("span");if(span.length){span=span[0];while(span.firstChild){span.removeChild(span.firstChild);}}}}}if(dataObj.thList.length>1){classToAdd=fdTableSort.thNode.className.search(/forwardSort/)!=-1?"reverseSort":"forwardSort";fdTableSort.removeClass(fdTableSort.thNode,"(forwardSort|reverseSort)");fdTableSort.addClass(fdTableSort.thNode,classToAdd);dataObj.pos=-1;}else{if(alt){dataObj.pos=fdTableSort.thNode;
}}},initSort:function(noCallback,ident,onInit){var thNode=fdTableSort.thNode;var tableElem=document.getElementById(fdTableSort.tableId);if(!(fdTableSort.tableId in fdTableSort.tableCache)){fdTableSort.prepareTableData(document.getElementById(fdTableSort.tableId));}fdTableSort.addThNode();if(!noCallback){fdTableSort.doCallback(true);}fdTableSort.pos=thNode.className.match(/fd-column-([0-9]+)/)[1];var dataObj=fdTableSort.tableCache[tableElem.id];var lastPos=dataObj.pos&&dataObj.pos.className?dataObj.pos.className.match(/fd-column-([0-9]+)/)[1]:-1;
var len1=dataObj.data.length;var len2=dataObj.data.length>0?dataObj.data[0].length-1:0;var identical=dataObj.identical[fdTableSort.pos];var classToAdd="forwardSort";if(dataObj.thList.length>1){var js="var sortWrapper = function(a,b) {\n";var l=dataObj.thList.length;var cnt=0;var e,d,th,p,f;for(var i=0;i<l;i++){th=dataObj.thList[i];p=th.className.match(/fd-column-([0-9]+)/)[1];if(dataObj.identical[p]){continue;}cnt++;if(th.className.match(/sortable-(numeric|currency|date|keep)/)){f="fdTableSort.sortNumeric";
}else{if(th.className.match("sortable-text")){f="fdTableSort.sortText";}else{if(th.className.search(/sortable-([a-zA-Z\_]+)/)!=-1&&th.className.match(/sortable-([a-zA-Z\_]+)/)[1] in window){f="window['"+th.className.match(/sortable-([a-zA-Z\_]+)/)[1]+"']";}else{f="fdTableSort.sortText";}}}e="e"+i;d=th.className.search("forwardSort")!=-1?"a,b":"b,a";js+="fdTableSort.pos   = "+p+";\n";js+="var "+e+" = "+f+"("+d+");\n";js+="if("+e+") return "+e+";\n";js+="else { \n";}js+="return 0;\n";for(var i=0;i<cnt;
i++){js+="};\n";}if(cnt){js+="return 0;\n";}js+="};\n";eval(js);dataObj.data.sort(sortWrapper);identical=false;}else{if((lastPos==fdTableSort.pos&&!identical)||(thNode.className.search(/sortable-keep/)!=-1&&lastPos==-1)){dataObj.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;classToAdd=thNode.className.search(/forwardSort/)!=-1?"reverseSort":"forwardSort";
if(!identical){if(thNode.className.match(/sortable-(numeric|currency|date|keep)/)){dataObj.data.sort(fdTableSort.sortNumeric);}else{if(thNode.className.match("sortable-text")){dataObj.data.sort(fdTableSort.sortText);}else{if(thNode.className.search(/sortable-([a-zA-Z\_]+)/)!=-1&&thNode.className.match(/sortable-([a-zA-Z\_]+)/)[1] in window){dataObj.data.sort(window[thNode.className.match(/sortable-([a-zA-Z\_]+)/)[1]]);}}}if(thNode.className.search(/(^|\s)favour-reverse($|\s)/)!=-1){classToAdd=classToAdd=="forwardSort"?"reverseSort":"forwardSort";
dataObj.data.reverse();}}}}if(ident){identical=false;}if(dataObj.thList.length==1){fdTableSort.removeClass(thNode,"(forwardSort|reverseSort)");fdTableSort.addClass(thNode,classToAdd);}if(!dataObj.noArrow){var span=fdTableSort.thNode.getElementsByTagName("span")[0];if(span.firstChild){span.removeChild(span.firstChild);}span.appendChild(document.createTextNode(fdTableSort.thNode.className.search(/forwardSort/)!=-1?" \u2193":" \u2191"));}if(!dataObj.rowStyle&&!dataObj.colStyle&&identical){fdTableSort.removeSortActiveClass();
if(!noCallback){fdTableSort.doCallback(false);}fdTableSort.thNode=null;return;}if("tablePaginater" in window&&tablePaginater.tableIsPaginated(fdTableSort.tableId)){tablePaginater.redraw(fdTableSort.tableId,identical);}else{fdTableSort.redraw(fdTableSort.tableId,identical);}fdTableSort.removeSortActiveClass();if(!noCallback){fdTableSort.doCallback(false);}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=null;},redraw:function(tableid,identical){if(!tableid||!(tableid in fdTableSort.tableCache)){return;}var dataObj=fdTableSort.tableCache[tableid];var data=dataObj.data;var len1=data.length;var len2=len1?data[0].length-1:0;var hook=dataObj.hook;var colStyle=dataObj.colStyle;var rowStyle=dataObj.rowStyle;var colOrder=dataObj.colOrder;
var highLight=0;var reg=/(^|\s)invisibleRow(\s|$)/;var tr,tds;for(var i=0;i<len1;i++){tr=data[i][len2];if(colStyle){tds=tr.cells;for(thPos in colOrder){if(!colOrder[thPos]){fdTableSort.removeClass(tds[thPos],colStyle);}else{fdTableSort.addClass(tds[thPos],colStyle);}}}if(!identical){if(rowStyle&&tr.className.search(reg)==-1){if(highLight++&1){fdTableSort.addClass(tr,rowStyle);}else{fdTableSort.removeClass(tr,rowStyle);}}hook.appendChild(tr);}}tr=tds=hook=null;},getInnerText:function(el,allowBrTags){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(allowBrTags&&i.nodeName&&i.nodeName=="BR"){txt+="<br />";}else{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,cnt=0,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;},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;}};})();fdTableSort.addEvent(window,"load",fdTableSort.initEvt);fdTableSort.addEvent(window,"unload",fdTableSort.onUnload);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]),10);}function numberInSpan(a,b){var aa=a[fdTableSort.pos];var bb=b[fdTableSort.pos];return aa-bb;}var tablePaginater=(function(){var tableInfo={},uniqueID=0,text=["First Page","Previous Page (Page %p)","Next Page (Page %p)","Last Page (Page %t)","Page %p of %t"];
var addClass=function(e,c){if(new RegExp("(^|\\s)"+c+"(\\s|$)").test(e.className)){return;}e.className+=(e.className?" ":"")+c;};
/*@cc_on
        /*@if (@_win32)
        var removeClass = function(e,c) {
                e.className = !c ? "" : e.className.replace(new RegExp("(^|\\s)" + c + "(\\s|$)"), " ").replace(/^\s*((?:[\S\s]*\S)?)\s*$/, '$1');
        };
        @else @*/
var removeClass=function(e,c){e.className=!c?"":(e.className||"").replace(new RegExp("(^|\\s)"+c+"(\\s|$)")," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"");
};
/*@end
        @*/
var addEvent=function(obj,type,fn){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);}};var removeEvent=function(obj,type,fn){try{if(obj.detachEvent){obj.detachEvent("on"+type,obj[type+fn]);obj[type+fn]=null;}else{obj.removeEventListener(type,fn,true);}}catch(err){}};var 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;};var init=function(tableId){var tables=tableId&&typeof(tableId)=="string"?[document.getElementById(tableId)]:document.getElementsByTagName("table"),hook,maxPages,visibleRows,numPages,cp,cb,rowList;for(var t=0,tbl;tbl=tables[t];t++){if(tbl.className.search(/paginate-([0-9]+)/)==-1){continue;}if(!tbl.id){tbl.id="fdUniqueTableId_"+uniqueID++;
}maxPages=tbl.className.search(/max-pages-([0-9]+)/)==-1?null:Number(tbl.className.match(/max-pages-([0-9]+)/)[1]);if(maxPages%2==0&&maxPages>1){maxPages--;}hook=tbl.getElementsByTagName("tbody");hook=(hook.length)?hook[0]:tbl;visibleRows=calculateVisibleRows(hook);if(maxPages>(visibleRows/Number(tbl.className.match(/paginate-([0-9]+)/)[1]))){maxPages=null;}numPages=Math.ceil(visibleRows/Number(tbl.className.match(/paginate-([0-9]+)/)[1]));if(numPages<2&&!(tbl.id in tableInfo)){continue;}cp=(tbl.id in tableInfo)?Math.min(tableInfo[tbl.id].currentPage,numPages):1;
tableInfo[tbl.id]={rowsPerPage:Number(tbl.className.match(/paginate-([0-9]+)/)[1]),currentPage:cp,totalRows:hook.getElementsByTagName("tr").length,hook:hook,maxPages:maxPages,numPages:numPages,rowStyle:tbl.className.search(/rowstyle-([\S]+)/)!=-1?tbl.className.match(/rowstyle-([\S]+)/)[1]:false,callbacks:parseCallback(/^paginationcallback-/i,/paginationcallback-([\S-]+)/ig,tbl.className)};showPage(tbl.id);hook=null;}};var parseCallback=function(head,regExp,cname){var cbs=[],matchs=cname.match(regExp),parts,obj,func;
if(!matchs){return[];}for(var i=0,mtch;mtch=matchs[i];i++){mtch=mtch.replace(head,"").replace(/-/g,".");try{if(mtch.indexOf(".")!=-1){parts=mtch.split(".");obj=window;for(var x=0,part;part=obj[parts[x]];x++){if(part instanceof Function){(function(){var method=part;func=function(data){method.apply(obj,[data]);};})();}else{obj=part;}}}else{func=window[mtch];}if(!(func instanceof Function)){continue;}cbs[cbs.length]=func;}catch(err){}}return cbs;};var callback=function(tblId,opts){if(!(tblId in tableInfo)||!(tableInfo[tblId]["callbacks"].length)){return;
}for(var i=0,func;func=tableInfo[tblId]["callbacks"][i];i++){func(opts||{});}};var calculateVisibleRows=function(hook){var trs=hook.rows,cnt=0,reg=/(^|\s)invisibleRow(\s|$)/;for(var i=0,tr;tr=trs[i];i++){if(tr.parentNode!=hook||tr.getElementsByTagName("th").length||(tr.parentNode&&tr.parentNode.tagName.toLowerCase().search(/thead|tfoot/)!=-1)){continue;}if(tr.className.search(reg)==-1){cnt++;}}return cnt;};var createButton=function(details,ul,pseudo){var li=document.createElement("li"),but=document.createElement(pseudo?"div":"a"),span=document.createElement("span");
if(!pseudo){but.href="#";but.title=details.title;}but.className=details.className;ul.appendChild(li);li.appendChild(but);but.appendChild(span);span.appendChild(document.createTextNode(details.text));if(!pseudo){li.onclick=but.onclick=buttonClick;if(details.id){but.id=details.id;}}li=but=span=null;};var removePagination=function(tableId){var wrapT=document.getElementById(tableId+"-fdtablePaginaterWrapTop"),wrapB=document.getElementById(tableId+"-fdtablePaginaterWrapBottom");if(wrapT){wrapT.parentNode.removeChild(wrapT);
}if(wrapB){wrapB.parentNode.removeChild(wrapB);}};var buildPagination=function(tblId){if(!(tblId in tableInfo)){return;}removePagination(tblId);var details=tableInfo[tblId];if(details.numPages<2){return;}function resolveText(txt,curr){curr=curr||details.currentPage;return txt.replace("%p",curr).replace("%t",details.numPages);}if(details.maxPages){findex=Math.max(0,Math.floor(Number(details.currentPage-1)-(Number(details.maxPages-1)/2)));lindex=findex+Number(details.maxPages);if(lindex>details.numPages){lindex=details.numPages;
findex=Math.max(0,details.numPages-Number(details.maxPages));}}else{findex=0;lindex=details.numPages;}var wrapT=document.createElement("div");wrapT.className="fdtablePaginaterWrap fdtablePaginatorWrapTop";wrapT.id=tblId+"-fdtablePaginaterWrapTop";var wrapB=document.createElement("div");wrapB.className="fdtablePaginaterWrap fdtablePaginatorWrapBottom";wrapB.id=tblId+"-fdtablePaginaterWrapBottom";var ulT=document.createElement("ul");ulT.id=tblId+"-tablePaginater";var ulB=document.createElement("ul");
ulB.id=tblId+"-tablePaginaterClone";ulT.className=ulB.className="fdtablePaginater";wrapT.appendChild(ulT);wrapB.appendChild(ulB);if(details.maxPages){createButton({title:text[0],className:"first-page",text:"\u00ab"},ulT,!findex);createButton({title:text[0],className:"first-page",text:"\u00ab"},ulB,!findex);}if(details.numPages>2){createButton({title:resolveText(text[1],details.currentPage-1),className:"previous-page",text:"\u2039",id:tblId+"-previousPage"},ulT,details.currentPage==1);createButton({title:resolveText(text[1],details.currentPage-1),className:"previous-page",text:"\u2039",id:tblId+"-previousPageC"},ulB,details.currentPage==1);
}for(var i=findex;i<lindex;i++){createButton({title:resolveText(text[4],i+1),className:i!=(details.currentPage-1)?"page-"+(i+1):"currentPage page-"+(i+1),text:(i+1),id:i==(details.currentPage-1)?tblId+"-currentPage":""},ulT);createButton({title:resolveText(text[4],i+1),className:i!=(details.currentPage-1)?"page-"+(i+1):"currentPage page-"+(i+1),text:(i+1),id:i==(details.currentPage-1)?tblId+"-currentPageC":""},ulB);}if(details.numPages>2){createButton({title:resolveText(text[2],details.currentPage+1),className:"next-page",text:"\u203a",id:tblId+"-nextPage"},ulT,details.currentPage==details.numPages);
createButton({title:resolveText(text[2],details.currentPage+1),className:"next-page",text:"\u203a",id:tblId+"-nextPageC"},ulB,details.currentPage==details.numPages);}if(details.maxPages){createButton({title:resolveText(text[3],details.numPages),className:"last-page",text:"\u00bb"},ulT,lindex==details.numPages);createButton({title:resolveText(text[3],details.numPages),className:"last-page",text:"\u00bb"},ulB,lindex==details.numPages);}if(document.getElementById(tblId+"-paginationListWrapTop")){document.getElementById(tblId+"-paginationListWrapTop").appendChild(wrapT);
}else{document.getElementById(tblId).parentNode.insertBefore(wrapT,document.getElementById(tblId));}if(document.getElementById(tblId+"-paginationListWrapBottom")){document.getElementById(tblId+"-paginationListWrapBottom").appendChild(wrapB);}else{document.getElementById(tblId).parentNode.insertBefore(wrapB,document.getElementById(tblId).nextSibling);}};var tableSortRedraw=function(tableid,identical){if(!tableid||!(tableid in fdTableSort.tableCache)||!(tableid in tableInfo)){return;}var dataObj=fdTableSort.tableCache[tableid],data=dataObj.data,len1=data.length,len2=len1?data[0].length-1:0,hook=dataObj.hook,colStyle=dataObj.colStyle,rowStyle=dataObj.rowStyle,colOrder=dataObj.colOrder,page=tableInfo[tableid].currentPage-1,d1=tableInfo[tableid].rowsPerPage*page,d2=Math.min(tableInfo[tableid].totalRows,d1+tableInfo[tableid].rowsPerPage),cnt=0,rs=0,reg=/(^|\s)invisibleRow(\s|$)/,tr,tds,cell,pos;
for(var i=0;i<len1;i++){tr=data[i][len2];if(colStyle){tds=tr.cells;for(thPos in colOrder){if(!colOrder[thPos]){removeClass(tds[thPos],colStyle);}else{addClass(tds[thPos],colStyle);}}}if(tr.className.search(reg)!=-1){continue;}if(!identical){cnt++;if(cnt>d1&&cnt<=d2){if(rowStyle){if(rs++&1){addClass(tr,rowStyle);}else{removeClass(tr,rowStyle);}}tr.style.display="";}else{tr.style.display="none";}hook.appendChild(tr);}}tr=tds=hook=null;};var showPage=function(tblId,pageNum){if(!(tblId in tableInfo)){return;
}var page=Math.max(0,!pageNum?tableInfo[tblId].currentPage-1:pageNum-1),d1=tableInfo[tblId].rowsPerPage*page,d2=Math.min(tableInfo[tblId].totalRows,d1+tableInfo[tblId].rowsPerPage),trs=tableInfo[tblId].hook.rows,cnt=0,rc=0,len=trs.length,rs=tableInfo[tblId].rowStyle,reg=/(^|\s)invisibleRow(\s|$)/,row=[];for(var i=0;i<len;i++){if(trs[i].className.search(reg)!=-1||trs[i].getElementsByTagName("th").length||(trs[i].parentNode&&trs[i].parentNode.tagName.toLowerCase().search(/thead|tfoot/)!=-1)){continue;
}cnt++;if(cnt>d1&&cnt<=d2){if(rs){if(rc++&1){addClass(trs[i],rs);}else{removeClass(trs[i],rs);}}trs[i].style.display="";row[row.length]=trs[i];}else{trs[i].style.display="none";}}buildPagination(tblId);callback(tblId,{table:tblId,totalRows:len,currentPage:(page+1),rowsPerPage:tableInfo[tblId].rowsPerPage,visibleRows:row});};var buttonClick=function(e){e=e||window.event;var a=this.tagName.toLowerCase()=="a"?this:this.getElementsByTagName("a")[0];if(a.className.search("currentPage")!=-1){return false;
}var ul=this;while(ul.tagName.toLowerCase()!="ul"){ul=ul.parentNode;}var tblId=ul.id.replace("-tablePaginaterClone","").replace("-tablePaginater","");tableInfo[tblId].lastPage=tableInfo[tblId].currentPage;var showPrevNext=0;if(a.className.search("previous-page")!=-1){tableInfo[tblId].currentPage=tableInfo[tblId].currentPage>1?tableInfo[tblId].currentPage-1:tableInfo[tblId].numPages;showPrevNext=1;}else{if(a.className.search("next-page")!=-1){tableInfo[tblId].currentPage=tableInfo[tblId].currentPage<tableInfo[tblId].numPages?tableInfo[tblId].currentPage+1:1;
showPrevNext=2;}else{if(a.className.search("first-page")!=-1){tableInfo[tblId].currentPage=1;}else{if(a.className.search("last-page")!=-1){tableInfo[tblId].currentPage=tableInfo[tblId].numPages;}else{tableInfo[tblId].currentPage=parseInt(a.className.match(/page-([0-9]+)/)[1])||1;}}}}showPage(tblId);if(showPrevNext==1){var elem=document.getElementById(ul.id.search("-tablePaginaterClone")!=-1?tblId+"-previousPageC":tblId+"-previousPage");}else{if(showPrevNext==2){var elem=document.getElementById(ul.id.search("-tablePaginaterClone")!=-1?tblId+"-nextPageC":tblId+"-nextPage");
}else{var elem=document.getElementById(ul.id.search("-tablePaginaterClone")!=-1?tblId+"-currentPageC":tblId+"-currentPage");}}if(elem&&elem.tagName.toLowerCase()=="a"){elem.focus();}return stopEvent(e);};var onUnLoad=function(e){var tbl,lis,pagination,uls;for(tblId in tableInfo){uls=[tblId+"-tablePaginater",tblId+"-tablePaginaterClone"];for(var z=0;z<2;z++){pagination=document.getElementById(uls[z]);if(!pagination){continue;}lis=pagination.getElementsByTagName("li");for(var i=0,li;li=lis[i];i++){li.onclick=null;
if(li.getElementsByTagName("a").length){li.getElementsByTagName("a")[0].onclick=null;}}}}};addEvent(window,"load",init);addEvent(window,"unload",onUnLoad);return{init:function(tableId){init(tableId);},redraw:function(tableid,identical){tableSortRedraw(tableid,identical);},tableIsPaginated:function(tableId){return(tableId in tableInfo);},changeTranslations:function(translations){text=translations;}};})();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;var persistHeightCookieName="splitter";$.fn.TextAreaResizer=function(persistCookie){if(persistCookie!="undefined"){persistHeightCookieName=persistCookie;
}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(persistHeightCookieName,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);jQuery.fn.extend({everyTime:function(interval,label,fn,times,belay){return this.each(function(){jQuery.timer.add(this,interval,label,fn,times,belay);});},oneTime:function(interval,label,fn){return this.each(function(){jQuery.timer.add(this,interval,label,fn,1);});},stopTime:function(label,fn){return this.each(function(){jQuery.timer.remove(this,label,fn);
});}});jQuery.extend({timer:{guid:1,global:{},regex:/^([0-9]+)\s*(.*s)?$/,powers:{ms:1,cs:10,ds:100,s:1000,das:10000,hs:100000,ks:1000000},timeParse:function(value){if(value==undefined||value==null){return null;}var result=this.regex.exec(jQuery.trim(value.toString()));if(result[2]){var num=parseInt(result[1],10);var mult=this.powers[result[2]]||1;return num*mult;}else{return value;}},add:function(element,interval,label,fn,times,belay){var counter=0;if(jQuery.isFunction(label)){if(!times){times=fn;
}fn=label;label=interval;}interval=jQuery.timer.timeParse(interval);if(typeof interval!="number"||isNaN(interval)||interval<=0){return;}if(times&&times.constructor!=Number){belay=!!times;times=0;}times=times||0;belay=belay||false;if(!element.$timers){element.$timers={};}if(!element.$timers[label]){element.$timers[label]={};}fn.$timerID=fn.$timerID||this.guid++;var handler=function(){if(belay&&this.inProgress){return;}this.inProgress=true;if((++counter>times&&times!==0)||fn.call(element,counter)===false){jQuery.timer.remove(element,label,fn);
}this.inProgress=false;};handler.$timerID=fn.$timerID;if(!element.$timers[label][fn.$timerID]){element.$timers[label][fn.$timerID]=window.setInterval(handler,interval);}if(!this.global[label]){this.global[label]=[];}this.global[label].push(element);},remove:function(element,label,fn){var timers=element.$timers,ret;if(timers){if(!label){for(label in timers){this.remove(element,label,fn);}}else{if(timers[label]){if(fn){if(fn.$timerID){window.clearInterval(timers[label][fn.$timerID]);delete timers[label][fn.$timerID];
}}else{for(var fn in timers[label]){window.clearInterval(timers[label][fn]);delete timers[label][fn];}}for(ret in timers[label]){break;}if(!ret){ret=null;delete timers[label];}}}for(ret in timers){break;}if(!ret){element.$timers=null;}}}}});if(jQuery.browser.msie){jQuery(window).one("unload",function(){var global=jQuery.timer.global;for(var label in global){var els=global[label],i=els.length;while(--i){jQuery.timer.remove(els[i],label);}}});}var qTipTemplate;var qTipClickTemplate;$(function(){$.extend({messages:{clean_url_template:'<span style="padding-left: 10px;padding-right: 10px;"><a href="{0}" class="xg_stag_a_det_S" target="_blank">{0}</a></span>',clean_url_title:"Odkaz na aktuální pozici v portálu..."}});
$.fn.qtip.defaults.position.viewport=$(window);$.fn.qtip.defaults.position.adjust.method="shift";qTipTemplate={position:{target:"mouse",adjust:{x:14,y:14}}};qTipClickTemplate={show:{event:"click",solo:true},hide:{event:"unfocus",fixed:true},style:{classes:"qtip_wide"},events:{render:function(event,api){$(window).bind("keydown",function(e){if(e.keyCode===27){api.hide(e);}});}}};$(".qtip_auto").qtip(qTipTemplate);$(".qtip_click").each(function(){var title=$(this).attr("title");$(this).qtip(qTipTemplate).removeData("qtip").qtip($.extend(true,qTipClickTemplate,{content:{text:$(this).attr("data-tip-content"),title:{text:title,button:true}}}));
});$(".clean_url").each(function(){var title=$(this).attr("title");$(this).qtip(qTipTemplate).removeData("qtip").qtip($.extend(true,qTipClickTemplate,{content:{text:$.format($.messages.clean_url_template,$(this).attr("href")),title:{text:$.messages.clean_url_title,button:true}}}));});$(".qtip_ajax").each(function(){$(this).qtip($.extend(true,qTipTemplate,{content:{text:Suggest.prototype.loadingLabel,title:{text:$(this).attr("title"),button:true},ajax:{url:$(this).attr("rel")}}}));});$(".qtip_ajax_click").each(function(){$(this).qtip(qTipTemplate).removeData("qtip").qtip($.extend(true,qTipClickTemplate,{content:{text:Suggest.prototype.loadingLabel,title:{text:$(this).attr("title"),button:true},ajax:{url:($(this).attr("href")?$(this).attr("href"):$(this).attr("rel"))}}}));
});sylabusDialogVar=$('<div id="naseptavacDialog">Nahrávám / Loading...</div>').dialog({width:700,height:630,autoOpen:false,title:"Sylabus předmětu",close:function(){$(".ui-dialog").prevAll().unbind("click");$(this).html("Nahrávám / Loading...");},open:function(event,ui){window.setTimeout(function(){$(".ui-dialog").prevAll().bind("click",function(){sylabusDialogVar.dialog("close");});},200);return false;}});});var sylabusDialogVar;function showSylabusPredmetu(pracZkr,zkrPredm,rokVar,url,lang){if(!lang){lang="cs";
}sylabusDialogVar.dialog("open");var myAjax=jQuery.ajax({type:"POST",url:url,timeout:20000,data:{typ:"PREDZAPIS",pracZkr:pracZkr,zkrPredm:zkrPredm,rokVar:rokVar,portalLocale:lang},success:function(msg,textStatus){var title=$(".gpv-sylab-head",msg).eq(0).contents().filter(function(){return this.nodeType==3;}).text();if(title){sylabusDialogVar.dialog("option","title",title);}sylabusDialogVar.html(msg);},error:function(request,textStatus,errorThrown){request.abort();if(textStatus=="timeout"){textStatus=Suggest.prototype.timeoutLabel;
}if(textStatus=="error"){textStatus=Suggest.prototype.errorLabel;}sylabusDialogVar.html('<div class="xg_msgFromServerError">'+Suggest.prototype.errorDiv+textStatus+"</div>");myAjax=null;}});return false;}
