(function($){$.fn.inputText=function(sett){var o=$.extend({text:'Defaultní text'},sett);return this.each(function(){if(this.type&&this.type=='text'){var text=this.value==''?o.text:this.value,that=this;$(this).val(text).focus(function(){if(this.value==text)this.value=''}).blur(function(){if(this.value=='')this.value=text});$(this.form).submit(function(){if(that.value==text)that.value=''});}});}}(jQuery));
;(function($){$.pdBox=function(){this.overlay=null;this.overlayI=null;this.window={};this.$doc=$(document);this.$body=$('body');this.$html=$('html');this.langcode=this.$html.attr('lang')||'cs';this.langs={cs:{close:"Zavřít",prev:"předchozí",next:"další"},en:{close:"Close",prev:"previous",next:"next"},de:{close:"Zumachen",prev:"vorige",next:"folgend"},es:{close:"Vaer",prev:"previo",next:"siguiente"},fr:{close:"Fermer",prev:"précédant",next:"suivant"},it:{close:"Chiudere",prev:"previo",next:"veniente"},sk:{close:"Zavrieť",prev:"predchádzajúca",next:"ďalšie"},ru:{close:"закрыть",prev:"предшествующий",next:"последующий"}};this.html="<div id='pd-box-top'>"
+"<div id='pd-box-bottom'>"
+"<div id='pd-box-left'>"
+"<div id='pd-box-right'>"
+"<div id='pd-content'>"
+"<h2 id='pd-box-title'></h2>"
+"<div id='pd-box-desc'></div>"
+"<p id='pd-box-pager'>"
+"<a href='#' id='pd-box-prev' rel=''><span>"+this.langs[this.langcode]["prev"]+"</span></a>"
+"<span id='pd-box-pages'></span>"
+"<a href='#' id='pd-box-next' rel=''><span>"+this.langs[this.langcode]["next"]+"</span></a>"
+"</p>"
+"<a href='#' id='pd-box-image' title='"+this.langs[this.langcode]["close"]+"'></a>"
+"</div>"
+"</div>"
+"</div>"
+"</div>"
+"</div>"
+"<a href='#' id='pd-box-close' title='"+this.langs[this.langcode]["close"]+"'> "+this.langs[this.langcode]["close"]+"<span></span></a>"
+"<div id='pd-box-top-left'>&nbsp;</div>"
+"<div id='pd-box-top-right'>&nbsp;</div>"
+"<div id='pd-box-bottom-left'>&nbsp;</div>"
+"<div id='pd-box-bottom-right'>&nbsp;</div>";this.width=600;this.minWidth=450;this.autoWidth=false;this.onOpen=null;this.onLoad=null;this.onClose=null;this.isOpen=false;};$.pdBox.prototype={control:function($elems){$elems.bind('click',{that:this},function(e){e.data.that.open($(this),$elems);return false;});},open:function($this,$all)
{if(!this.isOpen)
{this.isOpen=true;this.handleOnOpen();this.overlayShow();this.boxShow();}
this.window.elem.addClass('loading').focusin(function(){$(this).addClass('focus')}).focusout(function(){$(this).removeClass('focus')});this.window.pager.hide();this.window.image.hide();this.window.title.hide();if(typeof $this!='undefined')
{this.group($this,$all);}},group:function($this,$all)
{var rel=$this.attr('rel');var that=this;if(rel)
{var group=$all.filter('[rel="'+rel+'"]');var htmlPages='';group.each(function(i)
{htmlPages+=" <a href='"+this.href+"'>"+(i+1)+"</a> ";});this.window.pages.empty().append(htmlPages);numbers=$("a",this.window.pages);numbers.bind('click',{that:this,numbers:numbers,all:$all,group:group},this.handleNumbers).eq(group.index($this)).trigger('click');this.window.prev.bind('click',function(){$('.active',that.window.pages).prev().trigger('click');return false;});this.window.next.bind('click',function(){$('.active',that.window.pages).next().trigger('click');return false;});this.$doc.bind('keyup',{that:this},this.handleKeyPage);if(numbers.size()>1)
{this.window.pager.show();}}
else
{this.preload($this.get(0).href,$this);}},openUrl:function(href)
{this.open();this.preloadUrl(href);},openHtml:function(html)
{this.open();this.window.content.show().html(html);this.handleOnLoad(html);},openHash:function(href)
{this.open();this.preloadHash(href);},preload:function(href,$this)
{var img=/\.jpg|\.png|\.gif$/,hash=/#/,$href=$this.attr('href');if(href.search(img)!==-1)
{var $img=$('img',$this),title=$img.attr('alt'),longdesc=$img.attr('longdesc')||'',desc=$img.attr('title')||'';desc=desc+((desc&&longdesc)?', ':'')+((longdesc)?'<a href="'+longdesc+'">'+longdesc+'</a>':'');if(title){this.window.title.show().text(title);}
else{this.window.title.hide();}
if(desc){this.window.content.show().html('<p>'+desc+'</p>');}
else{this.window.content.hide();}
this.window.image.show();this.preloadImage(href);}
else if($href.search(hash)==0||($href.search(hash)!=-1&&window.location.href.split('#')[0]==href.split('#')[0]))
{this.preloadHash(href);}
else
{this.preloadUrl(href);}},preloadImage:function(href){imgPreloader=document.createElement('img');$(imgPreloader).bind('load',{that:this},function(e){var that=e.data.that,imgW=this.width;that.window.image.empty().append(this);if(that.autoWidth)
{that.width=imgW+2*17+2*17;that.boxPosition();}
that.handleOnLoad(this);});$(imgPreloader).attr('src',href);},preloadUrl:function(href){var that=this,s='?',re1=/\?/;if(href.search(re1)!=-1){s='&';}
$.get(href+s+"ajax=true",function(data){var hash=(href.search(/#/)!=-1)?href.split('#')[1]:'';if(hash!=''){var frag=$('<div>'+data+'</div>');var html=$('#'+unescape(hash),frag).clone();}
else{var html=data;}
that.window.content.show().html(html);that.window.image.hide();$('#pd-box-bottom-left, #pd-box-bottom-right').css('position','absolute');that.handleOnLoad(html);});},preloadHash:function(href){if(href.search(/#/)!=-1)
{var hash=href.split('#')[1];}
else
{var hash=href;}
if($('#'+hash).size()>0){var hashContent=$('#'+hash).html();}
else{hashContent='Hash nenalezen';}
this.window.content.show().html(hashContent);this.window.image.hide();this.handleOnLoad(hashContent);},close:function()
{this.isOpen=false;this.handleOnClose();this.boxHide();this.overlayHide();},boxShow:function()
{$('#pd-box-window').css('z-index','100');this.window.elem=$('<div id="pd-box-window"></div>');this.window.elem.html(this.html).appendTo(this.$body);this.window.close=$("#pd-box-close",this.window.elem);this.window.title=$("#pd-box-title",this.window.elem);this.window.content=$("#pd-box-desc",this.window.elem);this.window.pager=$("#pd-box-pager",this.window.elem);this.window.pages=$("#pd-box-pages",this.window.elem);this.window.prev=$("#pd-box-prev",this.window.elem);this.window.next=$("#pd-box-next",this.window.elem);this.window.image=$("#pd-box-image",this.window.elem);this.window.close.bind('click',{that:this},this.handleClose);this.$doc.bind('keyup',{that:this},this.handleKeyClose);this.window.image.bind('click',{that:this},this.handleClose);this.boxPosition();},boxHide:function()
{this.window.close.unbind();this.window.next.unbind();this.window.prev.unbind();this.window.pages.find('a').unbind();this.$doc.unbind('keyup',this.handleKeyClose).unbind('keyup',this.handleKeyPage);this.window.elem.remove();},boxPosition:function()
{var scroll=this.$html.scrollTop()||this.$body.scrollTop();if(this.width<this.minWidth)
this.width=this.minWidth;this.window.elem.css({marginLeft:'-'+this.width/2+'px',width:this.width+'px',top:(scroll+40)+"px"});},overlayShow:function()
{var h=this.$body.height();this.overlayI=$('<iframe id="pd-box-HideSelect"></iframe>').height(h).appendTo(this.$body);this.overlay=$('<div id="pd-box-overlay"></div>').height(h).appendTo(this.$body);this.overlay.bind('click',{that:this},this.handleClose);},overlayHide:function()
{this.overlay.unbind().remove();this.overlayI.remove();},getKey:function(e)
{var keycode;if(!e)
{var e=window.event;}
if(e.keyCode)
{keycode=e.keyCode;}
else if(e.which)
{keycode=e.which;}
var key=String.fromCharCode(keycode).toLowerCase();return[keycode,key];},handleClose:function(e)
{e.data.that.close();return false;},handleKeyClose:function(e)
{var that=e.data.that,key=that.getKey(e);if(key[0]==27||(!that.window.elem.is('.focus')&&(key[1]=='x'||key[1]=='c')))
{that.window.close.trigger('click');}
return false;},handleKeyPage:function(e)
{var that=e.data.that,key=that.getKey(e);if(!that.window.elem.is('.focus')&&(key[1]=='p'||key[0]==37))
{that.window.prev.filter(':visible').trigger('click');}
else if(!that.window.elem.is('.focus')&&(key[1]=='n'||key[1]=='d'||key[0]==39))
{that.window.next.filter(':visible').trigger('click');}
return false;},handleNumbers:function(e)
{var numbers=e.data.numbers,that=e.data.that,$this=$(this),index=numbers.index(this);numbers.removeClass('active');$this.addClass('active');if(index==0)
{that.window.prev.hide();}
else
{that.window.prev.show();}
if(index==numbers.size()-1)
{that.window.next.hide();}
else
{that.window.next.show();}
that.preload(this.href,e.data.group.eq(index));return false;},handleOnOpen:function()
{if(typeof this.onOpen=='function')
{this.onOpen.call(this,this.window.elem);}},handleOnLoad:function(content)
{if(typeof this.onLoad=='function')
{this.onLoad.call(this,this.window.elem,content);}
this.window.elem.removeClass('loading');},handleOnClose:function()
{if(typeof this.onClose=='function')
{this.onClose.call(this,this.window.elem);}}};}(jQuery))
;$.fn.pdTabs=function(option){option=jQuery.extend({tabSelector:'.tab-fragment',tabNameSelector:'.tab-name',defTab:0,tabPosition:'top',hideTabClass:'hide-tab',activeTabClass:'active',callFunction:function(){},prefix:'hi_'},option);var helpHash='';var sdiak="áäčďéěíĺľňóôöŕšťúůüýřžÁÄČĎÉĚÍĹĽŇÓÔÖŔŠŤÚŮÜÝŘŽ/";var bdiak="aacdeeillnooorstuuuyrzAACDEEILLNOOORSTUUUYRZ.";function bezdiak(str){var tx="";var txt=str;for(var p=0;p<txt.length;p++){if(sdiak.indexOf(txt.charAt(p))!=-1){tx+=bdiak.charAt(sdiak.indexOf(txt.charAt(p)))}else tx+=txt.charAt(p)}
return tx};$(this).each(function(){var element=$(this);$(element).addClass('js');var tabConstruct={name:function(){var i=0;var arr=[];$(''+option.tabSelector,element).each(function(){var size=$(''+option.tabNameSelector,this).size();if(size>0){if($(''+option.tabNameSelector+':eq(0)',this).attr('title')!=''){arr[i]=$(''+option.tabNameSelector+':eq(0)',this).attr('title')}else{arr[i]=$(''+option.tabNameSelector+':eq(0)',this).text()}}else{var j=i+1;arr[i]='Tab '+j}
i++});return arr},id:function(){var arr=this.name();for(var i=0;i<arr.length;i++){arr[i]=bezdiak(arr[i].toLowerCase());arr[i]=arr[i].replace(/\s/g,"-").replace(/[-]{2,}/g,"-").replace(/\.|\{|\}|\(|\)|\[|\]|\\|@|:|\d/g,"").replace(/^-/,"").replace(/-$/,"")}
return arr},size:$(''+option.tabSelector,element).size(),tabList:function(){var arrName=tabConstruct.name();var arrId=tabConstruct.id();var list='<ul class="tab-list reset clearfix tab-list-small">';for(var i=0;i<this.size;i++){if($(''+option.tabSelector,element).eq(i).hasClass('special')){list+='<li class="tab-'+(i+1)+' tab-'+arrId[i]+' tab-special"><a href="#'+arrId[i]+'">'+arrName[i]+'<span></span></a></li>'}else{list+='<li class="tab-'+(i+1)+' tab-'+arrId[i]+'"><a href="#'+arrId[i]+'">'+arrName[i]+'<span></span></a></li>'}}
list+='</ul>';return list}};if(option.tabPosition=='bottom'){$(element).append(tabConstruct.tabList());$('.tab-list a').each(function(){$(this).attr('href','#'+$(this).attr('href').split('#')[1])})}else{$(element).prepend(tabConstruct.tabList());$('.tab-list a').each(function(){$(this).attr('href','#'+$(this).attr('href').split('#')[1])})}
var i=0;var arrId=tabConstruct.id();$(''+option.tabSelector,element).each(function(){$(this).attr('id',arrId[i]);i++});function makeTabByHash(hash){if(typeof hash!='undefined'){var hash=hash}else{var hash=''}
if(hash!=''){var onlyHash=hash;hash=option.prefix+hash}else{hash=window.location.hash.slice(1)}
if(hash==''&&helpHash==''){var index=typeof option.defTab=='number'?option.defTab:0;$(''+option.tabSelector,element).eq(index).removeClass(option.hideTabClass);$(''+option.tabSelector,element).not(':eq('+index+')').addClass(option.hideTabClass);$('.tab-list li',element).not(':eq('+index+')').removeClass(option.activeTabClass);$('.tab-list li',element).eq(index).addClass(option.activeTabClass)}else{if($('#'+hash,element).is(option.tabSelector)==true){$('#'+hash,element).filter('.hide-tab').removeClass(option.hideTabClass);$(''+option.tabSelector,element).not('#'+hash+'').addClass(option.hideTabClass);var index=$(''+option.tabSelector,element).index($('#'+hash));$('.tab-list li',element).not(':eq('+index+')').removeClass(option.activeTabClass);$('.tab-list li',element).eq(index).addClass(option.activeTabClass);helpHash=hash}else if($(''+option.tabSelector+' #'+hash,element).size()>0||$(''+option.tabSelector+' #'+onlyHash,element).size()>0){if($(''+option.tabSelector+' #'+hash,element).size()>0){var index=$(''+option.tabSelector,element).index($('#'+hash).parents(''+option.tabSelector))}else{var index=$(''+option.tabSelector,element).index($('#'+onlyHash).parents(''+option.tabSelector))}
$(''+option.tabSelector,element).eq(index).removeClass(option.hideTabClass);$(''+option.tabSelector,element).not(':eq('+index+')').addClass(option.hideTabClass);$('.tab-list li',element).not(':eq('+index+')').removeClass(option.activeTabClass);$('.tab-list li',element).eq(index).addClass(option.activeTabClass);helpHash=$(''+option.tabSelector+' #'+hash,element).parents(''+option.tabSelector).attr('id')}else{if(helpHash==''){var index=typeof option.defTab=='number'?option.defTab:0}else{var index=$(''+option.tabSelector,element).index($('#'+helpHash))}
$(''+option.tabSelector,element).not(':eq('+index+')').addClass(option.hideTabClass);$('.tab-list li',element).not(':eq('+index+')').removeClass(option.activeTabClass);$('.tab-list li',element).eq(index).addClass(option.activeTabClass)}
option.callFunction();if($(''+option.tabSelector+' #'+hash,element).size()>0){var top=$('#'+hash).offset().top;$('html, body').scrollTop(top)}}};$('a[href^="#"]').each(function(){var hash=$(this).attr('href').split('#');hash=hash[hash.length-1];if(hash!=''&&$('#'+hash,element).size()){$('#'+hash).each(function(){this.id=option.prefix+this.id});$('label[for="'+hash+'"]').each(function(){this.htmlFor=option.prefix+this.htmlFor});$(this).click(function(){$.history.load(hash);return false})}});$.history.init(makeTabByHash);var hash=window.location.hash;hash=hash.replace(/^.*#/,'');if(hash!=''){$.history.load(hash)}else{makeTabByHash()}})};(function($){function History(){this._curHash='';this._callback=function(hash){}};$.extend(History.prototype,{init:function(callback){this._callback=callback;this._curHash=location.hash;if($.browser.msie){if(this._curHash==''){this._curHash='#'}
$("body").prepend('<iframe id="jQuery_history" style="display: none;"></iframe>');var iframe=$("#jQuery_history")[0].contentWindow.document;iframe.open();iframe.close();iframe.location.hash=this._curHash}else if($.browser.safari){this._historyBackStack=[];this._historyBackStack.length=history.length;this._historyForwardStack=[];this._isFirst=true;this._dontCheck=false}
this._callback(this._curHash.replace(/^#/,''));setInterval(this._check,100)},add:function(hash){this._historyBackStack.push(hash);this._historyForwardStack.length=0;this._isFirst=true},_check:function(){if($.browser.msie){var ihistory=$("#jQuery_history")[0];var iframe=ihistory.contentDocument||ihistory.contentWindow.document;var current_hash=iframe.location.hash;if(current_hash!=$.history._curHash){location.hash=current_hash;$.history._curHash=current_hash;$.history._callback(current_hash.replace(/^#/,''))}}else if($.browser.safari){if(!$.history._dontCheck){var historyDelta=history.length-$.history._historyBackStack.length;if(historyDelta){$.history._isFirst=false;if(historyDelta<0){for(var i=0;i<Math.abs(historyDelta);i++)$.history._historyForwardStack.unshift($.history._historyBackStack.pop())}else{for(var i=0;i<historyDelta;i++)$.history._historyBackStack.push($.history._historyForwardStack.shift())}
var cachedHash=$.history._historyBackStack[$.history._historyBackStack.length-1];if(cachedHash!=undefined){$.history._curHash=location.hash;$.history._callback(cachedHash)}}else if($.history._historyBackStack[$.history._historyBackStack.length-1]==undefined&&!$.history._isFirst){if(location.hash.indexOf('#')>=0){$.history._callback(location.hash.split('#')[1])}else{$.history._callback('')}
$.history._isFirst=true}}}else{var current_hash=location.hash;if(current_hash!=$.history._curHash){$.history._curHash=current_hash;$.history._callback(current_hash.replace(/^#/,''))}}},isKonqueror:function(){return /KHTML|Konqueror/.test(navigator.userAgent)},load:function(hash){var newhash;if($.browser.safari){newhash=hash}else{newhash=(this.isKonqueror()?'':'#')+hash;location.hash=newhash}
this._curHash=newhash;if($.browser.msie){var ihistory=$("#jQuery_history")[0];var iframe=ihistory.contentWindow.document;iframe.open();iframe.close();iframe.location.hash=newhash;this._callback(hash)}else if($.browser.safari){this._dontCheck=true;this.add(hash);var fn=function(){$.history._dontCheck=false};window.setTimeout(fn,200);this._callback(hash);location.hash=newhash}else{this._callback(hash)}}});$(document).ready(function(){$.history=new History()})})(jQuery);
;(function($,e,b){var c="hashchange",h=document,f,g=$.event.special,i=h.documentMode,d="on"+c in e&&(i===b||i>7);function a(j){j=j||location.href;return"#"+j.replace(/^[^#]*#?(.*)$/,"$1")}$.fn[c]=function(j){return j?this.bind(c,j):this.trigger(c)};$.fn[c].delay=50;g[c]=$.extend(g[c],{setup:function(){if(d){return false}$(f.start)},teardown:function(){if(d){return false}$(f.stop)}});f=(function(){var j={},p,m=a(),k=function(q){return q},l=k,o=k;j.start=function(){p||n()};j.stop=function(){p&&clearTimeout(p);p=b};function n(){var r=a(),q=o(m);if(r!==m){l(m=r,q);$(e).trigger(c)}else{if(q!==m){location.href=location.href.replace(/#.*/,"")+q}}p=setTimeout(n,$.fn[c].delay)}$.browser.msie&&!d&&(function(){var q,r;j.start=function(){if(!q){r=$.fn[c].src;r=r&&r+a();q=$('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){r||l(a());n()}).attr("src",r||"javascript:0").insertAfter("body")[0].contentWindow;h.onpropertychange=function(){try{if(event.propertyName==="title"){q.document.title=h.title}}catch(s){}}}};j.stop=k;o=function(){return a(q.location.href)};l=function(v,s){var u=q.document,t=$.fn[c].domain;if(v!==s){u.title=h.title;u.open();t&&u.write('<script>document.domain="'+t+'"<\/script>');u.close();q.location.hash=v}}})();return j})()})(jQuery,this);
;(function($){$.fn.pdAjaxForm=function(ajax){return this.each(function(){var $box=$(this),$form=this.tagName=='FORM'?$box:$box.find('form'),submit=':submit, :image';var a=ajax||{};$box.bind('click',function(e){var $target=$(e.target);if($target.closest(submit).length){var $this=$(e.target.form),_this=e.target.form,btn=$target.attr('name')!=''?$target.attr('name')+'='+$target.val():'',data=$this.serialize()+'&'+btn+'&ajax=true',act=_this.action.split('#')[0],url=(act==''||act==' ')?'/':act,type=_this.method.toUpperCase();$.ajax({url:a.url||url,type:a.type||type,dataType:a.dataType||null,success:function(xml){if(typeof a.success=='function'){a.success(xml,$box,$this);}},beforeSend:function(){if(typeof a.beforeSend=='function'){return a.beforeSend($box,$this,data,a)}},data:a.data||data});return false;}});});};$.fn.clearForm=function(dontClear){var not=dontClear||'';return this.not(not).each(function(){var type=this.type,tag=this.tagName.toLowerCase();if(tag=='form'){return $(':input',this).clearForm(not);}
if(type=='text'||type=='password'||tag=='textarea'){this.value='';}
else if(type=='checkbox'||type=='radio'){this.checked=false;}
else if(tag=='select'){this.selectedIndex=-1;}});};})($);
;/*!
 * jQuery UI 1.8.16
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI
 */
(function(c,j){function k(a,b){var d=a.nodeName.toLowerCase();if("area"===d){b=a.parentNode;d=b.name;if(!a.href||!d||b.nodeName.toLowerCase()!=="map")return false;a=c("img[usemap=#"+d+"]")[0];return!!a&&l(a)}return(/input|select|textarea|button|object/.test(d)?!a.disabled:"a"==d?a.href||b:b)&&l(a)}function l(a){return!c(a).parents().andSelf().filter(function(){return c.curCSS(this,"visibility")==="hidden"||c.expr.filters.hidden(this)}).length}c.ui=c.ui||{};if(!c.ui.version){c.extend(c.ui,{version:"1.8.16",
keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});c.fn.extend({propAttr:c.fn.prop||c.fn.attr,_focus:c.fn.focus,focus:function(a,b){return typeof a==="number"?this.each(function(){var d=
this;setTimeout(function(){c(d).focus();b&&b.call(d)},a)}):this._focus.apply(this,arguments)},scrollParent:function(){var a;a=c.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(c.curCSS(this,"position",1))&&/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(c.curCSS(this,
"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!a.length?c(document):a},zIndex:function(a){if(a!==j)return this.css("zIndex",a);if(this.length){a=c(this[0]);for(var b;a.length&&a[0]!==document;){b=a.css("position");if(b==="absolute"||b==="relative"||b==="fixed"){b=parseInt(a.css("zIndex"),10);if(!isNaN(b)&&b!==0)return b}a=a.parent()}}return 0},disableSelection:function(){return this.bind((c.support.selectstart?"selectstart":
"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});c.each(["Width","Height"],function(a,b){function d(f,g,m,n){c.each(e,function(){g-=parseFloat(c.curCSS(f,"padding"+this,true))||0;if(m)g-=parseFloat(c.curCSS(f,"border"+this+"Width",true))||0;if(n)g-=parseFloat(c.curCSS(f,"margin"+this,true))||0});return g}var e=b==="Width"?["Left","Right"]:["Top","Bottom"],h=b.toLowerCase(),i={innerWidth:c.fn.innerWidth,innerHeight:c.fn.innerHeight,
outerWidth:c.fn.outerWidth,outerHeight:c.fn.outerHeight};c.fn["inner"+b]=function(f){if(f===j)return i["inner"+b].call(this);return this.each(function(){c(this).css(h,d(this,f)+"px")})};c.fn["outer"+b]=function(f,g){if(typeof f!=="number")return i["outer"+b].call(this,f);return this.each(function(){c(this).css(h,d(this,f,true,g)+"px")})}});c.extend(c.expr[":"],{data:function(a,b,d){return!!c.data(a,d[3])},focusable:function(a){return k(a,!isNaN(c.attr(a,"tabindex")))},tabbable:function(a){var b=c.attr(a,
"tabindex"),d=isNaN(b);return(d||b>=0)&&k(a,!d)}});c(function(){var a=document.body,b=a.appendChild(b=document.createElement("div"));c.extend(b.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});c.support.minHeight=b.offsetHeight===100;c.support.selectstart="onselectstart"in b;a.removeChild(b).style.display="none"});c.extend(c.ui,{plugin:{add:function(a,b,d){a=c.ui[a].prototype;for(var e in d){a.plugins[e]=a.plugins[e]||[];a.plugins[e].push([b,d[e]])}},call:function(a,b,d){if((b=a.plugins[b])&&
a.element[0].parentNode)for(var e=0;e<b.length;e++)a.options[b[e][0]]&&b[e][1].apply(a.element,d)}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(a,b){if(c(a).css("overflow")==="hidden")return false;b=b&&b==="left"?"scrollLeft":"scrollTop";var d=false;if(a[b]>0)return true;a[b]=1;d=a[b]>0;a[b]=0;return d},isOverAxis:function(a,b,d){return a>b&&a<b+d},isOver:function(a,b,d,e,h,i){return c.ui.isOverAxis(a,d,h)&&
c.ui.isOverAxis(b,e,i)}})}})(jQuery);
;/*!
 * jQuery UI Widget 1.8.16
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Widget
 */
(function(b,j){if(b.cleanData){var k=b.cleanData;b.cleanData=function(a){for(var c=0,d;(d=a[c])!=null;c++)try{b(d).triggerHandler("remove")}catch(e){}k(a)}}else{var l=b.fn.remove;b.fn.remove=function(a,c){return this.each(function(){if(!c)if(!a||b.filter(a,[this]).length)b("*",this).add([this]).each(function(){try{b(this).triggerHandler("remove")}catch(d){}});return l.call(b(this),a,c)})}}b.widget=function(a,c,d){var e=a.split(".")[0],f;a=a.split(".")[1];f=e+"-"+a;if(!d){d=c;c=b.Widget}b.expr[":"][f]=
function(h){return!!b.data(h,a)};b[e]=b[e]||{};b[e][a]=function(h,g){arguments.length&&this._createWidget(h,g)};c=new c;c.options=b.extend(true,{},c.options);b[e][a].prototype=b.extend(true,c,{namespace:e,widgetName:a,widgetEventPrefix:b[e][a].prototype.widgetEventPrefix||a,widgetBaseClass:f},d);b.widget.bridge(a,b[e][a])};b.widget.bridge=function(a,c){b.fn[a]=function(d){var e=typeof d==="string",f=Array.prototype.slice.call(arguments,1),h=this;d=!e&&f.length?b.extend.apply(null,[true,d].concat(f)):
d;if(e&&d.charAt(0)==="_")return h;e?this.each(function(){var g=b.data(this,a),i=g&&b.isFunction(g[d])?g[d].apply(g,f):g;if(i!==g&&i!==j){h=i;return false}}):this.each(function(){var g=b.data(this,a);g?g.option(d||{})._init():b.data(this,a,new c(d,this))});return h}};b.Widget=function(a,c){arguments.length&&this._createWidget(a,c)};b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(a,c){b.data(c,this.widgetName,this);this.element=b(c);this.options=
b.extend(true,{},this.options,this._getCreateOptions(),a);var d=this;this.element.bind("remove."+this.widgetName,function(){d.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return b.metadata&&b.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+
"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(a,c){var d=a;if(arguments.length===0)return b.extend({},this.options);if(typeof a==="string"){if(c===j)return this.options[a];d={};d[a]=c}this._setOptions(d);return this},_setOptions:function(a){var c=this;b.each(a,function(d,e){c._setOption(d,e)});return this},_setOption:function(a,c){this.options[a]=c;if(a==="disabled")this.widget()[c?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",
c);return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(a,c,d){var e=this.options[a];c=b.Event(c);c.type=(a===this.widgetEventPrefix?a:this.widgetEventPrefix+a).toLowerCase();d=d||{};if(c.originalEvent){a=b.event.props.length;for(var f;a;){f=b.event.props[--a];c[f]=c.originalEvent[f]}}this.element.trigger(c,d);return!(b.isFunction(e)&&e.call(this.element[0],c,d)===false||c.isDefaultPrevented())}}})(jQuery);
;/*
 * jQuery UI Tabs 1.8.16
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Tabs
 *
 * Depends:
 *	jquery.ui.core.js
 *	jquery.ui.widget.js
 */
(function(d,p){function u(){return++v}function w(){return++x}var v=0,x=0;d.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:false,cookie:null,collapsible:false,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"<div></div>",remove:null,select:null,show:null,spinner:"<em>Loading&#8230;</em>",tabTemplate:"<li><a href='#{href}'><span>#{label}</span></a></li>"},_create:function(){this._tabify(true)},_setOption:function(b,e){if(b=="selected")this.options.collapsible&&
e==this.options.selected||this.select(e);else{this.options[b]=e;this._tabify()}},_tabId:function(b){return b.title&&b.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+u()},_sanitizeSelector:function(b){return b.replace(/:/g,"\\:")},_cookie:function(){var b=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+w());return d.cookie.apply(null,[b].concat(d.makeArray(arguments)))},_ui:function(b,e){return{tab:b,panel:e,index:this.anchors.index(b)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var b=
d(this);b.html(b.data("label.tabs")).removeData("label.tabs")})},_tabify:function(b){function e(g,f){g.css("display","");!d.support.opacity&&f.opacity&&g[0].style.removeAttribute("filter")}var a=this,c=this.options,h=/^#.+/;this.list=this.element.find("ol,ul").eq(0);this.lis=d(" > li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return d("a",this)[0]});this.panels=d([]);this.anchors.each(function(g,f){var i=d(f).attr("href"),l=i.split("#")[0],q;if(l&&(l===location.toString().split("#")[0]||
(q=d("base")[0])&&l===q.href)){i=f.hash;f.href=i}if(h.test(i))a.panels=a.panels.add(a.element.find(a._sanitizeSelector(i)));else if(i&&i!=="#"){d.data(f,"href.tabs",i);d.data(f,"load.tabs",i.replace(/#.*$/,""));i=a._tabId(f);f.href="#"+i;f=a.element.find("#"+i);if(!f.length){f=d(c.panelTemplate).attr("id",i).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(a.panels[g-1]||a.list);f.data("destroy.tabs",true)}a.panels=a.panels.add(f)}else c.disabled.push(g)});if(b){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all");
this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.lis.addClass("ui-state-default ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");if(c.selected===p){location.hash&&this.anchors.each(function(g,f){if(f.hash==location.hash){c.selected=g;return false}});if(typeof c.selected!=="number"&&c.cookie)c.selected=parseInt(a._cookie(),10);if(typeof c.selected!=="number"&&this.lis.filter(".ui-tabs-selected").length)c.selected=
this.lis.index(this.lis.filter(".ui-tabs-selected"));c.selected=c.selected||(this.lis.length?0:-1)}else if(c.selected===null)c.selected=-1;c.selected=c.selected>=0&&this.anchors[c.selected]||c.selected<0?c.selected:0;c.disabled=d.unique(c.disabled.concat(d.map(this.lis.filter(".ui-state-disabled"),function(g){return a.lis.index(g)}))).sort();d.inArray(c.selected,c.disabled)!=-1&&c.disabled.splice(d.inArray(c.selected,c.disabled),1);this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");
if(c.selected>=0&&this.anchors.length){a.element.find(a._sanitizeSelector(a.anchors[c.selected].hash)).removeClass("ui-tabs-hide");this.lis.eq(c.selected).addClass("ui-tabs-selected ui-state-active");a.element.queue("tabs",function(){a._trigger("show",null,a._ui(a.anchors[c.selected],a.element.find(a._sanitizeSelector(a.anchors[c.selected].hash))[0]))});this.load(c.selected)}d(window).bind("unload",function(){a.lis.add(a.anchors).unbind(".tabs");a.lis=a.anchors=a.panels=null})}else c.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));
this.element[c.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");c.cookie&&this._cookie(c.selected,c.cookie);b=0;for(var j;j=this.lis[b];b++)d(j)[d.inArray(b,c.disabled)!=-1&&!d(j).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");c.cache===false&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");if(c.event!=="mouseover"){var k=function(g,f){f.is(":not(.ui-state-disabled)")&&f.addClass("ui-state-"+g)},n=function(g,f){f.removeClass("ui-state-"+
g)};this.lis.bind("mouseover.tabs",function(){k("hover",d(this))});this.lis.bind("mouseout.tabs",function(){n("hover",d(this))});this.anchors.bind("focus.tabs",function(){k("focus",d(this).closest("li"))});this.anchors.bind("blur.tabs",function(){n("focus",d(this).closest("li"))})}var m,o;if(c.fx)if(d.isArray(c.fx)){m=c.fx[0];o=c.fx[1]}else m=o=c.fx;var r=o?function(g,f){d(g).closest("li").addClass("ui-tabs-selected ui-state-active");f.hide().removeClass("ui-tabs-hide").animate(o,o.duration||"normal",
function(){e(f,o);a._trigger("show",null,a._ui(g,f[0]))})}:function(g,f){d(g).closest("li").addClass("ui-tabs-selected ui-state-active");f.removeClass("ui-tabs-hide");a._trigger("show",null,a._ui(g,f[0]))},s=m?function(g,f){f.animate(m,m.duration||"normal",function(){a.lis.removeClass("ui-tabs-selected ui-state-active");f.addClass("ui-tabs-hide");e(f,m);a.element.dequeue("tabs")})}:function(g,f){a.lis.removeClass("ui-tabs-selected ui-state-active");f.addClass("ui-tabs-hide");a.element.dequeue("tabs")};
this.anchors.bind(c.event+".tabs",function(){var g=this,f=d(g).closest("li"),i=a.panels.filter(":not(.ui-tabs-hide)"),l=a.element.find(a._sanitizeSelector(g.hash));if(f.hasClass("ui-tabs-selected")&&!c.collapsible||f.hasClass("ui-state-disabled")||f.hasClass("ui-state-processing")||a.panels.filter(":animated").length||a._trigger("select",null,a._ui(this,l[0]))===false){this.blur();return false}c.selected=a.anchors.index(this);a.abort();if(c.collapsible)if(f.hasClass("ui-tabs-selected")){c.selected=
-1;c.cookie&&a._cookie(c.selected,c.cookie);a.element.queue("tabs",function(){s(g,i)}).dequeue("tabs");this.blur();return false}else if(!i.length){c.cookie&&a._cookie(c.selected,c.cookie);a.element.queue("tabs",function(){r(g,l)});a.load(a.anchors.index(this));this.blur();return false}c.cookie&&a._cookie(c.selected,c.cookie);if(l.length){i.length&&a.element.queue("tabs",function(){s(g,i)});a.element.queue("tabs",function(){r(g,l)});a.load(a.anchors.index(this))}else throw"jQuery UI Tabs: Mismatching fragment identifier.";
d.browser.msie&&this.blur()});this.anchors.bind("click.tabs",function(){return false})},_getIndex:function(b){if(typeof b=="string")b=this.anchors.index(this.anchors.filter("[href$="+b+"]"));return b},destroy:function(){var b=this.options;this.abort();this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.anchors.each(function(){var e=
d.data(this,"href.tabs");if(e)this.href=e;var a=d(this).unbind(".tabs");d.each(["href","load","cache"],function(c,h){a.removeData(h+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){d.data(this,"destroy.tabs")?d(this).remove():d(this).removeClass("ui-state-default ui-corner-top ui-tabs-selected ui-state-active ui-state-hover ui-state-focus ui-state-disabled ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide")});b.cookie&&this._cookie(null,b.cookie);return this},add:function(b,
e,a){if(a===p)a=this.anchors.length;var c=this,h=this.options;e=d(h.tabTemplate.replace(/#\{href\}/g,b).replace(/#\{label\}/g,e));b=!b.indexOf("#")?b.replace("#",""):this._tabId(d("a",e)[0]);e.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var j=c.element.find("#"+b);j.length||(j=d(h.panelTemplate).attr("id",b).data("destroy.tabs",true));j.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(a>=this.lis.length){e.appendTo(this.list);j.appendTo(this.list[0].parentNode)}else{e.insertBefore(this.lis[a]);
j.insertBefore(this.panels[a])}h.disabled=d.map(h.disabled,function(k){return k>=a?++k:k});this._tabify();if(this.anchors.length==1){h.selected=0;e.addClass("ui-tabs-selected ui-state-active");j.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){c._trigger("show",null,c._ui(c.anchors[0],c.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[a],this.panels[a]));return this},remove:function(b){b=this._getIndex(b);var e=this.options,a=this.lis.eq(b).remove(),c=this.panels.eq(b).remove();
if(a.hasClass("ui-tabs-selected")&&this.anchors.length>1)this.select(b+(b+1<this.anchors.length?1:-1));e.disabled=d.map(d.grep(e.disabled,function(h){return h!=b}),function(h){return h>=b?--h:h});this._tabify();this._trigger("remove",null,this._ui(a.find("a")[0],c[0]));return this},enable:function(b){b=this._getIndex(b);var e=this.options;if(d.inArray(b,e.disabled)!=-1){this.lis.eq(b).removeClass("ui-state-disabled");e.disabled=d.grep(e.disabled,function(a){return a!=b});this._trigger("enable",null,
this._ui(this.anchors[b],this.panels[b]));return this}},disable:function(b){b=this._getIndex(b);var e=this.options;if(b!=e.selected){this.lis.eq(b).addClass("ui-state-disabled");e.disabled.push(b);e.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[b],this.panels[b]))}return this},select:function(b){b=this._getIndex(b);if(b==-1)if(this.options.collapsible&&this.options.selected!=-1)b=this.options.selected;else return this;this.anchors.eq(b).trigger(this.options.event+".tabs");return this},
load:function(b){b=this._getIndex(b);var e=this,a=this.options,c=this.anchors.eq(b)[0],h=d.data(c,"load.tabs");this.abort();if(!h||this.element.queue("tabs").length!==0&&d.data(c,"cache.tabs"))this.element.dequeue("tabs");else{this.lis.eq(b).addClass("ui-state-processing");if(a.spinner){var j=d("span",c);j.data("label.tabs",j.html()).html(a.spinner)}this.xhr=d.ajax(d.extend({},a.ajaxOptions,{url:h,success:function(k,n){e.element.find(e._sanitizeSelector(c.hash)).html(k);e._cleanup();a.cache&&d.data(c,
"cache.tabs",true);e._trigger("load",null,e._ui(e.anchors[b],e.panels[b]));try{a.ajaxOptions.success(k,n)}catch(m){}},error:function(k,n){e._cleanup();e._trigger("load",null,e._ui(e.anchors[b],e.panels[b]));try{a.ajaxOptions.error(k,n,b,c)}catch(m){}}}));e.element.dequeue("tabs");return this}},abort:function(){this.element.queue([]);this.panels.stop(false,true);this.element.queue("tabs",this.element.queue("tabs").splice(-2,2));if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup();return this},
url:function(b,e){this.anchors.eq(b).removeData("cache.tabs").data("load.tabs",e);return this},length:function(){return this.anchors.length}});d.extend(d.ui.tabs,{version:"1.8.16"});d.extend(d.ui.tabs.prototype,{rotation:null,rotate:function(b,e){var a=this,c=this.options,h=a._rotate||(a._rotate=function(j){clearTimeout(a.rotation);a.rotation=setTimeout(function(){var k=c.selected;a.select(++k<a.anchors.length?k:0)},b);j&&j.stopPropagation()});e=a._unrotate||(a._unrotate=!e?function(j){j.clientX&&
a.rotate(null)}:function(){t=c.selected;h()});if(b){this.element.bind("tabsshow",h);this.anchors.bind(c.event+".tabs",e);h()}else{clearTimeout(a.rotation);this.element.unbind("tabsshow",h);this.anchors.unbind(c.event+".tabs",e);delete this._rotate;delete this._unrotate}return this}})})(jQuery);
;
;var sk=window.sk={base:{},util:{},widgets:{}};sk.extend=function(child,parent){var F=function(){};F.prototype=parent.prototype;child.prototype=new F();child._super=parent.prototype;child.prototype.constructor=child;};
;(function(sk,$){sk.widgets.Carousel=function(element,options){this.$element=$(element);this.options=$.extend({item:'li',visible:2,animation:500,boxClass:'carousel-box',spcClass:'carousel-spc',clipClass:'carousel-clip',axis:'x',htmlPager:'.pager',pause:false,repeat:false,pauseOnHover:'',pagerPages:true,pagerMask:'',timeout:5000,auto:true},options)
this.paused=false;this.$items=this.$element.find(this.options.item);this.length=this.$items.length;this.visible=this.options.visible;this.end=this.length-this.visible;this.animate=false;this.current=0;this.axProps=this.options.axis=='x'?{left:'left',width:'width',outerWidth:'outerWidth',scrollWidth:'scrollWidth',scrollLeft:'scrollLeft',offset:'offsetLeft'}:{left:'top',width:'height',outerWidth:'outerHeight',scrollWidth:'scrollHeight',scrollLeft:'scrollTop',offset:'offsetTop'};return this;};sk.widgets.Carousel.prototype={constructor:sk.widgets.Carousel,proxy:$.proxy,abs:Math.abs,init:function(){if(this.$element.data('carouselInit')||!this.$element.length||!this.end)
{return this;}
var o=this.options,e=this.$element;if(o.repeat){this.$items.slice(0,this.visible).clone().addClass('clone').appendTo(this.$element);this.$items.slice(this.length-this.visible,this.length).clone().addClass('clone').prependTo(this.$element);this.$items=this.$element.find(this.options.item);this.current=this.current+this.visible;}
this.offsets=[];for(var i=0,l=this.$items.length;i<l;i++){this.offsets[i]=this.$items.get(i)[this.axProps.offset];};e.wrap('<div class="'+o.boxClass+'"><div class="'+o.spcClass+'"><div class="'+o.clipClass+'"></div></div></div>')
[this.axProps.width](e.attr(this.axProps.scrollWidth))
[this.axProps.scrollLeft](0).css({'overflow':'visible','position':'relative'}).css(this.axProps.left,-this.offsets[this.current]+'px').data('carouselInit',true);this.$box=e.closest('.'+o.boxClass);this.$spc=e.closest('.'+o.spcClass);this.$clip=e.closest('.'+o.clipClass);this.$pager=$(o.htmlPager);if(this.$pager.length&&(this.options.visible<this.length)){var pager=[];pager.push('<a href="#" class="prev"><span class="out">předchozí</span></a>');if(o.pagerPages&&!o.pagerMaks){pager.push('<span class="pages">')
for(var i=0,l=Math.ceil(this.length/this.visible);i<l;i++){pager.push('<a href="#" class="page">'+(i+1)+'</a>');};pager.push('</span>')}
else if(o.pagerMask){pager.push('<span class="pages"></span>')}
pager.push('<a href="#" class="next"><span class="out">další</span></a>');o.pause&&pager.push('<a href="#" class="control"></a>');this.$pager.append(pager.join(' ')).delegate('.control','click',this.proxy(this.control,this)).delegate('.page','click',this.proxy(this.page,this)).delegate('.prev','click',this.proxy(this.prev,this)).delegate('.next','click',this.proxy(this.next,this));(o.pagerPages&&!o.pagerMaks)&&this.getPage();(o.pagerMask)&&this.getPages();(!o.repeat)&&this.controlPrev();(!o.repeat)&&this.controlNext();this.getControl();}
if(o.pauseOnHover){$(document).delegate(o.pauseOnHover,'mouseenter',this.proxy(function(){this.clearInterval();this.paused=true;this.getControl();},this)).delegate(o.pauseOnHover,'mouseleave',this.proxy(function(){this.resetInterval();this.paused=false;this.getControl();},this))}
this.resetInterval();return this;},isVisible:function(i){var cW=this.$clip[this.axProps.width](),cOff=this.offsets[this.current],iW=this.$items.eq(i)[this.axProps.outerWidth](),iOff=this.offsets[i];return(cOff<=iOff&&(cW+cOff)>=(iW+iOff));},getVisible:function(){var count=0;for(var i=0,l=this.$items.length;i<l;i++){this.isVisible(i)&&count++;}
return count;},interval:function()
{this.next();},clearInterval:function()
{this.mainTimer=clearTimeout(this.mainTimer);},resetInterval:function()
{if(this.options.auto){this.mainTimer=clearTimeout(this.mainTimer);this.mainTimer=setTimeout(this.proxy(function(){this.interval()},this),this.options.timeout);}},control:function(){this.paused=!this.paused;this.getControl();this.paused?this.clearInterval():this.resetInterval();},next:function(){var i=this.current+this.visible;this.scrollTo(i);return false;},prev:function(){var i=this.current-this.visible;this.scrollTo(i);return false;},page:function(e){var i=(parseInt($(e.target).text()))*this.visible;this.scrollTo(i);return false;},scrollTo:function(i,type){var o=this.options;if(!o.repeat)
{var i=i<0?0:i;i=i>this.end?this.end:i;}
if(i!=this.current&&!this.animate)
{this.animate=true;var props={};props[this.axProps.left]=-this.offsets[i];this.$element.stop().animate(props,o.animation,'swing',this.proxy(function(){this.animate=false;!this.paused&&this.resetInterval();if(o.repeat){if(i<this.visible)
{this.$element.css(this.axProps.left,-this.offsets[this.length]);return;}
if(i>this.length)
{this.$element.css(this.axProps.left,-this.offsets[this.visible]);return;}}},this));if(o.repeat)
{this.current=(i<this.visible)?this.length:(i>this.length)?this.visible:i;}
else
{this.current=i}
(o.pagerPages&&!o.pagerMaks)&&this.getPage();(o.pagerMask)&&this.getPages();(!o.repeat)&&this.controlPrev();(!o.repeat)&&this.controlNext();}},getControl:function(){this.$pager.find('.control').removeClass(this.paused?'pause':'play').addClass(this.paused?'play':'pause').text(this.paused?'play':'pause');},getPage:function(){this.$pager.find('.page').removeClass('active').eq((this.current-this.visible)/this.visible).addClass('active');},getPages:function(){this.$pager.find('.pages').text(this.options.pagerMask.replace('{$active}',this.current).replace('{$all}',this.length))},controlPrev:function(){this.$pager.find('.prev')[(this.current==0)?'addClass':'removeClass']('prev-disable');},controlNext:function(){this.$pager.find('.next')[(this.current==this.end)?'addClass':'removeClass']('next-disable');}};})(sk,jQuery);
;/*!
 * jQuery Tools v1.2.6 - The missing UI library for the Web
 * 
 * tooltip/tooltip.js
 * 
 * NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
 * 
 * http://flowplayer.org/tools/
 * 
 */
(function(a){a.tools=a.tools||{version:"v1.2.6"},a.tools.tooltip={conf:{effect:"toggle",fadeOutSpeed:"fast",predelay:0,delay:30,opacity:1,tip:0,fadeIE:!1,position:["top","center"],offset:[0,0],relative:!1,cancelDefault:!0,events:{def:"mouseenter,mouseleave",input:"focus,blur",widget:"focus mouseenter,blur mouseleave",tooltip:"mouseenter,mouseleave"},layout:"<div/>",tipClass:"tooltip"},addEffect:function(a,c,d){b[a]=[c,d]}};var b={toggle:[function(a){var b=this.getConf(),c=this.getTip(),d=b.opacity;d<1&&c.css({opacity:d}),c.show(),a.call()},function(a){this.getTip().hide(),a.call()}],fade:[function(b){var c=this.getConf();!a.browser.msie||c.fadeIE?this.getTip().fadeTo(c.fadeInSpeed,c.opacity,b):(this.getTip().show(),b())},function(b){var c=this.getConf();!a.browser.msie||c.fadeIE?this.getTip().fadeOut(c.fadeOutSpeed,b):(this.getTip().hide(),b())}]};function c(b,c,d){var e=d.relative?b.position().top:b.offset().top,f=d.relative?b.position().left:b.offset().left,g=d.position[0];e-=c.outerHeight()-d.offset[0],f+=b.outerWidth()+d.offset[1],/iPad/i.test(navigator.userAgent)&&(e-=a(window).scrollTop());var h=c.outerHeight()+b.outerHeight();g=="center"&&(e+=h/2),g=="bottom"&&(e+=h),g=d.position[1];var i=c.outerWidth()+b.outerWidth();g=="center"&&(f-=i/2),g=="left"&&(f-=i);return{top:e,left:f}}function d(d,e){var f=this,g=d.add(f),h,i=0,j=0,k=d.attr("title"),l=d.attr("data-tooltip"),m=b[e.effect],n,o=d.is(":input"),p=o&&d.is(":checkbox, :radio, select, :button, :submit"),q=d.attr("type"),r=e.events[q]||e.events[o?p?"widget":"input":"def"];if(!m)throw"Nonexistent effect \""+e.effect+"\"";r=r.split(/,\s*/);if(r.length!=2)throw"Tooltip: bad events configuration for "+q;d.bind(r[0],function(a){clearTimeout(i),e.predelay?j=setTimeout(function(){f.show(a)},e.predelay):f.show(a)}).bind(r[1],function(a){clearTimeout(j),e.delay?i=setTimeout(function(){f.hide(a)},e.delay):f.hide(a)}),k&&e.cancelDefault&&(d.removeAttr("title"),d.data("title",k)),a.extend(f,{show:function(b){if(!h){l?h=a(l):e.tip?h=a(e.tip).eq(0):k?h=a(e.layout).addClass(e.tipClass).appendTo(document.body).hide().append(k):(h=d.next(),h.length||(h=d.parent().next()));if(!h.length)throw"Cannot find tooltip for "+d}if(f.isShown())return f;h.stop(!0,!0);var o=c(d,h,e);e.tip&&h.html(d.data("title")),b=a.Event(),b.type="onBeforeShow",g.trigger(b,[o]);if(b.isDefaultPrevented())return f;o=c(d,h,e),h.css({position:"absolute",top:o.top,left:o.left}),n=!0,m[0].call(f,function(){b.type="onShow",n="full",g.trigger(b)});var p=e.events.tooltip.split(/,\s*/);h.data("__set")||(h.unbind(p[0]).bind(p[0],function(){clearTimeout(i),clearTimeout(j)}),p[1]&&!d.is("input:not(:checkbox, :radio), textarea")&&h.unbind(p[1]).bind(p[1],function(a){a.relatedTarget!=d[0]&&d.trigger(r[1].split(" ")[0])}),e.tip||h.data("__set",!0));return f},hide:function(c){if(!h||!f.isShown())return f;c=a.Event(),c.type="onBeforeHide",g.trigger(c);if(!c.isDefaultPrevented()){n=!1,b[e.effect][1].call(f,function(){c.type="onHide",g.trigger(c)});return f}},isShown:function(a){return a?n=="full":n},getConf:function(){return e},getTip:function(){return h},getTrigger:function(){return d}}),a.each("onHide,onBeforeShow,onShow,onBeforeHide".split(","),function(b,c){a.isFunction(e[c])&&a(f).bind(c,e[c]),f[c]=function(b){b&&a(f).bind(c,b);return f}})}a.fn.tooltip=function(b){var c=this.data("tooltip");if(c)return c;b=a.extend(!0,{},a.tools.tooltip.conf,b),typeof b.position=="string"&&(b.position=b.position.split(/,?\s/)),this.each(function(){c=new d(a(this),b),a(this).data("tooltip",c)});return b.api?c:this}})(jQuery);

;// ┌─────────────────────────────────────────────────────────────────────┐ \\
// │ Raphaël 2.0 - JavaScript Vector Library                             │ \\
// ├─────────────────────────────────────────────────────────────────────┤ \\
// │ Copyright (c) 2008-2011 Dmitry Baranovskiy (http://raphaeljs.com)   │ \\
// │ Copyright (c) 2008-2011 Sencha Labs (http://sencha.com)             │ \\
// │ Licensed under the MIT (http://raphaeljs.com/license.html) license. │ \\
// └─────────────────────────────────────────────────────────────────────┘ \\
(function(a){var b="0.3.2",c="hasOwnProperty",d=/[\.\/]/,e="*",f=function(){},g=function(a,b){return a-b},h,i,j={n:{}},k=function(a,b){var c=j,d=i,e=Array.prototype.slice.call(arguments,2),f=k.listeners(a),l=0,m=!1,n,o=[],p={},q=[],r=[];h=a,i=0;for(var s=0,t=f.length;s<t;s++)"zIndex"in f[s]&&(o.push(f[s].zIndex),f[s].zIndex<0&&(p[f[s].zIndex]=f[s]));o.sort(g);while(o[l]<0){n=p[o[l++]],q.push(n.apply(b,e));if(i){i=d;return q}}for(s=0;s<t;s++){n=f[s];if("zIndex"in n)if(n.zIndex==o[l]){q.push(n.apply(b,e));if(i){i=d;return q}do{l++,n=p[o[l]],n&&q.push(n.apply(b,e));if(i){i=d;return q}}while(n)}else p[n.zIndex]=n;else{q.push(n.apply(b,e));if(i){i=d;return q}}}i=d;return q.length?q:null};k.listeners=function(a){var b=a.split(d),c=j,f,g,h,i,k,l,m,n,o=[c],p=[];for(i=0,k=b.length;i<k;i++){n=[];for(l=0,m=o.length;l<m;l++){c=o[l].n,g=[c[b[i]],c[e]],h=2;while(h--)f=g[h],f&&(n.push(f),p=p.concat(f.f||[]))}o=n}return p},k.on=function(a,b){var c=a.split(d),e=j;for(var g=0,h=c.length;g<h;g++)e=e.n,!e[c[g]]&&(e[c[g]]={n:{}}),e=e[c[g]];e.f=e.f||[];for(g=0,h=e.f.length;g<h;g++)if(e.f[g]==b)return f;e.f.push(b);return function(a){+a==+a&&(b.zIndex=+a)}},k.stop=function(){i=1},k.nt=function(a){if(a)return(new RegExp("(?:\\.|\\/|^)"+a+"(?:\\.|\\/|$)")).test(h);return h},k.unbind=function(a,b){var f=a.split(d),g,h,i,k=[j];for(var l=0,m=f.length;l<m;l++)for(var n=0;n<k.length;n+=i.length-2){i=[n,1],g=k[n].n;if(f[l]!=e)g[f[l]]&&i.push(g[f[l]]);else for(h in g)g[c](h)&&i.push(g[h]);k.splice.apply(k,i)}for(l=0,m=k.length;l<m;l++){g=k[l];while(g.n){if(b){if(g.f){for(n=0,jj=g.f.length;n<jj;n++)if(g.f[n]==b){g.f.splice(n,1);break}!g.f.length&&delete g.f}for(h in g.n)if(g.n[c](h)&&g.n[h].f){var o=g.n[h].f;for(n=0,jj=o.length;n<jj;n++)if(o[n]==b){o.splice(n,1);break}!o.length&&delete g.n[h].f}}else{delete g.f;for(h in g.n)g.n[c](h)&&g.n[h].f&&delete g.n[h].f}g=g.n}}},k.version=b,k.toString=function(){return"You are running Eve "+b},typeof module!="undefined"&&module.exports?module.exports=k:a.eve=k})(this),function(){function cr(b,d,e,f,h,i){e=Q(e);var j,k,l,m=[],o,p,q,t=b.ms,u={},v={},w={};if(f)for(y=0,z=cl.length;y<z;y++){var x=cl[y];if(x.el.id==d.id&&x.anim==b){x.percent!=e?(cl.splice(y,1),l=1):k=x,d.attr(x.totalOrigin);break}}else f=+v;for(var y=0,z=b.percents.length;y<z;y++){if(b.percents[y]==e||b.percents[y]>f*b.top){e=b.percents[y],p=b.percents[y-1]||0,t=t/b.top*(e-p),o=b.percents[y+1],j=b.anim[e];break}f&&d.attr(b.anim[b.percents[y]])}if(!!j){if(!k){for(attr in j)if(j[g](attr))if(U[g](attr)||d.paper.customAttributes[g](attr)){u[attr]=d.attr(attr),u[attr]==null&&(u[attr]=T[attr]),v[attr]=j[attr];switch(U[attr]){case C:w[attr]=(v[attr]-u[attr])/t;break;case"colour":u[attr]=a.getRGB(u[attr]);var A=a.getRGB(v[attr]);w[attr]={r:(A.r-u[attr].r)/t,g:(A.g-u[attr].g)/t,b:(A.b-u[attr].b)/t};break;case"path":var B=bG(u[attr],v[attr]),D=B[1];u[attr]=B[0],w[attr]=[];for(y=0,z=u[attr].length;y<z;y++){w[attr][y]=[0];for(var E=1,F=u[attr][y].length;E<F;E++)w[attr][y][E]=(D[y][E]-u[attr][y][E])/t}break;case"transform":var G=d._,H=bQ(G[attr],v[attr]);if(H){u[attr]=H.from,v[attr]=H.to,w[attr]=[],w[attr].real=!0;for(y=0,z=u[attr].length;y<z;y++){w[attr][y]=[u[attr][y][0]];for(E=1,F=u[attr][y].length;E<F;E++)w[attr][y][E]=(v[attr][y][E]-u[attr][y][E])/t}}else{var I=d.matrix||new bR,J={_:{transform:G.transform},getBBox:function(){return d.getBBox(1)}};u[attr]=[I.a,I.b,I.c,I.d,I.e,I.f],bO(J,v[attr]),v[attr]=J._.transform,w[attr]=[(J.matrix.a-I.a)/t,(J.matrix.b-I.b)/t,(J.matrix.c-I.c)/t,(J.matrix.d-I.d)/t,(J.matrix.e-I.e)/t,(J.matrix.e-I.f)/t]}break;case"csv":var K=r(j[attr])[s](c),L=r(u[attr])[s](c);if(attr=="clip-rect"){u[attr]=L,w[attr]=[],y=L.length;while(y--)w[attr][y]=(K[y]-u[attr][y])/t}v[attr]=K;break;default:K=[][n](j[attr]),L=[][n](u[attr]),w[attr]=[],y=d.paper.customAttributes[attr].length;while(y--)w[attr][y]=((K[y]||0)-(L[y]||0))/t}}var M=j.easing,O=a.easing_formulas[M];if(!O){O=r(M).match(N);if(O&&O.length==5){var P=O;O=function(a){return cp(a,+P[1],+P[2],+P[3],+P[4],t)}}else O=be}q=j.start||b.start||+(new Date),x={anim:b,percent:e,timestamp:q,start:q+(b.del||0),status:0,initstatus:f||0,stop:!1,ms:t,easing:O,from:u,diff:w,to:v,el:d,callback:j.callback,prev:p,next:o,repeat:i||b.times,origin:d.attr(),totalOrigin:h},cl.push(x);if(f&&!k&&!l){x.stop=!0,x.start=new Date-t*f;if(cl.length==1)return cn()}l&&(x.start=new Date-x.ms*f),cl.length==1&&cm(cn)}else k.initstatus=f,k.start=new Date-k.ms*f;eve("anim.start."+d.id,d,b)}}function cq(a,b){var c=[],d={};this.ms=b,this.times=1;if(a){for(var e in a)a[g](e)&&(d[Q(e)]=a[e],c.push(Q(e)));c.sort(bc)}this.anim=d,this.top=c[c.length-1],this.percents=c}function cp(a,b,c,d,e,f){function o(a,b){var c,d,e,f,j,k;for(e=a,k=0;k<8;k++){f=m(e)-a;if(z(f)<b)return e;j=(3*i*e+2*h)*e+g;if(z(j)<1e-6)break;e=e-f/j}c=0,d=1,e=a;if(e<c)return c;if(e>d)return d;while(c<d){f=m(e);if(z(f-a)<b)return e;a>f?c=e:d=e,e=(d-c)/2+c}return e}function n(a,b){var c=o(a,b);return((l*c+k)*c+j)*c}function m(a){return((i*a+h)*a+g)*a}var g=3*b,h=3*(d-b)-g,i=1-g-h,j=3*c,k=3*(e-c)-j,l=1-j-k;return n(a,1/(200*f))}function cd(){return this.x+q+this.y+q+this.width+" × "+this.height}function cc(){return this.x+q+this.y}function bR(a,b,c,d,e,f){a!=null?(this.a=+a,this.b=+b,this.c=+c,this.d=+d,this.e=+e,this.f=+f):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}function bw(a){var b=[];for(var c=0,d=a.length;d-2>c;c+=2){var e=[{x:+a[c],y:+a[c+1]},{x:+a[c],y:+a[c+1]},{x:+a[c+2],y:+a[c+3]},{x:+a[c+4],y:+a[c+5]}];d-4==c?(e[0]={x:+a[c-2],y:+a[c-1]},e[3]=e[2]):c&&(e[0]={x:+a[c-2],y:+a[c-1]}),b.push(["C",(-e[0].x+6*e[1].x+e[2].x)/6,(-e[0].y+6*e[1].y+e[2].y)/6,(e[1].x+6*e[2].x-e[3].x)/6,(e[1].y+6*e[2].y-e[3].y)/6,e[2].x,e[2].y])}return b}function bv(){return this.hex}function bt(a,b,c){function d(){var e=Array.prototype.slice.call(arguments,0),f=e.join("␀"),h=d.cache=d.cache||{},i=d.count=d.count||[];if(h[g](f)){bs(i,f);return c?c(h[f]):h[f]}i.length>=1e3&&delete h[i.shift()],i.push(f),h[f]=a[m](b,e);return c?c(h[f]):h[f]}return d}function bs(a,b){for(var c=0,d=a.length;c<d;c++)if(a[c]===b)return a.push(a.splice(c,1)[0])}function a(c){if(a.is(c,"function"))return b?c():eve.on("DOMload",c);if(a.is(c,E)){var e=c,f=a._engine.create[m](a,e.splice(0,3+a.is(e[0],C))),h=f.set(),i=0,j=e.length,k;for(;i<j;i++)k=e[i]||{},d[g](k.type)&&h.push(f[k.type]().attr(k));return h}var l=Array.prototype.slice.call(arguments,0);if(a.is(l[l.length-1],"function")){var n=l.pop();return b?n.call(a._engine.create[m](a,l)):eve.on("DOMload",function(){n.call(a._engine.create[m](a,l))})}return a._engine.create[m](a,arguments)}a.version="2.0.0",a.eve=eve;var b,c=/[, ]+/,d={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},e=/\{(\d+)\}/g,f="prototype",g="hasOwnProperty",h={doc:document,win:window},i={was:Object.prototype[g].call(h.win,"Raphael"),is:h.win.Raphael},j=function(){this.ca=this.customAttributes={}},k,l="appendChild",m="apply",n="concat",o="createTouch"in h.doc,p="",q=" ",r=String,s="split",t="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[s](q),u={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},v=r.prototype.toLowerCase,w=Math,x=w.max,y=w.min,z=w.abs,A=w.pow,B=w.PI,C="number",D="string",E="array",F="toString",G="fill",H=Object.prototype.toString,I={},J="push",K=a._ISURL=/^url\(['"]?([^\)]+?)['"]?\)$/i,L=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i,M={NaN:1,Infinity:1,"-Infinity":1},N=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,O=w.round,P="setAttribute",Q=parseFloat,R=parseInt,S=r.prototype.toUpperCase,T=a._availableAttrs={"arrow-end":"none","arrow-start":"none",blur:0,"clip-rect":"0 0 1e9 1e9",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:"http://raphaeljs.com/",opacity:1,path:"M0,0",r:0,rx:0,ry:0,src:"",stroke:"#000","stroke-dasharray":"","stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,target:"_blank","text-anchor":"middle",title:"Raphael",transform:"",width:0,x:0,y:0},U=a._availableAnimAttrs={blur:C,"clip-rect":"csv",cx:C,cy:C,fill:"colour","fill-opacity":C,"font-size":C,height:C,opacity:C,path:"path",r:C,rx:C,ry:C,stroke:"colour","stroke-opacity":C,"stroke-width":C,transform:"transform",width:C,x:C,y:C},V=/\s*,\s*/,W={hs:1,rg:1},X=/,?([achlmqrstvxz]),?/gi,Y=/([achlmrqstvz])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?\s*,?\s*)+)/ig,Z=/([rstm])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?\s*,?\s*)+)/ig,$=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)\s*,?\s*/ig,_=a._radial_gradient=/^r(?:\(([^,]+?)\s*,\s*([^\)]+?)\))?/,ba={},bb=function(a,b){return a.key-b.key},bc=function(a,b){return Q(a)-Q(b)},bd=function(){},be=function(a){return a},bf=a._rectPath=function(a,b,c,d,e){if(e)return[["M",a+e,b],["l",c-e*2,0],["a",e,e,0,0,1,e,e],["l",0,d-e*2],["a",e,e,0,0,1,-e,e],["l",e*2-c,0],["a",e,e,0,0,1,-e,-e],["l",0,e*2-d],["a",e,e,0,0,1,e,-e],["z"]];return[["M",a,b],["l",c,0],["l",0,d],["l",-c,0],["z"]]},bg=function(a,b,c,d){d==null&&(d=c);return[["M",a,b],["m",0,-d],["a",c,d,0,1,1,0,2*d],["a",c,d,0,1,1,0,-2*d],["z"]]},bh=a._getPath={path:function(a){return a.attr("path")},circle:function(a){var b=a.attrs;return bg(b.cx,b.cy,b.r)},ellipse:function(a){var b=a.attrs;return bg(b.cx,b.cy,b.rx,b.ry)},rect:function(a){var b=a.attrs;return bf(b.x,b.y,b.width,b.height,b.r)},image:function(a){var b=a.attrs;return bf(b.x,b.y,b.width,b.height)},text:function(a){var b=a._getBBox();return bf(b.x,b.y,b.width,b.height)}},bi=a.mapPath=function(a,b){if(!b)return a;var c,d,e,f,g;a=bG(a);for(e=0,ii=a.length;e<ii;e++){g=a[e];for(f=1,jj=g.length;f<jj;f+=2)c=b.x(g[f],g[f+1]),d=b.y(g[f],g[f+1]),g[f]=c,g[f+1]=d}return a};a._g=h,a.type=h.win.SVGAngle||h.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML";if(a.type=="VML"){var bj=h.doc.createElement("div"),bk;bj.innerHTML='<v:shape adj="1"/>',bk=bj.firstChild,bk.style.behavior="url(#default#VML)";if(!bk||typeof bk.adj!="object")return a.type=p;bj=null}a.svg=!(a.vml=a.type=="VML"),a._Paper=j,a.fn=k=j.prototype=a.prototype,a._id=0,a._oid=0,a.is=function(a,b){b=v.call(b);if(b=="finite")return!M[g](+a);if(b=="array")return a instanceof Array;return b=="null"&&a===null||b==typeof a&&a!==null||b=="object"&&a===Object(a)||b=="array"&&Array.isArray&&Array.isArray(a)||H.call(a).slice(8,-1).toLowerCase()==b},a.angle=function(b,c,d,e,f,g){if(f==null){var h=b-d,i=c-e;if(!h&&!i)return 0;return(180+w.atan2(-i,-h)*180/B+360)%360}return a.angle(b,c,f,g)-a.angle(d,e,f,g)},a.rad=function(a){return a%360*B/180},a.deg=function(a){return a*180/B%360},a.snapTo=function(b,c,d){d=a.is(d,"finite")?d:10;if(a.is(b,E)){var e=b.length;while(e--)if(z(b[e]-c)<=d)return b[e]}else{b=+b;var f=c%b;if(f<d)return c-f;if(f>b-d)return c-f+b}return c};var bl=a.createUUID=function(a,b){return function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(a,b).toUpperCase()}}(/[xy]/g,function(a){var b=w.random()*16|0,c=a=="x"?b:b&3|8;return c.toString(16)});a.setWindow=function(b){eve("setWindow",a,h.win,b),h.win=b,h.doc=h.win.document,initWin&&initWin(h.win)};var bm=function(b){if(a.vml){var c=/^\s+|\s+$/g,d;try{var e=new ActiveXObject("htmlfile");e.write("<body>"),e.close(),d=e.body}catch(f){d=createPopup().document.body}var g=d.createTextRange();bm=bt(function(a){try{d.style.color=r(a).replace(c,p);var b=g.queryCommandValue("ForeColor");b=(b&255)<<16|b&65280|(b&16711680)>>>16;return"#"+("000000"+b.toString(16)).slice(-6)}catch(e){return"none"}})}else{var i=h.doc.createElement("i");i.title="Raphaël Colour Picker",i.style.display="none",h.doc.body.appendChild(i),bm=bt(function(a){i.style.color=a;return h.doc.defaultView.getComputedStyle(i,p).getPropertyValue("color")})}return bm(b)},bn=function(){return"hsb("+[this.h,this.s,this.b]+")"},bo=function(){return"hsl("+[this.h,this.s,this.l]+")"},bp=function(){return this.hex},bq=function(b,c,d){c==null&&a.is(b,"object")&&"r"in b&&"g"in b&&"b"in b&&(d=b.b,c=b.g,b=b.r);if(c==null&&a.is(b,D)){var e=a.getRGB(b);b=e.r,c=e.g,d=e.b}if(b>1||c>1||d>1)b/=255,c/=255,d/=255;return[b,c,d]},br=function(b,c,d,e){b*=255,c*=255,d*=255;var f={r:b,g:c,b:d,hex:a.rgb(b,c,d),toString:bp};a.is(e,"finite")&&(f.opacity=e);return f};a.color=function(b){var c;a.is(b,"object")&&"h"in b&&"s"in b&&"b"in b?(c=a.hsb2rgb(b),b.r=c.r,b.g=c.g,b.b=c.b,b.hex=c.hex):a.is(b,"object")&&"h"in b&&"s"in b&&"l"in b?(c=a.hsl2rgb(b),b.r=c.r,b.g=c.g,b.b=c.b,b.hex=c.hex):(a.is(b,"string")&&(b=a.getRGB(b)),a.is(b,"object")&&"r"in b&&"g"in b&&"b"in b?(c=a.rgb2hsl(b),b.h=c.h,b.s=c.s,b.l=c.l,c=a.rgb2hsb(b),b.v=c.b):(b={hex:"none"},crl.r=b.g=b.b=b.h=b.s=b.v=b.l=-1)),b.toString=bp;return b},a.hsb2rgb=function(a,b,c,d){this.is(a,"object")&&"h"in a&&"s"in a&&"b"in a&&(c=a.b,b=a.s,a=a.h,d=a.o),a*=360;var e,f,g,h,i;a=a%360/60,i=c*b,h=i*(1-z(a%2-1)),e=f=g=c-i,a=~~a,e+=[i,h,0,0,h,i][a],f+=[h,i,i,h,0,0][a],g+=[0,0,h,i,i,h][a];return br(e,f,g,d)},a.hsl2rgb=function(a,b,c,d){this.is(a,"object")&&"h"in a&&"s"in a&&"l"in a&&(c=a.l,b=a.s,a=a.h);if(a>1||b>1||c>1)a/=360,b/=100,c/=100;a*=360;var e,f,g,h,i;a=a%360/60,i=2*b*(c<.5?c:1-c),h=i*(1-z(a%2-1)),e=f=g=c-i/2,a=~~a,e+=[i,h,0,0,h,i][a],f+=[h,i,i,h,0,0][a],g+=[0,0,h,i,i,h][a];return br(e,f,g,d)},a.rgb2hsb=function(a,b,c){c=bq(a,b,c),a=c[0],b=c[1],c=c[2];var d,e,f,g;f=x(a,b,c),g=f-y(a,b,c),d=g==0?null:f==a?(b-c)/g:f==b?(c-a)/g+2:(a-b)/g+4,d=(d+360)%6*60/360,e=g==0?0:g/f;return{h:d,s:e,b:f,toString:bn}},a.rgb2hsl=function(a,b,c){c=bq(a,b,c),a=c[0],b=c[1],c=c[2];var d,e,f,g,h,i;g=x(a,b,c),h=y(a,b,c),i=g-h,d=i==0?null:g==a?(b-c)/i:g==b?(c-a)/i+2:(a-b)/i+4,d=(d+360)%6*60/360,f=(g+h)/2,e=i==0?0:f<.5?i/(2*f):i/(2-2*f);return{h:d,s:e,l:f,toString:bo}},a._path2string=function(){return this.join(",").replace(X,"$1")};var bu=a._preload=function(a,b){var c=h.doc.createElement("img");c.style.cssText="position:absolute;left:-9999em;top-9999em",c.onload=function(){b.call(this),this.onload=null,h.doc.body.removeChild(this)},c.onerror=function(){h.doc.body.removeChild(this)},h.doc.body.appendChild(c),c.src=a};a.getRGB=bt(function(b){if(!b||!!((b=r(b)).indexOf("-")+1))return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:bv};if(b=="none")return{r:-1,g:-1,b:-1,hex:"none",toString:bv};!W[g](b.toLowerCase().substring(0,2))&&b.charAt()!="#"&&(b=bm(b));var c,d,e,f,h,i,j,k=b.match(L);if(k){k[2]&&(f=R(k[2].substring(5),16),e=R(k[2].substring(3,5),16),d=R(k[2].substring(1,3),16)),k[3]&&(f=R((i=k[3].charAt(3))+i,16),e=R((i=k[3].charAt(2))+i,16),d=R((i=k[3].charAt(1))+i,16)),k[4]&&(j=k[4][s](V),d=Q(j[0]),j[0].slice(-1)=="%"&&(d*=2.55),e=Q(j[1]),j[1].slice(-1)=="%"&&(e*=2.55),f=Q(j[2]),j[2].slice(-1)=="%"&&(f*=2.55),k[1].toLowerCase().slice(0,4)=="rgba"&&(h=Q(j[3])),j[3]&&j[3].slice(-1)=="%"&&(h/=100));if(k[5]){j=k[5][s](V),d=Q(j[0]),j[0].slice(-1)=="%"&&(d*=2.55),e=Q(j[1]),j[1].slice(-1)=="%"&&(e*=2.55),f=Q(j[2]),j[2].slice(-1)=="%"&&(f*=2.55),(j[0].slice(-3)=="deg"||j[0].slice(-1)=="°")&&(d/=360),k[1].toLowerCase().slice(0,4)=="hsba"&&(h=Q(j[3])),j[3]&&j[3].slice(-1)=="%"&&(h/=100);return a.hsb2rgb(d,e,f,h)}if(k[6]){j=k[6][s](V),d=Q(j[0]),j[0].slice(-1)=="%"&&(d*=2.55),e=Q(j[1]),j[1].slice(-1)=="%"&&(e*=2.55),f=Q(j[2]),j[2].slice(-1)=="%"&&(f*=2.55),(j[0].slice(-3)=="deg"||j[0].slice(-1)=="°")&&(d/=360),k[1].toLowerCase().slice(0,4)=="hsla"&&(h=Q(j[3])),j[3]&&j[3].slice(-1)=="%"&&(h/=100);return a.hsl2rgb(d,e,f,h)}k={r:d,g:e,b:f,toString:bv},k.hex="#"+(16777216|f|e<<8|d<<16).toString(16).slice(1),a.is(h,"finite")&&(k.opacity=h);return k}return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:bv}},a),a.hsb=bt(function(b,c,d){return a.hsb2rgb(b,c,d).hex}),a.hsl=bt(function(b,c,d){return a.hsl2rgb(b,c,d).hex}),a.rgb=bt(function(a,b,c){return"#"+(16777216|c|b<<8|a<<16).toString(16).slice(1)}),a.getColor=function(a){var b=this.getColor.start=this.getColor.start||{h:0,s:1,b:a||.75},c=this.hsb2rgb(b.h,b.s,b.b);b.h+=.075,b.h>1&&(b.h=0,b.s-=.2,b.s<=0&&(this.getColor.start={h:0,s:1,b:b.b}));return c.hex},a.getColor.reset=function(){delete this.start},a.parsePathString=bt(function(b){if(!b)return null;var c={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},d=[];a.is(b,E)&&a.is(b[0],E)&&(d=by(b)),d.length||r(b).replace(Y,function(a,b,e){var f=[],g=b.toLowerCase();e.replace($,function(a,b){b&&f.push(+b)}),g=="m"&&f.length>2&&(d.push([b][n](f.splice(0,2))),g="l",b=b=="m"?"l":"L");if(g=="r")d.push([b][n](f));else while(f.length>=c[g]){d.push([b][n](f.splice(0,c[g])));if(!c[g])break}}),d.toString=a._path2string;return d}),a.parseTransformString=bt(function(b){if(!b)return null;var c={r:3,s:4,t:2,m:6},d=[];a.is(b,E)&&a.is(b[0],E)&&(d=by(b)),d.length||r(b).replace(Z,function(a,b,c){var e=[],f=v.call(b);c.replace($,function(a,b){b&&e.push(+b)}),d.push([b][n](e))}),d.toString=a._path2string;return d}),a.findDotsAtSegment=function(a,b,c,d,e,f,g,h,i){var j=1-i,k=A(j,3),l=A(j,2),m=i*i,n=m*i,o=k*a+l*3*i*c+j*3*i*i*e+n*g,p=k*b+l*3*i*d+j*3*i*i*f+n*h,q=a+2*i*(c-a)+m*(e-2*c+a),r=b+2*i*(d-b)+m*(f-2*d+b),s=c+2*i*(e-c)+m*(g-2*e+c),t=d+2*i*(f-d)+m*(h-2*f+d),u=j*a+i*c,v=j*b+i*d,x=j*e+i*g,y=j*f+i*h,z=90-w.atan2(q-s,r-t)*180/B;(q>s||r<t)&&(z+=180);return{x:o,y:p,m:{x:q,y:r},n:{x:s,y:t},start:{x:u,y:v},end:{x:x,y:y},alpha:z}};var bx=bt(function(a){if(!a)return{x:0,y:0,width:0,height:0};a=bG(a);var b=0,c=0,d=[],e=[],f;for(var g=0,h=a.length;g<h;g++){f=a[g];if(f[0]=="M")b=f[1],c=f[2],d.push(b),e.push(c);else{var i=bF(b,c,f[1],f[2],f[3],f[4],f[5],f[6]);d=d[n](i.min.x,i.max.x),e=e[n](i.min.y,i.max.y),b=f[5],c=f[6]}}var j=y[m](0,d),k=y[m](0,e);return{x:j,y:k,width:x[m](0,d)-j,height:x[m](0,e)-k}},null,function(a){return{x:a.x,y:a.y,width:a.width,height:a.height}}),by=function(b){var c=[];if(!a.is(b,E)||!a.is(b&&b[0],E))b=a.parsePathString(b);for(var d=0,e=b.length;d<e;d++){c[d]=[];for(var f=0,g=b[d].length;f<g;f++)c[d][f]=b[d][f]}c.toString=a._path2string;return c},bz=a._pathToRelative=bt(function(b){if(!a.is(b,E)||!a.is(b&&b[0],E))b=a.parsePathString(b);var c=[],d=0,e=0,f=0,g=0,h=0;b[0][0]=="M"&&(d=b[0][1],e=b[0][2],f=d,g=e,h++,c.push(["M",d,e]));for(var i=h,j=b.length;i<j;i++){var k=c[i]=[],l=b[i];if(l[0]!=v.call(l[0])){k[0]=v.call(l[0]);switch(k[0]){case"a":k[1]=l[1],k[2]=l[2],k[3]=l[3],k[4]=l[4],k[5]=l[5],k[6]=+(l[6]-d).toFixed(3),k[7]=+(l[7]-e).toFixed(3);break;case"v":k[1]=+(l[1]-e).toFixed(3);break;case"m":f=l[1],g=l[2];default:for(var m=1,n=l.length;m<n;m++)k[m]=+(l[m]-(m%2?d:e)).toFixed(3)}}else{k=c[i]=[],l[0]=="m"&&(f=l[1]+d,g=l[2]+e);for(var o=0,p=l.length;o<p;o++)c[i][o]=l[o]}var q=c[i].length;switch(c[i][0]){case"z":d=f,e=g;break;case"h":d+=+c[i][q-1];break;case"v":e+=+c[i][q-1];break;default:d+=+c[i][q-2],e+=+c[i][q-1]}}c.toString=a._path2string;return c},0,by),bA=a._pathToAbsolute=bt(function(b){if(!a.is(b,E)||!a.is(b&&b[0],E))b=a.parsePathString(b);if(!b||!b.length)return[["M",0,0]];var c=[],d=0,e=0,f=0,g=0,h=0;b[0][0]=="M"&&(d=+b[0][1],e=+b[0][2],f=d,g=e,h++,c[0]=["M",d,e]);for(var i,j,k=h,l=b.length;k<l;k++){c.push(i=[]),j=b[k];if(j[0]!=S.call(j[0])){i[0]=S.call(j[0]);switch(i[0]){case"A":i[1]=j[1],i[2]=j[2],i[3]=j[3],i[4]=j[4],i[5]=j[5],i[6]=+(j[6]+d),i[7]=+(j[7]+e);break;case"V":i[1]=+j[1]+e;break;case"H":i[1]=+j[1]+d;break;case"R":var m=[d,e][n](j.slice(1));for(var o=2,p=m.length;o<p;o++)m[o]=+m[o]+d,m[++o]=+m[o]+e;c.pop(),c=c[n](bw(m));break;case"M":f=+j[1]+d,g=+j[2]+e;default:for(o=1,p=j.length;o<p;o++)i[o]=+j[o]+(o%2?d:e)}}else if(j[0]=="R")m=[d,e][n](j.slice(1)),c.pop(),c=c[n](bw(m)),i=["R"][n](j.slice(-2));else for(var q=0,r=j.length;q<r;q++)i[q]=j[q];switch(i[0]){case"Z":d=f,e=g;break;case"H":d=i[1];break;case"V":e=i[1];break;case"M":f=i[i.length-2],g=i[i.length-1];default:d=i[i.length-2],e=i[i.length-1]}}c.toString=a._path2string;return c},null,by),bB=function(a,b,c,d){return[a,b,c,d,c,d]},bC=function(a,b,c,d,e,f){var g=1/3,h=2/3;return[g*a+h*c,g*b+h*d,g*e+h*c,g*f+h*d,e,f]},bD=function(a,b,c,d,e,f,g,h,i,j){var k=B*120/180,l=B/180*(+e||0),m=[],o,p=bt(function(a,b,c){var d=a*w.cos(c)-b*w.sin(c),e=a*w.sin(c)+b*w.cos(c);return{x:d,y:e}});if(!j){o=p(a,b,-l),a=o.x,b=o.y,o=p(h,i,-l),h=o.x,i=o.y;var q=w.cos(B/180*e),r=w.sin(B/180*e),t=(a-h)/2,u=(b-i)/2,v=t*t/(c*c)+u*u/(d*d);v>1&&(v=w.sqrt(v),c=v*c,d=v*d);var x=c*c,y=d*d,A=(f==g?-1:1)*w.sqrt(z((x*y-x*u*u-y*t*t)/(x*u*u+y*t*t))),C=A*c*u/d+(a+h)/2,D=A*-d*t/c+(b+i)/2,E=w.asin(((b-D)/d).toFixed(9)),F=w.asin(((i-D)/d).toFixed(9));E=a<C?B-E:E,F=h<C?B-F:F,E<0&&(E=B*2+E),F<0&&(F=B*2+F),g&&E>F&&(E=E-B*2),!g&&F>E&&(F=F-B*2)}else E=j[0],F=j[1],C=j[2],D=j[3];var G=F-E;if(z(G)>k){var H=F,I=h,J=i;F=E+k*(g&&F>E?1:-1),h=C+c*w.cos(F),i=D+d*w.sin(F),m=bD(h,i,c,d,e,0,g,I,J,[F,H,C,D])}G=F-E;var K=w.cos(E),L=w.sin(E),M=w.cos(F),N=w.sin(F),O=w.tan(G/4),P=4/3*c*O,Q=4/3*d*O,R=[a,b],S=[a+P*L,b-Q*K],T=[h+P*N,i-Q*M],U=[h,i];S[0]=2*R[0]-S[0],S[1]=2*R[1]-S[1];if(j)return[S,T,U][n](m);m=[S,T,U][n](m).join()[s](",");var V=[];for(var W=0,X=m.length;W<X;W++)V[W]=W%2?p(m[W-1],m[W],l).y:p(m[W],m[W+1],l).x;return V},bE=function(a,b,c,d,e,f,g,h,i){var j=1-i;return{x:A(j,3)*a+A(j,2)*3*i*c+j*3*i*i*e+A(i,3)*g,y:A(j,3)*b+A(j,2)*3*i*d+j*3*i*i*f+A(i,3)*h}},bF=bt(function(a,b,c,d,e,f,g,h){var i=e-2*c+a-(g-2*e+c),j=2*(c-a)-2*(e-c),k=a-c,l=(-j+w.sqrt(j*j-4*i*k))/2/i,n=(-j-w.sqrt(j*j-4*i*k))/2/i,o=[b,h],p=[a,g],q;z(l)>"1e12"&&(l=.5),z(n)>"1e12"&&(n=.5),l>0&&l<1&&(q=bE(a,b,c,d,e,f,g,h,l),p.push(q.x),o.push(q.y)),n>0&&n<1&&(q=bE(a,b,c,d,e,f,g,h,n),p.push(q.x),o.push(q.y)),i=f-2*d+b-(h-2*f+d),j=2*(d-b)-2*(f-d),k=b-d,l=(-j+w.sqrt(j*j-4*i*k))/2/i,n=(-j-w.sqrt(j*j-4*i*k))/2/i,z(l)>"1e12"&&(l=.5),z(n)>"1e12"&&(n=.5),l>0&&l<1&&(q=bE(a,b,c,d,e,f,g,h,l),p.push(q.x),o.push(q.y)),n>0&&n<1&&(q=bE(a,b,c,d,e,f,g,h,n),p.push(q.x),o.push(q.y));return{min:{x:y[m](0,p),y:y[m](0,o)},max:{x:x[m](0,p),y:x[m](0,o)}}}),bG=a._path2curve=bt(function(a,b){var c=bA(a),d=b&&bA(b),e={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},f={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},g=function(a,b){var c,d;if(!a)return["C",b.x,b.y,b.x,b.y,b.x,b.y];!(a[0]in{T:1,Q:1})&&(b.qx=b.qy=null);switch(a[0]){case"M":b.X=a[1],b.Y=a[2];break;case"A":a=["C"][n](bD[m](0,[b.x,b.y][n](a.slice(1))));break;case"S":c=b.x+(b.x-(b.bx||b.x)),d=b.y+(b.y-(b.by||b.y)),a=["C",c,d][n](a.slice(1));break;case"T":b.qx=b.x+(b.x-(b.qx||b.x)),b.qy=b.y+(b.y-(b.qy||b.y)),a=["C"][n](bC(b.x,b.y,b.qx,b.qy,a[1],a[2]));break;case"Q":b.qx=a[1],b.qy=a[2],a=["C"][n](bC(b.x,b.y,a[1],a[2],a[3],a[4]));break;case"L":a=["C"][n](bB(b.x,b.y,a[1],a[2]));break;case"H":a=["C"][n](bB(b.x,b.y,a[1],b.y));break;case"V":a=["C"][n](bB(b.x,b.y,b.x,a[1]));break;case"Z":a=["C"][n](bB(b.x,b.y,b.X,b.Y))}return a},h=function(a,b){if(a[b].length>7){a[b].shift();var e=a[b];while(e.length)a.splice(b++,0,["C"][n](e.splice(0,6)));a.splice(b,1),k=x(c.length,d&&d.length||0)}},i=function(a,b,e,f,g){a&&b&&a[g][0]=="M"&&b[g][0]!="M"&&(b.splice(g,0,["M",f.x,f.y]),e.bx=0,e.by=0,e.x=a[g][1],e.y=a[g][2],k=x(c.length,d&&d.length||0))};for(var j=0,k=x(c.length,d&&d.length||0);j<k;j++){c[j]=g(c[j],e),h(c,j),d&&(d[j]=g(d[j],f)),d&&h(d,j),i(c,d,e,f,j),i(d,c,f,e,j);var l=c[j],o=d&&d[j],p=l.length,q=d&&o.length;e.x=l[p-2],e.y=l[p-1],e.bx=Q(l[p-4])||e.x,e.by=Q(l[p-3])||e.y,f.bx=d&&(Q(o[q-4])||f.x),f.by=d&&(Q(o[q-3])||f.y),f.x=d&&o[q-2],f.y=d&&o[q-1]}return d?[c,d]:c},null,by),bH=a._parseDots=bt(function(b){var c=[];for(var d=0,e=b.length;d<e;d++){var f={},g=b[d].match(/^([^:]*):?([\d\.]*)/);f.color=a.getRGB(g[1]);if(f.color.error)return null;f.color=f.color.hex,g[2]&&(f.offset=g[2]+"%"),c.push(f)}for(d=1,e=c.length-1;d<e;d++)if(!c[d].offset){var h=Q(c[d-1].offset||0),i=0;for(var j=d+1;j<e;j++)if(c[j].offset){i=c[j].offset;break}i||(i=100,j=e),i=Q(i);var k=(i-h)/(j-d+1);for(;d<j;d++)h+=k,c[d].offset=h+"%"}return c}),bI=a._tear=function(a,b){a==b.top&&(b.top=a.prev),a==b.bottom&&(b.bottom=a.next),a.next&&(a.next.prev=a.prev),a.prev&&(a.prev.next=a.next)},bJ=a._tofront=function(a,b){b.top!==a&&(bI(a,b),a.next=null,a.prev=b.top,b.top.next=a,b.top=a)},bK=a._toback=function(a,b){b.bottom!==a&&(bI(a,b),a.next=b.bottom,a.prev=null,b.bottom.prev=a,b.bottom=a)},bL=a._insertafter=function(a,b,c){bI(a,c),b==c.top&&(c.top=a),b.next&&(b.next.prev=a),a.next=b.next,a.prev=b,b.next=a},bM=a._insertbefore=function(a,b,c){bI(a,c),b==c.bottom&&(c.bottom=a),b.prev&&(b.prev.next=a),a.prev=b.prev,b.prev=a,a.next=b},bN=function(a){return function(){throw new Error("Raphaël: you are calling to method “"+a+"” of removed object")}},bO=a._extractTransform=function(b,c){if(c==null)return b._.transform;c=r(c).replace(/\.{3}|\u2026/g,b._.transform||p);var d=a.parseTransformString(c),e=0,f=0,g=0,h=1,i=1,j=b._,k=new bR;j.transform=d||[];if(d)for(var l=0,m=d.length;l<m;l++){var n=d[l],o=n.length,q=r(n[0]).toLowerCase(),s=n[0]!=q,t=s?k.invert():0,u,v,w,x,y;q=="t"&&o==3?s?(u=t.x(0,0),v=t.y(0,0),w=t.x(n[1],n[2]),x=t.y(n[1],n[2]),k.translate(w-u,x-v)):k.translate(n[1],n[2]):q=="r"?o==2?(y=y||b.getBBox(1),k.rotate(n[1],y.x+y.width/2,y.y+y.height/2),e+=n[1]):o==4&&(s?(w=t.x(n[2],n[3]),x=t.y(n[2],n[3]),k.rotate(n[1],w,x)):k.rotate(n[1],n[2],n[3]),e+=n[1]):q=="s"?o==2||o==3?(y=y||b.getBBox(1),k.scale(n[1],n[o-1],y.x+y.width/2,y.y+y.height/2),h*=n[1],i*=n[o-1]):o==5&&(s?(w=t.x(n[3],n[4]),x=t.y(n[3],n[4]),k.scale(n[1],n[2],w,x)):k.scale(n[1],n[2],n[3],n[4]),h*=n[1],i*=n[2]):q=="m"&&o==7&&k.add(n[1],n[2],n[3],n[4],n[5],n[6]),j.dirtyT=1,b.matrix=k}b.matrix=k,j.sx=h,j.sy=i,j.deg=e,j.dx=f=k.e,j.dy=g=k.f,h==1&&i==1&&!e&&j.bbox?(j.bbox.x+=+f,j.bbox.y+=+g):j.dirtyT=1},bP=function(a){var b=a[0];switch(b.toLowerCase()){case"t":return[b,0,0];case"m":return[b,1,0,0,1,0,0];case"r":return a.length==4?[b,0,a[2],a[3]]:[b,0];case"s":return a.length==5?[b,1,1,a[3],a[4]]:a.length==3?[b,1,1]:[b,1]}},bQ=a._equaliseTransform=function(b,c){c=r(c).replace(/\.{3}|\u2026/g,b),b=a.parseTransformString(b)||[],c=a.parseTransformString(c)||[];var d=x(b.length,c.length),e=[],f=[],g=0,h,i,j,k;for(;g<d;g++){j=b[g]||bP(c[g]),k=c[g]||bP(j);if(j[0]!=k[0]||j[0].toLowerCase()=="r"&&(j[2]!=k[2]||j[3]!=k[3])||j[0].toLowerCase()=="s"&&(j[3]!=k[3]||j[4]!=k[4]))return;e[g]=[],f[g]=[];for(h=0,i=x(j.length,k.length);h<i;h++)h in j&&(e[g][h]=j[h]),h in k&&(f[g][h]=k[h])}return{from:e,to:f}};a._getContainer=function(b,c,d,e){var f;f=e==null&&!a.is(b,"object")?h.doc.getElementById(b):b;if(f!=null){if(f.tagName)return c==null?{container:f,width:f.style.pixelWidth||f.offsetWidth,height:f.style.pixelHeight||f.offsetHeight}:{container:f,width:c,height:d};return{container:1,x:b,y:c,width:d,height:e}}},a.pathToRelative=bz,a._engine={},a.path2curve=bG,a.matrix=function(a,b,c,d,e,f){return new bR(a,b,c,d,e,f)},function(b){function d(a){var b=w.sqrt(c(a));a[0]&&(a[0]/=b),a[1]&&(a[1]/=b)}function c(a){return a[0]*a[0]+a[1]*a[1]}b.add=function(a,b,c,d,e,f){var g=[[],[],[]],h=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],i=[[a,c,e],[b,d,f],[0,0,1]],j,k,l,m;a&&a instanceof bR&&(i=[[a.a,a.c,a.e],[a.b,a.d,a.f],[0,0,1]]);for(j=0;j<3;j++)for(k=0;k<3;k++){m=0;for(l=0;l<3;l++)m+=h[j][l]*i[l][k];g[j][k]=m}this.a=g[0][0],this.b=g[1][0],this.c=g[0][1],this.d=g[1][1],this.e=g[0][2],this.f=g[1][2]},b.invert=function(){var a=this,b=a.a*a.d-a.b*a.c;return new bR(a.d/b,-a.b/b,-a.c/b,a.a/b,(a.c*a.f-a.d*a.e)/b,(a.b*a.e-a.a*a.f)/b)},b.clone=function(){return new bR(this.a,this.b,this.c,this.d,this.e,this.f)},b.translate=function(a,b){this.add(1,0,0,1,a,b)},b.scale=function(a,b,c,d){b==null&&(b=a),(c||d)&&this.add(1,0,0,1,c,d),this.add(a,0,0,b,0,0),(c||d)&&this.add(1,0,0,1,-c,-d)},b.rotate=function(b,c,d){b=a.rad(b),c=c||0,d=d||0;var e=+w.cos(b).toFixed(9),f=+w.sin(b).toFixed(9);this.add(e,f,-f,e,c,d),this.add(1,0,0,1,-c,-d)},b.x=function(a,b){return a*this.a+b*this.c+this.e},b.y=function(a,b){return a*this.b+b*this.d+this.f},b.get=function(a){return+this[r.fromCharCode(97+a)].toFixed(4)},b.toString=function(){return a.svg?"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")":[this.get(0),this.get(2),this.get(1),this.get(3),0,0].join()},b.toFilter=function(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.get(0)+", M12="+this.get(2)+", M21="+this.get(1)+", M22="+this.get(3)+", Dx="+this.get(4)+", Dy="+this.get(5)+", sizingmethod='auto expand')"},b.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},b.split=function(){var b={};b.dx=this.e,b.dy=this.f;var e=[[this.a,this.c],[this.b,this.d]];b.scalex=w.sqrt(c(e[0])),d(e[0]),b.shear=e[0][0]*e[1][0]+e[0][1]*e[1][1],e[1]=[e[1][0]-e[0][0]*b.shear,e[1][1]-e[0][1]*b.shear],b.scaley=w.sqrt(c(e[1])),d(e[1]),b.shear/=b.scaley;var f=-e[0][1],g=e[1][1];g<0?(b.rotate=a.deg(w.acos(g)),f<0&&(b.rotate=360-b.rotate)):b.rotate=a.deg(w.asin(f)),b.isSimple=!+b.shear.toFixed(9)&&(b.scalex.toFixed(9)==b.scaley.toFixed(9)||!b.rotate),b.isSuperSimple=!+b.shear.toFixed(9)&&b.scalex.toFixed(9)==b.scaley.toFixed(9)&&!b.rotate,b.noRotation=!+b.shear.toFixed(9)&&!b.rotate;return b},b.toTransformString=function(a){var b=a||this[s]();return b.isSimple?"t"+[b.dx,b.dy]+"s"+[b.scalex,b.scaley,0,0]+"r"+[b.rotate,0,0]:"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}}(bR.prototype);var bS=navigator.userAgent.match(/Version\/(.*?)\s/)||navigator.userAgent.match(/Chrome\/(\d+)/);navigator.vendor=="Apple Computer, Inc."&&(bS&&bS[1]<4||navigator.platform.slice(0,2)=="iP")||navigator.vendor=="Google Inc."&&bS&&bS[1]<8?k.safari=function(){var a=this.rect(-99,-99,this.width+99,this.height+99).attr({stroke:"none"});setTimeout(function(){a.remove()})}:k.safari=bd;var bT=function(){this.returnValue=!1},bU=function(){return this.originalEvent.preventDefault()},bV=function(){this.cancelBubble=!0},bW=function(){return this.originalEvent.stopPropagation()},bX=function(){if(h.doc.addEventListener)return function(a,b,c,d){var e=o&&u[b]?u[b]:b,f=function(e){var f=h.doc.documentElement.scrollTop||h.doc.body.scrollTop,i=h.doc.documentElement.scrollLeft||h.doc.body.scrollLeft,j=e.clientX+i,k=e.clientY+f;if(o&&u[g](b))for(var l=0,m=e.targetTouches&&e.targetTouches.length;l<m;l++)if(e.targetTouches[l].target==a){var n=e;e=e.targetTouches[l],e.originalEvent=n,e.preventDefault=bU,e.stopPropagation=bW;break}return c.call(d,e,j,k)};a.addEventListener(e,f,!1);return function(){a.removeEventListener(e,f,!1);return!0}};if(h.doc.attachEvent)return function(a,b,c,d){var e=function(a){a=a||h.win.event;var b=h.doc.documentElement.scrollTop||h.doc.body.scrollTop,e=h.doc.documentElement.scrollLeft||h.doc.body.scrollLeft,f=a.clientX+e,g=a.clientY+b;a.preventDefault=a.preventDefault||bT,a.stopPropagation=a.stopPropagation||bV;return c.call(d,a,f,g)};a.attachEvent("on"+b,e);var f=function(){a.detachEvent("on"+b,e);return!0};return f}}(),bY=[],bZ=function(a){var b=a.clientX,c=a.clientY,d=h.doc.documentElement.scrollTop||h.doc.body.scrollTop,e=h.doc.documentElement.scrollLeft||h.doc.body.scrollLeft,f,g=bY.length;while(g--){f=bY[g];if(o){var i=a.touches.length,j;while(i--){j=a.touches[i];if(j.identifier==f.el._drag.id){b=j.clientX,c=j.clientY,(a.originalEvent?a.originalEvent:a).preventDefault();break}}}else a.preventDefault();var k=f.el.node,l,m=k.nextSibling,n=k.parentNode,p=k.style.display;h.win.opera&&n.removeChild(k),k.style.display="none",l=f.el.paper.getElementByPoint(b,c),k.style.display=p,h.win.opera&&(m?n.insertBefore(k,m):n.appendChild(k)),l&&eve("drag.over."+f.el.id,f.el,l),b+=e,c+=d,eve("drag.move."+f.el.id,f.move_scope||f.el,b-f.el._drag.x,c-f.el._drag.y,b,c,a)}},b$=function(b){a.unmousemove(bZ).unmouseup(b$);var c=bY.length,d;while(c--)d=bY[c],d.el._drag={},eve("drag.end."+d.el.id,d.end_scope||d.start_scope||d.move_scope||d.el,b);bY=[]},b_=a.el={};for(var ca=t.length;ca--;)(function(b){a[b]=b_[b]=function(c,d){a.is(c,"function")&&(this.events=this.events||[],this.events.push({name:b,f:c,unbind:bX(this.shape||this.node||h.doc,b,c,d||this)}));return this},a["un"+b]=b_["un"+b]=function(a){var c=this.events,d=c.length;while(d--)if(c[d].name==b&&c[d].f==a){c[d].unbind(),c.splice(d,1),!c.length&&delete this.events;return this}return this}})(t[ca]);b_.data=function(b,c){var d=ba[this.id]=ba[this.id]||{};if(arguments.length==1){if(a.is(b,"object")){for(var e in b)b[g](e)&&this.data(e,b[e]);return this}eve("data.get."+this.id,this,d[b],b);return d[b]}d[b]=c,eve("data.set."+this.id,this,c,b);return this},b_.removeData=function(a){a==null?ba[this.id]={}:ba[this.id]&&delete ba[this.id][a];return this},b_.hover=function(a,b,c,d){return this.mouseover(a,c).mouseout(b,d||c)},b_.unhover=function(a,b){return this.unmouseover(a).unmouseout(b)},b_.drag=function(b,c,d,e,f,g){function i(i){(i.originalEvent||i).preventDefault();var j=h.doc.documentElement.scrollTop||h.doc.body.scrollTop,k=h.doc.documentElement.scrollLeft||h.doc.body.scrollLeft;this._drag.x=i.clientX+k,this._drag.y=i.clientY+j,this._drag.id=i.identifier,!bY.length&&a.mousemove(bZ).mouseup(b$),bY.push({el:this,move_scope:e,start_scope:f,end_scope:g}),c&&eve.on("drag.start."+this.id,c),b&&eve.on("drag.move."+this.id,b),d&&eve.on("drag.end."+this.id,d),eve("drag.start."+this.id,f||e||this,i.clientX+k,i.clientY+j,i)}this._drag={},this.mousedown(i);return this},b_.onDragOver=function(a){a?eve.on("drag.over."+this.id,a):eve.unbind("drag.over."+this.id)},b_.undrag=function(){var b=bY.length;while(b--)bY[b].el==this&&(a.unmousedown(bY[b].start),bY.splice(b++,1),eve.unbind("drag.*."+this.id));!bY.length&&a.unmousemove(bZ).unmouseup(b$)},k.circle=function(b,c,d){var e=a._engine.circle(this,b||0,c||0,d||0);this.__set__&&this.__set__.push(e);return e},k.rect=function(b,c,d,e,f){var g=a._engine.rect(this,b||0,c||0,d||0,e||0,f||0);this.__set__&&this.__set__.push(g);return g},k.ellipse=function(b,c,d,e){var f=a._engine.ellipse(this,b||0,c||0,d||0,e||0);this.__set__&&this.__set__.push(f);return f},k.path=function(b){b&&!a.is(b,D)&&!a.is(b[0],E)&&(b+=p);var c=a._engine.path(a.format[m](a,arguments),this);this.__set__&&this.__set__.push(c);return c},k.image=function(b,c,d,e,f){var g=a._engine.image(this,b||"about:blank",c||0,d||0,e||0,f||0);this.__set__&&this.__set__.push(g);return g},k.text=function(b,c,d){var e=a._engine.text(this,b||0,c||0,r(d));this.__set__&&this.__set__.push(e);return e},k.set=function(b){!a.is(b,"array")&&(b=Array.prototype.splice.call(arguments,0,arguments.length));var c=new cs(b);this.__set__&&this.__set__.push(c);return c},k.setStart=function(a){this.__set__=a||this.set()},k.setFinish=function(a){var b=this.__set__;delete this.__set__;return b},k.setSize=function(b,c){return a._engine.setSize.call(this,b,c)},k.setViewBox=function(b,c,d,e,f){return a._engine.setViewBox.call(this,b,c,d,e,f)},k.top=k.bottom=null,k.raphael=a;var cb=function(a){var b=a.getBoundingClientRect(),c=a.ownerDocument,d=c.body,e=c.documentElement,f=e.clientTop||d.clientTop||0,g=e.clientLeft||d.clientLeft||0,i=b.top+(h.win.pageYOffset||e.scrollTop||d.scrollTop)-f,j=b.left+(h.win.pageXOffset||e.scrollLeft||d.scrollLeft)-g;return{y:i,x:j}};k.getElementByPoint=function(a,b){var c=this,d=c.canvas,e=h.doc.elementFromPoint(a,b);if(h.win.opera&&e.tagName=="svg"){var f=cb(d),g=d.createSVGRect();g.x=a-f.x,g.y=b-f.y,g.width=g.height=1;var i=d.getIntersectionList(g,null);i.length&&(e=i[i.length-1])}if(!e)return null;while(e.parentNode&&e!=d.parentNode&&!e.raphael)e=e.parentNode;e==c.canvas.parentNode&&(e=d),e=e&&e.raphael?c.getById(e.raphaelid):null;return e},k.getById=function(a){var b=this.bottom;while(b){if(b.id==a)return b;b=b.next}return null},k.forEach=function(a,b){var c=this.bottom;while(c){if(a.call(b,c)===!1)return this;c=c.next}return this},b_.getBBox=function(a){if(this.removed)return{};var b=this._;if(a){if(b.dirty||!b.bboxwt)this.realPath=bh[this.type](this),b.bboxwt=bx(this.realPath),b.bboxwt.toString=cd,b.dirty=0;return b.bboxwt}if(b.dirty||b.dirtyT||!b.bbox){if(b.dirty||!this.realPath)b.bboxwt=0,this.realPath=bh[this.type](this);b.bbox=bx(bi(this.realPath,this.matrix)),b.bbox.toString=cd,b.dirty=b.dirtyT=0}return b.bbox},b_.clone=function(){if(this.removed)return null;var a=this.paper[this.type]().attr(this.attr());this.__set__&&this.__set__.push(a);return a},b_.glow=function(a){if(this.type=="text")return null;a=a||{};var b={width:(a.width||10)+(+this.attr("stroke-width")||1),fill:a.fill||!1,opacity:a.opacity||.5,offsetx:a.offsetx||0,offsety:a.offsety||0,color:a.color||"#000"},c=b.width/2,d=this.paper,e=d.set(),f=this.realPath||bh[this.type](this);f=this.matrix?bi(f,this.matrix):f;for(var g=1;g<c+1;g++)e.push(d.path(f).attr({stroke:b.color,fill:b.fill?b.color:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(b.width/c*g).toFixed(3),opacity:+(b.opacity/c).toFixed(3)}));return e.insertBefore(this).translate(b.offsetx,b.offsety)};var ce={},cf=function(b,c,d,e,f,g,h,i,j){var k=0,l=100,m=[b,c,d,e,f,g,h,i].join(),n=ce[m],o,p;!n&&(ce[m]=n={data:[]}),n.timer&&clearTimeout(n.timer),n.timer=setTimeout(function(){delete ce[m]},2e3);if(j!=null&&!n.precision){var q=cf(b,c,d,e,f,g,h,i);n.precision=~~q*10,n.data=[]}l=n.precision||l;for(var r=0;r<l+1;r++){n.data[r*l]?p=n.data[r*l]:(p=a.findDotsAtSegment(b,c,d,e,f,g,h,i,r/l),n.data[r*l]=p),r&&(k+=A(A(o.x-p.x,2)+A(o.y-p.y,2),.5));if(j!=null&&k>=j)return p;o=p}if(j==null)return k},cg=function(b,c){return function(d,e,f){d=bG(d);var g,h,i,j,k="",l={},m,n=0;for(var o=0,p=d.length;o<p;o++){i=d[o];if(i[0]=="M")g=+i[1],h=+i[2];else{j=cf(g,h,i[1],i[2],i[3],i[4],i[5],i[6]);if(n+j>e){if(c&&!l.start){m=cf(g,h,i[1],i[2],i[3],i[4],i[5],i[6],e-n),k+=["C"+m.start.x,m.start.y,m.m.x,m.m.y,m.x,m.y];if(f)return k;l.start=k,k=["M"+m.x,m.y+"C"+m.n.x,m.n.y,m.end.x,m.end.y,i[5],i[6]].join(),n+=j,g=+i[5],h=+i[6];continue}if(!b&&!c){m=cf(g,h,i[1],i[2],i[3],i[4],i[5],i[6],e-n);return{x:m.x,y:m.y,alpha:m.alpha}}}n+=j,g=+i[5],h=+i[6]}k+=i.shift()+i}l.end=k,m=b?n:c?l:a.findDotsAtSegment(g,h,i[0],i[1],i[2],i[3],i[4],i[5],1),m.alpha&&(m={x:m.x,y:m.y,alpha:m.alpha});return m}},ch=cg(1),ci=cg(),cj=cg(0,1);a.getTotalLength=ch,a.getPointAtLength=ci,a.getSubpath=function(a,b,c){if(this.getTotalLength(a)-c<1e-6)return cj(a,b).end;var d=cj(a,c,1);return b?cj(d,b).end:d},b_.getTotalLength=function(){if(this.type=="path"){if(this.node.getTotalLength)return this.node.getTotalLength();return ch(this.attrs.path)}},b_.getPointAtLength=function(a){if(this.type=="path")return ci(this.attrs.path,a)},b_.getSubpath=function(b,c){if(this.type=="path")return a.getSubpath(this.attrs.path,b,c)};var ck=a.easing_formulas={linear:function(a){return a},"<":function(a){return A(a,1.7)},">":function(a){return A(a,.48)},"<>":function(a){var b=.48-a/1.04,c=w.sqrt(.1734+b*b),d=c-b,e=A(z(d),1/3)*(d<0?-1:1),f=-c-b,g=A(z(f),1/3)*(f<0?-1:1),h=e+g+.5;return(1-h)*3*h*h+h*h*h},backIn:function(a){var b=1.70158;return a*a*((b+1)*a-b)},backOut:function(a){a=a-1;var b=1.70158;return a*a*((b+1)*a+b)+1},elastic:function(a){if(a==!!a)return a;return A(2,-10*a)*w.sin((a-.075)*2*B/.3)+1},bounce:function(a){var b=7.5625,c=2.75,d;a<1/c?d=b*a*a:a<2/c?(a-=1.5/c,d=b*a*a+.75):a<2.5/c?(a-=2.25/c,d=b*a*a+.9375):(a-=2.625/c,d=b*a*a+.984375);return d}};ck.easeIn=ck["ease-in"]=ck["<"],ck.easeOut=ck["ease-out"]=ck[">"],ck.easeInOut=ck["ease-in-out"]=ck["<>"],ck["back-in"]=ck.backIn,ck["back-out"]=ck.backOut;var cl=[],cm=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(a){setTimeout(a,16)},cn=function(){var b=+(new Date),c=0;for(;c<cl.length;c++){var d=cl[c];if(d.el.removed||d.paused)continue;var e=b-d.start,f=d.ms,h=d.easing,i=d.from,j=d.diff,k=d.to,l=d.t,m=d.el,o={},p,r={},s;d.initstatus?(e=(d.initstatus*d.anim.top-d.prev)/(d.percent-d.prev)*f,d.status=d.initstatus,delete d.initstatus,d.stop&&cl.splice(c--,1)):d.status=(d.prev+(d.percent-d.prev)*(e/f))/d.anim.top;if(e<0)continue;if(e<f){var t=h(e/f);for(var u in i)if(i[g](u)){switch(U[u]){case C:p=+i[u]+t*f*j[u];break;case"colour":p="rgb("+[co(O(i[u].r+t*f*j[u].r)),co(O(i[u].g+t*f*j[u].g)),co(O(i[u].b+t*f*j[u].b))].join(",")+")";break;case"path":p=[];for(var v=0,w=i[u].length;v<w;v++){p[v]=[i[u][v][0]];for(var x=1,y=i[u][v].length;x<y;x++)p[v][x]=+i[u][v][x]+t*f*j[u][v][x];p[v]=p[v].join(q)}p=p.join(q);break;case"transform":if(j[u].real){p=[];for(v=0,w=i[u].length;v<w;v++){p[v]=[i[u][v][0]];for(x=1,y=i[u][v].length;x<y;x++)p[v][x]=i[u][v][x]+t*f*j[u][v][x]}}else{var z=function(a){return+i[u][a]+t*f*j[u][a]};p=[["m",z(0),z(1),z(2),z(3),z(4),z(5)]]}break;case"csv":if(u=="clip-rect"){p=[],v=4;while(v--)p[v]=+i[u][v]+t*f*j[u][v]}break;default:var A=[][n](i[u]);p=[],v=m.paper.customAttributes[u].length;while(v--)p[v]=+A[v]+t*f*j[u][v]}o[u]=p}m.attr(o),function(a,b,c){setTimeout(function(){eve("anim.frame."+a,b,c)})}(m.id,m,d.anim)}else{(function(b,c,d){setTimeout(function(){eve("anim.frame."+c.id,c,d),eve("anim.finish."+c.id,c,d),a.is(b,"function")&&b.call(c)})})(d.callback,m,d.anim),m.attr(k),cl.splice(c--,1);if(d.repeat>1&&!d.next){for(s in k)k[g](s)&&(r[s]=d.totalOrigin[s]);d.el.attr(r),cr(d.anim,d.el,d.anim.percents[0],null,d.totalOrigin,d.repeat-1)}d.next&&!d.stop&&cr(d.anim,d.el,d.next,null,d.totalOrigin,d.repeat)}}a.svg&&m&&m.paper&&m.paper.safari(),cl.length&&cm(cn)},co=function(a){return a>255?255:a<0?0:a};b_.animateWith=function(b,c,d,e,f,g){var h=d?a.animation(d,e,f,g):c;status=b.status(c);return this.animate(h).status(h,status*c.ms/h.ms)},b_.onAnimation=function(a){a?eve.on("anim.frame."+this.id,a):eve.unbind("anim.frame."+this.id);return this},cq.prototype.delay=function(a){var b=new cq(this.anim,this.ms);b.times=this.times,b.del=+a||0;return b},cq.prototype.repeat=function(a){var b=new cq(this.anim,this.ms);b.del=this.del,b.times=w.floor(x(a,0))||1;return b},a.animation=function(b,c,d,e){if(b instanceof cq)return b;if(a.is(d,"function")||!d)e=e||d||null,d=null;b=Object(b),c=+c||0;var f={},h,i;for(i in b)b[g](i)&&Q(i)!=i&&Q(i)+"%"!=i&&(h=!0,f[i]=b[i]);if(!h)return new cq(b,c);d&&(f.easing=d),e&&(f.callback=e);return new cq({100:f},c)},b_.animate=function(b,c,d,e){var f=this;if(f.removed){e&&e.call(f);return f}var g=b instanceof cq?b:a.animation(b,c,d,e);cr(g,f,g.percents[0],null,f.attr());return f},b_.setTime=function(a,b){a&&b!=null&&this.status(a,y(b,a.ms)/a.ms);return this},b_.status=function(a,b){var c=[],d=0,e,f;if(b!=null){cr(a,this,-1,y(b,1));return this}e=cl.length;for(;d<e;d++){f=cl[d];if(f.el.id==this.id&&(!a||f.anim==a)){if(a)return f.status;c.push({anim:f.anim,status:f.status})}}if(a)return 0;return c},b_.pause=function(a){for(var b=0;b<cl.length;b++)cl[b].el.id==this.id&&(!a||cl[b].anim==a)&&eve("anim.pause."+this.id,this,cl[b].anim)!==!1&&(cl[b].paused=!0);return this},b_.resume=function(a){for(var b=0;b<cl.length;b++)if(cl[b].el.id==this.id&&(!a||cl[b].anim==a)){var c=cl[b];eve("anim.resume."+this.id,this,c.anim)!==!1&&(delete c.paused,this.status(c.anim,c.status))}return this},b_.stop=function(a){for(var b=0;b<cl.length;b++)cl[b].el.id==this.id&&(!a||cl[b].anim==a)&&eve("anim.stop."+this.id,this,cl[b].anim)!==!1&&cl.splice(b--,1);return this},b_.toString=function(){return"Raphaël’s object"};var cs=function(a){this.items=[],this.length=0,this.type="set";if(a)for(var b=0,c=a.length;b<c;b++)a[b]&&(a[b].constructor==b_.constructor||a[b].constructor==cs)&&(this[this.items.length]=this.items[this.items.length]=a[b],this.length++)},ct=cs.prototype;ct.push=function(){var a,b;for(var c=0,d=arguments.length;c<d;c++)a=arguments[c],a&&(a.constructor==b_.constructor||a.constructor==cs)&&(b=this.items.length,this[b]=this.items[b]=a,this.length++);return this},ct.pop=function(){this.length&&delete this[this.length--];return this.items.pop()},ct.forEach=function(a,b){for(var c=0,d=this.items.length;c<d;c++)if(a.call(b,this.items[c],c)===!1)return this;return this};for(var cu in b_)b_[g](cu)&&(ct[cu]=function(a){return function(){var b=arguments;return this.forEach(function(c){c[a][m](c,b)})}}(cu));ct.attr=function(b,c){if(b&&a.is(b,E)&&a.is(b[0],"object"))for(var d=0,e=b.length;d<e;d++)this.items[d].attr(b[d]);else for(var f=0,g=this.items.length;f<g;f++)this.items[f].attr(b,c);return this},ct.clear=function(){while(this.length)this.pop()},ct.splice=function(a,b,c){a=a<0?x(this.length+a,0):a,b=x(0,y(this.length-a,b));var d=[],e=[],f=[],g;for(g=2;g<arguments.length;g++)f.push(arguments[g]);for(g=0;g<b;g++)e.push(this[a+g]);for(;g<this.length-a;g++)d.push(this[a+g]);var h=f.length;for(g=0;g<h+d.length;g++)this.items[a+g]=this[a+g]=g<h?f[g]:d[g-h];g=this.items.length=this.length-=b-h;while(this[g])delete this[g++];return new cs(e)},ct.exclude=function(a){for(var b=0,c=this.length;b<c;b++)if(this[b]==a){this.splice(b,1);return!0}},ct.animate=function(b,c,d,e){(a.is(d,"function")||!d)&&(e=d||null);var f=this.items.length,g=f,h,i=this,j;if(!f)return this;e&&(j=function(){!--f&&e.call(i)}),d=a.is(d,D)?d:j;var k=a.animation(b,c,d,j);h=this.items[--g].animate(k);while(g--)this.items[g]&&!this.items[g].removed&&this.items[g].animateWith(h,k);return this},ct.insertAfter=function(a){var b=this.items.length;while(b--)this.items[b].insertAfter(a);return this},ct.getBBox=function(){var a=[],b=[],c=[],d=[];for(var e=this.items.length;e--;)if(!this.items[e].removed){var f=this.items[e].getBBox();a.push(f.x),b.push(f.y),c.push(f.x+f.width),d.push(f.y+f.height)}a=y[m](0,a),b=y[m](0,b);return{x:a,y:b,width:x[m](0,c)-a,height:x[m](0,d)-b}},ct.clone=function(a){a=new cs;for(var b=0,c=this.items.length;b<c;b++)a.push(this.items[b].clone());return a},ct.toString=function(){return"Raphaël‘s set"},a.registerFont=function(a){if(!a.face)return a;this.fonts=this.fonts||{};var b={w:a.w,face:{},glyphs:{}},c=a.face["font-family"];for(var d in a.face)a.face[g](d)&&(b.face[d]=a.face[d]);this.fonts[c]?this.fonts[c].push(b):this.fonts[c]=[b];if(!a.svg){b.face["units-per-em"]=R(a.face["units-per-em"],10);for(var e in a.glyphs)if(a.glyphs[g](e)){var f=a.glyphs[e];b.glyphs[e]={w:f.w,k:{},d:f.d&&"M"+f.d.replace(/[mlcxtrv]/g,function(a){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[a]||"M"})+"z"};if(f.k)for(var h in f.k)f[g](h)&&(b.glyphs[e].k[h]=f.k[h])}}return a},k.getFont=function(b,c,d,e){e=e||"normal",d=d||"normal",c=+c||{normal:400,bold:700,lighter:300,bolder:800}[c]||400;if(!!a.fonts){var f=a.fonts[b];if(!f){var h=new RegExp("(^|\\s)"+b.replace(/[^\w\d\s+!~.:_-]/g,p)+"(\\s|$)","i");for(var i in a.fonts)if(a.fonts[g](i)&&h.test(i)){f=a.fonts[i];break}}var j;if(f)for(var k=0,l=f.length;k<l;k++){j=f[k];if(j.face["font-weight"]==c&&(j.face["font-style"]==d||!j.face["font-style"])&&j.face["font-stretch"]==e)break}return j}},k.print=function(b,d,e,f,g,h,i){h=h||"middle",i=x(y(i||0,1),-1);var j=this.set(),k=r(e)[s](p),l=0,m=p,n;a.is(f,e)&&(f=this.getFont(f));if(f){n=(g||16)/f.face["units-per-em"];var o=f.face.bbox[s](c),q=+o[0],t=+o[1]+(h=="baseline"?o[3]-o[1]+ +f.face.descent:(o[3]-o[1])/2);for(var u=0,v=k.length;u<v;u++){var w=u&&f.glyphs[k[u-1]]||{},z=f.glyphs[k[u]];l+=u?(w.w||f.w)+(w.k&&w.k[k[u]]||0)+f.w*i:0,z&&z.d&&j.push(this.path(z.d).attr({fill:"#000",stroke:"none",transform:[["t",l*n,0]]}))}j.transform(["...s",n,n,q,t,"t",(b-q)/n,(d-t)/n])}return j},a.format=function(b,c){var d=a.is(c,E)?[0][n](c):arguments;b&&a.is(b,D)&&d.length-1&&(b=b.replace(e,function(a,b){return d[++b]==null?p:d[b]}));return b||p},a.fullfill=function(){var a=/\{([^\}]+)\}/g,b=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,c=function(a,c,d){var e=d;c.replace(b,function(a,b,c,d,f){b=b||d,e&&(b in e&&(e=e[b]),typeof e=="function"&&f&&(e=e()))}),e=(e==null||e==d?a:e)+"";return e};return function(b,d){return String(b).replace(a,function(a,b){return c(a,b,d)})}}(),a.ninja=function(){i.was?h.win.Raphael=i.is:delete Raphael;return a},a.st=ct,function(b,c,d){function e(){/in/.test(b.readyState)?setTimeout(e,9):a.eve("DOMload")}b.readyState==null&&b.addEventListener&&(b.addEventListener(c,d=function(){b.removeEventListener(c,d,!1),b.readyState="complete"},!1),b.readyState="loading"),e()}(document,"DOMContentLoaded"),i.was?h.win.Raphael=a:Raphael=a,eve.on("DOMload",function(){b=!0})}(),window.Raphael.svg&&function(a){var b="hasOwnProperty",c=String,d=parseFloat,e=parseInt,f=Math,g=f.max,h=f.abs,i=f.pow,j=/[, ]+/,k=a.eve,l="",m=" ",n="http://www.w3.org/1999/xlink",o={block:"M5,0 0,2.5 5,5z",classic:"M5,0 0,2.5 5,5 3.5,3 3.5,2z",diamond:"M2.5,0 5,2.5 2.5,5 0,2.5z",open:"M6,1 1,3.5 6,6",oval:"M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z"},p={};a.toString=function(){return"Your browser supports SVG.\nYou are running Raphaël "+this.version};var q=function(d,e){if(e){typeof d=="string"&&(d=q(d));for(var f in e)e[b](f)&&(f.substring(0,6)=="xlink:"?d.setAttributeNS(n,f.substring(6),c(e[f])):d.setAttribute(f,c(e[f])))}else d=a._g.doc.createElementNS("http://www.w3.org/2000/svg",d),d.style&&(d.style.webkitTapHighlightColor="rgba(0,0,0,0)");return d},r={},s=/^url\(#(.*)\)$/,t=function(b,c){var d=b.getAttribute("fill");d=d&&d.match(s),d&&!--r[d[1]]&&(delete r[d[1]],c.defs.removeChild(a._g.doc.getElementById(d[1])))},u=function(b,e){var j="linear",k=b.id+e,m=.5,n=.5,o=b.node,p=b.paper,r=o.style,s=a._g.doc.getElementById(k);if(!s){e=c(e).replace(a._radial_gradient,function(a,b,c){j="radial";if(b&&c){m=d(b),n=d(c);var e=(n>.5)*2-1;i(m-.5,2)+i(n-.5,2)>.25&&(n=f.sqrt(.25-i(m-.5,2))*e+.5)&&n!=.5&&(n=n.toFixed(5)-1e-5*e)}return l}),e=e.split(/\s*\-\s*/);if(j=="linear"){var t=e.shift();t=-d(t);if(isNaN(t))return null;var u=[0,0,f.cos(a.rad(t)),f.sin(a.rad(t))],v=1/(g(h(u[2]),h(u[3]))||1);u[2]*=v,u[3]*=v,u[2]<0&&(u[0]=-u[2],u[2]=0),u[3]<0&&(u[1]=-u[3],u[3]=0)}var w=a._parseDots(e);if(!w)return null;b.gradient&&(p.defs.removeChild(b.gradient),delete b.gradient),k=k.replace(/[\(\)\s,\xb0#]/g,"-"),s=q(j+"Gradient",{id:k}),b.gradient=s,q(s,j=="radial"?{fx:m,fy:n}:{x1:u[0],y1:u[1],x2:u[2],y2:u[3],gradientTransform:b.matrix.invert()}),p.defs.appendChild(s);for(var x=0,y=w.length;x<y;x++)s.appendChild(q("stop",{offset:w[x].offset?w[x].offset:x?"100%":"0%","stop-color":w[x].color||"#fff"}))}q(o,{fill:"url(#"+k+")",opacity:1,"fill-opacity":1}),r.fill=l,r.opacity=1,r.fillOpacity=1;return 1},v=function(a){var b=a.getBBox(1);q(a.pattern,{patternTransform:a.matrix.invert()+" translate("+b.x+","+b.y+")"})},w=function(d,e,f){if(d.type=="path"){var g=c(e).toLowerCase().split("-"),h=d.paper,i=f?"end":"start",j=d.node,k=d.attrs,l=k["stroke-width"],n=g.length,r="classic",s,t,u,v,w,x=3,y=3,z=5;while(n--)switch(g[n]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":r=g[n];break;case"wide":y=5;break;case"narrow":y=2;break;case"long":x=5;break;case"short":x=2}r=="open"?(x+=2,y+=2,z+=2,u=1,v=f?4:1,w={fill:"none",stroke:k.stroke}):(v=u=x/2,w={fill:k.stroke,stroke:"none"}),d._.arrows?f?(d._.arrows.endPath&&p[d._.arrows.endPath]--,d._.arrows.endMarker&&p[d._.arrows.endMarker]--):(d._.arrows.startPath&&p[d._.arrows.startPath]--,d._.arrows.startMarker&&p[d._.arrows.startMarker]--):d._.arrows={};if(r!="none"){var A="raphael-marker-"+r,B="raphael-marker-"+i+r+x+y;a._g.doc.getElementById(A)?p[A]++:(h.defs.appendChild(q(q("path"),{"stroke-linecap":"round",d:o[r],id:A})),p[A]=1);var C=a._g.doc.getElementById(B),D;C?(p[B]++,D=C.getElementsByTagName("use")[0]):(C=q(q("marker"),{id:B,markerHeight:y,markerWidth:x,orient:"auto",refX:v,refY:y/2}),D=q(q("use"),{"xlink:href":"#"+A,transform:(f?" rotate(180 "+x/2+" "+y/2+") ":m)+"scale("+x/z+","+y/z+")","stroke-width":1/((x/z+y/z)/2)}),C.appendChild(D),h.defs.appendChild(C),p[B]=1),q(D,w);var E=u*(r!="diamond"&&r!="oval");f?(s=d._.arrows.startdx*l||0,t=a.getTotalLength(k.path)-E*l):(s=E*l,t=a.getTotalLength(k.path)-(d._.arrows.enddx*l||0)),w={},w["marker-"+i]="url(#"+B+")";if(t||s)w.d=Raphael.getSubpath(k.path,s,t);q(j,w),d._.arrows[i+"Path"]=A,d._.arrows[i+"Marker"]=B,d._.arrows[i+"dx"]=E,d._.arrows[i+"Type"]=r,d._.arrows[i+"String"]=e}else f?(s=d._.arrows.startdx*l||0,t=a.getTotalLength(k.path)-s):(s=0,t=a.getTotalLength(k.path)-(d._.arrows.enddx*l||0)),d._.arrows[i+"Path"]&&q(j,{d:Raphael.getSubpath(k.path,s,t)}),delete d._.arrows[i+"Path"],delete d._.arrows[i+"Marker"],delete d._.arrows[i+"dx"],delete d._.arrows[i+"Type"],delete d._.arrows[i+"String"];for(w in p)if(p[b](w)&&!p[w]){var F=a._g.doc.getElementById(w);F&&F.parentNode.removeChild(F)}}},x={"":[0],none:[0],"-":[3,1],".":[1,1],"-.":[3,1,1,1],"-..":[3,1,1,1,1,1],". ":[1,3],"- ":[4,3],"--":[8,3],"- .":[4,3,1,3],"--.":[8,3,1,3],"--..":[8,3,1,3,1,3]},y=function(a,b,d){b=x[c(b).toLowerCase()];if(b){var e=a.attrs["stroke-width"]||"1",f={round:e,square:e,butt:0}[a.attrs["stroke-linecap"]||d["stroke-linecap"]]||0,g=[],h=b.length;while(h--)g[h]=b[h]*e+(h%2?1:-1)*f;q(a.node,{"stroke-dasharray":g.join(",")})}},z=function(d,f){var i=d.node,k=d.attrs,m=i.style.visibility;i.style.visibility="hidden";for(var o in f)if(f[b](o)){if(!a._availableAttrs[b](o))continue;var p=f[o];k[o]=p;switch(o){case"blur":d.blur(p);break;case"href":case"title":case"target":var r=i.parentNode;if(r.tagName.toLowerCase()!="a"){var s=q("a");r.insertBefore(s,i),s.appendChild(i),r=s}o=="target"&&p=="blank"?r.setAttributeNS(n,"show","new"):r.setAttributeNS(n,o,p);break;case"cursor":i.style.cursor=p;break;case"transform":d.transform(p);break;case"arrow-start":w(d,p);break;case"arrow-end":w(d,p,1);break;case"clip-rect":var t=c(p).split(j);if(t.length==4){d.clip&&d.clip.parentNode.parentNode.removeChild(d.clip.parentNode);var x=q("clipPath"),z=q("rect");x.id=a.createUUID(),q(z,{x:t[0],y:t[1],width:t[2],height:t[3]}),x.appendChild(z),d.paper.defs.appendChild(x),q(i,{"clip-path":"url(#"+x.id+")"}),d.clip=z}if(!p){var A=a._g.doc.getElementById(i.getAttribute("clip-path").replace(/(^url\(#|\)$)/g,l));A&&A.parentNode.removeChild(A),q(i,{"clip-path":l}),delete d.clip}break;case"path":d.type=="path"&&(q(i,{d:p?k.path=a._pathToAbsolute(p):"M0,0"}),d._.dirty=1,d._.arrows&&("startString"in d._.arrows&&w(d,d._.arrows.startString),"endString"in d._.arrows&&w(d,d._.arrows.endString,1)));break;case"width":i.setAttribute(o,p),d._.dirty=1;if(k.fx)o="x",p=k.x;else break;case"x":k.fx&&(p=-k.x-(k.width||0));case"rx":if(o=="rx"&&d.type=="rect")break;case"cx":i.setAttribute(o,p),d.pattern&&v(d),d._.dirty=1;break;case"height":i.setAttribute(o,p),d._.dirty=1;if(k.fy)o="y",p=k.y;else break;case"y":k.fy&&(p=-k.y-(k.height||0));case"ry":if(o=="ry"&&d.type=="rect")break;case"cy":i.setAttribute(o,p),d.pattern&&v(d),d._.dirty=1;break;case"r":d.type=="rect"?q(i,{rx:p,ry:p}):i.setAttribute(o,p),d._.dirty=1;break;case"src":d.type=="image"&&i.setAttributeNS(n,"href",p);break;case"stroke-width":if(d._.sx!=1||d._.sy!=1)p/=g(h(d._.sx),h(d._.sy))||1;d.paper._vbSize&&(p*=d.paper._vbSize),i.setAttribute(o,p),k["stroke-dasharray"]&&y(d,k["stroke-dasharray"],f),d._.arrows&&("startString"in d._.arrows&&w(d,d._.arrows.startString),"endString"in d._.arrows&&w(d,d._.arrows.endString,1));break;case"stroke-dasharray":y(d,p,f);break;case"fill":var C=c(p).match(a._ISURL);if(C){x=q("pattern");var D=q("image");x.id=a.createUUID(),q(x,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1}),q(D,{x:0,y:0,"xlink:href":C[1]}),x.appendChild(D),function(b){a._preload(C[1],function(){var a=this.offsetWidth,c=this.offsetHeight;q(b,{width:a,height:c}),q(D,{width:a,height:c}),d.paper.safari()})}(x),d.paper.defs.appendChild(x),i.style.fill="url(#"+x.id+")",q(i,{fill:"url(#"+x.id+")"}),d.pattern=x,d.pattern&&v(d);break}var E=a.getRGB(p);if(!E.error)delete f.gradient,delete k.gradient,!a.is(k.opacity,"undefined")&&a.is(f.opacity,"undefined")&&q(i,{opacity:k.opacity}),!a.is(k["fill-opacity"],"undefined")&&a.is(f["fill-opacity"],"undefined")&&q(i,{"fill-opacity":k["fill-opacity"]});else if((d.type=="circle"||d.type=="ellipse"||c(p).charAt()!="r")&&u(d,p)){if("opacity"in k||"fill-opacity"in k){var F=a._g.doc.getElementById(i.getAttribute("fill").replace(/^url\(#|\)$/g,l));if(F){var G=F.getElementsByTagName("stop");q(G[G.length-1],{"stop-opacity":("opacity"in k?k.opacity:1)*("fill-opacity"in k?k["fill-opacity"]:1)})}}k.gradient=p,k.fill="none";break}E[b]("opacity")&&q(i,{"fill-opacity":E.opacity>1?E.opacity/100:E.opacity});case"stroke":E=a.getRGB(p),i.setAttribute(o,E.hex),o=="stroke"&&E[b]("opacity")&&q(i,{"stroke-opacity":E.opacity>1?E.opacity/100:E.opacity}),o=="stroke"&&d._.arrows&&("startString"in d._.arrows&&w(d,d._.arrows.startString),"endString"in d._.arrows&&w(d,d._.arrows.endString,1));break;case"gradient":(d.type=="circle"||d.type=="ellipse"||c(p).charAt()!="r")&&u(d,p);break;case"opacity":k.gradient&&!k[b]("stroke-opacity")&&q(i,{"stroke-opacity":p>1?p/100:p});case"fill-opacity":if(k.gradient){F=a._g.doc.getElementById(i.getAttribute("fill").replace(/^url\(#|\)$/g,l)),F&&(G=F.getElementsByTagName("stop"),q(G[G.length-1],{"stop-opacity":p}));break};default:o=="font-size"&&(p=e(p,10)+"px");var H=o.replace(/(\-.)/g,function(a){return a.substring(1).toUpperCase()});i.style[H]=p,d._.dirty=1,i.setAttribute(o,p)}}B(d,f),i.style.visibility=m},A=1.2,B=function(d,f){if(d.type=="text"&&!!(f[b]("text")||f[b]("font")||f[b]("font-size")||f[b]("x")||f[b]("y"))){var g=d.attrs,h=d.node,i=h.firstChild?e(a._g.doc.defaultView.getComputedStyle(h.firstChild,l).getPropertyValue("font-size"),10):10;if(f[b]("text")){g.text=f.text;while(h.firstChild)h.removeChild(h.firstChild);var j=c(f.text).split("\n"),k=[],m;for(var n=0,o=j.length;n<o;n++)m=q("tspan"),n&&q(m,{dy:i*A,x:g.x}),m.appendChild(a._g.doc.createTextNode(j[n])),h.appendChild(m),k[n]=m}else{k=h.getElementsByTagName("tspan");for(n=0,o=k.length;n<o;n++)n?q(k[n],{dy:i*A,x:g.x}):q(k[0],{dy:0})}q(h,{x:g.x,y:g.y}),d._.dirty=1;var p=d._getBBox(),r=g.y-(p.y+p.height/2);r&&a.is(r,"finite")&&q(k[0],{dy:r})}},C=function(b,c){var d=0,e=0;this[0]=this.node=b,b.raphael=!0,this.id=a._oid++,b.raphaelid=this.id,this.matrix=a.matrix(),this.realPath=null,this.paper=c,this.attrs=this.attrs||{},this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1},!c.bottom&&(c.bottom=this),this.prev=c.top,c.top&&(c.top.next=this),c.top=this,this.next=null},D=a.el;C.prototype=D,D.constructor=C,a._engine.path=function(a,b){var c=q("path");b.canvas&&b.canvas.appendChild(c);var d=new C(c,b);d.type="path",z(d,{fill:"none",stroke:"#000",path:a});return d},D.rotate=function(a,b,e){if(this.removed)return this;a=c(a).split(j),a.length-1&&(b=d(a[1]),e=d(a[2])),a=d(a[0]),e==null&&(b=e);if(b==null||e==null){var f=this.getBBox(1);b=f.x+f.width/2,e=f.y+f.height/2}this.transform(this._.transform.concat([["r",a,b,e]]));return this},D.scale=function(a,b,e,f){if(this.removed)return this;a=c(a).split(j),a.length-1&&(b=d(a[1]),e=d(a[2]),f=d(a[3])),a=d(a[0]),b==null&&(b=a),f==null&&(e=f);if(e==null||f==null)var g=this.getBBox(1);e=e==null?g.x+g.width/2:e,f=f==null?g.y+g.height/2:f,this.transform(this._.transform.concat([["s",a,b,e,f]]));return this},D.translate=function(a,b){if(this.removed)return this;a=c(a).split(j),a.length-1&&(b=d(a[1])),a=d(a[0])||0,b=+b||0,this.transform(this._.transform.concat([["t",a,b]]));return this},D.transform=function(c){var d=this._;if(c==null)return d.transform;a._extractTransform(this,c),this.clip&&q(this.clip,{transform:this.matrix.invert()}),this.pattern&&v(this),this.node&&q(this.node,{transform:this.matrix});if(d.sx!=1||d.sy!=1){var e=this.attrs[b]("stroke-width")?this.attrs["stroke-width"]:1;this.attr({"stroke-width":e})}return this},D.hide=function(){!this.removed&&this.paper.safari(this.node.style.display="none");return this},D.show=function(){!this.removed&&this.paper.safari(this.node.style.display="");return this},D.remove=function(){if(!this.removed){this.paper.__set__&&this.paper.__set__.exclude(this),k.unbind("*.*."+this.id),a._tear(this,this.paper),this.node.parentNode.removeChild(this.node);for(var b in this)delete this[b];this.removed=!0}},D._getBBox=function(){if(this.node.style.display=="none"){this.show();var a=!0}var b={};try{b=this.node.getBBox()}catch(c){}finally{b=b||{}}a&&this.hide();return b},D.attr=function(c,d){if(this.removed)return this;if(c==null){var e={};for(var f in this.attrs)this.attrs[b](f)&&(e[f]=this.attrs[f]);e.gradient&&e.fill=="none"&&(e.fill=e.gradient)&&delete e.gradient,e.transform=this._.transform;return e}if(d==null&&a.is(c,"string")){if(c=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;if(c=="transform")return this._.transform;var g=c.split(j),h={};for(var i=0,l=g.length;i<l;i++)c=g[i],c in this.attrs?h[c]=this.attrs[c]:a.is(this.paper.customAttributes[c],"function")?h[c]=this.paper.customAttributes[c].def:h[c]=a._availableAttrs[c];return l-1?h:h[g[0]]}if(d==null&&a.is(c,"array")){h={};for(i=0,l=c.length;i<l;i++)h[c[i]]=this.attr(c[i]);return h}if(d!=null){var m={};m[c]=d}else c!=null&&a.is(c,"object")&&(m=c);for(var n in m)k("attr."+n+"."+this.id,this,m[n]);for(n in this.paper.customAttributes)if(this.paper.customAttributes[b](n)&&m[b](n)&&a.is(this.paper.customAttributes[n],"function")){var o=this.paper.customAttributes[n].apply(this,[].concat(m[n]));this.attrs[n]=m[n];for(var p in o)o[b](p)&&(m[p]=o[p])}z(this,m);return this},D.toFront=function(){if(this.removed)return this;this.node.parentNode.appendChild(this.node);var b=this.paper;b.top!=this&&a._tofront(this,b);return this},D.toBack=function(){if(this.removed)return this;if(this.node.parentNode.firstChild!=this.node){this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild),a._toback(this,this.paper);var b=this.paper}return this},D.insertAfter=function(b){if(this.removed)return this;var c=b.node||b[b.length-1].node;c.nextSibling?c.parentNode.insertBefore(this.node,c.nextSibling):c.parentNode.appendChild(this.node),a._insertafter(this,b,this.paper);return this},D.insertBefore=function(b){if(this.removed)return this;var c=b.node||b[0].node;c.parentNode.insertBefore(this.node,c),a._insertbefore(this,b,this.paper);return this},D.blur=function(b){var c=this;if(+b!==0){var d=q("filter"),e=q("feGaussianBlur");c.attrs.blur=b,d.id=a.createUUID(),q(e,{stdDeviation:+b||1.5}),d.appendChild(e),c.paper.defs.appendChild(d),c._blur=d,q(c.node,{filter:"url(#"+d.id+")"})}else c._blur&&(c._blur.parentNode.removeChild(c._blur),delete c._blur,delete c.attrs.blur),c.node.removeAttribute("filter")},a._engine.circle=function(a,b,c,d){var e=q("circle");a.canvas&&a.canvas.appendChild(e);var f=new C(e,a);f.attrs={cx:b,cy:c,r:d,fill:"none",stroke:"#000"},f.type="circle",q(e,f.attrs);return f},a._engine.rect=function(a,b,c,d,e,f){var g=q("rect");a.canvas&&a.canvas.appendChild(g);var h=new C(g,a);h.attrs={x:b,y:c,width:d,height:e,r:f||0,rx:f||0,ry:f||0,fill:"none",stroke:"#000"},h.type="rect",q(g,h.attrs);return h},a._engine.ellipse=function(a,b,c,d,e){var f=q("ellipse");a.canvas&&a.canvas.appendChild(f);var g=new C(f,a);g.attrs={cx:b,cy:c,rx:d,ry:e,fill:"none",stroke:"#000"},g.type="ellipse",q(f,g.attrs);return g},a._engine.image=function(a,b,c,d,e,f){var g=q("image");q(g,{x:c,y:d,width:e,height:f,preserveAspectRatio:"none"}),g.setAttributeNS(n,"href",b),a.canvas&&a.canvas.appendChild(g);var h=new C(g,a);h.attrs={x:c,y:d,width:e,height:f,src:b},h.type="image";return h},a._engine.text=function(b,c,d,e){var f=q("text");b.canvas&&b.canvas.appendChild(f);var g=new C(f,b);g.attrs={x:c,y:d,"text-anchor":"middle",text:e,font:a._availableAttrs.font,stroke:"none",fill:"#000"},g.type="text",z(g,g.attrs);return g},a._engine.setSize=function(a,b){this.width=a||this.width,this.height=b||this.height,this.canvas.setAttribute("width",this.width),this.canvas.setAttribute("height",this.height),this._viewBox&&this.setViewBox.apply(this,this._viewBox);return this},a._engine.create=function(){var b=a._getContainer.apply(0,arguments),c=b&&b.container,d=b.x,e=b.y,f=b.width,g=b.height;if(!c)throw new Error("SVG container not found.");var h=q("svg"),i="overflow:hidden;",j;d=d||0,e=e||0,f=f||512,g=g||342,q(h,{height:g,version:1.1,width:f,xmlns:"http://www.w3.org/2000/svg"}),c==1?(h.style.cssText=i+"position:absolute;left:"+d+"px;top:"+e+"px",a._g.doc.body.appendChild(h),j=1):(h.style.cssText=i+"position:relative",c.firstChild?c.insertBefore(h,c.firstChild):c.appendChild(h)),c=new a._Paper,c.width=f,c.height=g,c.canvas=h,c.clear(),c._left=c._top=0,j&&(c.renderfix=function(){}),c.renderfix();return c},a._engine.setViewBox=function(a,b,c,d,e){k("setViewBox",this,this._viewBox,[a,b,c,d,e]);var f=g(c/this.width,d/this.height),h=this.top,i=e?"meet":"xMinYMin",j,l;a==null?(this._vbSize&&(f=1),delete this._vbSize,j="0 0 "+this.width+m+this.height):(this._vbSize=f,j=a+m+b+m+c+m+d),q(this.canvas,{viewBox:j,preserveAspectRatio:i});while(f&&h)l="stroke-width"in h.attrs?h.attrs["stroke-width"]:1,h.attr({"stroke-width":l}),h._.dirty=1,h._.dirtyT=1,h=h.prev;this._viewBox=[a,b,c,d,!!e];return this},a.prototype.renderfix=function(){var a=this.canvas,b=a.style,c=a.getScreenCTM()||a.createSVGMatrix(),d=-c.e%1,e=-c.f%1;if(d||e)d&&(this._left=(this._left+d)%1,b.left=this._left+"px"),e&&(this._top=(this._top+e)%1,b.top=this._top+"px")},a.prototype.clear=function(){a.eve("clear",this);var b=this.canvas;while(b.firstChild)b.removeChild(b.firstChild);this.bottom=this.top=null,(this.desc=q("desc")).appendChild(a._g.doc.createTextNode("Created with Raphaël "+a.version)),b.appendChild(this.desc),b.appendChild(this.defs=q("defs"))},a.prototype.remove=function(){k("remove",this),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas);for(var a in this)this[a]=removed(a)};var E=a.st;for(var F in D)D[b](F)&&!E[b](F)&&(E[F]=function(a){return function(){var b=arguments;return this.forEach(function(c){c[a].apply(c,b)})}}(F))}(window.Raphael),window.Raphael.vml&&function(a){var b="hasOwnProperty",c=String,d=parseFloat,e=Math,f=e.round,g=e.max,h=e.min,i=e.abs,j="fill",k=/[, ]+/,l=a.eve,m=" progid:DXImageTransform.Microsoft",n=" ",o="",p={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},q=/([clmz]),?([^clmz]*)/gi,r=/ progid:\S+Blur\([^\)]+\)/g,s=/-?[^,\s-]+/g,t="position:absolute;left:0;top:0;width:1px;height:1px",u=21600,v={path:1,rect:1,image:1},w={circle:1,ellipse:1},x=function(b){var d=/[ahqstv]/ig,e=a._pathToAbsolute;c(b).match(d)&&(e=a._path2curve),d=/[clmz]/g;if(e==a._pathToAbsolute&&!c(b).match(d)){var g=c(b).replace(q,function(a,b,c){var d=[],e=b.toLowerCase()=="m",g=p[b];c.replace(s,function(a){e&&d.length==2&&(g+=d+p[b=="m"?"l":"L"],d=[]),d.push(f(a*u))});return g+d});return g}var h=e(b),i,j;g=[];for(var k=0,l=h.length;k<l;k++){i=h[k],j=h[k][0].toLowerCase(),j=="z"&&(j="x");for(var m=1,r=i.length;m<r;m++)j+=f(i[m]*u)+(m!=r-1?",":o);g.push(j)}return g.join(n)},y=function(b,c,d){var e=a.matrix();e.rotate(-b,.5,.5);return{dx:e.x(c,d),dy:e.y(c,d)}},z=function(a,b,c,d,e,f){var g=a._,h=a.matrix,k=g.fillpos,l=a.node,m=l.style,o=1,p="",q,r=u/b,s=u/c;m.visibility="hidden";if(!!b&&!!c){l.coordsize=i(r)+n+i(s),m.rotation=f*(b*c<0?-1:1);if(f){var t=y(f,d,e);d=t.dx,e=t.dy}b<0&&(p+="x"),c<0&&(p+=" y")&&(o=-1),m.flip=p,l.coordorigin=d*-r+n+e*-s;if(k||g.fillsize){var v=l.getElementsByTagName(j);v=v&&v[0],l.removeChild(v),k&&(t=y(f,h.x(k[0],k[1]),h.y(k[0],k[1])),v.position=t.dx*o+n+t.dy*o),g.fillsize&&(v.size=g.fillsize[0]*i(b)+n+g.fillsize[1]*i(c)),l.appendChild(v)}m.visibility="visible"}};a.toString=function(){return"Your browser doesn’t support SVG. Falling down to VML.\nYou are running Raphaël "+this.version},addArrow=function(a,b,d){var e=c(b).toLowerCase().split("-"),f=d?"end":"start",g=e.length,h="classic",i="medium",j="medium";while(g--)switch(e[g]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":h=e[g];break;case"wide":case"narrow":j=e[g];break;case"long":case"short":i=e[g]}var k=a.node.getElementsByTagName("stroke")[0];k[f+"arrow"]=h,k[f+"arrowlength"]=i,k[f+"arrowwidth"]=j},setFillAndStroke=function(e,i){e.attrs=e.attrs||{};var l=e.node,m=e.attrs,p=l.style,q,r=v[e.type]&&(i.x!=m.x||i.y!=m.y||i.width!=m.width||i.height!=m.height||i.cx!=m.cx||i.cy!=m.cy||i.rx!=m.rx||i.ry!=m.ry||i.r!=m.r),s=w[e.type]&&(m.cx!=i.cx||m.cy!=i.cy||m.r!=i.r||m.rx!=i.rx||m.ry!=i.ry),t=e;for(var y in i)i[b](y)&&(m[y]=i[y]);r&&(m.path=a._getPath[e.type](e),e._.dirty=1),i.href&&(l.href=i.href),i.title&&(l.title=i.title),i.target&&(l.target=i.target),i.cursor&&(p.cursor=i.cursor),"blur"in i&&e.blur(i.blur);if(i.path&&e.type=="path"||r)l.path=x(~c(m.path).toLowerCase().indexOf("r")?a._pathToAbsolute(m.path):m.path),e.type=="image"&&(e._.fillpos=[m.x,m.y],e._.fillsize=[m.width,m.height],z(e,1,1,0,0,0));"transform"in i&&e.transform(i.transform);if(s){var A=+m.cx,C=+m.cy,D=+m.rx||+m.r||0,E=+m.ry||+m.r||0;l.path=a.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",f((A-D)*u),f((C-E)*u),f((A+D)*u),f((C+E)*u),f(A*u))}if("clip-rect"in i){var F=c(i["clip-rect"]).split(k);if(F.length==4){F[2]=+F[2]+ +F[0],F[3]=+F[3]+ +F[1];var G=l.clipRect||a._g.doc.createElement("div"),H=G.style;H.clip=a.format("rect({1}px {2}px {3}px {0}px)",F),l.clipRect||(H.position="absolute",H.top=0,H.left=0,H.width=e.paper.width+"px",H.height=e.paper.height+"px",l.parentNode.insertBefore(G,l),G.appendChild(l),l.clipRect=G)}i["clip-rect"]||l.clipRect&&(l.clipRect.style.clip=o)}if(e.textpath){var I=e.textpath.style;i.font&&(I.font=i.font),i["font-family"]&&(I.fontFamily='"'+i["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,o)+'"'),i["font-size"]&&(I.fontSize=i["font-size"]),i["font-weight"]&&(I.fontWeight=i["font-weight"]),i["font-style"]&&(I.fontStyle=i["font-style"])}"arrow-start"in i&&addArrow(t,i["arrow-start"]),"arrow-end"in i&&addArrow(t,i["arrow-end"],1);if(i.opacity!=null||i["stroke-width"]!=null||i.fill!=null||i.src!=null||i.stroke!=null||i["stroke-width"]!=null||i["stroke-opacity"]!=null||i["fill-opacity"]!=null||i["stroke-dasharray"]!=null||i["stroke-miterlimit"]!=null||i["stroke-linejoin"]!=null||i["stroke-linecap"]!=null){var J=l.getElementsByTagName(j),K=!1;J=J&&J[0],!J&&(K=J=B(j)),e.type=="image"&&i.src&&(J.src=i.src),i.fill&&(J.on=!0);if(J.on==null||i.fill=="none"||i.fill===null)J.on=!1;if(J.on&&i.fill){var L=c(i.fill).match(a._ISURL);if(L){J.parentNode==l&&l.removeChild(J),J.rotate=!0,J.src=L[1],J.type="tile";var M=e.getBBox(1);J.position=M.x+n+M.y,e._.fillpos=[M.x,M.y],a._preload(L[1],function(){e._.fillsize=[this.offsetWidth,this.offsetHeight]})}else J.color=a.getRGB(i.fill).hex,J.src=o,J.type="solid",a.getRGB(i.fill).error&&(t.type in{circle:1,ellipse:1}||c(i.fill).charAt()!="r")&&addGradientFill(t,i.fill,J)&&(m.fill="none",m.gradient=i.fill,J.rotate=!1)}if("fill-opacity"in i||"opacity"in i){var N=((+m["fill-opacity"]+1||2)-1)*((+m.opacity+1||2)-1)*((+a.getRGB(i.fill).o+1||2)-1);N=h(g(N,0),1),J.opacity=N,J.src&&(J.color="none")}l.appendChild(J);var O=l.getElementsByTagName("stroke")&&l.getElementsByTagName("stroke")[0],P=!1;!O&&(P=O=B("stroke"));if(i.stroke&&i.stroke!="none"||i["stroke-width"]||i["stroke-opacity"]!=null||i["stroke-dasharray"]||i["stroke-miterlimit"]||i["stroke-linejoin"]||i["stroke-linecap"])O.on=!0;(i.stroke=="none"||i.stroke===null||O.on==null||i.stroke==0||i["stroke-width"]==0)&&(O.on=!1);var Q=a.getRGB(i.stroke);O.on&&i.stroke&&(O.color=Q.hex),N=((+m["stroke-opacity"]+1||2)-1)*((+m.opacity+1||2)-1)*((+Q.o+1||2)-1);var T=(d(i["stroke-width"])||1)*.75;N=h(g(N,0),1),i["stroke-width"]==null&&(T=m["stroke-width"]),i["stroke-width"]&&(O.weight=T),T&&T<1&&(N*=T)&&(O.weight=1),O.opacity=N,i["stroke-linejoin"]&&(O.joinstyle=i["stroke-linejoin"]||"miter"),O.miterlimit=i["stroke-miterlimit"]||8,i["stroke-linecap"]&&(O.endcap=i["stroke-linecap"]=="butt"?"flat":i["stroke-linecap"]=="square"?"square":"round");if(i["stroke-dasharray"]){var U={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};O.dashstyle=U[b](i["stroke-dasharray"])?U[i["stroke-dasharray"]]:o}P&&l.appendChild(O)}if(t.type=="text"){t.paper.canvas.style.display=o;var V=t.paper.span,W=100,X=m.font&&m.font.match(/\d+(?:\.\d*)?(?=px)/);p=V.style,m.font&&(p.font=m.font),m["font-family"]&&(p.fontFamily=m["font-family"]),m["font-weight"]&&(p.fontWeight=m["font-weight"]),m["font-style"]&&(p.fontStyle=m["font-style"]),X=d(X?X[0]:m["font-size"]),p.fontSize=X*W+"px",t.textpath.string&&(V.innerHTML=c(t.textpath.string).replace(/</g,"&#60;").replace(/&/g,"&#38;").replace(/\n/g,"<br>"));var Y=V.getBoundingClientRect();t.W=m.w=(Y.right-Y.left)/W,t.H=m.h=(Y.bottom-Y.top)/W,t.X=m.x,t.Y=m.y+t.H/2,("x"in i||"y"in i)&&(t.path.v=a.format("m{0},{1}l{2},{1}",f(m.x*u),f(m.y*u),f(m.x*u)+1));var Z=["x","y","text","font","font-family","font-weight","font-style","font-size"];for(var $=0,_=Z.length;$<_;$++)if(Z[$]in i){t._.dirty=1;break}switch(m["text-anchor"]){case"start":t.textpath.style["v-text-align"]="left",t.bbx=t.W/2;break;case"end":t.textpath.style["v-text-align"]="right",t.bbx=-t.W/2;break;default:t.textpath.style["v-text-align"]="center",t.bbx=0}t.textpath.style["v-text-kern"]=!0}},addGradientFill=function(b,f,g){b.attrs=b.attrs||{};var h=b.attrs,i=Math.pow,j,k,l="linear",m=".5 .5";b.attrs.gradient=f,f=c(f).replace(a._radial_gradient,function(a,b,c){l="radial",b&&c&&(b=d(b),c=d(c),i(b-.5,2)+i(c-.5,2)>.25&&(c=e.sqrt(.25-i(b-.5,2))*((c>.5)*2-1)+.5),m=b+n+c);return o}),f=f.split(/\s*\-\s*/);if(l=="linear"){var p=f.shift();p=-d(p);if(isNaN(p))return null}var q=a._parseDots(f);if(!q)return null;b=b.shape||b.node;if(q.length){b.removeChild(g),g.on=!0,g.method="none",g.color=q[0].color,g.color2=q[q.length-1].color;var r=[];for(var s=0,t=q.length;s<t;s++)q[s].offset&&r.push(q[s].offset+n+q[s].color);g.colors=r.length?r.join():"0% "+g.color,l=="radial"?(g.type="gradientTitle",g.focus="100%",g.focussize="0 0",g.focusposition=m,g.angle=0):(g.type="gradient",g.angle=(270-p)%360),b.appendChild(g)}return 1},Element=function(b,c){this[0]=this.node=b,b.raphael=!0,this.id=a._oid++,b.raphaelid=this.id,this.X=0,this.Y=0,this.attrs={},this.paper=c,this.matrix=a.matrix(),this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1},!c.bottom&&(c.bottom=this),this.prev=c.top,c.top&&(c.top.next=this),c.top=this,this.next=null};var A=a.el;Element.prototype=A,A.constructor=Element,A.transform=function(b){if(b==null)return this._.transform;var d=this.paper._viewBoxShift,e=d?"s"+[d.scale,d.scale]+"-1-1t"+[d.dx,d.dy]:o,f;d&&(f=b=c(b).replace(/\.{3}|\u2026/g,this._.transform||o)),a._extractTransform(this,e+b);var g=this.matrix.clone(),h=this.skew,i=this.node,j,k=~c(this.attrs.fill).indexOf("-"),l=!c(this.attrs.fill).indexOf("url(");g.translate(-0.5,-0.5);if(l||k||this.type=="image"){h.matrix="1 0 0 1",h.offset="0 0",j=g.split();if(k&&j.noRotation||!j.isSimple){i.style.filter=g.toFilter();var m=this.getBBox(),p=this.getBBox(1),q=m.x-p.x,r=m.y-p.y;i.coordorigin=q*-u+n+r*-u,z(this,1,1,q,r,0)}else i.style.filter=o,z(this,j.scalex,j.scaley,j.dx,j.dy,j.rotate)}else i.style.filter=o,h.matrix=c(g),h.offset=g.offset();f&&(this._.transform=f);return this},A.rotate=function(a,b,e){if(this.removed)return this;if(a!=null){a=c(a).split(k),a.length-1&&(b=d(a[1]),e=d(a[2])),a=d(a[0]),e==null&&(b=e);if(b==null||e==null){var f=this.getBBox(1);b=f.x+f.width/2,e=f.y+f.height/2}this._.dirtyT=1,this.transform(this._.transform.concat([["r",a,b,e]]));return this}},A.translate=function(a,b){if(this.removed)return this;a=c(a).split(k),a.length-1&&(b=d(a[1])),a=d(a[0])||0,b=+b||0,this._.bbox&&(this._.bbox.x+=a,this._.bbox.y+=b),this.transform(this._.transform.concat([["t",a,b]]));return this},A.scale=function(a,b,e,f){if(this.removed)return this;a=c(a).split(k),a.length-1&&(b=d(a[1]),e=d(a[2]),f=d(a[3]),isNaN(e)&&(e=null),isNaN(f)&&(f=null)),a=d(a[0]),b==null&&(b=a),f==null&&(e=f);if(e==null||f==null)var g=this.getBBox(1);e=e==null?g.x+g.width/2:e,f=f==null?g.y+g.height/2:f,this.transform(this._.transform.concat([["s",a,b,e,f]])),this._.dirtyT=1;return this},A.hide=function(){!this.removed&&(this.node.style.display="none");return this},A.show=function(){!this.removed&&(this.node.style.display=o);return this},A._getBBox=function(){if(this.removed)return{};return this.type=="text"?{x:this.X+(this.bbx||0)-this.W/2,y:this.Y-this.H,width:this.W,height:this.H}:pathDimensions(this.attrs.path)},A.remove=function(){if(!this.removed){this.paper.__set__&&this.paper.__set__.exclude(this),a.eve.unbind("*.*."+this.id),a._tear(this,this.paper),this.node.parentNode.removeChild(this.node),this.shape&&this.shape.parentNode.removeChild(this.shape);for(var b in this)delete this[b];this.removed=!0}},A.attr=function(c,d){if(this.removed)return this;if(c==null){var e={};for(var f in this.attrs)this.attrs[b](f)&&(e[f]=this.attrs[f]);e.gradient&&e.fill=="none"&&(e.fill=e.gradient)&&delete e.gradient,e.transform=this._.transform;return e}if(d==null&&a.is(c,"string")){if(c==j&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;var g=c.split(k),h={};for(var i=0,m=g.length;i<m;i++)c=g[i],c in this.attrs?h[c]=this.attrs[c]:a.is(this.paper.customAttributes[c],"function")?h[c]=this.paper.customAttributes[c].def:h[c]=a._availableAttrs[c];return m-1?h:h[g[0]]}if(this.attrs&&d==null&&a.is(c,"array")){h={};for(i=0,m=c.length;i<m;i++)h[c[i]]=this.attr(c[i]);return h}var n;d!=null&&(n={},n[c]=d),d==null&&a.is(c,"object")&&(n=c);for(var o in n)l("attr."+o+"."+this.id,this,n[o]);if(n){for(o in this.paper.customAttributes)if(this.paper.customAttributes[b](o)&&n[b](o)&&a.is(this.paper.customAttributes[o],"function")){var p=this.paper.customAttributes[o].apply(this,[].concat(n[o]));this.attrs[o]=n[o];for(var q in p)p[b](q)&&(n[q]=p[q])}n.text&&this.type=="text"&&(this.textpath.string=n.text),setFillAndStroke(this,n)}return this},A.toFront=function(){!this.removed&&this.node.parentNode.appendChild(this.node),this.paper&&this.paper.top!=this&&a._tofront(this,this.paper);return this},A.toBack=function(){if(this.removed)return this;this.node.parentNode.firstChild!=this.node&&(this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild),a._toback(this,this.paper));return this},A.insertAfter=function(b){if(this.removed)return this;b.constructor==a.st.constructor&&(b=b[b.length-1]),b.node.nextSibling?b.node.parentNode.insertBefore(this.node,b.node.nextSibling):b.node.parentNode.appendChild(this.node),a._insertafter(this,b,this.paper);return this},A.insertBefore=function(b){if(this.removed)return this;b.constructor==a.st.constructor&&(b=b[0]),b.node.parentNode.insertBefore(this.node,b.node),a._insertbefore(this,b,this.paper);return this},A.blur=function(b){var c=this.node.runtimeStyle,d=c.filter;d=d.replace(r,o),+b!==0?(this.attrs.blur=b,c.filter=d+n+m+".Blur(pixelradius="+(+b||1.5)+")",c.margin=a.format("-{0}px 0 0 -{0}px",f(+b||1.5))):(c.filter=d,c.margin=0,delete this.attrs.blur)},a._engine.path=function(a,b){var c=B("shape");c.style.cssText=t,c.coordsize=u+n+u,c.coordorigin=b.coordorigin;var d=new Element(c,b),e={fill:"none",stroke:"#000"};a&&(e.path=a),d.type="path",d.path=[],d.Path=o,setFillAndStroke(d,e),b.canvas.appendChild(c);var f=B("skew");f.on=!0,c.appendChild(f),d.skew=f,d.transform(o);return d},a._engine.rect=function(b,c,d,e,f,g){var h=a._rectPath(c,d,e,f,g),i=b.path(h),j=i.attrs;i.X=j.x=c,i.Y=j.y=d,i.W=j.width=e,i.H=j.height=f,j.r=g,j.path=h,i.type="rect";return i},a._engine.ellipse=function(a,b,c,d,e){var f=a.path(),g=f.attrs;f.X=b-d,f.Y=c-e,f.W=d*2,f.H=e*2,f.type="ellipse",setFillAndStroke(f,{cx:b,cy:c,rx:d,ry:e});return f},a._engine.circle=function(a,b,c,d){var e=a.path(),f=e.attrs;e.X=b-d,e.Y=c-d,e.W=e.H=d*2,e.type="circle",setFillAndStroke(e,{cx:b,cy:c,r:d});return e},a._engine.image=function(b,c,d,e,f,g){var h=a._rectPath(d,e,f,g),i=b.path(h).attr({stroke:"none"}),k=i.attrs,l=i.node,m=l.getElementsByTagName(j)[0];k.src=c,i.X=k.x=d,i.Y=k.y=e,i.W=k.width=f,i.H=k.height=g,k.path=h,i.type="image",m.parentNode==l&&l.removeChild(m),m.rotate=!0,m.src=c,m.type="tile",i._.fillpos=[d,e],i._.fillsize=[f,g],l.appendChild(m),z(i,1,1,0,0,0);return i},a._engine.text=function(b,d,e,g){var h=B("shape"),i=B("path"),j=B("textpath");d=d||0,e=e||0,g=g||"",i.v=a.format("m{0},{1}l{2},{1}",f(d*u),f(e*u),f(d*u)+1),i.textpathok=!0,j.string=c(g),j.on=!0,h.style.cssText=t,h.coordsize=u+n+u,h.coordorigin="0 0";var k=new Element(h,b),l={fill:"#000",stroke:"none",font:a._availableAttrs.font,text:g};k.shape=h,k.path=i,k.textpath=j,k.type="text",k.attrs.text=c(g),k.attrs.x=d,k.attrs.y=e,k.attrs.w=1,k.attrs.h=1,setFillAndStroke(k,l),h.appendChild(j),h.appendChild(i),b.canvas.appendChild(h);var m=B("skew");m.on=!0,h.appendChild(m),k.skew=m,k.transform(o);return k},a._engine.setSize=function(a,b){var c=this.canvas.style;this.width=a,this.height=b,a==+a&&(a+="px"),b==+b&&(b+="px"),c.width=a,c.height=b,c.clip="rect(0 "+a+" "+b+" 0)",this._viewBox&&setViewBox.apply(this,this._viewBox);return this},a._engine.setViewBox=function(b,c,d,e,f){a.eve("setViewBox",this,this._viewBox,[b,c,d,e,f]);var h=this.width,i=this.height,j=1/g(d/h,e/i),k,l;f&&(k=i/e,l=h/d,d*k<h&&(b-=(h-d*k)/2/k),e*l<i&&(c-=(i-e*l)/2/l)),this._viewBox=[b,c,d,e,!!f],this._viewBoxShift={dx:-b,dy:-c,scale:j},this.forEach(function(a){a.transform("...")});return this};var B,C=function(a){var b=a.document;b.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)");try{!b.namespaces.rvml&&b.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),B=function(a){return b.createElement("<rvml:"+a+' class="rvml">')}}catch(c){B=function(a){return b.createElement("<"+a+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}};C(a._g.win),a._engine.create=function(){var b=a._getContainer.apply(0,arguments),c=b.container,d=b.height,e,f=b.width,g=b.x,h=b.y;if(!c)throw new Error("VML container not found.");var i=new a._Paper,j=i.canvas=a._g.doc.createElement("div"),k=j.style;g=g||0,h=h||0,f=f||512,d=d||342,i.width=f,i.height=d,f==+f&&(f+="px"),d==+d&&(d+="px"),i.coordsize=u*1e3+n+u*1e3,i.coordorigin="0 0",i.span=a._g.doc.createElement("span"),i.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",j.appendChild(i.span),k.cssText=a.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",f,d),c==1?(a._g.doc.body.appendChild(j),k.left=g+"px",k.top=h+"px",k.position="absolute"):c.firstChild?c.insertBefore(j,c.firstChild):c.appendChild(j),i.renderfix=function(){};return i},a.prototype.clear=function(){a.eve("clear",this),this.canvas.innerHTML=o,this.span=a._g.doc.createElement("span"),this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;",this.canvas.appendChild(this.span),this.bottom=this.top=null},a.prototype.remove=function(){a.eve("remove",this),this.canvas.parentNode.removeChild(this.canvas);for(var b in this)this[b]=removed(b);return!0};var D=a.st;for(var E in A)A[b](E)&&!D[b](E)&&(D[E]=function(a){return function(){var b=arguments;return this.forEach(function(c){c[a].apply(c,b)})}}(E))}(window.Raphael)
;$.fn.multislider=function(option){option=jQuery.extend({fromTo:true,checkbox:false,minVal:0,maxVal:100,toolText:''},option);var format=function(num){num=num.toString();numSize=num.length;var i=num.length-3;var j=0;var text=[];if(i>0){while(i>=0){text[j]=num.substr(i,3);if(i-3<0){j++;text[j]=num.substr(0,i)}j++;i=i-3}num='';for(var i=j-1;i>=0;i--){num+=i==0?text[i]:text[i]+' '}}return num};$(this).each(function(){var elBox=$(this);var sCode='<div class="multi-slider-box">'+'<div class="slider-box"><div class="slider-spc-1"><div class="slider-spc-2"><div class="slide-place"><div class="selected-area"></div></div></div></div></div>'+'<div class="slider1"><a href="#" class="slider"><span></span></a></div><div class="tool-tip1"><div class="tip-spc"><span></span></div></div>'+'<div class="slider2"><a href="#" class="slider"><span></span></a></div><div class="tool-tip2"><div class="tip-spc"><span></span></div></div>'+'</div>';$(this).wrapInner('<div class="inner-wrap"></div>').append(sCode);if(option.fromTo==true){$('.inner-wrap :text:eq(0)',this).addClass('from');$('.inner-wrap :text:eq(1)',this).addClass('to');var minVal=option.minVal;var maxVal=option.maxVal;var partSum=[1,5,10,50,100,500,1000,5000,10000,50000,100000,500000,1000000];var maxStep=100;var stepSumHelp=1000000;for(var i=0;i<partSum.length;i++){var stepDel=(((maxVal-minVal)/partSum[i])/maxStep)-1;stepDel=stepDel<0?stepDel*(-1):stepDel;if(stepDel<stepSumHelp){stepSumHelp=stepDel;var stepSum=partSum[i]}}minVal=Math.floor(minVal/stepSum)*stepSum;maxVal=Math.ceil(maxVal/stepSum)*stepSum;var partVal=(maxVal-minVal)/stepSum;var minActualVal=$('input.from',this).val();minActualVal=Math.floor(minActualVal/stepSum)*stepSum;var maxActualVal=$('input.to',this).val();maxActualVal=Math.ceil(maxActualVal/stepSum)*stepSum;var toolText=option.toolText}if(option.checkbox==true){var arrVal=[];var i=0;$(':checkbox',elBox).each(function(){if(this.parentNode.tagName=='LABEL'){arrVal[i]=$(this).parent().text()}else if($('label[for="'+$(this).attr('id')+'"]').attr('for')==$(this).attr('id')){arrVal[i]=$('label[for="'+$(this).attr('id')+'"]').text()}else{arrVal[i]=''}i++});var minVal=0;var maxVal=$(':checkbox',elBox).size()-1;var minActualVal=$(':checkbox',elBox).index($(':checkbox:checked',elBox).filter(':first'));var maxActualVal=$(':checkbox',elBox).index($(':checkbox:checked',elBox).filter(':last'));maxActualVal=maxActualVal==-1?0:maxActualVal;for(var i=minActualVal;i<=maxActualVal;i++){$(':checkbox:eq('+i+')',elBox).attr('checked',true)}partVal=maxVal;stepSum=1}$('.multi-slider-box',this).each(function(){var el=$(this);var bLeft=this.offsetLeft;var sWidth=$('a.slider',this).outerWidth();var sWidthHalf=sWidth/2;var sMinLeft=$('.slider1',this)[0].offsetLeft;var sMaxLeft=$('.slider2',this)[0].offsetLeft;var actualPosition=0;var startSelect=$('.selected-area',this)[0].offsetLeft;var startWidth=sMaxLeft-sMinLeft;var areaPart=(startWidth/partVal);var startLeftS=Math.round(((minActualVal-minVal)/stepSum)*areaPart)+sMinLeft;var startRightS=Math.round(((maxActualVal-minVal)/stepSum)*areaPart)+sMinLeft;if(minVal<minActualVal&&minActualVal<maxVal){$('.slider1',this).css('left',startLeftS+'px')}if(maxVal>maxActualVal&&maxActualVal>minVal){$('.slider2',this).css('left',startRightS+'px')}var sliderOpen=false;var targetSlider=null;if(option.fromTo==true){$('.tool-tip1 span',this).text(minVal<minActualVal&&minActualVal<maxVal?format(minActualVal):format(minVal)).after(''+toolText);$('.tool-tip2 span',this).text(maxVal>maxActualVal&&maxActualVal>minVal?format(maxActualVal):format(maxVal)).after(''+toolText)}else if(option.checkbox==true){$('.tool-tip1 span',this).text(minVal<minActualVal&&minActualVal<maxVal?arrVal[minActualVal]:arrVal[minVal]);$('.tool-tip2 span',this).text(maxVal>maxActualVal&&maxActualVal>minVal?arrVal[maxActualVal]:arrVal[maxVal])}var selectedArea=function(){if($('.slider2',el)[0].offsetLeft>$('.slider1',el)[0].offsetLeft){$('.selected-area',el).css({'width':($('.slider2',el)[0].offsetLeft+sWidthHalf)-($('.slider1',el)[0].offsetLeft+sWidthHalf)+'px','left':$('.slider1',el)[0].offsetLeft+sWidthHalf+'px'})}else{$('.selected-area',el).css({'width':($('.slider1',el)[0].offsetLeft+sWidthHalf)-($('.slider2',el)[0].offsetLeft+sWidthHalf)+'px','left':$('.slider2',el)[0].offsetLeft+sWidthHalf+'px'})}};selectedArea();var toolTip=function(){if(option.fromTo==true){var selectedArea=$(targetSlider)[0].offsetLeft-sMinLeft;var actualPart=Math.round(selectedArea/areaPart);var actualNumber=(actualPart*stepSum)+minVal<minVal?minVal:(actualPart*stepSum)+minVal;$(targetSlider).next('div').find('span').empty().text(format(actualNumber))}else if(option.checkbox==true){var selectedArea=$(targetSlider)[0].offsetLeft-sMinLeft;var actualPart=Math.round(selectedArea/areaPart);var actualNumber=actualPart;$(targetSlider).next('div').find('span').empty().text(arrVal[actualNumber])}};var changeInput=function(){if(option.fromTo==true){var text1=$('.tool-tip1 span',el).text();text1=text1.replace(/\s/g,'');text1=parseInt(text1);var text2=$('.tool-tip2 span',el).text();text2=text2.replace(/\s/g,'');text2=parseInt(text2);var max=Math.max(text1,text2);var min=Math.min(text1,text2);var oldMax=$('input.to',elBox).val();var oldMin=$('input.from',elBox).val();$('input.to',elBox).val(max);$('input.from',elBox).val(min);if(oldMax!=max){$('input.to',elBox).trigger('change')}if(oldMin!=min){$('input.from',elBox).trigger('change')}}else if(option.checkbox==true){var s1Pos=Math.round(($('.slider1',el)[0].offsetLeft-sMinLeft)/areaPart);var s2Pos=Math.round(($('.slider2',el)[0].offsetLeft-sMinLeft)/areaPart);$(':checkbox',elBox).attr('checked',false);for(var i=Math.min(s1Pos,s2Pos);i<=Math.max(s1Pos,s2Pos);i++){$(':checkbox:eq('+i+')',elBox).attr('checked',true)}}};$(document).bind('mousemove mouseup',function(e){e=e||window.event;if(e.type=='mousemove'&&sliderOpen==true){var position=$(targetSlider)[0].offsetLeft+(e.clientX-actualPosition);position=position<sMinLeft?sMinLeft:position;position=position>sMaxLeft?sMaxLeft:position;actualPosition=e.clientX;if($(targetSlider).is('.slider1')&&position<=$('.slider2')[0].offsetLeft-sWidth+2){$(targetSlider).css('left',position+'px')}else if($(targetSlider).is('.slider2')&&position>=$('.slider1')[0].offsetLeft+sWidth-2){$(targetSlider).css('left',position+'px')}selectedArea();toolTip();return false}if(e.type=='mouseup'&&sliderOpen==true){sliderOpen=false;changeInput()}});$('a.slider, .tool-tip',this).bind('click mousedown mouseup',function(e){e=e||window.event;if(e.type=='mousedown'){sliderOpen=true;actualPosition=e.clientX;targetSlider=$(this).parent();e.preventDefault();return false}if(e.type=='mouseup'){sliderOpen=false;changeInput()}if(e.type=='click'){return false}})})})};jQuery.fn.extend({kHoverBox:function(o){return this.each(function(i){new jQuery.kHoverBox(this,o,i)})}});var positionLeft=false;jQuery.extend({kHoverBox:function(e,o,i){var publ=this;var priv={o:{loadContent:function(){},timeOut:300,timeOutOut:500},isMouseInBox:false,isMouseInLink:false,timeOut:false,init:function(e,o){if(o)jQuery.extend(priv.o,o);jQuery(e).bind('mouseover',function(event){width=jQuery(document).width();var left=event.pageX;var top=event.pageY;priv.isMouseInLink=true;if(!priv.timeOut)setTimeout(function(){if(priv.isMouseInLink){jQuery('#kHoverBox').remove();jQuery(e).after('<div id="kHoverBox" class="kHoverBox'+i+'"></div>');var khb=jQuery('#kHoverBox');khb.hide().bind('mouseover',function(event){priv.isMouseInBox=true}).bind('mouseout',function(event){priv.isMouseInBox=false;priv.hide()});priv.o.loadContent(e,left,top);khb.css({position:'absolute',display:'block',visibility:'hidden'});if(left+215>jQuery(document).width()){khb.css({position:'absolute',display:'none',visibility:'visible'}).show();positionLeft=true}else{khb.css({position:'absolute',display:'none',visibility:'visible'}).show();positionLeft=false}}},priv.o.timeOut);return false});jQuery(e).bind('mouseout',function(){priv.isMouseInLink=false;priv.hide();return false})},hide:function(){priv.timeOut=true;setTimeout(function(){priv.timeOut=false;if(!priv.isMouseInLink&&!priv.isMouseInBox){jQuery('.kHoverBox'+i).remove()}},priv.o.timeOutOut)}};priv.init(e,o)}});function loadComents(e,left,top){$.ajax({type:"GET",url:"/ajax/comment",data:"item="+$('#pageID').attr('title')+"&comment="+$(e).text(),success:function(xml){var html=xml;var khb=$('#kHoverBox');khb.html('<div class="hoverbox">'+html+'</div>')}})};function loadComents1(e,left,top){$.ajax({type:"GET",url:"/ajax/reply",data:"reply="+$(e).text(),success:function(xml){var html=xml;var khb=$('#kHoverBox');khb.html('<div class="hoverbox">'+html+'</div>')}})};$.fn.skGet=function(get,dimension,callback){if(!this.length){return this;}
var result;var m=Math[get];this.each(function(index){var newResult=$(this)[dimension]();result=index?m(result,newResult):newResult;});if(typeof callback=='function'){callback.call(this,result);return this;}
return result;};$(document).ready(function(){$('.antispam').each(function(){$('.inp',this).attr('value',$('strong',this).text());});$('.resetInt').inputText({});$('a.ext').click(function(){window.open(this.href);return false;});$(".tabs-contact").tabs();$('.comments-list .adlink a').kHoverBox({loadContent:loadComents});$('#main-menu').each(function(){var mainmenu=0;$('li.first',this).each(function(){mainmenu+=$(this).width();});$('.menuService',this).each(function(){mainmenu-=$(this).width();});var widthLast=960-mainmenu;$('#main-menu .menuService').css('width',widthLast+'px');});$('#param-filter form').each(function(){var $this=$(this),abortAjax=null;$('.sliderInt',$this).each(function(){$(this).multislider({fromTo:true,checkbox:false,minVal:$('#priceFrom',this).attr('title'),maxVal:$('#priceTo',this).attr('title'),toolText:' Kč'});});});function eq($element,item,count){$element.each(function(){var $items=$(this).find(item);var end=$items.length;if(count){for(var i=0;i<end;i=i+count){$items.slice(i,i+count).skGet('max','height',function(val){this.height(val)});};}
else{$items.skGet('max','height',function(val){this.height(val)});}});};eq($('.product-list-small .js-eq-3'),'.spc',3);eq($('.product-list-small .js-eq-4'),'.spc',4);eq($('.product-list .js-eq-3'),'.name',3);eq($('.product-list .js-eq-3'),'.box-inner',3);eq($('.product-list .js-eq-4'),'.name',4);eq($('.product-list .js-eq-4'),'.box-inner',4);eq($('.home'),'.js-eq-2',2);$('.product-list-compare').each(function(index){var $box=$(this);eq($box,'.name',0);for(var i=0,l=$('dl:first dt',$box).length*2;i<l;i+=2){$box.find('dl dt:nth-child('+(i+1)+'), dl dd:nth-child('+(i+2)+')').skGet('max','height',function(val){this.height(val)});};});$('#action-rotator').each(function(){var $this=$(this),time=null,eq=0,len=$('.item',$this).length-1;$('.item',$this).hide().css('position','absolute');$('.item:eq('+eq+')',$this).show();$('.pager a:eq('+eq+')',$this).addClass('active');$('.rotator-wrap',$this).css('overflow','hidden');var rote=function(eq){if(eq!=$('li.active',$this).index()){$('li.item:eq('+eq+')',$this).show().css({'z-index':'2','opacity':'1'});$('li.active',$this).animate({'opacity':'0'},500,function(){$(this).hide().removeClass('active').css('z-index','1');$('li.item:eq('+eq+')',$this).addClass('active');});$('.pager a',$this).removeClass('active');$('.pager a:eq('+eq+')',$this).addClass('active');}}
var timex=function(){time=clearInterval(time);time=setInterval(function(){if(eq==len){eq=0;}
else{eq=eq+1;}
rote(eq);},4000);}
$(window).blur(function(){time=clearInterval(time);});$(window).focus(function(){timex();});timex();$('.pager a',$this).click(function(){eq=$(this).index();rote(eq);time=clearInterval(time);timex();return false;});});box=new $.pdBox();box.control($('.thickbox'));box.autoWidth=true;$('.hideThickbox').live('click',function(){$('#pd-box-close').trigger('click');location.reload();})
box2=new $.pdBox();box2.onLoad=function($box){$('form',$box).wrap('<div class="ajaxWrap"></div>').after('<div class="ajaxOverlay"></div><div class="ajaxLoader"></div>').pdAjaxForm({beforeSend:function($box,$form,data,option){$('.ajaxOverlay',$box.parent()).css('opacity','0').show().fadeTo(500,0.5);$('.ajaxLoader',$box.parent()).fadeIn();},success:function(response,$box,$form){$form.html(response);$('.ajaxRemove',$form).slideUp(400,function(){$(this).remove()});$('.ajaxOverlay',$box.parent()).fadeOut();$('.ajaxLoader',$box.parent()).fadeOut();}});};box2.control($('.thickboxForm'));box3=new $.pdBox();$('.thickboxVideo').click(function(){var href=this.href,videoImg=$('img',this).attr('src');if(href.search('youtube')!='-1'){box3.openHtml('<object type="application/x-shockwave-flash" data="'+href+'" width="400" height="300" ><param name="movie" value="'+href+'" /><param name="quality" value="high" /><param value="transparent" name="wmode"/><param name="allowFullScreen" value="true" /><param name="swliveconnect" value="true" /><param value="noscale" name="scale"/><param value="http://www.macromedia.com/go/getflashplayer" name="pluginurl"/></object>');}
else{box3.openHtml('<object type="application/x-shockwave-flash" data="http://flv-player.net/medias/player_flv_maxi.swf" width="400" height="300"><param name="movie" value="http://flv-player.net/medias/player_flv_maxi.swf" /><param name="allowFullScreen" value="true" /><param name="wmode" value="transparent" /><param name="FlashVars" value="flv='+href+'&amp;startimage='+videoImg+'&amp;width=400&amp;height=300&amp;bgcolor1=444444&amp;bgcolor2=444444&amp;showstop=1&amp;showvolume=1&amp;showplayer=always&amp;autoplay=1&amp;showfullscreen=1&amp;buttoncolor=cccccc&amp;buttonovercolor=ffffff&amp;sliderovercolor=ffffff" /></object>');}
return false;});box4=new $.pdBox();box4.width='770';$('.ajaxPrebasket').pdAjaxForm({beforeSend:function($box,$form,data,option){box4.openHtml('<div class="ajaxLoader"></div>');$('.ajaxLoader').fadeIn();},success:function(response,$box,$form){box4.openHtml(response);$(".closeBox").click(function(){$("#pd-box-close").trigger('click');return false;});eq($('.product-list-small .js-eq-3'),'.spc',3);eq($('.product-list .js-eq-3'),'.name',3);eq($('.product-list .js-eq-3'),'.box-inner',3);box=new $.pdBox();box.control($('.thickbox'));box.width='770';$('.ajaxLoader',$box.parent()).fadeOut();var replace1=$('#ajaxReplace .basket-box').html();$('.basket-box').html(replace1);}});box5=new $.pdBox();box5.width='700';box5.onLoad=function($box){$('form',$box).wrap('<div class="ajaxWrap"></div>').after('<div class="ajaxOverlay"></div><div class="ajaxLoader"></div>').pdAjaxForm({beforeSend:function($box,$form,data,option){$('.ajaxOverlay',$box.parent()).css('opacity','0').show().fadeTo(500,0.5);$('.ajaxLoader',$box.parent()).fadeIn();},success:function(response,$box,$form){$form.html(response);$('.ajaxRemove',$form).slideUp(400,function(){$(this).remove()});$('.ajaxOverlay',$box.parent()).fadeOut();$('.ajaxLoader',$box.parent()).fadeOut();}});};box5.control($('.ajaxPrePrebasket'));box6=new $.pdBox();box6.width='720';$('.thickboxCalculator').click(function(){var href=this.href;box6.openHtml('<div class="ajaxLoader"></div><iframe src="'+href+'" width="650" height="500" frameborder="0" scrolling="no" style="z-index:101; position:relative; margin:30px 0 0"></iframe>');$('.ajaxLoader').fadeIn();return false;});box7=new $.pdBox();box7.width='870';$('.thickboxEssox').click(function(){var href=this.href;box7.openHtml('<div class="ajaxLoader"></div><iframe src="'+href+'" width="800" height="680" frameborder="0" scrolling="no" style="z-index:101; position:relative; margin:30px 0 0"></iframe>');$('.ajaxLoader').fadeIn();return false;});box8=new $.pdBox();box8.width='750';box8.onLoad=function($box){$('form',$box).wrap('<div class="ajaxWrap"></div>').after('<div class="ajaxOverlay"></div><div class="ajaxLoader"></div>').pdAjaxForm({beforeSend:function($box,$form,data,option){$('.ajaxOverlay',$box.parent()).css('opacity','0').show().fadeTo(500,0.5);$('.ajaxLoader',$box.parent()).fadeIn();},success:function(response,$box,$form){$form.html(response);$('.ajaxRemove',$form).slideUp(400,function(){$(this).remove()});$('.ajaxOverlay',$box.parent()).fadeOut();$('.ajaxLoader',$box.parent()).fadeOut();}});$('.radio-list .gmap').each(function(){var $url=$('.map',this).attr('title');$(this).append($('<iframe>').attr({'src':"http://maps.google.com/maps?q="+$url+"&output=embed&iwloc=",'scrolling':'no','allowTransparency':'true','width':'300','height':'300','frameborder':'0'}).css({'border':'none','overflow':'hidden','width':'300px','height':'300px'}));});$(".anchor-help-o").tooltip({position:'bottom center',relative:true,predelay:250});$(".anchor-help-map").tooltip({position:'bottom center',relative:true,predelay:250});};box8.control($('.thickboxFormReservation'));$(document).ready(function(){$('.autoClick').trigger('click');});var $stars=$('.star-rating a');var $rating=$('.star-rating .rating')
var $rate=$('.rating-input');$rate.hide();$('.star-rating').css({'display':'inline-block','*display':'inline','zoom':'1'}).delegate('a','click',function(){var i=$stars.index($(this))+1;$rating.width(i*13);$('input',$rate).val(i);return false;});$('.comments-list li').each(function(){var number=$('.num',this).text().split('.')[0],$btn=$('.r a',this),$target=$($btn.attr('hash')),$text=$target.find('textarea');$btn.click(function(){$text.val($text.val()+' ['+number+'] ').focus().attr({'selectionStart':$text.val().length,'selectionEnd':$text.val().length});});});var defaultTab=$('.tabs-box').hasClass('defTab1')?1:0;$('.tabs-box').pdTabs({defTab:defaultTab});$('.ajaxForm').wrap('<div class="ajaxWrap"></div>').after('<div class="ajaxOverlay"></div><div class="ajaxLoader"></div>').pdAjaxForm({beforeSend:function($box,$form,data,option){$('.ajaxOverlay',$box.parent()).css('opacity','0').show().fadeTo(500,0.5);$('.ajaxLoader',$box.parent()).fadeIn();},success:function(response,$box,$form){$form.html(response);$('.ajaxOverlay',$box.parent()).fadeOut();$('.ajaxLoader',$box.parent()).fadeOut();}});$('.open-box').each(function(){var $this=$(this);var $chck=$('.heading input',this);var $box=$('.box',$this);var boxHeight=$box.height();var attr=$chck.attr('checked')
var size=0;$('.box :input',$this).each(function(){if($(this).is(':text')&&$(this).val()!='')
{size++;}
else if($(this).attr('checked'))
{if($(this).val()!=0)
{size++;}}});if(attr||(size!=0&&!$this.hasClass('notAutoOpen')))
{$chck.attr('checked',true);$this.data('status',true);$('.heading',$this).addClass('open');}
else
{$box.hide();$this.data('status',false);$('.heading',$this).removeClass('open');}
$chck.click(function(){if($this.data('status'))
{$chck.attr('checked',false);$box.animate({'height':'0px'},500,function(){$(this).css('display','none');});$this.data('status',false);$('.heading',$this).removeClass('open');}
else
{$chck.attr('checked',true);$box.css({'display':'block','height':'0'}).animate({'height':boxHeight},500);$this.data('status',true);$('.heading',$this).addClass('open');}});});$('#step-list').each(function(){var $step=$('li.prev, li.next',this);var $prev=$('li.prev',this);var $next=$('li.next',this);$next.click(function(){$('.buttons .r input').trigger('click');});$prev.click(function(){$('.buttons .l input').trigger('click');});$step.hover(function(){$(this).addClass('hover')},function(){$(this).removeClass('hover')});});$('#basket-list').each(function(){var $this=$(this);$('.btnShow a',$this).toggle(function(){$('.jsHide',$this).slideDown();return false;},function(){$('.jsHide',$this).slideUp();return false;})});$('#param-filter .items').each(function(){var $this=$(this);$('.btnShow a',$this).toggle(function(){$('div.jsHide',$this).slideDown();$('.btnShow .all',$this).addClass('jsHide');$('.btnShow .only',$this).removeClass('jsHide');return false;},function(){$('div.jsHide',$this).slideUp();$('.btnShow .all',$this).removeClass('jsHide');$('.btnShow .only',$this).addClass('jsHide');return false;})});$('#order-history li').each(function(){var $this=$(this),$box=$('.box',$this),$btn=$('.btnMore, h2 strong',$this);$btn.click(function(){if($box.hasClass('jsHide')){$this.removeClass('close');$box.slideDown('fast').removeClass('jsHide');$('span',$btn).addClass('jsHide');$('.btnHide',$btn).removeClass('jsHide');}
else{$this.addClass('close');$box.slideUp('fast').addClass('jsHide');$('span',$btn).addClass('jsHide');$('.btnShow',$btn).removeClass('jsHide');}
return false;});});var Order=function(){this.box={$pay:$('.payment-box'),$trans:$('.transport-box')};this.check=function(c){$('.item:not(.'+c+')',this.box.$pay).hide().attr('checked',false);$('.item.'+c,this.box.$pay).filter(':hidden').show();};var that=this;this.init=function(){$('.radio:checked',this.box.$trans).each(function(){var id=$(this).attr('id');that.check(id);});$('.radio',this.box.$trans).click(function(){var id=$(this).attr('id');that.check(id);});};this.init();};var order=new Order();$("#basket tr").each(function(){var $this=$(this);var time=null;$('input',$this).keyup(function(){var int=$(this);clearTimeout(time);time=setTimeout(function(){$.ajax({type:"GET",data:'ajax=true&'+$(int).attr('name')+'='+$(int).attr('value'),dataType:'xml',success:function(responseXML){}});},500);});});$("ul").delegate('input[name="shop"]','click',function(){transportChange()});$('#select-shop-box').hide();$('#select-city').addClass('out');$('#delivery-time-box').hide();$('input[name="transport"], input[name="add"]').change(function(){transportChange();});function transportChange()
{transport=$('input[name="transport"]:checked');payment=$('input[name="add"]:checked');check=$('input[name="checkDT"]');shop=$('input[name="shop"]:checked');if(transport.attr('value')&&payment.attr('value')&&check.attr('value'))
{$box=$('#deliveryTime');$.ajax({type:"GET",url:'/ajax/orderdelivery',data:'transport='+transport.attr('value')+'&payment='+payment.attr('value')+'&shopID='+shop.attr('value'),success:function(xml){$box.html(xml);$('.delivery-time-box').show();}});}
text=transport.parent().parent().find('strong').text();if($(transport).attr('value')==1){text+=$('input[name=shop]:checked').parent().parent().find('strong').text();}
$('span.r','#basket-transport').html(text);$('span.r','#basket-payment').html(payment.parent().parent().find('strong').text());if(transport.attr('value'))
{if(!shop.data('price'))
{shopPrice=0;}
else
{if(transport.attr('value')==1)
{shopPrice=parseInt(shop.data('price'));}
else
{shopPrice=0;}}
paymentAdd=0;if(payment.data('price'))
{paymentAdd=payment.data('price');}
sumWithVAT=Math.round($('#basket-sum-withVAT').data('price')+transport.data('price')+paymentAdd+shopPrice);sumWithoutVAT=Math.round($('#basket-sum-withoutVAT').data('price')+transport.data('price')*1/1.2+paymentAdd*1/1.2+shopPrice*1/1.2);$('#basket-sum-withVAT').html('<strong>'+formatNumber(sumWithVAT)+' Kč s DPH</strong>');$('#basket-sum-withoutVAT').html(formatNumber(sumWithoutVAT)+' Kč bez DPH');}
if(transport.attr('value'))
{$('#basket-transport').show();}
if(payment.attr('value'))
{$('#basket-payment').show();}
if(transport.attr('value')==1)
{$('#select-city').removeClass('out');}
else
{$('#select-city').addClass('out');}}
function formatNumber(num)
{nStr=num+'';var x=nStr.split('.');var x1=x[0];var x2;x2=x.length>1?','+x[1]:'';var rgx=/(\d+)(\d{3})/;while(rgx.test(x1))
{x1=x1.replace(rgx,'$1'+' '+'$2');}
return(x1+x2);}
$('.step1').each(function(){transportChange();})
$(window).hashchange(function(){if(window.location.hash.slice(1)&&window.location.hash.slice(1)!=$('body').data('hash'))
{ajax(window.location.hash.slice(1));}});if(window.location.hash.slice(1)&&window.location.hash.indexOf('=')>0)
{ajax(window.location.hash.slice(1));}
var abortAjax=null;function ajax(hash)
{abortAjax=$.ajax({type:'GET',data:hash+'&ajax=true',dataType:'json',beforeSend:function(){abortAjax&&abortAjax.abort();$('#prod-content .ajaxOverlay').css('opacity','0').show().fadeTo(500,0.5);$('#prod-content .ajaxLoader').fadeIn();},success:function(json){$('body').data('hash',window.location.hash=hash);$('#prod-content').html(json.productList);$('#ajaxFilter').html(json.paramsFilter);eq($('.product-list-small .js-eq-3'),'.spc',3);eq($('.product-list .js-eq-3'),'.name',3);eq($('.product-list .js-eq-3'),'.box-inner',3);$('#param-filter .items').each(function(){var $this=$(this);$('.btnShow a',$this).toggle(function(){$('div.jsHide',$this).slideDown();$('.btnShow .all',$this).addClass('jsHide');$('.btnShow .only',$this).removeClass('jsHide');return false;},function(){$('div.jsHide',$this).slideUp();$('.btnShow .all',$this).removeClass('jsHide');$('.btnShow .only',$this).addClass('jsHide');return false;})});box2.control($('.thickboxForm'));}});}
$('#param-filter form input:not(:text)').live('change',function(){var $this=$('#param-filter form');var hash=$this.serialize();ajax(hash);});$('#param-filter form .submit').live('click',function(){var $this=$('#param-filter form');var hash=$this.serialize();ajax(hash);return false;});$('.productAjax #filter-cat form input, .productAjax #filter-cat form select').live('change',function(){var $this=$('#filter-cat form');var hash=$this.serialize();ajax(hash);});$('.productAjax .paging a').live('click',function(){var hash=$(this).prop('search').slice(1);ajax(hash);return false;});$('#category-filter select').change(function(){$('#category-filter').submit();});$('#param-selected a').live('click',function(){if($(this).attr('href')=="#")
{$('#'+$(this).data('remove')).remove();$('#param-filter form .submit').trigger('click');return false;}});$('#search-box').each(function(){var $box=$(this);var $inp=$('.int-text',$box);$inp.attr('autocomplete','off');if($('html').attr('lang')=='cs'){var searchLang='cz'}
else{var searchLang=$('html').attr('lang');}
var data=$inp.attr('name')+'=';var time=null;var blur=true;var suggest={el:'.suggest-box',item:'li',hClass:'active'};var ajax=function(){var aData=$inp.attr('name')+'='+$inp.val();stopAjax=null;if(data!=aData&&$inp.val().length>3){data=aData;$.ajax({type:"GET",url:'/ajax/suggest',data:$inp.attr('name')+'='+encodeURIComponent($inp.val())+'&lang='+searchLang,beforeSend:function(){$inp.before('<img src="/img/bg/ajax2.gif" class="loading" />');},success:function(xml){$(suggest.el).hide().remove();$box.append(xml);$('img.loading',$box).remove();$(suggest.el).find(suggest.item).mouseover(function(){$(suggest.el).find(suggest.item+'.'+suggest.hClass).removeClass(suggest.hClass);$(this).addClass(suggest.hClass);blur=false;}).mouseout(function(){blur=true;})
$(suggest.el).find('.suggest-more').mouseover(function(){blur=false;}).mouseout(function(){blur=true;})}});}
else if($inp.val().length<=3){$(suggest.el).hide().remove();}}
$inp.bind('keydown keyup',function(e){var maxI=$(suggest.el).find(suggest.item).size()-1;if(e.keyCode==40&&e.type=='keydown'){if($(suggest.el).find(suggest.item+'.'+suggest.hClass).size()==0||$(suggest.el).find(suggest.item+':eq('+maxI+')').is('.'+suggest.hClass)){$(suggest.el).find(suggest.item+'.'+suggest.hClass).removeClass(suggest.hClass);$(suggest.el).find(suggest.item+':first').addClass(suggest.hClass);i=0;}
else{var i=$(suggest.el).find(suggest.item).index($(suggest.el).find(suggest.item+'.'+suggest.hClass))
$(suggest.el).find(suggest.item).filter('.'+suggest.hClass).removeClass(suggest.hClass).end().eq(++i).addClass(suggest.hClass);}
return false;}
else if(e.keyCode==38&&e.type=='keydown'){if($(suggest.el).find(suggest.item+'.'+suggest.hClass).size()==0||$(suggest.el).find(suggest.item+':eq(0)').is('.'+suggest.hClass)){$(suggest.el).find(suggest.item+'.'+suggest.hClass).removeClass(suggest.hClass);$(suggest.el).find(suggest.item+':last').addClass(suggest.hClass);i=maxI;}
else{var i=$(suggest.el).find(suggest.item).index($(suggest.el).find(suggest.item+'.'+suggest.hClass))
$(suggest.el).find(suggest.item).filter('.'+suggest.hClass).removeClass(suggest.hClass).end().eq(--i).addClass(suggest.hClass);}}
else if(e.keyCode==13){if($(suggest.el).find(suggest.item+'.'+suggest.hClass).size()){window.location=$(suggest.el).find(suggest.item+'.'+suggest.hClass+' a:first').attr('href');e.preventDefault();return false;}}
else if(e.keyCode==9){blur=true;}}).bind('focus',function(){time=setInterval(ajax,2000);}).bind('blur',function(){if(blur){$(suggest.el).hide().remove();time=clearInterval(time);}});});});window.onload=function(){$('#map').each(function(){$('#map').css("height","290px");var R=Raphael("map",380,222);var attr={fill:"#dfdfdf",stroke:"#9b9b9b","stroke-width":1,"stroke-linejoin":"round"};var attrCr={fill:"#dfdfdf",stroke:"#9b9b9b","stroke-width":5,"stroke-linejoin":"round"};var attrActive={fill:"#ff0000",stroke:"#aeaeae","stroke-width":2,"stroke-linejoin":"round"};var attrHover={fill:"#ff0000"};var allCr=R.path("M374.415,127.724l-5.816-3.789l-2.85-3.003l-4.98-16.133l-4.179,1.759l-8.788-4.733l-12.074-4.563l-3.977-5.372l-2.348-0.061l-7.22,8.035l-8.531-10.761l-2.916-0.659l-3.987-4.78l10.42-4.07l-2.102-10.01l-3.503-0.675l-2.472,5.217l-11.15,0.898l-4.48-4.931l-25.13-12.735l-3.345,3.869l10.614,14.584l-7.655,1.568l-11.96,9.672l-3.998-4.197l-2.214-5.328L239,62.609l-4.069-1.27l-2.827-4.176l10.794-10.277l-4.245-6.387l-12.548-1.648l-4.17,2.832l-1.629-5.32l-7.044,0.421l-3.357-6.529l-2.926-0.072l-13.882-5.465l-12.407-6.335L179.412,7.35L172.2,4.085l-9.782,1.086l1.635,5.996l-0.166,6.482l-6.424,0.197l-4.206,4.58l-8.81-3.759l1.264-6.106l-4.545,0.358l1.734-6.157l-4.787-4.177l-5.174,1.561L126.178,2l-0.634,3.346l4.744,6.485l-1.014,3.198l-5.318-0.345l-11.699,8.024l-3.341-2.638l-5.176,2.428l-2.473,5.268l-17.687,0.423l-0.792,6.371l-3.734,4.169l-5.167-6.096l-3.355,6.311l-4.984-0.491l-1.32,5.825l-10.433-0.416l-3.615,8.646l-8.184-5.101l-5.632,3.698l-10.005-0.453l-7.658,8.333L12.28,67.41l-4.613-6.734l-1.392-3.675l-3.538,1.093L2,63.933l6.464,14.088l16.534,15.542l-9.688,12.652l13.384,27.869l6.781,10.122l10.502,2.022l8.877,19.497l5.848,0.143l6.189,10.701l4.542,5.965l3.587-2.846l26.969,27.688l-1.319,5.827l16.319,3.915l7.188-6.274l13.922,5.619l7.569-15.875l8.21,1.272l3.221-21.2l8.703,2.502l1.1,2.953l7.824-3.026l13.344,7.322l9.215,5.051l5.888-1.029l15.717,10.459l16.923,2.746l7.107-7.515l7.843,1.795l6.822,7.419l7.202,0.396l0.614,7.747l3.749,0.678l12.887-21.98l11.505,5.678l3.41-4.303l4.647,4.723l8.018-3.899l12.563-6.121l2.457-7.14l7.952-1.823l3.121-12.099l4.437-10.17l8.998-1.957l4.734-5.314l4.515-5.053l3.268-5.916l9.399,1.664l5.102-3.789L374.415,127.724z").attr(attrCr);var cr={};cr.kraj596=R.path("M50.18,52.508l-8.184-5.101l-5.632,3.698l-10.005-0.453l-7.658,8.333L12.28,67.41l-4.613-6.734l-1.392-3.675l-3.538,1.093L2,63.933l6.464,14.088l16.534,15.542l19.896-0.314l10.331-7.827l6.303,4.095l6.021-9.219l-3.463-21.791L50.18,52.508z").attr(attr);cr.kraj672=R.path("M182.336,92.645l4.44-6.173l-4.215-4.715l0.238-11.7l-7.57,0.001l-6.109-6.385l2.192-4.292l-1.974-10.266l-10.412-8.43l-18.461,10.875l-6.324-3.184l-7.354,11.709l-20.854,2.685L79.802,73.56l-6.712,9.31l-0.365,4.349l3.577-0.466l5.484,4.412l5.058-0.414l7.736,5.74l-0.061,5.738l-3.811,12.033l-4.3,2.051l2.959,8.006l0.177,9.303l15.901-2.267l12.614,0.04l22.787,4.944l5.417-8.324l8.893,5.779l3.699-4.937l14.84-1.378l-2.213-2.597l-1.357-4.279l3.82-4.814l6.91-0.82l2.635-3.706l5.029-3.282l2.549-8.18L182.336,92.645z").attr(attr);cr.kraj576=R.path("M192.084,175.077l-2.876-3.526l-6.434,0.265l-5.711-4.538l0.432-2.746l-6.917-2.728l-3.257,1.507l-6.648-7.663c0,0-3.059,2.424-2.816,2.088c0.24-0.331-4.164-6.314-4.164-6.314l1.461-17.625l-8.889-5.781l-5.417,8.326l-22.792-4.945l-12.612-0.041l-15.907,2.268l0.25,14.228l-4.623,12.709l-7.04,5.06l-3.104,14.07l26.969,27.688l-1.319,5.827l16.319,3.915l7.188-6.274l13.922,5.619l7.569-15.875l8.21,1.272l3.221-21.2l8.703,2.502l1.1,2.953l7.824-3.026l13.344,7.322l2.526-4.251l-5.155-4.176L192.084,175.077z").attr(attr);cr.kraj718=R.path("M238.32,133.59l-22.169-13.755l-4.365,3.767l-23.268-15.621l-5.028,3.288l-2.646,3.7l-6.901,0.82l-3.826,4.814l1.369,4.284l2.207,2.593l-14.84,1.377l-3.699,4.938l-1.461,17.625c0,0,4.404,5.983,4.164,6.314c-0.242,0.336,2.816-2.088,2.816-2.088l6.648,7.663l3.257-1.507l6.917,2.728l-0.432,2.746l5.711,4.538l6.434-0.265l2.876,3.526l-6.644,6.908l5.155,4.176l5.696,1.202l13.326-7.964l8.917,0.96l10.98-6.545l1.552-5.793l-2.136-5.005l7.729-8.939L238.32,133.59z").attr(attr);cr.kraj648=R.path("M257.765,112.972 L257.635,98.507 L261.297,95.181 L267.946,77.379 L255.986,87.051 L251.988,82.854 L244.442,83.651 L235.664,93.018 L228.413,93.946 L215.006,82.177 L206.304,81.563 L201.832,85.326 L194.424,83.723 L186.772,86.473 L182.337,92.646 L191.062,99.801 L188.518,107.98 L211.786,123.602 L216.151,119.835 L238.32,133.59 L247.362,130.427 L260.348,133.579 L263.917,125.546 L263.129,121.51z").attr(attr);cr.kraj602=R.path("M201.832,85.326 L206.304,81.563 L215.006,82.177 L228.413,93.946 L235.664,93.018 L244.442,83.651 L251.988,82.854 L249.774,77.525 L239,62.609 L234.931,61.34 L232.104,57.164 L242.898,46.887 L238.653,40.5 L226.105,38.852 L221.935,41.684 L220.306,36.363 L213.262,36.784 L209.905,30.255 L206.979,30.183 L193.097,24.718 L197.737,49.421 L189.439,48.009 L186.423,52.737 L177.707,49.523 L176.125,51.966 L169.337,49.115 L171.313,59.382 L169.119,63.674 L175.227,70.059 L182.803,70.058 L182.548,81.757 L186.772,86.473 L194.424,83.723z").attr(attr);cr.kraj615=R.path("M180.69,18.383 L179.412,7.35 L172.2,4.085 L162.417,5.171 L164.052,11.167 L163.886,17.649 L157.462,17.847 L153.256,22.427 L144.447,18.668 L138.996,23.773 L134.552,21.694 L127.496,34.905 L134.142,48.377 L140.466,51.561 L158.927,40.686 L169.337,49.115 L176.125,51.966 L177.707,49.523 L186.423,52.737 L189.439,48.009 L197.737,49.421 L193.097,24.718z").attr(attr);cr.kraj661=R.path("M86.399,116.318 L90.705,114.262 L94.518,102.229 L94.581,96.494 L86.841,90.75 L81.782,91.164 L76.292,86.752 L72.725,87.218 L73.088,82.874 L67.548,80.297 L61.527,89.516 L55.223,85.421 L44.894,93.248 L24.998,93.563 L15.311,106.215 L28.695,134.084 L35.476,144.206 L45.978,146.229 L54.854,165.726 L60.703,165.868 L66.892,176.569 L71.433,182.534 L75.021,179.688 L78.124,165.618 L85.164,160.559 L89.787,147.85 L89.537,133.622 L89.364,124.32z").attr(attr);cr.kraj430=R.path("M301.446,188.755 L295.47,188.918 L284.692,181.245 L283.804,176.745 L277.824,177.142 L279.784,173.178 L282.665,172.811 L282.643,169.603 L280.239,169.292 L281.578,159.58 L274.473,155.467 L273.823,150.515 L267.656,141.946 L265.903,150.73 L260.797,148.849 L260.348,133.579 L247.362,130.427 L238.32,133.59 L236.662,154.077 L228.932,163.017 L231.068,168.021 L229.516,173.814 L218.536,180.359 L209.619,179.399 L196.292,187.363 L190.596,186.161 L188.07,190.412 L197.285,195.463 L203.172,194.434 L218.889,204.893 L235.812,207.639 L242.919,200.124 L250.762,201.919 L257.584,209.338 L264.787,209.734 L265.401,217.481 L269.15,218.159 L282.037,196.179 L293.542,201.856 L296.952,197.554 L301.599,202.276 L309.617,198.377z").attr(attr);cr.kraj711=R.path("M345.506,143.535 L342.487,144.583 L337.187,141.554 L329.847,141.561 L323.378,139.181 L315.316,147.774 L310.396,147.274 L299.4,154.393 L292.658,149.949 L291.424,156.332 L281.578,159.58 L280.239,169.292 L282.643,169.603 L282.665,172.811 L279.784,173.178 L277.824,177.142 L283.804,176.745 L284.692,181.245 L295.47,188.918 L301.446,188.755 L309.617,198.377 L322.18,192.256 L324.637,185.116 L332.589,183.293 L335.71,171.194 L340.147,161.024 L349.145,159.067 L353.879,153.753z").attr(attr);cr.kraj431=R.path("M374.415,127.724 L368.598,123.935 L365.749,120.932 L360.768,104.799 L356.589,106.558 L347.801,101.824 L335.727,97.261 L331.75,91.889 L329.403,91.828 L322.183,99.863 L313.652,89.103 L310.736,88.443 L306.749,83.663 L317.168,79.593 L315.067,69.583 L311.564,68.908 L309.092,74.125 L297.942,75.023 L293.904,79.202 L285.725,87.79 L285.67,93.293 L282.501,99.505 L284.113,102.996 L281.493,109.79 L300.868,121.518 L302.761,119.516 L311.738,122.196 L310.915,126.874 L323.378,139.181 L329.847,141.561 L337.187,141.554 L342.487,144.583 L345.506,143.535 L353.879,153.753 L358.394,148.7 L361.662,142.784 L371.061,144.448 L376.163,140.659z").attr(attr);cr.kraj620=R.path("M292.658,149.949 L299.4,154.393 L310.396,147.274 L315.316,147.774 L323.378,139.181 L310.915,126.874 L311.738,122.196 L302.761,119.516 L300.868,121.518 L281.493,109.79 L284.113,102.996 L282.501,99.505 L285.67,93.293 L285.725,87.79 L293.904,79.202 L297.942,75.023 L293.461,70.093 L268.332,57.357 L264.987,61.227 L275.601,75.811 L267.946,77.379 L261.297,95.181 L257.635,98.507 L257.765,112.972 L263.129,121.51 L263.917,125.546 L260.348,133.579 L260.797,148.849 L265.903,150.73 L267.656,141.946 L273.823,150.515 L274.473,155.467 L281.578,159.58 L291.424,156.332z").attr(attr);cr.kraj699=R.path("M134.142,48.377 L127.496,34.905 L134.552,21.694 L138.959,23.788 L144.449,18.669 L145.708,12.57 L141.164,12.919 L142.894,6.766 L138.113,2.576 L132.944,4.152 L126.177,2.005 L125.541,5.341 L130.289,11.832 L129.275,15.03 L123.957,14.68 L112.257,22.714 L108.917,20.074 L103.744,22.504 L101.271,27.771 L83.58,28.186 L82.783,34.562 L79.055,38.729 L73.88,32.638 L70.535,38.95 L65.547,38.458 L64.236,44.285 L53.795,43.862 L50.179,52.515 L64.085,58.506 L67.548,80.297 L73.09,82.869 L79.802,73.56 L105.934,62.771 L126.788,60.086z").attr(attr);cr.kraj367=R.path("M120.859,84.884 L122.988,88.076 L123.341,97.295 L127.953,97.295 L130.789,94.814 L138.947,94.105 L140.365,88.076 L140.72,83.82 L136.109,78.502 L130.789,79.21 L125.116,81.693z").attr(attr);var activeKraj=$('#showOptgroup').attr('class');var $type=$('#addCity');var copy={$type:$type.clone()};var current=null;for(var state in cr){cr[state].color=Raphael.getColor();if(state==activeKraj){cr[state].attr(attrActive).insertBefore(cr.kraj367);$('.cityAdd').show();$type.html(copy.$type.find('optgroup.'+state).html());current=state;}
(function(st,state){if(copy.$type.find('optgroup.'+state).html()){st.mouseover(function(){if(current!=state){this.animate(attrHover,500);R.safari();}}).mouseout(function(){if(current!=state){this.animate(attr,500);R.safari();}}).click(function(){if(current){cr[current].animate(attr,500);}
if(current!=state){$('.state').hide();$('.hidemap').hide();$('.'+state).fadeIn();$type.html(copy.$type.find('optgroup.'+state).html());}
current=state;st.animate(attrActive,500);st.insertBefore(cr.kraj367);R.safari();});st[0].style.cursor="pointer";}
else{st[0].style.cursor="default";}})(cr[state],state);}});$('.state .back').click(function(){$(this).parent().hide();$('.hidemap').fadeIn();return(false);});$('area').each(function(){if($.browser.msie){}else{var cor=$(this).attr('coords');var subcor=cor.split(',');var y=parseInt(subcor[0],10)-50;var x=parseInt(subcor[1],10);$(this).tooltip({layout:'<div class="tip-maparea">',offset:[x,y],predelay:250})}});$(".ico-help").tooltip({position:'top center',predelay:250});$(".radio-list .anchor-help, #select-shop .anchor-help").tooltip({position:'bottom center',predelay:250});$("#col-info .anchor-help").tooltip({position:'bottom center',predelay:250});$('.tabs-contact .gmap').each(function(){var $url=$(this).attr('title');$(this).append($('<iframe>').attr({'src':"http://maps.google.com/maps?q="+$url+"&output=embed&iwloc=",'scrolling':'no','allowTransparency':'true','width':'350','height':'250','frameborder':'0'}).css({'border':'none','overflow':'hidden','width':'350px','height':'250px'}));});$('.detailForm').each(function(){var $this=$(this),$brand=$('#state',$this),$type=$('#city',$this);var copy={$type:$type.clone()};var control=function(first){var c=$brand.find('option:selected').attr('class');$type.html(copy.$type.find('optgroup.'+c).html());if(!first){$type.focus();}
$type.prepend('<option value="0">Vyberte město</option>');if($('option[selected=selected]',$type).attr('value')==undefined)
$('option[value=0]',$type).attr('selected','selected');}
$brand.each(function(){control(true);}).bind('change',function(e){control(false);});});if($('#state').attr('value')==367)
{$("#city").hide();}
$('#city, #state').change(function(){className=$('#city').attr('class');cityID=$('#city').attr('value');stateID=$('#state').attr('value');if(stateID==367)
{$("#city").hide();cityID=735;}
else
{$("#city").show();}
$box=$('#select-shop');$.ajax({type:"GET",url:'/ajax/select-shop',data:'city='+cityID,success:function(xml){$box.html(xml);$('.select-shop-box').show();$('.radio-list .gmap').each(function(){var $url=$('.map',this).attr('title');$(this).append($('<iframe>').attr({'src':"http://maps.google.com/maps?q="+$url+"&output=embed",'scrolling':'no','allowTransparency':'true','width':'300','height':'300','frameborder':'0'}).css({'border':'none','overflow':'hidden','width':'300px','height':'300px'}));});$(".anchor-help").tooltip({position:'top center',relative:true,predelay:250});$(".anchor-help-map").tooltip({position:'top center',relative:true,predelay:250});}});return false;});};
