
/*
 * jQuery 1.2.3 - New Wave Javascript
 *
 * Copyright (c) 2008 John Resig (jquery.com)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * $Date: 2008-02-06 00:21:25 -0500 (Wed, 06 Feb 2008) $
 * $Rev: 4663 $
 */
(function(){if(window.jQuery)var _jQuery=window.jQuery;var jQuery=window.jQuery=function(selector,context){return new jQuery.prototype.init(selector,context);};if(window.$)var _$=window.$;window.$=jQuery;var quickExpr=/^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/;var isSimple=/^.[^:#\[\.]*$/;jQuery.fn=jQuery.prototype={init:function(selector,context){selector=selector||document;if(selector.nodeType){this[0]=selector;this.length=1;return this;}else if(typeof selector=="string"){var match=quickExpr.exec(selector);if(match&&(match[1]||!context)){if(match[1])selector=jQuery.clean([match[1]],context);else{var elem=document.getElementById(match[3]);if(elem)if(elem.id!=match[3])return jQuery().find(selector);else{this[0]=elem;this.length=1;return this;}else
selector=[];}}else
return new jQuery(context).find(selector);}else if(jQuery.isFunction(selector))return new jQuery(document)[jQuery.fn.ready?"ready":"load"](selector);return this.setArray(selector.constructor==Array&&selector||(selector.jquery||selector.length&&selector!=window&&!selector.nodeType&&selector[0]!=undefined&&selector[0].nodeType)&&jQuery.makeArray(selector)||[selector]);},jquery:"1.2.3",size:function(){return this.length;},length:0,get:function(num){return num==undefined?jQuery.makeArray(this):this[num];},pushStack:function(elems){var ret=jQuery(elems);ret.prevObject=this;return ret;},setArray:function(elems){this.length=0;Array.prototype.push.apply(this,elems);return this;},each:function(callback,args){return jQuery.each(this,callback,args);},index:function(elem){var ret=-1;this.each(function(i){if(this==elem)ret=i;});return ret;},attr:function(name,value,type){var options=name;if(name.constructor==String)if(value==undefined)return this.length&&jQuery[type||"attr"](this[0],name)||undefined;else{options={};options[name]=value;}return this.each(function(i){for(name in options)jQuery.attr(type?this.style:this,name,jQuery.prop(this,options[name],type,i,name));});},css:function(key,value){if((key=='width'||key=='height')&&parseFloat(value)<0)value=undefined;return this.attr(key,value,"curCSS");},text:function(text){if(typeof text!="object"&&text!=null)return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(text));var ret="";jQuery.each(text||this,function(){jQuery.each(this.childNodes,function(){if(this.nodeType!=8)ret+=this.nodeType!=1?this.nodeValue:jQuery.fn.text([this]);});});return ret;},wrapAll:function(html){if(this[0])jQuery(html,this[0].ownerDocument).clone().insertBefore(this[0]).map(function(){var elem=this;while(elem.firstChild)elem=elem.firstChild;return elem;}).append(this);return this;},wrapInner:function(html){return this.each(function(){jQuery(this).contents().wrapAll(html);});},wrap:function(html){return this.each(function(){jQuery(this).wrapAll(html);});},append:function(){return this.domManip(arguments,true,false,function(elem){if(this.nodeType==1)this.appendChild(elem);});},prepend:function(){return this.domManip(arguments,true,true,function(elem){if(this.nodeType==1)this.insertBefore(elem,this.firstChild);});},before:function(){return this.domManip(arguments,false,false,function(elem){this.parentNode.insertBefore(elem,this);});},after:function(){return this.domManip(arguments,false,true,function(elem){this.parentNode.insertBefore(elem,this.nextSibling);});},end:function(){return this.prevObject||jQuery([]);},find:function(selector){var elems=jQuery.map(this,function(elem){return jQuery.find(selector,elem);});return this.pushStack(/[^+>] [^+>]/.test(selector)||selector.indexOf("..")>-1?jQuery.unique(elems):elems);},clone:function(events){var ret=this.map(function(){if(jQuery.browser.msie&&!jQuery.isXMLDoc(this)){var clone=this.cloneNode(true),container=document.createElement("div");container.appendChild(clone);return jQuery.clean([container.innerHTML])[0];}else
return this.cloneNode(true);});var clone=ret.find("*").andSelf().each(function(){if(this[expando]!=undefined)this[expando]=null;});if(events===true)this.find("*").andSelf().each(function(i){if(this.nodeType==3)return;var events=jQuery.data(this,"events");for(var type in events)for(var handler in events[type])jQuery.event.add(clone[i],type,events[type][handler],events[type][handler].data);});return ret;},filter:function(selector){return this.pushStack(jQuery.isFunction(selector)&&jQuery.grep(this,function(elem,i){return selector.call(elem,i);})||jQuery.multiFilter(selector,this));},not:function(selector){if(selector.constructor==String)if(isSimple.test(selector))return this.pushStack(jQuery.multiFilter(selector,this,true));else
selector=jQuery.multiFilter(selector,this);var isArrayLike=selector.length&&selector[selector.length-1]!==undefined&&!selector.nodeType;return this.filter(function(){return isArrayLike?jQuery.inArray(this,selector)<0:this!=selector;});},add:function(selector){return!selector?this:this.pushStack(jQuery.merge(this.get(),selector.constructor==String?jQuery(selector).get():selector.length!=undefined&&(!selector.nodeName||jQuery.nodeName(selector,"form"))?selector:[selector]));},is:function(selector){return selector?jQuery.multiFilter(selector,this).length>0:false;},hasClass:function(selector){return this.is("."+selector);},val:function(value){if(value==undefined){if(this.length){var elem=this[0];if(jQuery.nodeName(elem,"select")){var index=elem.selectedIndex,values=[],options=elem.options,one=elem.type=="select-one";if(index<0)return null;for(var i=one?index:0,max=one?index+1:options.length;i<max;i++){var option=options[i];if(option.selected){value=jQuery.browser.msie&&!option.attributes.value.specified?option.text:option.value;if(one)return value;values.push(value);}}return values;}else
return(this[0].value||"").replace(/\r/g,"");}return undefined;}return this.each(function(){if(this.nodeType!=1)return;if(value.constructor==Array&&/radio|checkbox/.test(this.type))this.checked=(jQuery.inArray(this.value,value)>=0||jQuery.inArray(this.name,value)>=0);else if(jQuery.nodeName(this,"select")){var values=value.constructor==Array?value:[value];jQuery("option",this).each(function(){this.selected=(jQuery.inArray(this.value,values)>=0||jQuery.inArray(this.text,values)>=0);});if(!values.length)this.selectedIndex=-1;}else
this.value=value;});},html:function(value){return value==undefined?(this.length?this[0].innerHTML:null):this.empty().append(value);},replaceWith:function(value){return this.after(value).remove();},eq:function(i){return this.slice(i,i+1);},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments));},map:function(callback){return this.pushStack(jQuery.map(this,function(elem,i){return callback.call(elem,i,elem);}));},andSelf:function(){return this.add(this.prevObject);},data:function(key,value){var parts=key.split(".");parts[1]=parts[1]?"."+parts[1]:"";if(value==null){var data=this.triggerHandler("getData"+parts[1]+"!",[parts[0]]);if(data==undefined&&this.length)data=jQuery.data(this[0],key);return data==null&&parts[1]?this.data(parts[0]):data;}else
return this.trigger("setData"+parts[1]+"!",[parts[0],value]).each(function(){jQuery.data(this,key,value);});},removeData:function(key){return this.each(function(){jQuery.removeData(this,key);});},domManip:function(args,table,reverse,callback){var clone=this.length>1,elems;return this.each(function(){if(!elems){elems=jQuery.clean(args,this.ownerDocument);if(reverse)elems.reverse();}var obj=this;if(table&&jQuery.nodeName(this,"table")&&jQuery.nodeName(elems[0],"tr"))obj=this.getElementsByTagName("tbody")[0]||this.appendChild(this.ownerDocument.createElement("tbody"));var scripts=jQuery([]);jQuery.each(elems,function(){var elem=clone?jQuery(this).clone(true)[0]:this;if(jQuery.nodeName(elem,"script")){scripts=scripts.add(elem);}else{if(elem.nodeType==1)scripts=scripts.add(jQuery("script",elem).remove());callback.call(obj,elem);}});scripts.each(evalScript);});}};jQuery.prototype.init.prototype=jQuery.prototype;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);}jQuery.extend=jQuery.fn.extend=function(){var target=arguments[0]||{},i=1,length=arguments.length,deep=false,options;if(target.constructor==Boolean){deep=target;target=arguments[1]||{};i=2;}if(typeof target!="object"&&typeof target!="function")target={};if(length==1){target=this;i=0;}for(;i<length;i++)if((options=arguments[i])!=null)for(var name in options){if(target===options[name])continue;if(deep&&options[name]&&typeof options[name]=="object"&&target[name]&&!options[name].nodeType)target[name]=jQuery.extend(target[name],options[name]);else if(options[name]!=undefined)target[name]=options[name];}return target;};var expando="jQuery"+(new Date()).getTime(),uuid=0,windowData={};var exclude=/z-?index|font-?weight|opacity|zoom|line-?height/i;jQuery.extend({noConflict:function(deep){window.$=_$;if(deep)window.jQuery=_jQuery;return jQuery;},isFunction:function(fn){return!!fn&&typeof fn!="string"&&!fn.nodeName&&fn.constructor!=Array&&/function/i.test(fn+"");},isXMLDoc:function(elem){return elem.documentElement&&!elem.body||elem.tagName&&elem.ownerDocument&&!elem.ownerDocument.body;},globalEval:function(data){data=jQuery.trim(data);if(data){var head=document.getElementsByTagName("head")[0]||document.documentElement,script=document.createElement("script");script.type="text/javascript";if(jQuery.browser.msie)script.text=data;else
script.appendChild(document.createTextNode(data));head.appendChild(script);head.removeChild(script);}},nodeName:function(elem,name){return elem.nodeName&&elem.nodeName.toUpperCase()==name.toUpperCase();},cache:{},data:function(elem,name,data){elem=elem==window?windowData:elem;var id=elem[expando];if(!id)id=elem[expando]=++uuid;if(name&&!jQuery.cache[id])jQuery.cache[id]={};if(data!=undefined)jQuery.cache[id][name]=data;return name?jQuery.cache[id][name]:id;},removeData:function(elem,name){elem=elem==window?windowData:elem;var id=elem[expando];if(name){if(jQuery.cache[id]){delete jQuery.cache[id][name];name="";for(name in jQuery.cache[id])break;if(!name)jQuery.removeData(elem);}}else{try{delete elem[expando];}catch(e){if(elem.removeAttribute)elem.removeAttribute(expando);}delete jQuery.cache[id];}},each:function(object,callback,args){if(args){if(object.length==undefined){for(var name in object)if(callback.apply(object[name],args)===false)break;}else
for(var i=0,length=object.length;i<length;i++)if(callback.apply(object[i],args)===false)break;}else{if(object.length==undefined){for(var name in object)if(callback.call(object[name],name,object[name])===false)break;}else
for(var i=0,length=object.length,value=object[0];i<length&&callback.call(value,i,value)!==false;value=object[++i]){}}return object;},prop:function(elem,value,type,i,name){if(jQuery.isFunction(value))value=value.call(elem,i);return value&&value.constructor==Number&&type=="curCSS"&&!exclude.test(name)?value+"px":value;},className:{add:function(elem,classNames){jQuery.each((classNames||"").split(/\s+/),function(i,className){if(elem.nodeType==1&&!jQuery.className.has(elem.className,className))elem.className+=(elem.className?" ":"")+className;});},remove:function(elem,classNames){if(elem.nodeType==1)elem.className=classNames!=undefined?jQuery.grep(elem.className.split(/\s+/),function(className){return!jQuery.className.has(classNames,className);}).join(" "):"";},has:function(elem,className){return jQuery.inArray(className,(elem.className||elem).toString().split(/\s+/))>-1;}},swap:function(elem,options,callback){var old={};for(var name in options){old[name]=elem.style[name];elem.style[name]=options[name];}callback.call(elem);for(var name in options)elem.style[name]=old[name];},css:function(elem,name,force){if(name=="width"||name=="height"){var val,props={position:"absolute",visibility:"hidden",display:"block"},which=name=="width"?["Left","Right"]:["Top","Bottom"];function getWH(){val=name=="width"?elem.offsetWidth:elem.offsetHeight;var padding=0,border=0;jQuery.each(which,function(){padding+=parseFloat(jQuery.curCSS(elem,"padding"+this,true))||0;border+=parseFloat(jQuery.curCSS(elem,"border"+this+"Width",true))||0;});val-=Math.round(padding+border);}if(jQuery(elem).is(":visible"))getWH();else
jQuery.swap(elem,props,getWH);return Math.max(0,val);}return jQuery.curCSS(elem,name,force);},curCSS:function(elem,name,force){var ret;function color(elem){if(!jQuery.browser.safari)return false;var ret=document.defaultView.getComputedStyle(elem,null);return!ret||ret.getPropertyValue("color")=="";}if(name=="opacity"&&jQuery.browser.msie){ret=jQuery.attr(elem.style,"opacity");return ret==""?"1":ret;}if(jQuery.browser.opera&&name=="display"){var save=elem.style.outline;elem.style.outline="0 solid black";elem.style.outline=save;}if(name.match(/float/i))name=styleFloat;if(!force&&elem.style&&elem.style[name])ret=elem.style[name];else if(document.defaultView&&document.defaultView.getComputedStyle){if(name.match(/float/i))name="float";name=name.replace(/([A-Z])/g,"-$1").toLowerCase();var getComputedStyle=document.defaultView.getComputedStyle(elem,null);if(getComputedStyle&&!color(elem))ret=getComputedStyle.getPropertyValue(name);else{var swap=[],stack=[];for(var a=elem;a&&color(a);a=a.parentNode)stack.unshift(a);for(var i=0;i<stack.length;i++)if(color(stack[i])){swap[i]=stack[i].style.display;stack[i].style.display="block";}ret=name=="display"&&swap[stack.length-1]!=null?"none":(getComputedStyle&&getComputedStyle.getPropertyValue(name))||"";for(var i=0;i<swap.length;i++)if(swap[i]!=null)stack[i].style.display=swap[i];}if(name=="opacity"&&ret=="")ret="1";}else if(elem.currentStyle){var camelCase=name.replace(/\-(\w)/g,function(all,letter){return letter.toUpperCase();});ret=elem.currentStyle[name]||elem.currentStyle[camelCase];if(!/^\d+(px)?$/i.test(ret)&&/^\d/.test(ret)){var style=elem.style.left,runtimeStyle=elem.runtimeStyle.left;elem.runtimeStyle.left=elem.currentStyle.left;elem.style.left=ret||0;ret=elem.style.pixelLeft+"px";elem.style.left=style;elem.runtimeStyle.left=runtimeStyle;}}return ret;},clean:function(elems,context){var ret=[];context=context||document;if(typeof context.createElement=='undefined')context=context.ownerDocument||context[0]&&context[0].ownerDocument||document;jQuery.each(elems,function(i,elem){if(!elem)return;if(elem.constructor==Number)elem=elem.toString();if(typeof elem=="string"){elem=elem.replace(/(<(\w+)[^>]*?)\/>/g,function(all,front,tag){return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?all:front+"></"+tag+">";});var tags=jQuery.trim(elem).toLowerCase(),div=context.createElement("div");var wrap=!tags.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!tags.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||tags.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!tags.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!tags.indexOf("<td")||!tags.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!tags.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||jQuery.browser.msie&&[1,"div<div>","</div>"]||[0,"",""];div.innerHTML=wrap[1]+elem+wrap[2];while(wrap[0]--)div=div.lastChild;if(jQuery.browser.msie){var tbody=!tags.indexOf("<table")&&tags.indexOf("<tbody")<0?div.firstChild&&div.firstChild.childNodes:wrap[1]=="<table>"&&tags.indexOf("<tbody")<0?div.childNodes:[];for(var j=tbody.length-1;j>=0;--j)if(jQuery.nodeName(tbody[j],"tbody")&&!tbody[j].childNodes.length)tbody[j].parentNode.removeChild(tbody[j]);if(/^\s/.test(elem))div.insertBefore(context.createTextNode(elem.match(/^\s*/)[0]),div.firstChild);}elem=jQuery.makeArray(div.childNodes);}if(elem.length===0&&(!jQuery.nodeName(elem,"form")&&!jQuery.nodeName(elem,"select")))return;if(elem[0]==undefined||jQuery.nodeName(elem,"form")||elem.options)ret.push(elem);else
ret=jQuery.merge(ret,elem);});return ret;},attr:function(elem,name,value){if(!elem||elem.nodeType==3||elem.nodeType==8)return undefined;var fix=jQuery.isXMLDoc(elem)?{}:jQuery.props;if(name=="selected"&&jQuery.browser.safari)elem.parentNode.selectedIndex;if(fix[name]){if(value!=undefined)elem[fix[name]]=value;return elem[fix[name]];}else if(jQuery.browser.msie&&name=="style")return jQuery.attr(elem.style,"cssText",value);else if(value==undefined&&jQuery.browser.msie&&jQuery.nodeName(elem,"form")&&(name=="action"||name=="method"))return elem.getAttributeNode(name).nodeValue;else if(elem.tagName){if(value!=undefined){if(name=="type"&&jQuery.nodeName(elem,"input")&&elem.parentNode)throw"type property can't be changed";elem.setAttribute(name,""+value);}if(jQuery.browser.msie&&/href|src/.test(name)&&!jQuery.isXMLDoc(elem))return elem.getAttribute(name,2);return elem.getAttribute(name);}else{if(name=="opacity"&&jQuery.browser.msie){if(value!=undefined){elem.zoom=1;elem.filter=(elem.filter||"").replace(/alpha\([^)]*\)/,"")+(parseFloat(value).toString()=="NaN"?"":"alpha(opacity="+value*100+")");}return elem.filter&&elem.filter.indexOf("opacity=")>=0?(parseFloat(elem.filter.match(/opacity=([^)]*)/)[1])/100).toString():"";}name=name.replace(/-([a-z])/ig,function(all,letter){return letter.toUpperCase();});if(value!=undefined)elem[name]=value;return elem[name];}},trim:function(text){return(text||"").replace(/^\s+|\s+$/g,"");},makeArray:function(array){var ret=[];if(typeof array!="array")for(var i=0,length=array.length;i<length;i++)ret.push(array[i]);else
ret=array.slice(0);return ret;},inArray:function(elem,array){for(var i=0,length=array.length;i<length;i++)if(array[i]==elem)return i;return-1;},merge:function(first,second){if(jQuery.browser.msie){for(var i=0;second[i];i++)if(second[i].nodeType!=8)first.push(second[i]);}else
for(var i=0;second[i];i++)first.push(second[i]);return first;},unique:function(array){var ret=[],done={};try{for(var i=0,length=array.length;i<length;i++){var id=jQuery.data(array[i]);if(!done[id]){done[id]=true;ret.push(array[i]);}}}catch(e){ret=array;}return ret;},grep:function(elems,callback,inv){var ret=[];for(var i=0,length=elems.length;i<length;i++)if(!inv&&callback(elems[i],i)||inv&&!callback(elems[i],i))ret.push(elems[i]);return ret;},map:function(elems,callback){var ret=[];for(var i=0,length=elems.length;i<length;i++){var value=callback(elems[i],i);if(value!==null&&value!=undefined){if(value.constructor!=Array)value=[value];ret=ret.concat(value);}}return ret;}});var userAgent=navigator.userAgent.toLowerCase();jQuery.browser={version:(userAgent.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(userAgent),opera:/opera/.test(userAgent),msie:/msie/.test(userAgent)&&!/opera/.test(userAgent),mozilla:/mozilla/.test(userAgent)&&!/(compatible|webkit)/.test(userAgent)};var styleFloat=jQuery.browser.msie?"styleFloat":"cssFloat";jQuery.extend({boxModel:!jQuery.browser.msie||document.compatMode=="CSS1Compat",props:{"for":"htmlFor","class":"className","float":styleFloat,cssFloat:styleFloat,styleFloat:styleFloat,innerHTML:"innerHTML",className:"className",value:"value",disabled:"disabled",checked:"checked",readonly:"readOnly",selected:"selected",maxlength:"maxLength",selectedIndex:"selectedIndex",defaultValue:"defaultValue",tagName:"tagName",nodeName:"nodeName"}});jQuery.each({parent:function(elem){return elem.parentNode;},parents:function(elem){return jQuery.dir(elem,"parentNode");},next:function(elem){return jQuery.nth(elem,2,"nextSibling");},prev:function(elem){return jQuery.nth(elem,2,"previousSibling");},nextAll:function(elem){return jQuery.dir(elem,"nextSibling");},prevAll:function(elem){return jQuery.dir(elem,"previousSibling");},siblings:function(elem){return jQuery.sibling(elem.parentNode.firstChild,elem);},children:function(elem){return jQuery.sibling(elem.firstChild);},contents:function(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.makeArray(elem.childNodes);}},function(name,fn){jQuery.fn[name]=function(selector){var ret=jQuery.map(this,fn);if(selector&&typeof selector=="string")ret=jQuery.multiFilter(selector,ret);return this.pushStack(jQuery.unique(ret));};});jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(name,original){jQuery.fn[name]=function(){var args=arguments;return this.each(function(){for(var i=0,length=args.length;i<length;i++)jQuery(args[i])[original](this);});};});jQuery.each({removeAttr:function(name){jQuery.attr(this,name,"");if(this.nodeType==1)this.removeAttribute(name);},addClass:function(classNames){jQuery.className.add(this,classNames);},removeClass:function(classNames){jQuery.className.remove(this,classNames);},toggleClass:function(classNames){jQuery.className[jQuery.className.has(this,classNames)?"remove":"add"](this,classNames);},remove:function(selector){if(!selector||jQuery.filter(selector,[this]).r.length){jQuery("*",this).add(this).each(function(){jQuery.event.remove(this);jQuery.removeData(this);});if(this.parentNode)this.parentNode.removeChild(this);}},empty:function(){jQuery(">*",this).remove();while(this.firstChild)this.removeChild(this.firstChild);}},function(name,fn){jQuery.fn[name]=function(){return this.each(fn,arguments);};});jQuery.each(["Height","Width"],function(i,name){var type=name.toLowerCase();jQuery.fn[type]=function(size){return this[0]==window?jQuery.browser.opera&&document.body["client"+name]||jQuery.browser.safari&&window["inner"+name]||document.compatMode=="CSS1Compat"&&document.documentElement["client"+name]||document.body["client"+name]:this[0]==document?Math.max(Math.max(document.body["scroll"+name],document.documentElement["scroll"+name]),Math.max(document.body["offset"+name],document.documentElement["offset"+name])):size==undefined?(this.length?jQuery.css(this[0],type):null):this.css(type,size.constructor==String?size:size+"px");};});var chars=jQuery.browser.safari&&parseInt(jQuery.browser.version)<417?"(?:[\\w*_-]|\\\\.)":"(?:[\\w\u0128-\uFFFF*_-]|\\\\.)",quickChild=new RegExp("^>\\s*("+chars+"+)"),quickID=new RegExp("^("+chars+"+)(#)("+chars+"+)"),quickClass=new RegExp("^([#.]?)("+chars+"*)");jQuery.extend({expr:{"":function(a,i,m){return m[2]=="*"||jQuery.nodeName(a,m[2]);},"#":function(a,i,m){return a.getAttribute("id")==m[2];},":":{lt:function(a,i,m){return i<m[3]-0;},gt:function(a,i,m){return i>m[3]-0;},nth:function(a,i,m){return m[3]-0==i;},eq:function(a,i,m){return m[3]-0==i;},first:function(a,i){return i==0;},last:function(a,i,m,r){return i==r.length-1;},even:function(a,i){return i%2==0;},odd:function(a,i){return i%2;},"first-child":function(a){return a.parentNode.getElementsByTagName("*")[0]==a;},"last-child":function(a){return jQuery.nth(a.parentNode.lastChild,1,"previousSibling")==a;},"only-child":function(a){return!jQuery.nth(a.parentNode.lastChild,2,"previousSibling");},parent:function(a){return a.firstChild;},empty:function(a){return!a.firstChild;},contains:function(a,i,m){return(a.textContent||a.innerText||jQuery(a).text()||"").indexOf(m[3])>=0;},visible:function(a){return"hidden"!=a.type&&jQuery.css(a,"display")!="none"&&jQuery.css(a,"visibility")!="hidden";},hidden:function(a){return"hidden"==a.type||jQuery.css(a,"display")=="none"||jQuery.css(a,"visibility")=="hidden";},enabled:function(a){return!a.disabled;},disabled:function(a){return a.disabled;},checked:function(a){return a.checked;},selected:function(a){return a.selected||jQuery.attr(a,"selected");},text:function(a){return"text"==a.type;},radio:function(a){return"radio"==a.type;},checkbox:function(a){return"checkbox"==a.type;},file:function(a){return"file"==a.type;},password:function(a){return"password"==a.type;},submit:function(a){return"submit"==a.type;},image:function(a){return"image"==a.type;},reset:function(a){return"reset"==a.type;},button:function(a){return"button"==a.type||jQuery.nodeName(a,"button");},input:function(a){return/input|select|textarea|button/i.test(a.nodeName);},has:function(a,i,m){return jQuery.find(m[3],a).length;},header:function(a){return/h\d/i.test(a.nodeName);},animated:function(a){return jQuery.grep(jQuery.timers,function(fn){return a==fn.elem;}).length;}}},parse:[/^(\[) *@?([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,/^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,new RegExp("^([:.#]*)("+chars+"+)")],multiFilter:function(expr,elems,not){var old,cur=[];while(expr&&expr!=old){old=expr;var f=jQuery.filter(expr,elems,not);expr=f.t.replace(/^\s*,\s*/,"");cur=not?elems=f.r:jQuery.merge(cur,f.r);}return cur;},find:function(t,context){if(typeof t!="string")return[t];if(context&&context.nodeType!=1&&context.nodeType!=9)return[];context=context||document;var ret=[context],done=[],last,nodeName;while(t&&last!=t){var r=[];last=t;t=jQuery.trim(t);var foundToken=false;var re=quickChild;var m=re.exec(t);if(m){nodeName=m[1].toUpperCase();for(var i=0;ret[i];i++)for(var c=ret[i].firstChild;c;c=c.nextSibling)if(c.nodeType==1&&(nodeName=="*"||c.nodeName.toUpperCase()==nodeName))r.push(c);ret=r;t=t.replace(re,"");if(t.indexOf(" ")==0)continue;foundToken=true;}else{re=/^([>+~])\s*(\w*)/i;if((m=re.exec(t))!=null){r=[];var merge={};nodeName=m[2].toUpperCase();m=m[1];for(var j=0,rl=ret.length;j<rl;j++){var n=m=="~"||m=="+"?ret[j].nextSibling:ret[j].firstChild;for(;n;n=n.nextSibling)if(n.nodeType==1){var id=jQuery.data(n);if(m=="~"&&merge[id])break;if(!nodeName||n.nodeName.toUpperCase()==nodeName){if(m=="~")merge[id]=true;r.push(n);}if(m=="+")break;}}ret=r;t=jQuery.trim(t.replace(re,""));foundToken=true;}}if(t&&!foundToken){if(!t.indexOf(",")){if(context==ret[0])ret.shift();done=jQuery.merge(done,ret);r=ret=[context];t=" "+t.substr(1,t.length);}else{var re2=quickID;var m=re2.exec(t);if(m){m=[0,m[2],m[3],m[1]];}else{re2=quickClass;m=re2.exec(t);}m[2]=m[2].replace(/\\/g,"");var elem=ret[ret.length-1];if(m[1]=="#"&&elem&&elem.getElementById&&!jQuery.isXMLDoc(elem)){var oid=elem.getElementById(m[2]);if((jQuery.browser.msie||jQuery.browser.opera)&&oid&&typeof oid.id=="string"&&oid.id!=m[2])oid=jQuery('[@id="'+m[2]+'"]',elem)[0];ret=r=oid&&(!m[3]||jQuery.nodeName(oid,m[3]))?[oid]:[];}else{for(var i=0;ret[i];i++){var tag=m[1]=="#"&&m[3]?m[3]:m[1]!=""||m[0]==""?"*":m[2];if(tag=="*"&&ret[i].nodeName.toLowerCase()=="object")tag="param";r=jQuery.merge(r,ret[i].getElementsByTagName(tag));}if(m[1]==".")r=jQuery.classFilter(r,m[2]);if(m[1]=="#"){var tmp=[];for(var i=0;r[i];i++)if(r[i].getAttribute("id")==m[2]){tmp=[r[i]];break;}r=tmp;}ret=r;}t=t.replace(re2,"");}}if(t){var val=jQuery.filter(t,r);ret=r=val.r;t=jQuery.trim(val.t);}}if(t)ret=[];if(ret&&context==ret[0])ret.shift();done=jQuery.merge(done,ret);return done;},classFilter:function(r,m,not){m=" "+m+" ";var tmp=[];for(var i=0;r[i];i++){var pass=(" "+r[i].className+" ").indexOf(m)>=0;if(!not&&pass||not&&!pass)tmp.push(r[i]);}return tmp;},filter:function(t,r,not){var last;while(t&&t!=last){last=t;var p=jQuery.parse,m;for(var i=0;p[i];i++){m=p[i].exec(t);if(m){t=t.substring(m[0].length);m[2]=m[2].replace(/\\/g,"");break;}}if(!m)break;if(m[1]==":"&&m[2]=="not")r=isSimple.test(m[3])?jQuery.filter(m[3],r,true).r:jQuery(r).not(m[3]);else if(m[1]==".")r=jQuery.classFilter(r,m[2],not);else if(m[1]=="["){var tmp=[],type=m[3];for(var i=0,rl=r.length;i<rl;i++){var a=r[i],z=a[jQuery.props[m[2]]||m[2]];if(z==null||/href|src|selected/.test(m[2]))z=jQuery.attr(a,m[2])||'';if((type==""&&!!z||type=="="&&z==m[5]||type=="!="&&z!=m[5]||type=="^="&&z&&!z.indexOf(m[5])||type=="$="&&z.substr(z.length-m[5].length)==m[5]||(type=="*="||type=="~=")&&z.indexOf(m[5])>=0)^not)tmp.push(a);}r=tmp;}else if(m[1]==":"&&m[2]=="nth-child"){var merge={},tmp=[],test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(m[3]=="even"&&"2n"||m[3]=="odd"&&"2n+1"||!/\D/.test(m[3])&&"0n+"+m[3]||m[3]),first=(test[1]+(test[2]||1))-0,last=test[3]-0;for(var i=0,rl=r.length;i<rl;i++){var node=r[i],parentNode=node.parentNode,id=jQuery.data(parentNode);if(!merge[id]){var c=1;for(var n=parentNode.firstChild;n;n=n.nextSibling)if(n.nodeType==1)n.nodeIndex=c++;merge[id]=true;}var add=false;if(first==0){if(node.nodeIndex==last)add=true;}else if((node.nodeIndex-last)%first==0&&(node.nodeIndex-last)/first>=0)add=true;if(add^not)tmp.push(node);}r=tmp;}else{var fn=jQuery.expr[m[1]];if(typeof fn=="object")fn=fn[m[2]];if(typeof fn=="string")fn=eval("false||function(a,i){return "+fn+";}");r=jQuery.grep(r,function(elem,i){return fn(elem,i,m,r);},not);}}return{r:r,t:t};},dir:function(elem,dir){var matched=[];var cur=elem[dir];while(cur&&cur!=document){if(cur.nodeType==1)matched.push(cur);cur=cur[dir];}return matched;},nth:function(cur,result,dir,elem){result=result||1;var num=0;for(;cur;cur=cur[dir])if(cur.nodeType==1&&++num==result)break;return cur;},sibling:function(n,elem){var r=[];for(;n;n=n.nextSibling){if(n.nodeType==1&&(!elem||n!=elem))r.push(n);}return r;}});jQuery.event={add:function(elem,types,handler,data){if(elem.nodeType==3||elem.nodeType==8)return;if(jQuery.browser.msie&&elem.setInterval!=undefined)elem=window;if(!handler.guid)handler.guid=this.guid++;if(data!=undefined){var fn=handler;handler=function(){return fn.apply(this,arguments);};handler.data=data;handler.guid=fn.guid;}var events=jQuery.data(elem,"events")||jQuery.data(elem,"events",{}),handle=jQuery.data(elem,"handle")||jQuery.data(elem,"handle",function(){var val;if(typeof jQuery=="undefined"||jQuery.event.triggered)return val;val=jQuery.event.handle.apply(arguments.callee.elem,arguments);return val;});handle.elem=elem;jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];handler.type=parts[1];var handlers=events[type];if(!handlers){handlers=events[type]={};if(!jQuery.event.special[type]||jQuery.event.special[type].setup.call(elem)===false){if(elem.addEventListener)elem.addEventListener(type,handle,false);else if(elem.attachEvent)elem.attachEvent("on"+type,handle);}}handlers[handler.guid]=handler;jQuery.event.global[type]=true;});elem=null;},guid:1,global:{},remove:function(elem,types,handler){if(elem.nodeType==3||elem.nodeType==8)return;var events=jQuery.data(elem,"events"),ret,index;if(events){if(types==undefined||(typeof types=="string"&&types.charAt(0)=="."))for(var type in events)this.remove(elem,type+(types||""));else{if(types.type){handler=types.handler;types=types.type;}jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];if(events[type]){if(handler)delete events[type][handler.guid];else
for(handler in events[type])if(!parts[1]||events[type][handler].type==parts[1])delete events[type][handler];for(ret in events[type])break;if(!ret){if(!jQuery.event.special[type]||jQuery.event.special[type].teardown.call(elem)===false){if(elem.removeEventListener)elem.removeEventListener(type,jQuery.data(elem,"handle"),false);else if(elem.detachEvent)elem.detachEvent("on"+type,jQuery.data(elem,"handle"));}ret=null;delete events[type];}}});}for(ret in events)break;if(!ret){var handle=jQuery.data(elem,"handle");if(handle)handle.elem=null;jQuery.removeData(elem,"events");jQuery.removeData(elem,"handle");}}},trigger:function(type,data,elem,donative,extra){data=jQuery.makeArray(data||[]);if(type.indexOf("!")>=0){type=type.slice(0,-1);var exclusive=true;}if(!elem){if(this.global[type])jQuery("*").add([window,document]).trigger(type,data);}else{if(elem.nodeType==3||elem.nodeType==8)return undefined;var val,ret,fn=jQuery.isFunction(elem[type]||null),event=!data[0]||!data[0].preventDefault;if(event)data.unshift(this.fix({type:type,target:elem}));data[0].type=type;if(exclusive)data[0].exclusive=true;if(jQuery.isFunction(jQuery.data(elem,"handle")))val=jQuery.data(elem,"handle").apply(elem,data);if(!fn&&elem["on"+type]&&elem["on"+type].apply(elem,data)===false)val=false;if(event)data.shift();if(extra&&jQuery.isFunction(extra)){ret=extra.apply(elem,val==null?data:data.concat(val));if(ret!==undefined)val=ret;}if(fn&&donative!==false&&val!==false&&!(jQuery.nodeName(elem,'a')&&type=="click")){this.triggered=true;try{elem[type]();}catch(e){}}this.triggered=false;}return val;},handle:function(event){var val;event=jQuery.event.fix(event||window.event||{});var parts=event.type.split(".");event.type=parts[0];var handlers=jQuery.data(this,"events")&&jQuery.data(this,"events")[event.type],args=Array.prototype.slice.call(arguments,1);args.unshift(event);for(var j in handlers){var handler=handlers[j];args[0].handler=handler;args[0].data=handler.data;if(!parts[1]&&!event.exclusive||handler.type==parts[1]){var ret=handler.apply(this,args);if(val!==false)val=ret;if(ret===false){event.preventDefault();event.stopPropagation();}}}if(jQuery.browser.msie)event.target=event.preventDefault=event.stopPropagation=event.handler=event.data=null;return val;},fix:function(event){var originalEvent=event;event=jQuery.extend({},originalEvent);event.preventDefault=function(){if(originalEvent.preventDefault)originalEvent.preventDefault();originalEvent.returnValue=false;};event.stopPropagation=function(){if(originalEvent.stopPropagation)originalEvent.stopPropagation();originalEvent.cancelBubble=true;};if(!event.target)event.target=event.srcElement||document;if(event.target.nodeType==3)event.target=originalEvent.target.parentNode;if(!event.relatedTarget&&event.fromElement)event.relatedTarget=event.fromElement==event.target?event.toElement:event.fromElement;if(event.pageX==null&&event.clientX!=null){var doc=document.documentElement,body=document.body;event.pageX=event.clientX+(doc&&doc.scrollLeft||body&&body.scrollLeft||0)-(doc.clientLeft||0);event.pageY=event.clientY+(doc&&doc.scrollTop||body&&body.scrollTop||0)-(doc.clientTop||0);}if(!event.which&&((event.charCode||event.charCode===0)?event.charCode:event.keyCode))event.which=event.charCode||event.keyCode;if(!event.metaKey&&event.ctrlKey)event.metaKey=event.ctrlKey;if(!event.which&&event.button)event.which=(event.button&1?1:(event.button&2?3:(event.button&4?2:0)));return event;},special:{ready:{setup:function(){bindReady();return;},teardown:function(){return;}},mouseenter:{setup:function(){if(jQuery.browser.msie)return false;jQuery(this).bind("mouseover",jQuery.event.special.mouseenter.handler);return true;},teardown:function(){if(jQuery.browser.msie)return false;jQuery(this).unbind("mouseover",jQuery.event.special.mouseenter.handler);return true;},handler:function(event){if(withinElement(event,this))return true;arguments[0].type="mouseenter";return jQuery.event.handle.apply(this,arguments);}},mouseleave:{setup:function(){if(jQuery.browser.msie)return false;jQuery(this).bind("mouseout",jQuery.event.special.mouseleave.handler);return true;},teardown:function(){if(jQuery.browser.msie)return false;jQuery(this).unbind("mouseout",jQuery.event.special.mouseleave.handler);return true;},handler:function(event){if(withinElement(event,this))return true;arguments[0].type="mouseleave";return jQuery.event.handle.apply(this,arguments);}}}};jQuery.fn.extend({bind:function(type,data,fn){return type=="unload"?this.one(type,data,fn):this.each(function(){jQuery.event.add(this,type,fn||data,fn&&data);});},one:function(type,data,fn){return this.each(function(){jQuery.event.add(this,type,function(event){jQuery(this).unbind(event);return(fn||data).apply(this,arguments);},fn&&data);});},unbind:function(type,fn){return this.each(function(){jQuery.event.remove(this,type,fn);});},trigger:function(type,data,fn){return this.each(function(){jQuery.event.trigger(type,data,this,true,fn);});},triggerHandler:function(type,data,fn){if(this[0])return jQuery.event.trigger(type,data,this[0],false,fn);return undefined;},toggle:function(){var args=arguments;return this.click(function(event){this.lastToggle=0==this.lastToggle?1:0;event.preventDefault();return args[this.lastToggle].apply(this,arguments)||false;});},hover:function(fnOver,fnOut){return this.bind('mouseenter',fnOver).bind('mouseleave',fnOut);},ready:function(fn){bindReady();if(jQuery.isReady)fn.call(document,jQuery);else
jQuery.readyList.push(function(){return fn.call(this,jQuery);});return this;}});jQuery.extend({isReady:false,readyList:[],ready:function(){if(!jQuery.isReady){jQuery.isReady=true;if(jQuery.readyList){jQuery.each(jQuery.readyList,function(){this.apply(document);});jQuery.readyList=null;}jQuery(document).triggerHandler("ready");}}});var readyBound=false;function bindReady(){if(readyBound)return;readyBound=true;if(document.addEventListener&&!jQuery.browser.opera)document.addEventListener("DOMContentLoaded",jQuery.ready,false);if(jQuery.browser.msie&&window==top)(function(){if(jQuery.isReady)return;try{document.documentElement.doScroll("left");}catch(error){setTimeout(arguments.callee,0);return;}jQuery.ready();})();if(jQuery.browser.opera)document.addEventListener("DOMContentLoaded",function(){if(jQuery.isReady)return;for(var i=0;i<document.styleSheets.length;i++)if(document.styleSheets[i].disabled){setTimeout(arguments.callee,0);return;}jQuery.ready();},false);if(jQuery.browser.safari){var numStyles;(function(){if(jQuery.isReady)return;if(document.readyState!="loaded"&&document.readyState!="complete"){setTimeout(arguments.callee,0);return;}if(numStyles===undefined)numStyles=jQuery("style, link[rel=stylesheet]").length;if(document.styleSheets.length!=numStyles){setTimeout(arguments.callee,0);return;}jQuery.ready();})();}jQuery.event.add(window,"load",jQuery.ready);}jQuery.each(("blur,focus,load,resize,scroll,unload,click,dblclick,"+"mousedown,mouseup,mousemove,mouseover,mouseout,change,select,"+"submit,keydown,keypress,keyup,error").split(","),function(i,name){jQuery.fn[name]=function(fn){return fn?this.bind(name,fn):this.trigger(name);};});var withinElement=function(event,elem){var parent=event.relatedTarget;while(parent&&parent!=elem)try{parent=parent.parentNode;}catch(error){parent=elem;}return parent==elem;};jQuery(window).bind("unload",function(){jQuery("*").add(document).unbind();});jQuery.fn.extend({load:function(url,params,callback){if(jQuery.isFunction(url))return this.bind("load",url);var off=url.indexOf(" ");if(off>=0){var selector=url.slice(off,url.length);url=url.slice(0,off);}callback=callback||function(){};var type="GET";if(params)if(jQuery.isFunction(params)){callback=params;params=null;}else{params=jQuery.param(params);type="POST";}var self=this;jQuery.ajax({url:url,type:type,dataType:"html",data:params,complete:function(res,status){if(status=="success"||status=="notmodified")self.html(selector?jQuery("<div/>").append(res.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(selector):res.responseText);self.each(callback,[res.responseText,status,res]);}});return this;},serialize:function(){return jQuery.param(this.serializeArray());},serializeArray:function(){return this.map(function(){return jQuery.nodeName(this,"form")?jQuery.makeArray(this.elements):this;}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password/i.test(this.type));}).map(function(i,elem){var val=jQuery(this).val();return val==null?null:val.constructor==Array?jQuery.map(val,function(val,i){return{name:elem.name,value:val};}):{name:elem.name,value:val};}).get();}});jQuery.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(i,o){jQuery.fn[o]=function(f){return this.bind(o,f);};});var jsc=(new Date).getTime();jQuery.extend({get:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data=null;}return jQuery.ajax({type:"GET",url:url,data:data,success:callback,dataType:type});},getScript:function(url,callback){return jQuery.get(url,null,callback,"script");},getJSON:function(url,data,callback){return jQuery.get(url,data,callback,"json");},post:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data={};}return jQuery.ajax({type:"POST",url:url,data:data,success:callback,dataType:type});},ajaxSetup:function(settings){jQuery.extend(jQuery.ajaxSettings,settings);},ajaxSettings:{global:true,type:"GET",timeout:0,contentType:"application/x-www-form-urlencoded",processData:true,async:true,data:null,username:null,password:null,accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(s){var jsonp,jsre=/=\?(&|$)/g,status,data;s=jQuery.extend(true,s,jQuery.extend(true,{},jQuery.ajaxSettings,s));if(s.data&&s.processData&&typeof s.data!="string")s.data=jQuery.param(s.data);if(s.dataType=="jsonp"){if(s.type.toLowerCase()=="get"){if(!s.url.match(jsre))s.url+=(s.url.match(/\?/)?"&":"?")+(s.jsonp||"callback")+"=?";}else if(!s.data||!s.data.match(jsre))s.data=(s.data?s.data+"&":"")+(s.jsonp||"callback")+"=?";s.dataType="json";}if(s.dataType=="json"&&(s.data&&s.data.match(jsre)||s.url.match(jsre))){jsonp="jsonp"+jsc++;if(s.data)s.data=(s.data+"").replace(jsre,"="+jsonp+"$1");s.url=s.url.replace(jsre,"="+jsonp+"$1");s.dataType="script";window[jsonp]=function(tmp){data=tmp;success();complete();window[jsonp]=undefined;try{delete window[jsonp];}catch(e){}if(head)head.removeChild(script);};}if(s.dataType=="script"&&s.cache==null)s.cache=false;if(s.cache===false&&s.type.toLowerCase()=="get"){var ts=(new Date()).getTime();var ret=s.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+ts+"$2");s.url=ret+((ret==s.url)?(s.url.match(/\?/)?"&":"?")+"_="+ts:"");}if(s.data&&s.type.toLowerCase()=="get"){s.url+=(s.url.match(/\?/)?"&":"?")+s.data;s.data=null;}if(s.global&&!jQuery.active++)jQuery.event.trigger("ajaxStart");if((!s.url.indexOf("http")||!s.url.indexOf("//"))&&s.dataType=="script"&&s.type.toLowerCase()=="get"){var head=document.getElementsByTagName("head")[0];var script=document.createElement("script");script.src=s.url;if(s.scriptCharset)script.charset=s.scriptCharset;if(!jsonp){var done=false;script.onload=script.onreadystatechange=function(){if(!done&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){done=true;success();complete();head.removeChild(script);}};}head.appendChild(script);return undefined;}var requestDone=false;var xml=window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();xml.open(s.type,s.url,s.async,s.username,s.password);try{if(s.data)xml.setRequestHeader("Content-Type",s.contentType);if(s.ifModified)xml.setRequestHeader("If-Modified-Since",jQuery.lastModified[s.url]||"Thu, 01 Jan 1970 00:00:00 GMT");xml.setRequestHeader("X-Requested-With","XMLHttpRequest");xml.setRequestHeader("Accept",s.dataType&&s.accepts[s.dataType]?s.accepts[s.dataType]+", */*":s.accepts._default);}catch(e){}if(s.beforeSend)s.beforeSend(xml);if(s.global)jQuery.event.trigger("ajaxSend",[xml,s]);var onreadystatechange=function(isTimeout){if(!requestDone&&xml&&(xml.readyState==4||isTimeout=="timeout")){requestDone=true;if(ival){clearInterval(ival);ival=null;}status=isTimeout=="timeout"&&"timeout"||!jQuery.httpSuccess(xml)&&"error"||s.ifModified&&jQuery.httpNotModified(xml,s.url)&&"notmodified"||"success";if(status=="success"){try{data=jQuery.httpData(xml,s.dataType);}catch(e){status="parsererror";}}if(status=="success"){var modRes;try{modRes=xml.getResponseHeader("Last-Modified");}catch(e){}if(s.ifModified&&modRes)jQuery.lastModified[s.url]=modRes;if(!jsonp)success();}else
jQuery.handleError(s,xml,status);complete();if(s.async)xml=null;}};if(s.async){var ival=setInterval(onreadystatechange,13);if(s.timeout>0)setTimeout(function(){if(xml){xml.abort();if(!requestDone)onreadystatechange("timeout");}},s.timeout);}try{xml.send(s.data);}catch(e){jQuery.handleError(s,xml,null,e);}if(!s.async)onreadystatechange();function success(){if(s.success)s.success(data,status);if(s.global)jQuery.event.trigger("ajaxSuccess",[xml,s]);}function complete(){if(s.complete)s.complete(xml,status);if(s.global)jQuery.event.trigger("ajaxComplete",[xml,s]);if(s.global&&!--jQuery.active)jQuery.event.trigger("ajaxStop");}return xml;},handleError:function(s,xml,status,e){if(s.error)s.error(xml,status,e);if(s.global)jQuery.event.trigger("ajaxError",[xml,s,e]);},active:0,httpSuccess:function(r){try{return!r.status&&location.protocol=="file:"||(r.status>=200&&r.status<300)||r.status==304||r.status==1223||jQuery.browser.safari&&r.status==undefined;}catch(e){}return false;},httpNotModified:function(xml,url){try{var xmlRes=xml.getResponseHeader("Last-Modified");return xml.status==304||xmlRes==jQuery.lastModified[url]||jQuery.browser.safari&&xml.status==undefined;}catch(e){}return false;},httpData:function(r,type){var ct=r.getResponseHeader("content-type");var xml=type=="xml"||!type&&ct&&ct.indexOf("xml")>=0;var data=xml?r.responseXML:r.responseText;if(xml&&data.documentElement.tagName=="parsererror")throw"parsererror";if(type=="script")jQuery.globalEval(data);if(type=="json")data=eval("("+data+")");return data;},param:function(a){var s=[];if(a.constructor==Array||a.jquery)jQuery.each(a,function(){s.push(encodeURIComponent(this.name)+"="+encodeURIComponent(this.value));});else
for(var j in a)if(a[j]&&a[j].constructor==Array)jQuery.each(a[j],function(){s.push(encodeURIComponent(j)+"="+encodeURIComponent(this));});else
s.push(encodeURIComponent(j)+"="+encodeURIComponent(a[j]));return s.join("&").replace(/%20/g,"+");}});jQuery.fn.extend({show:function(speed,callback){return speed?this.animate({height:"show",width:"show",opacity:"show"},speed,callback):this.filter(":hidden").each(function(){this.style.display=this.oldblock||"";if(jQuery.css(this,"display")=="none"){var elem=jQuery("<"+this.tagName+" />").appendTo("body");this.style.display=elem.css("display");if(this.style.display=="none")this.style.display="block";elem.remove();}}).end();},hide:function(speed,callback){return speed?this.animate({height:"hide",width:"hide",opacity:"hide"},speed,callback):this.filter(":visible").each(function(){this.oldblock=this.oldblock||jQuery.css(this,"display");this.style.display="none";}).end();},_toggle:jQuery.fn.toggle,toggle:function(fn,fn2){return jQuery.isFunction(fn)&&jQuery.isFunction(fn2)?this._toggle(fn,fn2):fn?this.animate({height:"toggle",width:"toggle",opacity:"toggle"},fn,fn2):this.each(function(){jQuery(this)[jQuery(this).is(":hidden")?"show":"hide"]();});},slideDown:function(speed,callback){return this.animate({height:"show"},speed,callback);},slideUp:function(speed,callback){return this.animate({height:"hide"},speed,callback);},slideToggle:function(speed,callback){return this.animate({height:"toggle"},speed,callback);},fadeIn:function(speed,callback){return this.animate({opacity:"show"},speed,callback);},fadeOut:function(speed,callback){return this.animate({opacity:"hide"},speed,callback);},fadeTo:function(speed,to,callback){return this.animate({opacity:to},speed,callback);},animate:function(prop,speed,easing,callback){var optall=jQuery.speed(speed,easing,callback);return this[optall.queue===false?"each":"queue"](function(){if(this.nodeType!=1)return false;var opt=jQuery.extend({},optall);var hidden=jQuery(this).is(":hidden"),self=this;for(var p in prop){if(prop[p]=="hide"&&hidden||prop[p]=="show"&&!hidden)return jQuery.isFunction(opt.complete)&&opt.complete.apply(this);if(p=="height"||p=="width"){opt.display=jQuery.css(this,"display");opt.overflow=this.style.overflow;}}if(opt.overflow!=null)this.style.overflow="hidden";opt.curAnim=jQuery.extend({},prop);jQuery.each(prop,function(name,val){var e=new jQuery.fx(self,opt,name);if(/toggle|show|hide/.test(val))e[val=="toggle"?hidden?"show":"hide":val](prop);else{var parts=val.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),start=e.cur(true)||0;if(parts){var end=parseFloat(parts[2]),unit=parts[3]||"px";if(unit!="px"){self.style[name]=(end||1)+unit;start=((end||1)/e.cur(true))*start;self.style[name]=start+unit;}if(parts[1])end=((parts[1]=="-="?-1:1)*end)+start;e.custom(start,end,unit);}else
e.custom(start,val,"");}});return true;});},queue:function(type,fn){if(jQuery.isFunction(type)||(type&&type.constructor==Array)){fn=type;type="fx";}if(!type||(typeof type=="string"&&!fn))return queue(this[0],type);return this.each(function(){if(fn.constructor==Array)queue(this,type,fn);else{queue(this,type).push(fn);if(queue(this,type).length==1)fn.apply(this);}});},stop:function(clearQueue,gotoEnd){var timers=jQuery.timers;if(clearQueue)this.queue([]);this.each(function(){for(var i=timers.length-1;i>=0;i--)if(timers[i].elem==this){if(gotoEnd)timers[i](true);timers.splice(i,1);}});if(!gotoEnd)this.dequeue();return this;}});var queue=function(elem,type,array){if(!elem)return undefined;type=type||"fx";var q=jQuery.data(elem,type+"queue");if(!q||array)q=jQuery.data(elem,type+"queue",array?jQuery.makeArray(array):[]);return q;};jQuery.fn.dequeue=function(type){type=type||"fx";return this.each(function(){var q=queue(this,type);q.shift();if(q.length)q[0].apply(this);});};jQuery.extend({speed:function(speed,easing,fn){var opt=speed&&speed.constructor==Object?speed:{complete:fn||!fn&&easing||jQuery.isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&easing.constructor!=Function&&easing};opt.duration=(opt.duration&&opt.duration.constructor==Number?opt.duration:{slow:600,fast:200}[opt.duration])||400;opt.old=opt.complete;opt.complete=function(){if(opt.queue!==false)jQuery(this).dequeue();if(jQuery.isFunction(opt.old))opt.old.apply(this);};return opt;},easing:{linear:function(p,n,firstNum,diff){return firstNum+diff*p;},swing:function(p,n,firstNum,diff){return((-Math.cos(p*Math.PI)/2)+0.5)*diff+firstNum;}},timers:[],timerId:null,fx:function(elem,options,prop){this.options=options;this.elem=elem;this.prop=prop;if(!options.orig)options.orig={};}});jQuery.fx.prototype={update:function(){if(this.options.step)this.options.step.apply(this.elem,[this.now,this]);(jQuery.fx.step[this.prop]||jQuery.fx.step._default)(this);if(this.prop=="height"||this.prop=="width")this.elem.style.display="block";},cur:function(force){if(this.elem[this.prop]!=null&&this.elem.style[this.prop]==null)return this.elem[this.prop];var r=parseFloat(jQuery.css(this.elem,this.prop,force));return r&&r>-10000?r:parseFloat(jQuery.curCSS(this.elem,this.prop))||0;},custom:function(from,to,unit){this.startTime=(new Date()).getTime();this.start=from;this.end=to;this.unit=unit||this.unit||"px";this.now=this.start;this.pos=this.state=0;this.update();var self=this;function t(gotoEnd){return self.step(gotoEnd);}t.elem=this.elem;jQuery.timers.push(t);if(jQuery.timerId==null){jQuery.timerId=setInterval(function(){var timers=jQuery.timers;for(var i=0;i<timers.length;i++)if(!timers[i]())timers.splice(i--,1);if(!timers.length){clearInterval(jQuery.timerId);jQuery.timerId=null;}},13);}},show:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.show=true;this.custom(0,this.cur());if(this.prop=="width"||this.prop=="height")this.elem.style[this.prop]="1px";jQuery(this.elem).show();},hide:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0);},step:function(gotoEnd){var t=(new Date()).getTime();if(gotoEnd||t>this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var done=true;for(var i in this.options.curAnim)if(this.options.curAnim[i]!==true)done=false;if(done){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(jQuery.css(this.elem,"display")=="none")this.elem.style.display="block";}if(this.options.hide)this.elem.style.display="none";if(this.options.hide||this.options.show)for(var p in this.options.curAnim)jQuery.attr(this.elem.style,p,this.options.orig[p]);}if(done&&jQuery.isFunction(this.options.complete))this.options.complete.apply(this.elem);return false;}else{var n=t-this.startTime;this.state=n/this.options.duration;this.pos=jQuery.easing[this.options.easing||(jQuery.easing.swing?"swing":"linear")](this.state,n,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update();}return true;}};jQuery.fx.step={scrollLeft:function(fx){fx.elem.scrollLeft=fx.now;},scrollTop:function(fx){fx.elem.scrollTop=fx.now;},opacity:function(fx){jQuery.attr(fx.elem.style,"opacity",fx.now);},_default:function(fx){fx.elem.style[fx.prop]=fx.now+fx.unit;}};jQuery.fn.offset=function(){var left=0,top=0,elem=this[0],results;if(elem)with(jQuery.browser){var parent=elem.parentNode,offsetChild=elem,offsetParent=elem.offsetParent,doc=elem.ownerDocument,safari2=safari&&parseInt(version)<522&&!/adobeair/i.test(userAgent),fixed=jQuery.css(elem,"position")=="fixed";if(elem.getBoundingClientRect){var box=elem.getBoundingClientRect();add(box.left+Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),box.top+Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));add(-doc.documentElement.clientLeft,-doc.documentElement.clientTop);}else{add(elem.offsetLeft,elem.offsetTop);while(offsetParent){add(offsetParent.offsetLeft,offsetParent.offsetTop);if(mozilla&&!/^t(able|d|h)$/i.test(offsetParent.tagName)||safari&&!safari2)border(offsetParent);if(!fixed&&jQuery.css(offsetParent,"position")=="fixed")fixed=true;offsetChild=/^body$/i.test(offsetParent.tagName)?offsetChild:offsetParent;offsetParent=offsetParent.offsetParent;}while(parent&&parent.tagName&&!/^body|html$/i.test(parent.tagName)){if(!/^inline|table.*$/i.test(jQuery.css(parent,"display")))add(-parent.scrollLeft,-parent.scrollTop);if(mozilla&&jQuery.css(parent,"overflow")!="visible")border(parent);parent=parent.parentNode;}if((safari2&&(fixed||jQuery.css(offsetChild,"position")=="absolute"))||(mozilla&&jQuery.css(offsetChild,"position")!="absolute"))add(-doc.body.offsetLeft,-doc.body.offsetTop);if(fixed)add(Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));}results={top:top,left:left};}function border(elem){add(jQuery.curCSS(elem,"borderLeftWidth",true),jQuery.curCSS(elem,"borderTopWidth",true));}function add(l,t){left+=parseInt(l)||0;top+=parseInt(t)||0;}return results;};})();

/**
 * Controll class for email, flash etc.
 */

NController=function(instanceName){this.instanceName=instanceName};NController.prototype.email=function(coded,linkname,makeLink,sameAddress){var cipher='ZabcXYdeWVfUTghSiRQjklPmONnMoLpqKJrIHstGuFvEwDxCyBz1A234568790';var shift=coded.length;var link='';var ltr=null;for(var i=0;i<coded.length;i++){if(cipher.indexOf(coded.charAt(i))==-1){ltr=coded.charAt(i);link+=(ltr)}else{ltr=(cipher.indexOf(coded.charAt(i))-shift+cipher.length)%cipher.length;link+=(cipher.charAt(ltr))}}if(sameAddress)linkname=link;if(makeLink!==false)document.write('<a class="email" href="mailto:'+link+'">'+linkname+'</a>');else document.write(linkname);return};NController.prototype.flashEmbed=function(flashPath,width,height,bgColor,quality,menu,border,transparent,flashVars,loop){var embedVar="";loop=loop==null?"true":loop;transparent=transparent==null?"transparent":transparent;border=border==null?"false":border;quality=quality==null?"high":quality;embedVar='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+width+'" height="'+height+'"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="'+flashPath+'" /><param name="flashvars" value="'+flashVars+'" /><param name="quality" value="'+quality+'" /><param name="menu" value="'+menu+'" /><param name="loop" value="'+loop+'" /><param name="bgcolor" value="'+bgColor+'" /><param name="wmode" value="'+transparent+'" /><embed src="'+flashPath+'" flashvars="'+flashVars+'" quality="'+quality+'" menu="'+menu+'" loop="'+loop+'" bgcolor="'+bgColor+'" width="'+width+'" height="'+height+'" wmode="'+transparent+'" name="'+flashPath+'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>';document.write(embedVar)};NController.prototype.getOffset=function(what,id){var el=document.getElementById(id);var offset=0;do{switch(what){case"left":offset+=el.offsetLeft;break;case"top":offset+=el.offsetTop;break}el=el.offsetParent}while(el);return offset};NController.prototype.getLeft=function(id){return this.getOffset('left',id)};NController.prototype.getTop=function(id){return this.getOffset('top',id)};NController.prototype.getScrollLeft=function(){return document.documentElement.scrollLeft||window.pageXOffset||0};NController.prototype.getScrollTop=function(){if(document.documentElement.scrollTop)return document.documentElement.scrollTop;else if(window.pageYOffset)return window.pageYOffset;else return 0};NController.prototype.windowWidth=function(){return window.innerWidth||document.documentElement.clientWidth||0};NController.prototype.windowHeight=function(){return window.innerHeight||document.documentElement.clientHeight||0};NController.prototype.windowScrollWidth=function(){return document.documentElement.scrollWidth};NController.prototype.windowScrollHeight=function(){return document.documentElement.scrollHeight};var controller=new NController("controller");

/**
 * This is Nux s.r.o. standard library - should be loaded in <head> section
 *
 * @author Jan Škvařil <jan.skvaril@nux.cz>
 * @copyright Nux s.r.o. (www.nux.cz)
 */

/**
 * Makes email address and the login form
 */
NLoad = function(emailClass, loginId)
{
	this.emailClass = emailClass;
	this.loginId = loginId;

	this.loadEmails();
	this.focusLogin();

	return;
};

NLoad.load = function(emailClass, loginId)
{
    var loader = function()
	{
		new NLoad(emailClass, loginId);
	}

	return $(window).ready(loader);
};

NLoad.prototype.loadEmails = function()
{
	var spans = document.getElementsByTagName("span");

	for (var i = 0; i < spans.length; i++)
	    if (spans[i].className.toLowerCase() == this.emailClass)
	        spans[i].style.display = "none";

	return;
};

NLoad.prototype.focusLogin = function()
{
	var login = document.getElementById(this.loginId);

	if (login)
	    login.focus();

	return;
};

function openWindow(location)
{
	window.open(location);

	return false;
};

/**
 * Resizer for the textareas
 */
NAreaResizer = function(element, horizontalClassName, verticalClassName, updateMargin)
{
	this.element = element;
	this.horizontalClassName = horizontalClassName;
	this.verticalClassName = verticalClassName;
	this.updateMargin = updateMargin;
	this.horizontalResizer = document.createElement("div");
	this.verticalResizer = document.createElement("div");
	this.instanceId = this.instances.length;
	this.instances[this.instanceId] = this;
	this.instanceText = "NAreaResizer.prototype.instances[" + this.instanceId + "]";
	this.upMethod = new Function(this.instanceText + ".up()");

	eval("this.downMethod = function(eventHandler){NAreaResizer.prototype.instances[" + this.instanceId + "].down(eventHandler);}");
	eval("this.moveMethod = function(eventHandler){NAreaResizer.prototype.instances[" + this.instanceId + "].move(eventHandler);}");

	this.minWidth = 50;
	this.maxWidth = 800;
	this.minHeight = 50;
	this.maxHeight = 450;

    this.prevMouseX = 0;
    this.prevMouseY = 0;

	this.run();
};

NAreaResizer.prototype.instances = new Array();
NAreaResizer.load = function(horizontalClassName, verticalClassName, areaOptions, updateMargin)
{
	var loader = function()
	{
        var textareas = jQuery("textarea");
        var resizer = null;

		for (var i = 0; i < textareas.length; i++)
		{
			resizer = new NAreaResizer(textareas[i], horizontalClassName, verticalClassName, updateMargin);

			if (typeof areaOptions == "object")
			{
				if (areaOptions.minWidth)
					resizer.minWidth = areaOptions.minWidth;

				if (areaOptions.maxWidth)
					resizer.maxWidth = areaOptions.maxWidth;

				if (areaOptions.minHeight)
					resizer.minHeight = areaOptions.minHeight;

				if (areaOptions.maxHeight)
					resizer.maxHeight = areaOptions.maxHeight;
            }
		}

		return;
	}

    return $(window).ready(loader);
};

NAreaResizer.prototype.run = function()
{
	$(this.horizontalResizer).attr("class", this.horizontalClassName);
	$(this.horizontalResizer).bind("mousedown", {className: this.horizontalClassName}, this.downMethod);
	$(this.verticalResizer).attr("class", this.verticalClassName);
	$(this.verticalResizer).bind("mousedown", {className: this.verticalClassName}, this.downMethod);

	if (!$(this.horizontalResizer).css("height") || $(this.horizontalResizer).css("height") == "auto")
    	$(this.horizontalResizer).css("height", this.element.offsetHeight + "px");

    if (!$(this.verticalResizer).css("width") || $(this.verticalResizer).css("width") == "auto")
    	$(this.verticalResizer).css("width", this.element.offsetWidth + "px");

    $(this.element).css("width", (this.element.offsetWidth - 6) + "px");
    $(this.element).css("height", this.element.offsetHeight + "px");

	if (this.updateMargin)
    	$(this.horizontalResizer).css("margin-left", this.element.offsetWidth + "px");

	if (this.horizontalClassName)
		$(this.element.parentNode).append(this.horizontalResizer);

	if (this.verticalClassName)
		$(this.element.parentNode).append(this.verticalResizer);

	return;
};

NAreaResizer.prototype.down = function(eventHandler)
{
	$(document).bind("mousemove", {className: eventHandler.data.className}, this.moveMethod);
	$(document).mouseup(this.upMethod);

    return;
};

NAreaResizer.prototype.up = function()
{
    $(document).unbind("mousemove", this.moveMethod);
    $(document).unbind("mouseup", this.upMethod);

    this.prevMouseX = 0;
    this.prevMouseY = 0;

    return;
};

NAreaResizer.prototype.move = function(eventHandler)
{
	var mouseX = eventHandler.clientX;
	var mouseY = eventHandler.clientY;

	if (!this.prevMouseX)
	    this.prevMouseX = mouseX;

	if (!this.prevMouseY)
	    this.prevMouseY = mouseY;

	var newMouseX = this.prevMouseX - mouseX;
	var newMouseY = this.prevMouseY - mouseY;

	var actualWidth = window.parseInt($(this.element).css("width")) - newMouseX;
	var actualHeight = window.parseInt($(this.element).css("height")) - newMouseY;

	var verticalResizerWidth = window.parseInt($(this.verticalResizer).css("width")) - newMouseX;
	var horizontalResizerHeight = window.parseInt($(this.horizontalResizer).css("height")) - newMouseY;
	var horizontalResizerMargin = window.parseInt($(this.horizontalResizer).css("margin-left")) - newMouseX;

    this.prevMouseX = mouseX;
    this.prevMouseY = mouseY;

	if (eventHandler.data.className == this.horizontalClassName)
	{
	    if (actualWidth > this.minWidth && actualWidth < this.maxWidth)
	    {
			$(this.element).css("width", actualWidth + "px");

			if (this.verticalClassName)
				$(this.verticalResizer).css("width", (verticalResizerWidth) + "px");

			if (this.updateMargin)
			    $(this.horizontalResizer).css("margin-left", horizontalResizerMargin + "px");
        }
    }
	else
	{
	    if (actualHeight > this.minHeight && actualHeight < this.maxHeight)
	    {
			$(this.element).css("height", actualHeight + "px");

			if (this.horizontalClassName)
				$(this.horizontalResizer).css("height", horizontalResizerHeight + "px");
		}
	}

	return;
};

var loader = new NLoad();
NLoad.load("nojsemail", "username");
NAreaResizer.load("", "vertical-resizer", {minWidth: 50, maxWidth: 768, minHeight: 50, maxHeight: 600}, true);

function Floatbox(){this.defaultOptions={theme:'white',padding:12,panelPadding:8,outerBorder:4,innerBorder:1,overlayOpacity:55,controlOpacity:60,autoSizeImages:true,autoSizeOther:false,resizeImages:true,resizeOther:false,resizeTool:'topleft',infoCorner:'bl',controlCorner:'tr',positionLeft:false,positionTop:false,enableDrag:false,dropShadow:true,showCaption:true,showItemNumber:true,showClose:true,hideFlash:true,hideJava:true,disableScroll:false,preloadAll:true,enableCookies:false,cookieScope:'site',language:'auto',graphicsType:'auto',urlGraphics:'http://www.techsoft-eng.cz/lib/content/images/thickbox-graphics/',urlLanguages:'http://www.techsoft-eng.cz/lib/content/javascripts/languages/',navType:'both',navOverlayWidth:35,navOverlayPos:30,showNavOverlay:'always',showHints:'always',enableWrap:true,enableKeyboardNav:true,outsideClickCloses:true,showIndexLinks:true,showIndexThumbs:true,maxIndexCount:17,indexLinksPanel:'info',doAnimations:false,resizeDuration:3.5,imageFadeDuration:3.5,overlayFadeDuration:4,splitResize:'no',startAtClick:true,zoomImageStart:true,liveImageResize:false,slideInterval:4.5,endTask:'exit',showPlayPause:true,startPaused:false,pauseOnResize:true,pauseOnPrev:true,pauseOnNext:false};this.childOptions={overlayOpacity:45,resizeDuration:3,imageFadeDuration:3,overlayFadeDuration:0};this.init()}Floatbox.prototype={init:function(){this.win=top;this.doc=this.win.document;this.bod=this.doc.body;this.html=this.doc.documentElement;this.items=[];this.nodeNames=[];this.hiddenEls=[];this.timeouts={};this.pos={};this.setOptions(this.defaultOptions);if(typeof fbPageOptions==='object')this.setOptions(fbPageOptions);this.setOptions(this.parseOptionString(this.win.location.search.substring(1)));this.panelGap=22;this.infoLinkGap=16;this.showHintsTime=1600;this.zoomPopBorder=1;this.controlSpacing=8;this.minIndexWidth=120;this.ctrlJump=5;this.slowLoadDelay=750;this.loaderDelay=200;this.shadowSize=8;this.initialSize=100;this.slowZoomImg=this.urlGraphics+'loading_white.gif';this.slowLoadImg=this.urlGraphics+'loading_black.gif';this.iframeSrc=this.urlGraphics+'loading_iframe.html';this.resizeUpCursor=this.urlGraphics+'magnify_plus.cur';this.resizeDownCursor=this.urlGraphics+'magnify_minus.cur';this.notFoundImg=this.urlGraphics+'404.jpg';this.defaultWidth='85%';this.defaultHeight='82%';this.minInfoWidth=80;if(!(this.isChild=!!(this.win.floatbox&&this.win.floatbox.fbBox))){this.fbParent=this.lastChild=this;this.anchors=[];this.children=[];this.content={};this.preloads={};this.preloads.count=0;this.xhr=this.getXMLHttpRequest();this.strings={hintClose:'Konec (klávesa: Esc)',hintPrev:'Předcházející (klávesa: <--)',hintNext:'Další (klávesa: -->)',hintPlay:'Přehrát (klávesa: mezerník)',hintPause:'Pause (klávesa: mezerník)',hintResize:'Změna velikosti (klávesa: Tab)',imgCount:'Obrázek %1 z %2',nonImgCount:'Strana %1 z %2',mixedCount:'(%1 z %2)',infoText:'Informace...',printText:'Vytisknout...'}}else{this.anchors=fb.anchors;this.children=fb.children;this.content=fb.content;this.xhr=fb.xhr;this.strings=fb.strings;this.fbParent=fb.lastChild;if(this.fbParent.isSlideshow)this.fbParent.setPause(true);fb.lastChild=this;this.children.push(this)}this.mac=navigator.appVersion.indexOf('Macintosh')!==-1;if(window.opera){this.opera=true;this.operaOld=!document.getElementsByClassName;this.operaMac=this.mac}else if(document.all){this.ie=true;this.ieOld=parseInt(navigator.appVersion.substr(navigator.appVersion.indexOf('MSIE')+5),10)<7;this.ie8b2=window.postMessage&&navigator.appMinorVersion==='beta 2';this.ieXP=parseInt(navigator.appVersion.substr(navigator.appVersion.indexOf('Windows NT')+11),10)<6}else if(navigator.userAgent.indexOf('Firefox')!==-1){this.ff=true;this.ffOld=!document.getElementsByClassName;this.ffNew=!this.ffOld;this.ffMac=this.mac}else if(navigator.appVersion.indexOf('WebKit')!==-1){this.webkit=true;this.webkitNew=parseInt(navigator.appVersion.substr(navigator.appVersion.indexOf('WebKit')+7),10)>=500;this.webkitOld=!this.webkitNew;this.webkitMac=this.mac}this.browserLanguage=(navigator.language||navigator.userLanguage||navigator.systemLanguage||navigator.browserLanguage||'en').substring(0,2);if(!this.isChild){var lang=this.language==='auto'?this.browserLanguage:this.language;if(this.xhr){var that=this;this.xhr.getResponse(this.urlLanguages+lang+'.json.js',function(xhr){if((xhr.status===200||xhr.status===203||xhr.status===304)&&xhr.responseText){var text=xhr.responseText;if(that.ieXP){text=text.replace(String.fromCharCode(8592),'<--').replace(String.fromCharCode(8594),'-->')}try{var obj=eval('('+text+')');if(obj&&obj.hintClose)that.strings=obj}catch(e){}}})}}if(this.graphicsType.toLowerCase()==='english'||(this.graphicsType==='auto'&&this.browserLanguage==='en')){this.offPos='top left';this.onPos='bottom left'}else{this.offPos='top right';this.onPos='bottom right';this.controlSpacing=0}this.zIndex={base:90000+10*this.children.length,fbOverlay:1,fbBox:2,fbCanvas:3,fbMainDiv:4,fbLeftNav:5,fbRightNav:5,fbOverlayPrev:6,fbOverlayNext:6,fbResizer:7,fbZoomDiv:8,fbInfoPanel:8,fbControlPanel:8};var match=/\bautoStart=(.+?)(?:&|$)/i.exec(this.win.location.search);this.autoHref=match?match[1]:false},tagAnchors:function(baseEl){var that=this,doOutline=this.ieOld&&/^fb/.test(baseEl.id);function tag(tagName){var elements=baseEl.getElementsByTagName(tagName);for(var i=0,len=elements.length;i<len;i++){var el=elements[i];var elClass=el.getAttribute('class');elClass=elClass?elClass:el.getAttribute('className');if(elClass){for(var att in elClass){if(that.autoGallery&&that.fileType(el.href)==='img'&&att!=='nofloatbox'){el.setAttribute('className','floatbox.autoGallery');if(that.autoTitle&&!el.getAttribute('title'))el.setAttribute('title',that.autoTitle)}}}if(doOutline)el.setAttribute('hideFocus','true');that.tagOneAnchor(el)}}tag('a');tag('area')},tagOneAnchor:function(anchor){var that=this,isAnchor=!!anchor.getAttribute;if(isAnchor){var elClass=anchor.getAttribute('class');elClass=elClass?elClass:anchor.getAttribute('className');var relation=null;if(elClass){var classes=elClass.split(' ');for(var att in classes){if(/^(thickbox|gallery|iframe|slideshow|lytebox|lyteshow|lyteframe|lightbox)/i.test(classes[att])){relation=classes[att];break}}}var a={href:anchor.href||anchor.getAttribute('href'),rel:relation,rev:anchor.getAttribute('rev'),title:anchor.getAttribute('title'),anchor:anchor,thumb:this.getThumb(anchor)};var match;if(a.thumb&&(match=/(?:^|\s)fbPop(up|down)(?:\s|$)/i.exec(anchor.className))){a.popup=true;var up=(match[1]==='up');a.thumb.style.borderWidth=this.zoomPopBorder+'px';anchor.onmouseover=function(){a.thumb.style.display='none';var aPos=that.getLeftTop(this,true),aLeft=aPos.left,aTop=aPos.top;aPos=that.getLayout(this);a.thumb.style.display='';var relLeft=(aPos.width-a.thumb.offsetWidth)/2,relTop=up?2-a.thumb.offsetHeight:aPos.height,scroll=that.getScroll(),screenRight=scroll.left+that.getDisplayWidth();var spill=aPos.left+relLeft+a.thumb.offsetWidth-screenRight;if(spill>0)relLeft-=spill;var spill=aPos.left+relLeft-scroll.left;if(spill<0)relLeft-=spill;if(up){if(aPos.top+relTop<scroll.top)relTop=aPos.height}else{if(aPos.top+relTop+a.thumb.offsetHeight>scroll.top+that.getDisplayHeight())relTop=2-a.thumb.offsetHeight}a.thumb.style.left=(aLeft+relLeft)+'px';a.thumb.style.top=(aTop+relTop)+'px'};anchor.onmouseout=function(){a.thumb.style.left='-9999px';a.thumb.style.top='0'}}}else{var a=anchor}if(/^(thickbox|gallery|iframe|slideshow|lytebox|lyteshow|lyteframe|lightbox)/i.test(a.rel)){if(isAnchor){anchor.onclick=function(){fb.start(this);return false}}a.revOptions=this.parseOptionString(a.rev);a.level=this.children.length+(fb.lastChild.fbBox&&!a.revOptions.sameBox?1:0);var a_i,i=this.anchors.length;while(i--){a_i=this.anchors[i];if(a_i.href===a.href&&a_i.rel===a.rel&&a_i.rev===a.rev&&a_i.title===a.title&&a_i.level===a.level){a_i.anchor=anchor;break}}if(i===-1){var match=/\btype\s*[:=]\s*(\w+?)\b/i.exec(a.rev),revType=match?match[1].toLowerCase():'';a.type=revType||this.fileType(a.href);if(a.type==='flash'||a.type==='quicktime'){this.content[a.href]=this.objectHTML(a.href,a.type)}else if(a.type==='html'){var match=/#(\w+)/.exec(a.href);if(match){var doc=this.doc;if(a.anchor){doc=a.anchor.ownerDocument||a.anchor.document||doc}if(doc===this.doc&&this.currentItem&&this.currentItem.anchor){doc=this.currentItem.anchor.ownerDocument||this.currentItem.anchor.document||doc}var el=doc.getElementById(match[1]);if(el){a.type='inline';this.content[a.href]=el.cloneNode(true)}else{a.type='iframe'}}else{a.type='iframe'}}this.anchors.push(a);if(this.autoHref){if(a.revOptions.showThis!==false&&this.autoHref===a.href.substr(a.href.length-this.autoHref.length))this.autoStart=a}else{if(a.revOptions.autoStart)this.autoStart=a}}}return a},fileType:function(href){var s=href.toLowerCase(),i=s.indexOf('?');if(i!==-1)s=s.substr(0,i);s=s.substr(s.lastIndexOf('.')+1);if(/^(jpg|jpeg|png|gif|bmp)$/.test(s))return'img';if(s==='swf'||/^(http:)?\/\/(www.)?youtube.com\/v\//i.test(href))return'flash';if(/^(mov|mpg|mpeg|movie)$/.test(s))return'quicktime';return'html'},objectHTML:function(href,type){if(type==='flash'){var classid='classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"',mime='type="application/x-shockwave-flash"',pluginurl='http://get.adobe.com/flashplayer/',match=/\bwmode=(\w+?)\b/i.exec(href),wmode=match?match[1]:'window',match=/\bbgcolor=(#\w+?)\b/i.exec(href),bgcolor=match?match[1]:'',match=/\bscale=(\w+?)\b/i.exec(href),scale=match?match[1]:'exactfit',params={wmode:wmode,bgcolor:bgcolor,scale:scale,quality:'high',flashvars:'autoplay=1&amp;ap=true&amp;border=0&amp;rel=0'};if(this.ffOld)params.wmode=this.ffMac?'window':'opaque';if(this.ffNew&&href.indexOf('YV_YEP.swf')!==-1)params.wmode='window'}else{var classid='classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"',mime='type="video/quicktime"',pluginurl='http://www.apple.com/quicktime/download/',params={autoplay:'true',controller:'true',showlogo:'false',scale:'tofit'}}var html='<object id="fbObject" name="fbObject" width="%width%" height="%height%" ';if(this.ie){html+=classid+'>';params[type==='flash'?'movie':'src']=this.encodeHTML(href)}else{html+=mime+' data="'+this.encodeHTML(href)+'">'}for(var name in params){if(params.hasOwnProperty(name)){html+='<param name="'+name+'" value="'+params[name]+'" />'}}if(type==='quicktime'&&this.webkitMac){html+='<embed src="'+this.encodeHTML(href)+'" width="%width%" height="%height%" autoplay="true" controller="true" showlogo="false" scale="tofit" pluginspage="'+pluginurl+'"></embed></object>'}else{html+='<p style="color:#000; background:#fff; margin:1em; padding:1em;">'+(type==='flash'?'Flash':'QuickTime')+' player is required to view this content.'+'<br /><a href="'+pluginurl+'">download player</a></p></object>'}return html},preloadImages:function(href,chain){if(this!==fb)return fb.preloadImages(href,chain);var that=this;if(typeof chain!=='undefined')arguments.callee.chain=chain;if(!href&&arguments.callee.chain&&(this.preloadAll||!this.preloads.count)){for(var i=0,len=this.anchors.length;i<len;i++){var a=this.anchors[i];if(a.type==='img'&&!this.preloads[a.href]){href=a.href;break}}}if(href){if(this.preloads[href]){this.preloadImages()}else{var img=this.preloads[href]=new Image();img.onerror=function(){setTimeout(function(){that.preloadImages()},50);that.preloads[href]=true};img.onload=function(){that.preloads.count++;this.onerror()};img.src=href}}},start:function(anchor){if(this!==fb.lastChild)return fb.lastChild.start(anchor);var that=this;this.preloadImages('',false);if(anchor.getAttribute){var relation=null;var elClass=anchor.getAttribute('class');elClass=elClass?elClass:anchor.getAttribute('className');if(elClass){var classes=elClass.split(' ');for(var att in classes){if(/^(thickbox|gallery|iframe|slideshow|lytebox|lyteshow|lyteframe|lightbox)/i.test(classes[att])){relation=classes[att];break}}}var a={href:anchor.href||anchor.getAttribute('href'),rel:relation,rev:anchor.getAttribute('rev'),title:anchor.getAttribute('title')};a.revOptions=this.parseOptionString(a.rev);anchor.blur()}else{var a=anchor}this.isRestart=!!this.fbBox;if(this.isRestart){if(!a.revOptions.sameBox)return new Floatbox().start(anchor);this.setOptions(a.revOptions)}else{this.clickedAnchor=anchor.getAttribute?anchor:false}a.level=this.children.length+(fb.lastChild.fbBox&&!a.revOptions.sameBox?1:0);this.itemsShown=0;fb.previousAnchor=this.currentItem;this.buildItemArray(a);if(!this.itemCount)return;if(this.itemCount===1&&this.fbNavControls)this.fbNavControls.style.display='none';this.win.focus();this.revOptions=a.revOptions;if(!this.isRestart){this.getOptions();this.buildDOM();this.addEventHandlers();this.initState()}this.collapse();this.updatePanels();var fetchAndGo=function(){that.fetchContent(function(){that.clearTimeout('slowLoad');that.calcSize()})};if(this.fbBox.style.visibility||this.isRestart){fetchAndGo()}else{var offset=this.initialSize/2,size={id:'fbBox',left:that.pos.fbBox.left-offset,top:that.pos.fbBox.top-offset,width:that.initialSize,height:that.initialSize,borderWidth:that.outerBorder};if(this.splitResize){var oncomplete=function(){that.setSize(fetchAndGo,size)}}else{this.timeouts.slowLoad=setTimeout(function(){that.setSize(size)},this.slowLoadDelay);var oncomplete=fetchAndGo}this.fadeOpacity(this.fbOverlay,this.overlayOpacity,this.overlayFadeDuration,oncomplete)}},buildItemArray:function(a){this.itemCount=this.items.length=this.currentIndex=0;this.justImages=true;var isSingle=/^(thickbox|gallery|iframe|lytebox|lyteframe|lightbox)$/i.test(a.rel);for(var i=0,len=this.anchors.length;i<len;i++){var a_i=this.anchors[i];if(a_i.rel===a.rel&&a_i.level===a.level){if(a_i.revOptions.showThis!==false){var isMatch=a_i.rev===a.rev&&a_i.title===a.title&&a_i.href===a.href.substr(a.href.length-a_i.href.length);if(isMatch||!isSingle){a_i.seen=false;this.items.push(a_i);if(a_i.type!=='img')this.justImages=false;if(isMatch)this.currentIndex=this.items.length-1}}}}if(a.revOptions.showThis===false&&a.href){i=this.items.length;while(i--){var href=this.items[i].href;if(href===a.href.substr(a.href.length-href.length)){this.currentIndex=i}}}this.itemCount=this.items.length;this.currentItem=this.items[this.currentIndex]},getOptions:function(){if(this.isChild){for(var name in this.defaultOptions){if(this.defaultOptions.hasOwnProperty(name))this[name]=this.fbParent[name]}this.setOptions(this.childOptions)}else{this.setOptions(this.defaultOptions)}this.doSlideshow=this.loadPageOnClose=this.sameBox=false;if(!(this.isChild||this.fbBox)){if(typeof this.win.setFloatboxOptions==='function')this.win.setFloatboxOptions();if(typeof fbPageOptions==='object')this.setOptions(fbPageOptions);if(this.enableCookies){var match=/fbOptions=(.+?)(;|$)/.exec(this.doc.cookie);if(match)this.setOptions(this.parseOptionString(match[1]));var strOptions='';for(var name in this.defaultOptions){if(this.defaultOptions.hasOwnProperty(name)){strOptions+=' '+name+':'+this[name]}}var strPath='/';if(this.cookieScope==='folder'){strPath=this.win.location.pathname;strPath=strPath.substring(0,strPath.lastIndexOf('/')+1)}this.doc.cookie='fbOptions='+strOptions+'; path='+strPath}}this.setOptions(this.revOptions);this.setOptions(this.parseOptionString(this.win.location.search.substring(1)));if(this.theme==='grey')this.theme='white';if(this.endTask==='cont')this.endTask='loop';if(this.navType==='upper')this.navType='overlay';if(this.navType==='lower')this.navType='button';if(this.upperOpacity)this.controlOpacity=this.upperOpacity;if(this.upperNavWidth)this.navOverlayWidth=this.upperNavWidth;if(this.upperNavPos)this.navOverlayPos=this.upperNavPos;if(this.showUpperNav)this.showNavOverlay=this.showUpperNav;if(!/^(auto|black|white|blue|yellow|red|custom)$/.test(this.theme))this.theme='auto';if(!/^(overlay|button|both|none)$/i.test(this.navType))this.navType='button';if(!/^(auto|wh|hw)$/.test(this.splitResize))this.splitResize=false;if(this.webkitOld&&(this.navType==='overlay'||this.navType==='both')){this.navType='button'}if(this.itemCount>1){this.isSlideshow=this.doSlideshow||/^(slideshow|lyteshow)/i.test(this.currentItem.rel);var overlayRequest=/overlay|both/i.test(this.navType),buttonRequest=/button|both/i.test(this.navType);this.navOverlay=this.justImages&&overlayRequest;this.navButton=buttonRequest||(!this.justImages&&overlayRequest)}else{this.isSlideshow=this.navOverlay=this.navButton=this.showItemNumber=this.showIndexLinks=false}this.isPaused=this.startPaused;if((this.lclTheme=this.theme)==='auto'){this.lclTheme=this.currentItem.type==='img'?'black':/flash|quicktime/.test(this.currentItem.type)?'blue':'white'}if(!this.doAnimations){this.resizeDuration=this.imageFadeDuration=this.overlayFadeDuration=0}if(!this.resizeDuration)this.zoomImageStart=false;this.infoTop=this.infoCorner.charAt(0)==='t';this.infoLeft=this.infoCorner.charAt(1)!=='r';this.controlTop=this.controlCorner.charAt(0)==='t';this.controlLeft=this.controlCorner.charAt(1)==='l';if(this.infoLeft===this.controlLeft&&this.infoTop===this.controlTop){this.infoLeft=true;this.controlLeft=false}if(this.indexLinksPanel==='info'){this.indexLeft=this.infoLeft;this.indexTop=this.infoTop}else{this.indexLeft=this.controlLeft;this.indexTop=this.controlTop}if(this.opera||(this.mac&&!this.webkitNew)){this.resizeTool='topleft'}else{this.resizeTool=this.resizeTool.toLowerCase();if(!/topleft|cursor|both/.test(this.resizeTool))this.resizeTool='cursor'}if(this.ieOld)this.dropShadow=false;this.overlayOpacity/=100;this.controlOpacity/=100},parseOptionString:function(str){if(!str)return{};var quotes=[],match,rex=/`([^`]*?)`/g;while((match=rex.exec(str)))quotes.push(match[1]);if(quotes.length)str=str.replace(rex,'``');str=str.replace(/\s*[:=]\s*/g,':');str=str.replace(/\s*[;&]\s*/g,' ');str=str.replace(/^\s+|\s+$/g,'');var pairs={},aVars=str.split(' '),i=aVars.length;while(i--){var aThisVar=aVars[i].split(':'),name=aThisVar[0],value=aThisVar[1];if(typeof value==='string'){if(!isNaN(value))value=+value;else if(value==='true')value=true;else if(value==='false')value=false}if(value==='``')value=quotes.pop()||'';pairs[name]=value}return pairs},setOptions:function(pairs){for(var name in pairs){if(pairs.hasOwnProperty(name))this[name]=pairs[name]}},buildDOM:function(){this.fbOverlay=this.newNode('div','fbOverlay',this.bod);this.fbZoomDiv=this.newNode('div','fbZoomDiv',this.bod);this.fbZoomImg=this.newNode('img','fbZoomImg',this.fbZoomDiv);this.fbBox=this.newNode('div','fbBox');this.fbShadowRight=this.newNode('div','fbShadowRight',this.fbBox);this.fbShadowBottom=this.newNode('div','fbShadowBottom',this.fbBox);this.fbShadowCorner=this.newNode('div','fbShadowCorner',this.fbBox);this.fbLoader=this.newNode('div','fbLoader',this.fbBox);this.fbCanvas=this.newNode('div','fbCanvas',this.fbBox);this.fbMainDiv=this.newNode('div','fbMainDiv',this.fbCanvas);this.fbLeftNav=this.newNode('a','fbLeftNav',this.fbMainDiv);this.fbRightNav=this.newNode('a','fbRightNav',this.fbMainDiv);this.fbOverlayPrev=this.newNode('a','fbOverlayPrev',this.fbMainDiv,this.strings.hintPrev);this.fbOverlayNext=this.newNode('a','fbOverlayNext',this.fbMainDiv,this.strings.hintNext);this.fbInfoPanel=this.newNode('div','fbInfoPanel',this.fbCanvas);this.fbCaptionDiv=this.newNode('div','fbCaptionDiv',this.fbInfoPanel);this.fbCaption=this.newNode('span','fbCaption',this.fbCaptionDiv);this.fbInfoLink=this.newNode('span','fbInfoLink',this.fbInfoPanel);this.fbPrintLink=this.newNode('span','fbPrintLink',this.fbInfoPanel);this.fbItemNumber=this.newNode('span','fbItemNumber',this.fbInfoPanel);this.fbControlPanel=this.newNode('div','fbControlPanel',this.fbCanvas);this.fbClose=this.newNode('a','fbClose',this.fbControlPanel,this.strings.hintClose);this.fbResizer=this.newNode('a','fbResizer',this.fbControlPanel,this.strings.hintResize);this.fbControls=this.newNode('div','fbControls',this.fbControlPanel);this.fbNavControls=this.newNode('div','fbNavControls',this.fbControls);this.fbPrev=this.newNode('a','fbPrev',this.fbNavControls,this.strings.hintPrev);this.fbNext=this.newNode('a','fbNext',this.fbNavControls,this.strings.hintNext);this.fbSubControls=this.newNode('div','fbSubControls',this.fbControls);this.fbPlayPause=this.newNode('div','fbPlayPause',this.fbSubControls);this.fbPlay=this.newNode('a','fbPlay',this.fbPlayPause,this.strings.hintPlay);this.fbPause=this.newNode('a','fbPause',this.fbPlayPause,this.strings.hintPause);this.fbIndexLinks=this.newNode('span','fbIndexLinks',this.indexLinksPanel==='info'?this.fbInfoPanel:this.fbControlPanel);this.bod.appendChild(this.fbBox)},newNode:function(nodeType,id,parentNode,title){if(this[id]&&this[id].parentNode){this[id].parentNode.removeChild(this[id])}var node=this.doc.createElement(nodeType);node.id=id;node.className=id+'_'+this.lclTheme;if(nodeType==='a'){if(!this.operaOld)node.setAttribute('href','');if(this.ieOld)node.setAttribute('hideFocus','true');node.style.outline='none'}else if(nodeType==='iframe'){node.setAttribute('scrolling',this.itemScroll);node.setAttribute('frameBorder','0');node.setAttribute('align','middle');node.src=this.iframeSrc}if(this.isChild)title=this.fbParent[id].getAttribute('title');if(title&&this.showHints!=='never')node.setAttribute('title',title);if(this.zIndex[id])node.style.zIndex=this.zIndex.base+this.zIndex[id];node.style.display='none';if(parentNode)parentNode.appendChild(node);this.nodeNames.push(id);return node},addEventHandlers:function(){var that=this,leftNav=this.fbLeftNav.style,rightNav=this.fbRightNav.style,overlayPrev=this.fbOverlayPrev.style,overlayNext=this.fbOverlayNext.style,prev=this.fbPrev.style,next=this.fbNext.style;if(this.showHints==='once'){this.hideHint=function(id){if(that[id].title){that.timeouts[id]=setTimeout(function(){that[id].title=that.fbParent[id].title='';var id2='';if(/fbOverlay(Prev|Next)/.test(id)){id2=id.replace('Overlay','')}else if(/fb(Prev|Next)/.test(id)){id2=id.replace('fb','fbOverlay')}if(id2)that[id2].title=that.fbParent[id2].title=''},that.showHintsTime)}}}else{this.hideHint=function(){}}this.fbPlay.onclick=function(){that.setPause(false);return false};this.fbPause.onclick=function(){that.setPause(true);return false};this.fbClose.onclick=function(){that.end();return false};if(this.outsideClickCloses){this.fbOverlay.onclick=function(){that.end();return false}}this.fbPrev.onclick=function(step){if(typeof step!=='number')step=1;var newIndex=(that.currentIndex-step)%that.itemCount;if(newIndex<0)newIndex+=that.itemCount;if(that.enableWrap||newIndex<that.currentIndex){that.newContent(newIndex);if(that.isSlideshow&&that.pauseOnPrev&&!that.isPaused){that.setPause(true)}}return false};this.fbNext.onclick=function(step){if(typeof step!=='number')step=1;var newIndex=(that.currentIndex+step)%that.itemCount;if(that.enableWrap||newIndex>that.currentIndex){that.newContent(newIndex);if(that.isSlideshow&&that.pauseOnNext&&!that.isPaused){that.setPause(true)}}return false};this.fbLeftNav.onclick=this.fbOverlayPrev.onclick=this.fbPrev.onclick;this.fbRightNav.onclick=this.fbOverlayNext.onclick=this.fbNext.onclick;this.fbLeftNav.onmouseover=this.fbLeftNav.onmousemove=this.fbOverlayPrev.onmousemove=function(){if(!that.timeouts.fbCanvas)overlayPrev.visibility='';if(that.navButton)prev.backgroundPosition=that.onPos;return true};this.fbRightNav.onmouseover=this.fbRightNav.onmousemove=this.fbOverlayNext.onmousemove=function(){if(!that.timeouts.fbCanvas)overlayNext.visibility='';if(that.navButton)next.backgroundPosition=that.onPos;return true};this.fbOverlayPrev.onmouseover=this.fbOverlayNext.onmouseover=function(){this.onmousemove();that.hideHint(this.id);return true};this.fbLeftNav.onmouseout=function(){overlayPrev.visibility='hidden';if(that.navButton)prev.backgroundPosition=that.offPos};this.fbRightNav.onmouseout=function(){overlayNext.visibility='hidden';if(that.navButton)next.backgroundPosition=that.offPos};this.fbOverlayPrev.onmouseout=this.fbOverlayNext.onmouseout=function(){this.style.visibility='hidden';that.clearTimeout(this.id)};this.fbLeftNav.onmousedown=this.fbRightNav.onmousedown=function(e){e=e||that.win.event;if(e.button===2){leftNav.visibility=rightNav.visibility='hidden';that.timeouts.hideNavOverlay=setTimeout(function(){leftNav.visibility=rightNav.visibility=''},600)}};this.fbPlay.onmouseover=this.fbPause.onmouseover=this.fbClose.onmouseover=this.fbPrev.onmouseover=this.fbNext.onmouseover=function(){this.style.backgroundPosition=that.onPos;that.hideHint(this.id);return true};this.fbResizer.onmouseover=function(){that.hideHint(this.id);return true};this.fbPlay.onmouseout=this.fbPause.onmouseout=this.fbClose.onmouseout=this.fbPrev.onmouseout=this.fbNext.onmouseout=function(){this.style.backgroundPosition=that.offPos;that.clearTimeout(this.id)};this.fbResizer.onmouseout=function(){that.clearTimeout(this.id)};if(this.enableKeyboardNav){if(!this.keydownSet){this.priorOnkeydown=this.doc.onkeydown;this.doc.onkeydown=this.keyboardAction();this.keydownSet=true}}else if(this.keydownSet){this.doc.onkeydown=this.priorOnkeydown;this.keydownSet=false}if(this.opera&&!this.keypressSet){this.priorOnkeypress=this.doc.onkeypress;this.doc.onkeypress=function(){return false};this.keypressSet=true}if(this.enableDrag)this.fbBox.onmousedown=this.dragonDrop()},keyboardAction:function(){var that=this;return function(e){e=e||that.win.event;var keyCode=e.keyCode||e.which;switch(keyCode){case 37:case 39:if(that.itemCount>1){that[keyCode===37?'fbPrev':'fbNext'].onclick((e.ctrlKey||e.metaKey)?that.ctrlJump:1);if(that.showHints==='once'){that.fbPrev.title=that.fbNext.title=that.fbOverlayPrev.title=that.fbOverlayNext.title=''}}return false;case 32:if(that.isSlideshow){that.setPause(!that.isPaused);if(that.showHints==='once')that.fbPlay.title=that.fbPause.title=''}return false;case 9:if(that.fbResizer.onclick){that.fbResizer.onclick();if(that.showHints==='once')that.fbResizer.title=''}return false;case 27:if(that.showHints==='once')that.fbClose.title='';that.end();return false;case 13:return false}}},dragonDrop:function(){var that=this,fbBox=this.fbBox;return function(e){e=e||that.win.event;if(/fb(Box|Canvas|Info|Caption|Item|Control|Index)/.test((e.target||e.srcElement).id)){var startX=e.clientX,startY=e.clientY,box=that.fbBox.style,content=that.fbContent.style,pos=that.pos.fbBox,boxX=pos.left,boxY=pos.top;pos.dx=pos.dy=0;var moveHandler=function(e){if(that.currentItem.type==='iframe'&&!(that.ie||that.opera)&&!content.visibility)content.visibility='hidden';if(that.isSlideshow&&!that.isPaused)that.setPause(true);e=e||that.win.event;pos.dx=e.clientX-startX;pos.dy=e.clientY-startY;box.left=(boxX+pos.dx)+'px';box.top=(boxY+pos.dy)+'px';(e.stopPropagation&&e.stopPropagation())||(e.cancelBubble=true);that.clearTimeout('dragonDrop');that.timeouts.dragonDrop=setTimeout(upHandler,1500);return false};var upHandler=function(e){that.clearTimeout('dragonDrop');e=e||that.win.event;if(that.doc.removeEventListener){that.doc.removeEventListener("mouseup",upHandler,true);that.doc.removeEventListener("mousemove",moveHandler,true)}else if(fbBox.detachEvent){fbBox.detachEvent("onlosecapture",upHandler);fbBox.detachEvent("onmouseup",upHandler);fbBox.detachEvent("onmousemove",moveHandler);fbBox.releaseCapture()}if(e)(e.stopPropagation&&e.stopPropagation())||(e.cancelBubble=true);pos.left+=pos.dx;pos.top+=pos.dy;content.visibility='';return false};if(that.doc.addEventListener){that.doc.addEventListener("mousemove",moveHandler,true);that.doc.addEventListener("mouseup",upHandler,true)}else if(fbBox.attachEvent){fbBox.setCapture();fbBox.attachEvent("onmousemove",moveHandler);fbBox.attachEvent("onmouseup",upHandler);fbBox.attachEvent("onlosecapture",upHandler)}return false}}},initState:function(){var that=this,box=this.fbBox.style,mainDiv=this.fbMainDiv.style,resizer=this.fbResizer.style,canvas=this.fbCanvas.style,zoomDiv=this.fbZoomDiv.style,zoomImg=this.fbZoomImg.style;if(this.currentItem.popup)this.currentItem.anchor.onmouseover();var anchorPos=this.getAnchorPos(this.clickedAnchor,this.currentItem.anchor===this.clickedAnchor&&this.currentItem.type==='img');if(anchorPos.width){this.pos.fbZoomDiv=anchorPos;zoomDiv.borderWidth=this.zoomPopBorder+'px';zoomDiv.left=(anchorPos.left-this.zoomPopBorder)+'px';zoomDiv.top=(anchorPos.top-this.zoomPopBorder)+'px';zoomDiv.width=(this.fbZoomImg.width=anchorPos.width)+'px';zoomDiv.height=(this.fbZoomImg.height=anchorPos.height)+'px';this.fbZoomImg.src=anchorPos.src;box.visibility='hidden';this.timeouts.slowLoad=setTimeout(function(){that.fbZoomImg.src=that.slowZoomImg;zoomDiv.display=zoomImg.display=''},this.slowLoadDelay)}else{this.pos.fbBox=anchorPos;this.pos.fbBox.borderWidth=0;this.pos.fbMainDiv={width:0,height:0}}box.position='absolute';box.left=box.top=box.width=box.height=box.borderWidth='0';mainDiv.borderWidth=this.innerBorder+'px';mainDiv.left=this.padding+'px';this.fbInfoPanel.style[this.infoLeft?'left':'right']=this.fbControlPanel.style[this.controlLeft?'left':'right']=Math.max(this.padding,this.panelPadding)+'px';canvas.visibility='hidden';box.display=canvas.display='';if(this.dropShadow){var shadowRight=this.fbShadowRight.style,shadowBottom=this.fbShadowBottom.style,shadowCorner=this.fbShadowCorner.style;shadowRight.paddingBottom=shadowBottom.paddingRight=this.outerBorder*2+'px';shadowRight.paddingRight=shadowBottom.paddingBottom=shadowCorner.paddingRight=shadowCorner.paddingBottom=(this.outerBorder+this.shadowSize)+'px';shadowRight.top=shadowBottom.left=-this.outerBorder+'px'}if(this.navOverlay){if(fb.showNavOverlay==='never'||(fb.showNavOverlay==='once'&&fb.navOverlayShown)){fb.showNavOverlay=false}else{this.fbOverlayPrev.style.backgroundPosition=this.fbOverlayNext.style.backgroundPosition=this.onPos;this.fadeOpacity(this.fbOverlayPrev,this.controlOpacity);this.fadeOpacity(this.fbOverlayNext,this.controlOpacity)}}this.initPanels();this.lastShown=false;if(this.hideFlash)this.hideElements('flash');if(this.hideJava)this.hideElements('applet');if(this.ieOld){this.hideElements('select');this.fbOverlay.style.position='absolute';this.stretchOverlay()();this.win.attachEvent('onresize',this.stretchOverlay());this.win.attachEvent('onscroll',this.stretchOverlay())}},getAnchorPos:function(anchor,useThumb){var display=this.getDisplaySize(),scroll=this.getScroll(),noAnchorPos={left:display.width/2+scroll.left,top:display.height/3+scroll.top,width:0,height:0};var thumb=useThumb?this.getThumb(anchor):false;if(thumb&&this.zoomImageStart){var pos=this.getLeftTop(thumb),border=(thumb.offsetWidth-thumb.width)/2;pos.left+=border;pos.top+=border;pos.width=thumb.width;pos.height=thumb.height;pos.src=thumb.src}else if(this.startAtClick&&anchor&&anchor.offsetWidth&&anchor.tagName.toLowerCase()==='a'){var pos=this.getLayout(thumb||anchor)}else{return noAnchorPos}var centerPos={left:pos.left+pos.width/2,top:pos.top+pos.height/2,width:0,height:0};if(centerPos.left<scroll.left||centerPos.left>(scroll.left+display.width)||centerPos.top<scroll.top||centerPos.top>(scroll.top+display.height)){return noAnchorPos}return(thumb&&this.zoomImageStart?pos:centerPos)},getThumb:function(anchor){var nodes=anchor&&anchor.childNodes,i=(nodes&&nodes.length)||0;while(i--){if((nodes[i].tagName||'').toLowerCase()==='img')return nodes[i]}return false},initPanels:function(){var infoPanel=this.fbInfoPanel.style,infoLink=this.fbInfoLink.style,printLink=this.fbPrintLink.style;if(this.infoLeft){var infoPos=' posLeft';infoPanel.textAlign='left';infoLink.paddingRight=printLink.paddingRight=this.infoLinkGap+'px'}else{var infoPos=' posRight';infoPanel.textAlign='right';infoLink.paddingLeft=printLink.paddingLeft=this.infoLinkGap+'px'}this.fbInfoPanel.className+=infoPos;this.fbInfoLink.className+=infoPos;this.fbPrintLink.className+=infoPos;this.fbItemNumber.className+=infoPos;infoPanel.width='400px';var controlPanel=this.fbControlPanel.style,controls=this.fbControls.style,subControls=this.fbSubControls.style;var indexLinks=this.fbIndexLinks.style;if(this.controlLeft){var controlPos=' posLeft';controlPanel.textAlign='left'}else{var controlPos=' posRight';controlPanel.textAlign='right'}this.fbControlPanel.className+=controlPos;this.fbSubControls.className+=controlPos;this.fbControls.className+=controlPos;if(this.navButton){var prev=this.fbPrev.style,next=this.fbNext.style,navControls=this.fbNavControls.style;prev.backgroundPosition=next.backgroundPosition=this.offPos;navControls['padding'+(this.controlLeft?'Left':'Right')]=this.controlSpacing+'px';this.fbNavControls.className+=controlPos;controlPanel.display=navControls.display=prev.display=next.display=''}var width=0;if(this.showClose){var close=this.fbClose.style;close.backgroundPosition=this.offPos;this.fbClose.className+=controlPos;controlPanel.display=controls.display=subControls.display=close.display='';width=this.fbClose.offsetWidth}if(this.showPlayPause&&this.isSlideshow){var play=this.fbPlay.style,pause=this.fbPause.style,playPause=this.fbPlayPause.style;play.backgroundPosition=pause.backgroundPosition=this.offPos;playPause['padding'+(this.controlLeft?'Left':'Right')]=this.controlSpacing+'px';this.fbPlayPause.className+=controlPos;controlPanel.display=controls.display=subControls.display=playPause.display=play.display=pause.display='';play.left=this.isPaused?'':'-9999px';pause.left=this.isPaused?'-9999px':'';width+=this.fbPlayPause.offsetWidth}subControls.width=width+'px';controls.width=(width+this.fbNavControls.offsetWidth)+'px';if(this.showIndexLinks){var indexLinks=this.fbIndexLinks.style;if(this.indexLinksPanel==='info'){this.fbIndexLinks.className+=infoPos;infoPanel.display='';if(this.showIndexThumbs)infoPanel.overflow='visible'}else{this.fbIndexLinks.className+=controlPos;controlPanel.display='';if(this.showIndexThumbs)controlPanel.overflow='visible'}if(this.indexLinksPanel!=='info')indexLinks['padding'+(this.indexLeft?'Left':'Right')]='2px';indexLinks.width='250px';indexLinks.display=''}},fetchContent:function(callback,phase){var that=this;if(!phase){if(this.fbContent){this.fbMainDiv.removeChild(this.fbContent);delete this.fbContent;return this.timeouts.fetch=setTimeout(function(){that.fetchContent(callback,1)},10)}}var item=this.currentItem;item.nativeWidth=item.revOptions.width;item.nativeHeight=item.revOptions.height;if(item.type!=='img'){item.nativeWidth=item.nativeWidth||(fb.previousAnchor&&fb.previousAnchor.nativeWidth)||this.defaultWidth;item.nativeHeight=item.nativeHeight||(fb.previousAnchor&&fb.previousAnchor.nativeHeight)||this.defaultHeight}this.itemScroll=item.revOptions.scroll||item.revOptions.scrolling||'auto';if(/img|iframe/.test(item.type)){this.fbContent=this.newNode(item.type,'fbContent',this.fbMainDiv);if(item.type==='img'){var loader=new Image();loader.onload=function(){item.nativeWidth=item.nativeWidth||loader.width;item.nativeHeight=item.nativeHeight||loader.height;that.fbContent.src=loader.src;if(callback)callback()};loader.onerror=function(){if(this.src!==that.notFoundImg)this.src=that.notFoundImg};loader.src=item.href}}else{this.fbContent=this.newNode('div','fbContent',this.fbMainDiv);this.fbContent.style.overflow=this.itemScroll==='yes'?'scroll':(this.itemScroll==='no'?'hidden':'auto');var contents=this.content[item.href];if(item.type==='inline'){var el=contents.cloneNode(true);el.style.display=el.style.visibility='';try{this.fbContent.appendChild(el)}catch(e){this.setInnerHTML(this.fbContent,el.innerHTML)}this.tagAnchors(this.fbContent)}else if(item.type==='ajax'){this.xhr.getResponse(item.href,function(xhr){if((xhr.status===200||xhr.status===203||xhr.status===304)&&xhr.responseText){that.setInnerHTML(that.fbContent,xhr.responseText);that.tagAnchors(that.fbContent)}else{that.setInnerHTML(that.fbContent,'<p style="color:#000; background:#fff; margin:1em; padding:1em;">'+'Unable to fetch content from '+item.href+'</p>')}})}}this.fbContent.style.border='0';this.fbContent.style.display='';if(item.type!=='img'&&callback)callback()},updatePanels:function(){var infoPanel=this.fbInfoPanel.style,captionDiv=this.fbCaptionDiv.style,caption=this.fbCaption.style,infoLink=this.fbInfoLink.style,printLink=this.fbPrintLink.style,itemNumber=this.fbItemNumber.style,item=this.currentItem,str;infoPanel.display=captionDiv.display=caption.display=infoLink.display=printLink.display=itemNumber.display='none';if(this.showCaption){str=item.revOptions.caption||item.title||'';if(str==='href')str=this.currentItem.href;str=this.decodeHTML(str);if(this.setInnerHTML(this.fbCaption,str)&&str)infoPanel.display=captionDiv.display=caption.display=''}if(item.revOptions.info){str=this.encodeHTML(this.decodeHTML(item.revOptions.info));var options=item.revOptions.infoOptions||'';if(options)options=this.encodeHTML(this.decodeHTML(options));str='<a href="'+str+'" class="thickbox" rev="'+options+'"><b>'+(item.revOptions.infoText||this.strings.infoText)+'</b></a>';if(this.setInnerHTML(this.fbInfoLink,str))infoPanel.display=infoLink.display=''}if(this.showPrint){var css=this.printCSS||'';str='<a href="'+this.encodeHTML(this.currentItem.href)+'" onclick="fb.printContents(null, \''+css+'\'); return false;"><b>'+(item.revOptions.printText||this.strings.printText)+'</b></a>';if(this.setInnerHTML(this.fbPrintLink,str))infoPanel.display=printLink.display=''}if(this.showItemNumber){str=this.justImages?this.strings.imgCount:this.strings.nonImgCount;str=str.replace('%1',this.currentIndex+1);str=str.replace('%2',this.itemCount);if(this.setInnerHTML(this.fbItemNumber,str))infoPanel.display=itemNumber.display=''}if(this.showIndexLinks){str='';var max=this.itemCount-1,loRange,hiRange;if(!this.maxIndexCount){loRange=0;hiRange=max}else{var range=Math.floor(this.maxIndexCount/2)-1;loRange=this.currentIndex-range;hiRange=this.currentIndex+range;if(loRange<=0)hiRange+=Math.min(1-loRange,range);if(this.currentIndex===0)hiRange++;if(hiRange-max>=0)loRange-=Math.min(1+hiRange-max,range);if(this.currentIndex===max)loRange--}var pos=this.indexTop?'down':'up',i=0;while(i<this.itemCount){if(i!==0&&i<loRange){str+='... ';i=loRange}else if(i!==max&&i>hiRange){str+='... ';i=max}else{if(i!==this.currentIndex){var item=this.items[i];str+='<a class="fbPop'+pos+' nothickbox" href="'+item.href+'" onclick="fb.newContent('+i+');return false;">'+ ++i;if(this.showIndexThumbs&&item.thumb){str+='<img src="'+item.thumb.src+'" />'}str+='</a> '}else{str+=++i+' '}}}if(this.setInnerHTML(this.fbIndexLinks,str))this.tagAnchors(this.fbIndexLinks)}if(!infoPanel.display)this.tagAnchors(this.fbInfoPanel)},calcSize:function(fit,pass){var that=this;if(!this.fbBox)return;var boxX,boxY,boxW,boxH,mainW,mainH;if(typeof fit==='undefined'){fit=this.currentItem.type==='img'?this.autoSizeImages:this.autoSizeOther}var box=this.fbBox.style,infoPanel=this.fbInfoPanel.style,indexLinks=this.fbIndexLinks.style,captionDiv=this.fbCaptionDiv.style,itemNumber=this.fbItemNumber.style;if(!pass){this.displaySize=this.getDisplaySize();if(this.showCaption&&this.fbCaption.innerHTML)captionDiv.display='';if(this.showItemNumber)itemNumber.display=''}this.upperSpace=Math.max(this.infoTop?this.fbInfoPanel.offsetHeight:0,this.controlTop?this.fbControlPanel.offsetHeight:0);this.lowerSpace=Math.max(this.infoTop?0:this.fbInfoPanel.offsetHeight,this.controlTop?0:this.fbControlPanel.offsetHeight);if(this.upperSpace)this.upperSpace+=2*this.panelPadding;if(this.lowerSpace)this.lowerSpace+=2*this.panelPadding;this.upperSpace=Math.max(this.upperSpace,this.padding);this.lowerSpace=Math.max(this.lowerSpace,this.padding);var frame=2*(this.outerBorder+this.innerBorder+this.shadowSize),maxW=this.displaySize.width-frame-2*this.padding,maxH=this.displaySize.height-frame-this.upperSpace-this.lowerSpace,hardW=false,hardH=false;mainW=this.currentItem.nativeWidth+'';if(mainW==='max'){mainW=maxW}else if(mainW.substr(mainW.length-1)==='%'){mainW=Math.floor((maxW+2*this.shadowSize)*parseInt(mainW,10)/100)}else{mainW=parseInt(mainW,10);hardW=true}mainH=this.currentItem.nativeHeight+'';if(mainH==='max'){mainH=maxH}else if(mainH.substr(mainH.length-1)==='%'){mainH=Math.floor((maxH+2*this.shadowSize)*parseInt(mainH,10)/100)}else{mainH=parseInt(mainH,10);hardH=true}this.scaledBy=this.oversizedBy=0;if(fit){var scaleW=maxW/mainW,scaleH=maxH/mainH,w=mainW,h=mainH;if(hardW&&hardH)scaleW=scaleH=Math.min(scaleW,scaleH);if(scaleW<1)mainW=Math.round(mainW*scaleW);if(scaleH<1)mainH=Math.round(mainH*scaleH);this.scaledBy=Math.max(w-mainW,h-mainH);if(this.scaledBy&&this.scaledBy<this.outerBorder+2*this.shadowSize+this.panelPadding){mainW=w;mainH=h;this.scaledBy=0}}boxW=mainW+2*(this.innerBorder+this.padding);boxH=mainH+2*this.innerBorder+this.upperSpace+this.lowerSpace;var infoW=boxW-2*Math.max(this.padding,this.panelPadding);if(this.infoTop===this.controlTop&&this.fbControls.offsetWidth){infoW-=this.fbControls.offsetWidth+this.panelGap}if(infoW<0)infoW=0;if(this.indexLinksPanel==='info'){var indexW=infoW}else{var infoUsed=Math.max(this.fbCaption.offsetWidth,this.fbInfoLink.offsetWidth+this.fbPrintLink.offsetWidth+this.fbItemNumber.offsetWidth);var indexW=Math.max(this.minIndexWidth,this.fbControls.offsetWidth,(boxW-infoUsed-2*Math.max(this.padding,this.panelPadding)));if(infoUsed)indexW-=this.panelGap}var infoH=this.fbInfoPanel.offsetHeight,indexH=this.fbIndexLinks.offsetHeight;infoPanel.width=infoW+'px';indexLinks.width=indexW+'px';var changed=this.fbInfoPanel.offsetHeight!==infoH||this.fbIndexLinks.offsetHeight!==indexH;if(this.showCaption){if(this.minInfoWidth>infoW&&!captionDiv.display){captionDiv.display='none';changed=true}}if(this.showItemNumber){if(this.fbInfoLink.offsetWidth+this.fbPrintLink.offsetWidth+this.fbItemNumber.offsetWidth>infoW&&!itemNumber.display){itemNumber.display='none';changed=true}}if(changed&&pass!==3)return this.calcSize(fit,(pass||0)+1);if(!fit)this.oversizedBy=Math.max(boxW-this.displaySize.width,boxH-this.displaySize.height)+2*this.outerBorder+this.shadowSize;if(this.oversizedBy<0)this.oversizedBy=0;if(typeof this.positionLeft==='number'){boxX=this.positionLeft}else{var freeSpace=this.displaySize.width-boxW-2*this.outerBorder;boxX=freeSpace<=0?0:Math.floor(freeSpace/2);if(typeof this.positionLeft==='string'&&this.positionLeft.substr(this.positionLeft.length-1)==='%'){boxX+=parseInt(this.positionLeft,10)/100*boxX}}if(typeof this.positionTop==='number'){boxY=this.positionTop}else{var freeSpace=this.displaySize.height-boxH-2*this.outerBorder,ratio=freeSpace/this.displaySize.height,factor;if(ratio<=0.15){factor=2}else if(ratio>=0.3){factor=3}else{factor=1+ratio/0.15}boxY=freeSpace<=0?0:Math.floor(freeSpace/factor);if(typeof this.positionTop==='string'&&this.positionTop.substr(this.positionTop.length-1)==='%'){boxY+=parseInt(this.positionTop,10)/100*boxY}}var boxPosition=box.position;if(this.ieOld){box.display='none';this.stretchOverlay()()}else{this.setPosition(this.fbBox,'fixed')}var scroll=this.getScroll();this.setPosition(this.fbBox,boxPosition);box.display='';boxX+=scroll.left;boxY+=scroll.top;if(this.isChild){var rex=/max|%/i,pos=this.fbParent.pos.fbBox,childX=rex.test(this.currentItem.nativeWidth)?99999:(pos.left+boxX)/2,childY=rex.test(this.currentItem.nativeHeight)?99999:(pos.top+boxY)/2;if(scroll.left<childX&&scroll.top<childY){boxX=Math.min(boxX,childX);boxY=Math.min(boxY,childY)}}var split=(pos=this.pos.fbBox)&&!this.liveResize&&this.splitResize;if(split==='auto')split=boxW-pos.width<=boxH-pos.height?'wh':'hw';var oncomplete=function(){that.fbBox.style.visibility?that.zoomIn():that.showContent()};var setSize=function(){that.setSize(split,{id:'fbBox',left:boxX,top:boxY,width:boxW,height:boxH,borderWidth:that.outerBorder},{id:'fbMainDiv',width:mainW,height:mainH,top:that.upperSpace},function(){that.timeouts.showContent=setTimeout(oncomplete,10)})};this.timeouts.setSize=setTimeout(setSize,10)},setPosition:function(el,position){if(el.style.position===position)return;var scroll=this.getScroll();if(position==='fixed'){scroll.left=-scroll.left;scroll.top=-scroll.top}if(this.pos[el.id]){this.pos[el.id].left+=scroll.left;this.pos[el.id].top+=scroll.top}el.style.left=(el.offsetLeft+scroll.left)+'px';el.style.top=(el.offsetTop+scroll.top)+'px';el.style.position=position},collapse:function(callback,phase){var that=this;if(!phase){this.setPosition(this.fbBox,'absolute');this.fbResizer.onclick=null;this.fbResizer.style.display='none';if(this.fbContent){this.fbContent.onclick=null;this.fbContent.style.cursor=''}if(this.navOverlay){this.fbLeftNav.style.display=this.fbRightNav.style.display=this.fbOverlayPrev.style.display=this.fbOverlayNext.style.display='none'}var opacity=0,duration=0;if(this.currentItem.type==='img'&&!this.fbCanvas.style.visibility){if(this.currentItem===this.lastShown&&this.liveImageResize)opacity=1;duration=this.imageFadeDuration}this.liveResize=(opacity===1);var oncomplete=function(){that.collapse(callback,1)};return this.fadeOpacity(this.fbCanvas,opacity,duration,oncomplete)}if(!this.liveResize){this.fbMainDiv.style.display='none';this.clearTimeout('loader');this.timeouts.loader=setTimeout(function(){that.fbLoader.style.display=''},this.loaderDelay)}var infoPanel=this.fbInfoPanel.style,controlPanel=this.fbControlPanel.style;infoPanel.visibility=controlPanel.visibility='hidden';infoPanel.left=controlPanel.left='-9999px';if(callback)callback()},restore:function(callback,phase){var that=this;if(!phase){if(this.fbShadowRight.style.display&&this.dropShadow){this.fbShadowRight.style.display=this.fbShadowBottom.style.display=this.fbShadowCorner.style.display=''}var infoPanel=this.fbInfoPanel.style,controlPanel=this.fbControlPanel.style,pad=this.upperSpace+this.pos.fbMainDiv.height+2*this.innerBorder;infoPanel.top=(((this.infoTop?this.upperSpace:this.lowerSpace)-this.fbInfoPanel.offsetHeight)/2-1+(this.infoTop?0:pad))+'px';controlPanel.top=(((this.controlTop?this.upperSpace:this.lowerSpace)-this.fbControlPanel.offsetHeight)/2+(this.controlTop?0:pad))+'px';var pad=Math.max(this.padding,this.panelPadding)+'px';infoPanel.left=[this.infoLeft?pad:''];controlPanel.left=[this.controlLeft?pad:''];infoPanel.visibility=controlPanel.visibility='';this.clearTimeout('loader');this.fbLoader.style.display='none';this.fbMainDiv.style.display='';var duration=(this.currentItem.type==='img'&&!this.fbCanvas.style.visibility)?this.imageFadeDuration:0,oncomplete=function(){that.restore(callback,1)};return this.fadeOpacity(this.fbCanvas,1,duration,oncomplete)}if(this.currentItem.type==='img'?this.resizeImages:this.resizeOther){var scale=0;if(this.scaledBy>35){scale=1}else if(this.oversizedBy>28){scale=-1}if(scale){this.fbResizer.onclick=function(){if(that.isSlideshow&&that.pauseOnResize&&!that.isPaused){that.setPause(true)}that.collapse(function(){that.calcSize(scale===-1)});return false};if(this.currentItem.type==='img'&&/cursor|both/.test(this.resizeTool)){this.fbContent.style.cursor='url('+(scale===-1?this.resizeDownCursor:this.resizeUpCursor)+'), default';this.fbContent.onclick=this.fbResizer.onclick}if(this.currentItem.type!=='img'||/topleft|both/.test(this.resizeTool)){this.fbResizer.style.backgroundPosition=(scale===-1?'bottom':'top');this.fadeOpacity(this.fbResizer,this.controlOpacity)}}}this.fbContent.style.cursor='pointer';this.fbContent.onclick=this.fbClose.onclick;if(this.navOverlay){var leftNav=this.fbLeftNav.style,rightNav=this.fbRightNav.style,overlayPrev=this.fbOverlayPrev.style,overlayNext=this.fbOverlayNext.style;leftNav.width=rightNav.width=Math.max(this.navOverlayWidth/100*this.pos.fbMainDiv.width,this.fbOverlayPrev.offsetWidth)+'px';leftNav.display=rightNav.display='';if(fb.showNavOverlay){overlayPrev.visibility=overlayNext.visibility='hidden';overlayPrev.display=overlayNext.display='';overlayPrev.top=overlayNext.top=((this.pos.fbMainDiv.height-this.fbOverlayPrev.offsetHeight)*this.navOverlayPos/100)+'px'}}if(callback)callback()},setSize:function(order){var that=this,oncomplete=function(){},arr=[[],[]],defer={},node,i=arguments.length;if(order==='wh'){defer.top=1;defer.height=1}else if(order==='hw'){defer.left=1;defer.width=1}while(i--){if(typeof arguments[i]==='object'&&(node=this[arguments[i].id])){var obj=arguments[i];if(!this.pos[obj.id])this.pos[obj.id]={};for(var property in obj){if(obj.hasOwnProperty(property)&&property!=='id'){var idx=defer[property]||0;var start=this.pos[obj.id][property];if(typeof start!=='number'||node.style.display||node.style.visibility){start=obj[property]}arr[idx].push({node:node,property:property,start:start,finish:obj[property]});if(obj.id==='fbMainDiv'){arr[idx].push({node:this.fbContent,property:property,start:start,finish:obj[property]})}if(obj.id==='fbZoomDiv'&&/\b(width|height)\b/i.test(property)){arr[idx].push({node:this.fbZoomImg,property:property,start:start,finish:obj[property]})}this.pos[obj.id][property]=obj[property]}}}else if(typeof arguments[i]==='function'){oncomplete=arguments[i]}}this.resizeGroup(arr[0],function(){that.resizeGroup(arr[1],oncomplete)})},showContent:function(phase){var that=this;if(!phase){var displaySize=this.getDisplaySize();if(!this.resized){var vscrollChanged=displaySize.width!==this.displaySize.width,hscrollChanged=displaySize.height!==this.displaySize.height;if((vscrollChanged&&Math.abs(this.pos.fbBox.width-displaySize.width)<50)||(hscrollChanged&&Math.abs(this.pos.fbBox.height-displaySize.height)<50)){this.resized=true;return this.calcSize(this.scaledBy)}}this.resized=false;this.win.focus();if(this.ieOld)this.stretchOverlay()();if((this.disableScroll||(this.ffOld&&/iframe|quicktime/i.test(this.currentItem.type)))&&!(this.ieOld||this.webkitOld||this.ie8b2)){if(this.pos.fbBox.width<=displaySize.width&&this.pos.fbBox.height<=displaySize.height){this.setPosition(this.fbBox,'fixed')}}if(this.currentItem.type==='iframe'){this.fbContent.src=this.currentItem.href}else if(/flash|quicktime/.test(this.currentItem.type)){var html=this.content[this.currentItem.href];html=html.replace(/%width%/g,this.pos.fbMainDiv.width).replace(/%height%/g,this.pos.fbMainDiv.height);this.setInnerHTML(this.fbContent,html)}this.prevIndex=this.currentIndex?this.currentIndex-1:this.itemCount-1;this.nextIndex=this.currentIndex<this.itemCount-1?this.currentIndex+1:0;var prevHref=this.enableWrap||this.currentIndex!==0?this.items[this.prevIndex].href:'',nextHref=this.enableWrap||this.currentIndex!==this.itemCount-1?this.items[this.nextIndex].href:'';if(this.navButton){if(prevHref){if(!this.operaOld)this.fbPrev.href=prevHref;this.fbPrev.title=this.fbOverlayPrev.title}else{this.fbPrev.removeAttribute('href');this.fbPrev.title=''}if(nextHref){if(!this.operaOld)this.fbNext.href=nextHref;this.fbNext.title=this.fbOverlayNext.title}else{this.fbNext.removeAttribute('href');this.fbNext.title=''}var prevOn=this.fbPrev.className.replace('_off',''),nextOn=this.fbNext.className.replace('_off','');this.fbPrev.className=prevOn+(prevHref?'':'_off');this.fbNext.className=nextOn+(nextHref?'':'_off')}if(this.navOverlay){if(!this.operaOld){this.fbLeftNav.href=this.fbOverlayPrev.href=prevHref;this.fbRightNav.href=this.fbOverlayNext.href=nextHref}this.fbLeftNav.style.visibility=prevHref?'':'hidden';this.fbRightNav.style.visibility=nextHref?'':'hidden';fb.navOverlayShown=true}this.fbCanvas.style.visibility='';return this.restore(function(){that.timeouts.showContent=setTimeout(function(){that.showContent(1)},10)})}this.lastShown=this.currentItem;if(!this.currentItem.seen){this.currentItem.seen=true;this.itemsShown++}if(this.isSlideshow&&!this.isPaused){this.timeouts.slideshow=setTimeout(function(){if(that.endTask==='loop'||that.itemsShown<that.itemCount){that.newContent(that.nextIndex)}else if(that.endTask==='exit'){that.end()}else{that.setPause(true);var i=that.itemCount;while(i--)that.items[i].seen=false;that.itemsShown=0}},this.slideInterval*1000)}this.timeouts.preload=setTimeout(function(){that.preloadImages(nextHref||prevHref||'',true)},10)},newContent:function(index){var that=this;this.clearTimeout('slideshow');this.clearTimeout('resizeGroup');this.currentIndex=index;fb.previousAnchor=this.currentItem;this.currentItem=this.items[index];if(this.showNavOverlay=='once'&&this.navOverlayShown)this.showNavOverlay=false;var oncomplete=function(){that.updatePanels();that.fetchContent(function(){that.calcSize()})};this.collapse(function(){that.timeouts.fetch=setTimeout(oncomplete,10)})},end:function(all){if(this!==fb.lastChild)return fb.lastChild.end(all);var that=this;this.endAll=this.endAll||all;if(this.isChild&&this.endAll)this.imageFadeDuration=this.overlayFadeDuration=this.resizeDuration=0;this.fbOverlay.onclick=null;if(this.keydownSet){this.doc.onkeydown=this.priorOnkeydown;this.keydownSet=false}if(this.keypressSet){this.doc.onkeypress=this.priorOnkeypress;this.keypressSet=false}if(this.ieOld){this.win.detachEvent('onresize',this.stretchOverlay());this.win.detachEvent('onscroll',this.stretchOverlay())}for(var key in this.timeouts){if(this.timeouts.hasOwnProperty(key))this.clearTimeout(key)}if(this.fbBox.style.visibility){if(!this.lastShown)this.fbZoomDiv.style.display='none'}else if(this.currentItem.type==='img'&&this.zoomImageStart){if(this.currentItem.popup)this.currentItem.anchor.onmouseover();var anchorPos=this.getAnchorPos(this.currentItem.anchor,true);if(this.currentItem.popup)this.currentItem.anchor.onmouseout();if(anchorPos.width){this.fbZoomDiv.style.borderWidth=this.zoomPopBorder+'px';anchorPos.left-=this.zoomPopBorder;anchorPos.top-=this.zoomPopBorder;this.pos.thumb=anchorPos;return this.zoomOut()}}if(!this.fbBox.style.visibility){var anchorPos=this.getAnchorPos(this.currentItem.anchor,!this.currentItem.popup),offset=this.initialSize/2,initialPos={id:'fbBox',left:anchorPos.left-offset,top:anchorPos.top-offset,width:this.initialSize,height:this.initialSize},zeroPos={id:'fbBox',left:anchorPos.left,top:anchorPos.top,width:0,height:0,borderWidth:0},split=this.splitResize;if(split==='wh'){split='hw'}else if(split==='hw'){split='wh'}else if(split==='auto'){split=this.pos.fbBox.width<=this.pos.fbBox.height?'hw':'wh'}var oncomplete3=function(){setTimeout(function(){that.fbBox.style.visibility='hidden';that.end()},10)};if(split){var oncomplete2=function(){that.setSize(split,initialPos,function(){that.setSize(zeroPos,oncomplete3)})}}else{var oncomplete2=function(){that.setSize(zeroPos,oncomplete3)}}var oncomplete=function(){if(that.fbContent){that.fbMainDiv.removeChild(that.fbContent);delete that.fbContent}that.fbLoader.style.display='';that.fbCanvas.style.display=that.fbShadowRight.style.display=that.fbShadowBottom.style.display=that.fbShadowCorner.style.display='none';oncomplete2()};return this.collapse(oncomplete)}this.fbBox.style.display='none';var level=this.children.length+1,i=this.anchors.length;while(i&&this.anchors[i-1].level>=level)i--;this.anchors.length=i;if(this.isChild)this.children.length--;fb.lastChild=this.children[this.children.length-1]||fb;var oncomplete2=function(){setTimeout(function(){while(that.nodeNames.length){var id=that.nodeNames.pop();if(that[id]&&that[id].parentNode){that[id].parentNode.removeChild(that[id]);delete that[id]}}if(that.endAll&&that.isChild){return fb.end(true)}else if(that.loadPageOnClose){if(that.loadPageOnClose==='self'||that.loadPageOnClose==='this'){that.win.location.reload(true)}else if(that.loadPageOnClose==='back'){history.back()}else{that.win.location.replace(that.loadPageOnClose)}}},10)};var oncomplete=function(){while(that.hiddenEls.length){var el=that.hiddenEls.pop();el.style.visibility='visible';if(this.ffOld&&this.ffMac){el.focus();el.blur()}}var overlay=that.fbOverlay.style;overlay.display='none';overlay.width=overlay.height='0';var duration=that.currentItem.popup?6.5:0;that.fbZoomDiv.style.opacity='1';that.fadeOpacity(that.fbZoomDiv,0,duration,oncomplete2);that.currentItem=fb.previousAnchor=null};this.fadeOpacity(this.fbOverlay,0,this.overlayFadeDuration,oncomplete)},zoomIn:function(phase){var that=this,zoomDiv=this.fbZoomDiv.style;if(!phase){this.clearTimeout('slowLoad');zoomDiv.display=this.fbZoomImg.style.display='';if(this.currentItem.popup)this.currentItem.anchor.onmouseout();var pad=this.outerBorder+this.innerBorder-this.zoomPopBorder;var oncomplete=function(){that.fbZoomImg.src=that.currentItem.href;that.setSize({id:'fbZoomDiv',width:that.pos.fbMainDiv.width,height:that.pos.fbMainDiv.height,left:that.pos.fbBox.left+pad+that.padding,top:that.pos.fbBox.top+pad+that.upperSpace},function(){that.zoomIn(1)})};return this.fadeOpacity(this.fbOverlay,this.overlayOpacity,this.overlayFadeDuration,oncomplete)}if(phase===1){var boxPos={left:this.pos.fbBox.left,top:this.pos.fbBox.top,width:this.pos.fbBox.width,height:this.pos.fbBox.height};var pad=2*(this.zoomPopBorder-this.outerBorder);this.pos.fbBox={left:this.pos.fbZoomDiv.left,top:this.pos.fbZoomDiv.top,width:this.pos.fbZoomDiv.width+pad,height:this.pos.fbZoomDiv.height+pad};this.fbBox.style.visibility='';var oncomplete=function(){that.restore(function(){that.zoomIn(2)})};return this.setSize({id:'fbBox',left:boxPos.left,top:boxPos.top,width:boxPos.width,height:boxPos.height},oncomplete)}var show=function(){zoomDiv.display='none';that.fbZoomImg.src='';zoomDiv.left=zoomDiv.top=zoomDiv.width=zoomDiv.height=that.fbZoomImg.width=that.fbZoomImg.height='0';that.showContent()};this.timeouts.showContent=setTimeout(show,10)},zoomOut:function(phase){var that=this;if(!phase){this.fbZoomImg.src=this.currentItem.href;var pad=this.outerBorder+this.innerBorder-this.zoomPopBorder;this.setSize({id:'fbZoomDiv',width:this.pos.fbMainDiv.width,height:this.pos.fbMainDiv.height,left:this.pos.fbBox.left+pad+this.padding,top:this.pos.fbBox.top+pad+this.upperSpace},function(){that.zoomOut(1)})}if(phase===1){this.fbZoomDiv.style.display=this.fbZoomImg.style.display='';this.fbCanvas.style.visibility='hidden';return this.collapse(function(){that.zoomOut(2)})}if(phase===2){var pad=2*(this.zoomPopBorder-this.outerBorder);return this.setSize({id:'fbBox',left:this.pos.fbZoomDiv.left,top:this.pos.fbZoomDiv.top,width:this.pos.fbZoomDiv.width+pad,height:this.pos.fbZoomDiv.height+pad},function(){that.zoomOut(3)})}this.fbBox.style.visibility='hidden';var end=function(){that.fbZoomImg.src=that.pos.thumb.src;that.end()};this.setSize({id:'fbZoomDiv',left:this.pos.thumb.left,top:this.pos.thumb.top,width:this.pos.thumb.width,height:this.pos.thumb.height},end)},setPause:function(bPause){this.isPaused=bPause;if(bPause){this.clearTimeout('slideshow')}else{this.newContent(this.nextIndex)}if(this.showPlayPause){this.fbPlay.style.left=bPause?'':'-9999px';this.fbPause.style.left=bPause?'-9999px':''}},fadeOpacity:function(el,opacity,duration,callback){var startOp=+(el.style.opacity||0);duration=duration||0;this.clearTimeout['fade'+el.id];var fadeIn=(startOp<=opacity&&opacity>0);if(duration>10)duration=10;if(duration<0)duration=0;if(duration===0){startOp=opacity}else{var root=Math.pow(100,0.1),power=duration+((10-duration)/9)*(Math.log(2)/Math.log(root)-1),incr=1/Math.pow(root,power)}if(fadeIn){el.style.display=el.style.visibility=''}else{incr=-incr}this.stepFade(el,startOp,opacity,incr,fadeIn,callback)},stepFade:function(el,thisOp,finishOp,incr,fadeIn,callback){if(!el)return;var that=this;if((fadeIn&&thisOp>=finishOp)||(!fadeIn&&thisOp<=finishOp))thisOp=finishOp;if(this.ie)el.style.filter='alpha(opacity='+thisOp*100+')';el.style.opacity=thisOp+'';if(thisOp===finishOp){if(this.ie&&finishOp>=1)el.style.removeAttribute('filter');if(callback)callback()}else{this.timeouts['fade'+el.id]=setTimeout(function(){that.stepFade(el,thisOp+incr,finishOp,incr,fadeIn,callback)},20)}},resizeGroup:function(arr,callback){var i=arr.length;if(!i)return callback?callback():null;this.clearTimeout('resizeGroup');var diff=0;while(i--){diff=Math.max(diff,Math.abs(arr[i].finish-arr[i].start))}var duration=this.resizeDuration*(this.liveResize?0.65:1);var rate=diff&&duration?Math.pow(Math.max(1,2.2-duration/10),(Math.log(diff)))/diff:1;i=arr.length;while(i--)arr[i].diff=arr[i].finish-arr[i].start;this.stepResize(rate,rate,arr,callback)},stepResize:function(increment,rate,arr,callback){var that=this;if(increment>1)increment=1;var i=arr.length;while(i--){var node=arr[i].node,prop=arr[i].property,val=Math.round(arr[i].start+arr[i].diff*increment),tag=node.tagName.toLowerCase();if(tag==='img'||tag==='iframe'){node[prop]=val}else{node.style[prop]=val+'px'}}if(increment>=1){delete this.timeouts.resizeGroup;if(callback)callback()}else{this.timeouts.resizeGroup=setTimeout(function(){that.stepResize(increment+rate,rate,arr,callback)},20)}},getDisplaySize:function(){return{width:this.getDisplayWidth(),height:this.getDisplayHeight()}},getDisplayWidth:function(){return this.html.clientWidth||this.bod.clientWidth},getDisplayHeight:function(){if(this.webkitOld)return this.win.innerHeight;if(!this.html.clientHeight||this.operaOld||this.doc.compatMode==='BackCompat'){return this.bod.clientHeight}return this.html.clientHeight},getScroll:function(win){win=win||this.win;var doc=win.document,bod=doc.body;return{left:win.pageXOffset||bod.scrollLeft||doc.documentElement.scrollLeft||0,top:win.pageYOffset||bod.scrollTop||doc.documentElement.scrollTop||0}},getLeftTop:function(el,local){var left=el.offsetLeft||0,top=el.offsetTop||0,doc=el.ownerDocument||el.document,bod=doc.body,win=doc.defaultView||doc.parentWindow||doc.contentWindow,scroll=this.getScroll(win),position=((el.currentStyle&&el.currentStyle.position)||(win.getComputedStyle&&win.getComputedStyle(el,'').getPropertyValue('position'))||'').toLowerCase(),rex=/absolute|fixed/,elFlow=!rex.test(position),inFlow=elFlow,node=el;if(position==='fixed'){left+=scroll.left;top+=scroll.top}while(position!=='fixed'&&(node=node.offsetParent)){var borderLeft=0,borderTop=0,nodeFlow=true;if(node.currentStyle){position=(node.currentStyle.position||'').toLowerCase();nodeFlow=!rex.test(position);if(this.opera){if(local&&node!==bod){left+=node.scrollLeft-node.clientLeft;top+=node.scrollTop-node.clientTop}}else{if(node.currentStyle.hasLayout&&node!==doc.documentElement){borderLeft=node.clientLeft;borderTop=node.clientTop}}}else if(win.getComputedStyle){position=(win.getComputedStyle(node,'').getPropertyValue('position')||'').toLowerCase();nodeFlow=!rex.test(position);borderLeft=parseInt(win.getComputedStyle(node,'').getPropertyValue('border-left-width'),10);borderTop=parseInt(win.getComputedStyle(node,'').getPropertyValue('border-top-width'),10);if(this.ff&&node===el.offsetParent&&!nodeFlow&&(this.ffOld||!elFlow)){left+=borderLeft;top+=borderTop}}if(!nodeFlow){if(local)return{left:left,top:top};inFlow=false}left+=node.offsetLeft+borderLeft;top+=node.offsetTop+borderTop;if(position==='fixed'){left+=scroll.left;top+=scroll.top}if(!(this.opera&&elFlow)&&node!==bod&&node!==doc.documentElement){left-=node.scrollLeft;top-=node.scrollTop}}if(this.ff&&inFlow){left+=parseInt(win.getComputedStyle(bod,'').getPropertyValue('border-left-width'),10);top+=parseInt(win.getComputedStyle(bod,'').getPropertyValue('border-top-width'),10)}if(this.webkitOld){var scriptElement=doc.createElement('script');scriptElement.innerHTML='document.parentWindow=self';doc.documentElement.appendChild(scriptElement);doc.documentElement.removeChild(scriptElement);win=doc.parentWindow}if(!local&&win!==this.win){var iframes=win.parent.document.getElementsByTagName('iframe'),i=iframes.length;while(i--){var node=iframes[i],idoc=false;try{idoc=node.contentDocument||node.contentWindow;idoc=idoc.document||idoc}catch(e){}if(idoc===doc||(typeof idoc!=='object'&&node.src===win.location.href.substr(win.location.href.length-node.src.length))){if(this.webkitOld)win=doc.defaultView;var pos=this.getLeftTop(node);left+=pos.left-scroll.left;top+=pos.top-scroll.top;if(node.currentStyle){var padLeft=0,padTop=0;if(!this.ie||elFlow){padLeft=parseInt(node.currentStyle.paddingLeft,10);padTop=parseInt(node.currentStyle.paddingTop,10)}left+=node.clientLeft+padLeft;top+=node.clientTop+padTop}else if(win.getComputedStyle){left+=parseInt(win.getComputedStyle(node,'').getPropertyValue('border-left-width'),10)+parseInt(win.getComputedStyle(node,'').getPropertyValue('padding-left'),10);top+=parseInt(win.getComputedStyle(node,'').getPropertyValue('border-top-width'),10)+parseInt(win.getComputedStyle(node,'').getPropertyValue('padding-top'),10)}break}}}return{left:left,top:top}},getLayout:function(el){var lay=this.getLeftTop(el);lay.width=el.offsetWidth;lay.height=el.offsetHeight;return lay},hideElements:function(type,thisWindow){if(!thisWindow){this.hideElements(type,this.win)}else{var tagName,tagNames=type==='flash'?['object','embed']:[type];try{while((tagName=tagNames.pop())){var els=thisWindow.document.getElementsByTagName(tagName),i=els.length;while(i--){var el=els[i];if(el.style.visibility!=='hidden'&&(tagName!=='object'||(el.getAttribute('type')&&el.getAttribute('type').toLowerCase()==='application/x-shockwave-flash')||(el.getAttribute('classid')&&el.getAttribute('classid').toLowerCase()==='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000')||/data\s*=\s*"?[^>"]+\.swf\b/i.test(el.innerHTML)||/param\s+name\s*=\s*"?(movie|src)("|\s)[^>]+\.swf\b/i.test(el.innerHTML))){this.hiddenEls.push(el);el.style.visibility='hidden'}}}}catch(e){}var frames=thisWindow.frames,i=frames.length;while(i--){if(typeof frames[i].window==='object')this.hideElements(type,frames[i].window)}}},clearTimeout:function(key){if(this.timeouts[key]){clearTimeout(this.timeouts[key]);delete this.timeouts[key]}},stretchOverlay:function(){var that=this;return function(){if(arguments.length===1){that.clearTimeout('stretch');that.timeouts.stretch=setTimeout(function(){that.stretchOverlay()()},25)}else{delete that.timeouts.stretch;if(!that.fbBox)return;var width=that.fbBox.offsetLeft+that.fbBox.offsetWidth,height=that.fbBox.offsetTop+that.fbBox.offsetHeight,display=that.getDisplaySize(),scroll=that.getScroll(),overlay=that.fbOverlay.style;overlay.width=overlay.height='0';overlay.width=Math.max(width,that.bod.scrollWidth,that.bod.clientWidth,that.html.clientWidth,display.width+scroll.left)+'px';overlay.height=Math.max(height,that.bod.scrollHeight,that.bod.clientHeight,that.html.clientHeight,display.height+scroll.top)+'px'}}},encodeHTML:function(str){return str.replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;').replace(/"/g,'&quot;').replace(/'/g,'&#39;')},decodeHTML:function(str){return str.replace(/&lt;/g,'<').replace(/&gt;/g,'>').replace(/&quot;/g,'"').replace(/&apos;/g,"'").replace(/&#39;/g,"'").replace(/&amp;/g,'&')},getXMLHttpRequest:function(){var xhr,that=this;if(window.XMLHttpRequest){if(!(xhr=new XMLHttpRequest()))return false}else{try{xhr=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{xhr=new ActiveXObject("Microsoft.XMLHTTP")}catch(e){return false}}}return{getResponse:function(url,callback){try{xhr.open('GET',url,true);xhr.onreadystatechange=function(){if(xhr.readyState===4){xhr.onreadystatechange=function(){};callback(xhr)}};xhr.send(null)}catch(e){}}}},setInnerHTML:function(el,strHTML){try{var range=this.doc.createRange();range.selectNodeContents(el);range.deleteContents();if(strHTML){var xmlDiv=new DOMParser().parseFromString('<div xmlns="http://www.w3.org/1999/xhtml">'+strHTML+'</div>','application/xhtml+xml'),childNodes=xmlDiv.documentElement.childNodes;for(var i=0,len=childNodes.length;i<len;i++){el.appendChild(this.doc.importNode(childNodes[i],true))}}return true}catch(e){}try{el.innerHTML=strHTML;return true}catch(e){}return false},printContents:function(el,style){if(el&&el.offsetWidth){var width=el.offsetWidth,height=el.offsetHeight}else{el=fb.lastChild.fbContent;var pos=fb.lastChild.pos.fbMainDiv,width=pos.width,height=pos.height}var win=window.open('','','width='+width+', height='+height),doc=win&&win.document;if(!doc){alert('Popup windows are being blocked by your browser.\nUnable to print.');return false}if(/\.css$/i.test(style)){style='<link rel="stylesheet" type="text/css" href="'+style+'" />'}else{style='<style type="text/css"> html,body{border:0;margin:0;padding:0;}'+(style||'')+'</style>'}var div=this.doc.createElement('div');div.appendChild(el.cloneNode(true));doc.open('text/html');doc.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"'+' "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head>'+style+'</head><body><div>'+div.innerHTML+'</div></body></html>');doc.close();setTimeout(function(){win&&win.print();win&&win.close()},200);return true},loadAnchor:function(href,rev,title){if(href.setAttribute){var anchor=href;var elClass=el.getAttribute('class');elClass=elClass?elClass:el.getAttribute('className');if(!elClass)anchor.setAttribute('className','thickbox');fb.lastChild.start(this.tagOneAnchor(anchor))}else{fb.lastChild.start(this.tagOneAnchor({href:href,rev:rev,title:title,rel:'thickbox'}))}},goBack:function(){var a;if((a=fb.previousAnchor)){this.loadAnchor(a.href,a.rev+' sameBox:true',a.title)}},resize:function(width,height){if(width)fb.lastChild.currentItem.nativeWidth=width;if(height)fb.lastChild.currentItem.nativeHeight=height;fb.lastChild.calcSize(false)}};function initfb(){if(arguments.callee.done)return;if(document.compatMode==='BackCompat'){arguments.callee.done=true;alert('Floatbox does not support quirks mode.\nPage needs to have a valid a doc type.');return}if(self!==top&&!parent.fb)return setTimeout(initfb,50);arguments.callee.done=true;if(self===top)top.floatbox=new Floatbox();fb=top.floatbox;fb.tagAnchors(self.document.body);if(fb.autoStart){fb.start(fb.autoStart);if(typeof fb!=='undefined')delete fb.autoStart}else{fb.preloadImages('',true)}}/*@cc_on fb_tempNode=document.createElement('div');(function(){if(document.readyState!=='complete')return setTimeout(arguments.callee,50);try{fb_tempNode.doScroll('left')}catch(e){return setTimeout(arguments.callee,50)}initfb();delete fb_tempNode})();/*@if(false)@*/if(/Apple|KDE/i.test(navigator.vendor)){(function(){if(/loaded|complete/.test(document.readyState)){initfb()}else{setTimeout(arguments.callee,50)}})()}else if(document.addEventListener){document.addEventListener('DOMContentLoaded',initfb,false)}/*@end@*/fb_prevOnload=window.onload;window.onload=function(){if(typeof fb_prevOnload==='function')fb_prevOnload();initfb()};

/* cache data: 1328694207.12 / 7 */
