/*
 GNU Affero General Public License version 3 {@link http://www.gnu.org/licenses/agpl-3.0.html}
 GNU Affero General Public License version 3 {@link http://www.gnu.org/licenses/agpl-3.0.html}
*/
if(typeof window.console!=="object"||typeof window.console.emulated==="undefined"){if(typeof window.console!=="object"||!(typeof window.console.log==="function"||typeof window.console.log==="object")){window.console={};window.console.log=window.console.debug=window.console.warn=window.console.trace=function(){};window.console.error=function(){for(var c="An error has occured. More information will be available in the console log.",a=0;a<arguments.length;++a){if(typeof arguments[a]!=="string")break;
c+="\n"+arguments[a]}if(typeof Error!=="undefined")throw Error(c);else throw c;}}else{if(typeof window.console.debug==="undefined")window.console.debug=function(){for(var c=["console.debug:"],a=0;a<arguments.length;a++)c.push(arguments[a]);window.console.log.apply(window.console,c)};if(typeof window.console.warn==="undefined")window.console.warn=function(){for(var c=["console.warn:"],a=0;a<arguments.length;a++)c.push(arguments[a]);window.console.log.apply(window.console,c)};if(typeof window.console.error===
"undefined")window.console.error=function(){for(var c=["console.error"],a=0;a<arguments.length;a++)c.push(arguments[a]);window.console.log.apply(window.console,c)};if(typeof window.console.trace==="undefined")window.console.trace=function(){window.console.error.apply(window.console,["console.trace does not exist"])}}window.console.emulated=true}
(function(c){if(c.History)window.console.warn("$.History has already been defined...");else{c.History={options:{debug:false},state:"",$window:null,$iframe:null,handlers:{generic:[],specific:{}},extractHash:function(a){return a.replace(/^[^#]*#/,"").replace(/^#+|#+$/,"")},getState:function(){return c.History.state},setState:function(a){var b=c.History;a=b.extractHash(a);b.state=a;return b.state},getHash:function(){return c.History.extractHash(window.location.hash||location.hash)},setHash:function(a){a=
c.History.extractHash(a);if(typeof window.location.hash!=="undefined"){if(window.location.hash!==a)window.location.hash=a}else if(location.hash!==a)location.hash=a;return a},go:function(a){var b=c.History;a=b.extractHash(a);var d=b.getHash(),f=b.getState();if(a!==d)b.setHash(a);else{a!==f&&b.setState(a);b.trigger()}return true},hashchange:function(){var a=c.History,b=a.getHash();a.go(b);return true},bind:function(a,b){var d=c.History;if(b){if(typeof d.handlers.specific[a]==="undefined")d.handlers.specific[a]=
[];d.handlers.specific[a].push(b)}else{b=a;d.handlers.generic.push(b)}return true},trigger:function(a){var b=c.History;if(typeof a==="undefined")a=b.getState();var d,f,g,e;if(typeof b.handlers.specific[a]!=="undefined"){e=b.handlers.specific[a];d=0;for(f=e.length;d<f;++d){g=e[d];g(a)}}e=b.handlers.generic;d=0;for(f=e.length;d<f;++d){g=e[d];g(a)}return true},construct:function(){var a=c.History;c(document).ready(function(){a.domReady()});return true},configure:function(a){var b=c.History;b.options=
c.extend(b.options,a);return true},domReadied:false,domReady:function(){var a=c.History;if(!a.domRedied){a.domRedied=true;a.$window=c(window);a.$window.bind("hashchange",this.hashchange);setTimeout(a.hashchangeLoader,200);return true}},nativeSupport:function(a){a=a||c.browser;var b=a.version,d=parseInt(b,10),f=b.split(/[^0-9]/g);b=parseInt(f[0],10);var g=parseInt(f[1],10);f=parseInt(f[2],10);var e=false;if((a.msie||0)&&d>=8)e=true;else if((a.webkit||0)&&d>=528)e=true;else if(a.mozilla)if(b>1)e=true;
else{if(b===1)if(g>9)e=true;else if(g===9)if(f>=2)e=true}else if(a.opera)if(b>10)e=true;else if(b===10)if(g>=60)e=true;return e},hashchangeLoader:function(){var a=c.History;if(a.nativeSupport())a.getHash()&&a.$window.trigger("hashchange");else{var b;if(c.browser.msie){a.$iframe=c('<iframe id="jquery-history-iframe" style="display: none;"></$iframe>').prependTo(document.body)[0];a.$iframe.contentWindow.document.open();a.$iframe.contentWindow.document.close();var d=false;b=function(){var f=a.getHash(),
g=a.getState(),e=a.extractHash(a.$iframe.contentWindow.document.location.hash);if(g!==f){if(!d){a.$iframe.contentWindow.document.open();a.$iframe.contentWindow.document.close();a.$iframe.contentWindow.document.location.hash=f}d=false;a.$window.trigger("hashchange")}else if(g!==e){d=true;a.setHash(e)}}}else b=function(){var f=a.getHash();a.getState()!==f&&a.$window.trigger("hashchange")};setInterval(b,200)}return true}};c.History.construct()}})(jQuery);
;
/*! fancyBox v2.0.3 fancyapps.com | fancyapps.com/fancybox/#license */
(function(r,n,d){var i=d(r),o=d(n),a=d.fancybox=function(){a.open.apply(this,arguments)},p=!1,q=null;d.extend(a,{version:"2.0.3",defaults:{padding:15,margin:20,width:800,height:600,minWidth:200,minHeight:200,maxWidth:9999,maxHeight:9999,autoSize:!0,fitToView:!0,aspectRatio:!1,topRatio:0.5,fixed:!d.browser.msie||6<d.browser.version,scrolling:"auto",wrapCSS:"fancybox-default",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3E3,modal:!1,loop:!0,ajax:{},keys:{next:[13,
32,34,39,40],prev:[8,33,37,38],close:[27]},index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'<div class="fancybox-wrap"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div>',image:'<img class="fancybox-image" src="{href}" alt="" />',iframe:'<iframe class="fancybox-iframe" name="fancybox-frame{rnd}" frameborder="0" hspace="0" '+(d.browser.msie?'allowtransparency="true""':"")+' scrolling="{scrolling}" src="{href}"></iframe>',swf:'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="wmode" value="transparent" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="{href}" /><embed src="{href}" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="100%" height="100%" wmode="transparent"></embed></object>',
error:'<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',closeBtn:'<div title="Close" class="fancybox-item fancybox-close"></div>',next:'<a title="Next" class="fancybox-item fancybox-next"><span></span></a>',prev:'<a title="Previous" class="fancybox-item fancybox-prev"><span></span></a>'},openEffect:"fade",openSpeed:500,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:500,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",
nextEffect:"elastic",nextSpeed:300,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:300,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:{speedIn:0,speedOut:0,opacity:0.85,css:{cursor:"pointer","background-color":"rgba(0, 0, 0, 0.85)"},closeClick:!0},title:{type:"float"}}},group:{},opts:{},coming:null,current:null,isOpen:!1,isOpened:!1,wrap:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(b,
c){d.isArray(b)||(b=[b]);if(b.length)a.close(!0),a.opts=d.extend(!0,{},a.defaults,c),a.group=b,a._start(a.opts.index||0)},cancel:function(){if(!(a.coming&&!1===a.trigger("onCancel"))&&(a.coming=null,a.hideLoading(),a.ajaxLoad&&a.ajaxLoad.abort(),a.ajaxLoad=null,a.imgPreload))a.imgPreload.onload=a.imgPreload.onabort=a.imgPreload.onerror=null},close:function(b){a.cancel();if(a.current&&!1!==a.trigger("beforeClose"))a.unbindEvents(),!a.isOpen||b&&!0===b[0]?(d(".fancybox-wrap").stop().trigger("onReset").remove(),
a._afterZoomOut()):(a.isOpen=a.isOpened=!1,d(".fancybox-item").remove(),a.wrap.stop(!0).removeClass("fancybox-opened"),a.inner.css("overflow","hidden"),a.transitions[a.current.closeMethod]())},play:function(b){var c=function(){clearTimeout(a.player.timer)},e=function(){c();if(a.current&&a.player.isActive)a.player.timer=setTimeout(a.next,a.current.playSpeed)},g=function(){c();d("body").unbind(".player");a.player.isActive=!1;a.trigger("onPlayEnd")};if(a.player.isActive||b&&!1===b[0])g();else if(a.current&&
(a.current.loop||a.current.index<a.group.length-1))a.player.isActive=!0,e(),d("body").bind({"onCancel.player afterShow.player onUpdate.player":e,"beforeClose.player":g,"beforeLoad.player":c}),a.trigger("onPlayStart")},next:function(){a.current&&a.jumpto(a.current.index+1)},prev:function(){a.current&&a.jumpto(a.current.index-1)},jumpto:function(b){a.current&&(b=parseInt(b,10),1<a.group.length&&a.current.loop&&(b>=a.group.length?b=0:0>b&&(b=a.group.length-1)),"undefined"!==typeof a.group[b]&&(a.cancel(),
a._start(b)))},reposition:function(b){a.isOpen&&a.wrap.css(a._getPosition(b))},update:function(){a.isOpen&&(p||(q=setInterval(function(){if(p&&(p=!1,clearTimeout(q),a.current)){if(a.current.autoSize)a.inner.height("auto"),a.current.height=a.inner.height();a._setDimension();a.current.canGrow&&a.inner.height("auto");a.reposition();a.trigger("onUpdate")}},100)),p=!0)},toggle:function(){if(a.isOpen)a.current.fitToView=!a.current.fitToView,a.update()},hideLoading:function(){d("#fancybox-loading").remove()},
showLoading:function(){a.hideLoading();d('<div id="fancybox-loading"></div>').click(a.cancel).appendTo("body")},getViewport:function(){return{x:i.scrollLeft(),y:i.scrollTop(),w:i.width(),h:i.height()}},unbindEvents:function(){a.wrap&&a.wrap.unbind(".fb");o.unbind(".fb");i.unbind(".fb")},bindEvents:function(){var b=a.current,c=b.keys;b&&(i.bind("resize.fb, orientationchange.fb",a.update),c&&o.bind("keydown.fb",function(b){-1<d.inArray(b.target.tagName.toLowerCase(),["input","textarea","select","button"])||
(-1<d.inArray(b.keyCode,c.close)?(a.close(),b.preventDefault()):-1<d.inArray(b.keyCode,c.next)?(a.next(),b.preventDefault()):-1<d.inArray(b.keyCode,c.prev)&&(a.prev(),b.preventDefault()))}),d.fn.mousewheel&&b.mouseWheel&&1<a.group.length&&a.wrap.bind("mousewheel.fb",function(b,c){if(0===d(b.target).get(0).clientHeight||d(b.target).get(0).scrollHeight===d(b.target).get(0).clientHeight)b.preventDefault(),a[0<c?"prev":"next"]()}))},trigger:function(b){var c,e=-1<d.inArray(b,["onCancel","beforeLoad",
"afterLoad"])?"coming":"current";if(a[e]){d.isFunction(a[e][b])&&(c=a[e][b].apply(a[e],Array.prototype.slice.call(arguments,1)));if(!1===c)return!1;a[e].helpers&&d.each(a[e].helpers,function(c,e){if(e&&"undefined"!==typeof a.helpers[c]&&d.isFunction(a.helpers[c][b]))a.helpers[c][b](e)});d.event.trigger(b+".fb")}},isImage:function(a){return a&&a.match(/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i)},isSWF:function(a){return a&&a.match(/\.(swf)(.*)?$/i)},_start:function(b){var c=a.group[b]||null,e,g,h,f=d.extend(!0,
{},a.opts,d.isPlainObject(c)?c:{},{index:b,element:c});if("number"===typeof f.margin)f.margin=[f.margin,f.margin,f.margin,f.margin];f.modal&&d.extend(!0,f,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{css:{cursor:"auto"},closeClick:!1}}});a.coming=f;if(!1===a.trigger("beforeLoad"))a.coming=null;else{if("object"===typeof c&&(c.nodeType||c instanceof d))e=!0,f.href=d(c).attr("href")||f.href,f.title=d(c).attr("title")||f.title,d.metadata&&d.extend(f,d(c).metadata());
g=f.type;b=f.href;if(!g)e&&(h=d(c).data("fancybox-type"),!h&&c.className&&(h=(h=c.className.match(/fancybox\.(\w+)/))?h[1]:!1)),h?g=h:b&&(a.isImage(b)?g="image":a.isSWF(b)?g="swf":b.match(/^#/)&&(g="inline")),g||(g=e?"inline":"html"),f.type=g;if("inline"===g||"html"===g){if(!f.content)f.content="inline"===g&&b?d(b):c;f.content.length||(g=null)}else f.href=b||c,f.href||(g=null);f.group=a.group;"image"===g?a._loadImage():"ajax"===g?a._loadAjax():g?a._afterLoad():a._error()}},_error:function(){a.coming.type=
"html";a.coming.minHeight=0;a.coming.autoSize=!0;a.coming.content=a.coming.tpl.error;a._afterLoad()},_loadImage:function(){a.imgPreload=new Image;a.imgPreload.onload=function(){this.onload=this.onerror=null;a.coming.width=this.width;a.coming.height=this.height;a._afterLoad()};a.imgPreload.onerror=function(){this.onload=this.onerror=null;a._error()};a.imgPreload.src=a.coming.href;a.imgPreload.complete||a.showLoading()},_loadAjax:function(){a.showLoading();a.ajaxLoad=d.ajax(d.extend({},a.coming.ajax,
{url:a.coming.href,error:function(b,c,e){"abort"!==c?(a.coming.content=e,a._error()):a.hideLoading()},success:function(b,c){if("success"===c)a.coming.content=b,a._afterLoad()}}))},_afterLoad:function(){a.hideLoading();!a.coming||!1===a.trigger("afterLoad",a.current)?a.coming=!1:(a.isOpened?(d(".fancybox-item").remove(),a.wrap.stop(!0).removeClass("fancybox-opened"),a.inner.css("overflow","hidden"),a.transitions[a.current.prevMethod]()):(d(".fancybox-wrap").stop().trigger("onReset").remove(),a.trigger("afterClose")),
a.unbindEvents(),a.isOpen=!1,a.current=a.coming,a.coming=!1,a.wrap=d(a.current.tpl.wrap).addClass("fancybox-tmp "+a.current.wrapCSS).appendTo("body"),a.outer=d(".fancybox-outer",a.wrap).css("padding",a.current.padding+"px"),a.inner=d(".fancybox-inner",a.wrap),a._setContent(),a.trigger("beforeShow"),a._setDimension(),a.wrap.hide().removeClass("fancybox-tmp"),a.bindEvents(),a.transitions[a.isOpened?a.current.nextMethod:a.current.openMethod]())},_setContent:function(){var b,c,e=a.current,g=e.type;switch(g){case "inline":case "ajax":case "html":"inline"===
g?(b=e.content.show().detach(),b.parent().hasClass("fancybox-inner")&&b.parents(".fancybox-wrap").trigger("onReset").remove(),d(a.wrap).bind("onReset",function(){b.appendTo("body").hide()})):b=e.content;if(e.autoSize)c=d('<div class="fancybox-tmp"></div>').appendTo(d("body")).append(b),e.width=c.outerWidth(),e.height=c.outerHeight(!0),b=c.contents().detach(),c.remove();break;case "image":b=e.tpl.image.replace("{href}",e.href);e.aspectRatio=!0;break;case "swf":b=e.tpl.swf.replace(/\{width\}/g,e.width).replace(/\{height\}/g,
e.height).replace(/\{href\}/g,e.href);break;case "iframe":b=e.tpl.iframe.replace("{href}",e.href).replace("{scrolling}",e.scrolling).replace("{rnd}",(new Date).getTime())}if(-1<d.inArray(g,["image","swf","iframe"]))e.autoSize=!1,e.scrolling=!1;a.inner.append(b)},_setDimension:function(){var b=a.current,c=a.getViewport(),e=b.margin,g=2*b.padding,h=b.width+g,f=b.height+g,m=b.width/b.height,j=b.maxWidth,k=b.maxHeight,i=b.minWidth,l=b.minHeight;c.w-=e[1]+e[3];c.h-=e[0]+e[2];-1<h.toString().indexOf("%")&&
(h=c.w*parseFloat(h)/100);-1<f.toString().indexOf("%")&&(f=c.h*parseFloat(f)/100);b.fitToView&&(j=Math.min(c.w,j),k=Math.min(c.h,k));j=Math.max(i,j);k=Math.max(l,k);b.aspectRatio?(h>j&&(h=j,f=(h-g)/m+g),f>k&&(f=k,h=(f-g)*m+g),h<i&&(h=i,f=(h-g)/m+g),f<l&&(f=l,h=(f-g)*m+g)):(h=Math.max(i,Math.min(h,j)),f=Math.max(l,Math.min(f,k)));h=Math.round(h);f=Math.round(f);d(a.wrap.add(a.outer).add(a.inner)).width("auto").height("auto");a.inner.width(h-g).height(f-g);a.wrap.width(h);e=a.wrap.height();if(h>j||
e>k)for(;(h>j||e>k)&&h>i&&e>l;)f-=10,b.aspectRatio?(h=Math.round((f-g)*m+g),h<i&&(h=i,f=(h-g)/m+g)):h-=10,a.inner.width(h-g).height(f-g),a.wrap.width(h),e=a.wrap.height();b.dim={width:h,height:e};b.canGrow=b.autoSize&&f>l&&f<k;b.canShrink=!1;b.canExpand=!1;if(h-g<b.width||f-g<b.height)b.canExpand=!0;else if((h>c.w||e>c.h)&&h>i&&f>l)b.canShrink=!0;b=e-g;a.innerSpace=b-a.inner.height();a.outerSpace=b-a.outer.height()},_getPosition:function(b){var c=a.getViewport(),e=a.current.margin,d=a.wrap.width()+
e[1]+e[3],h=a.wrap.height()+e[0]+e[2],f={position:"absolute",top:e[0]+c.y,left:e[3]+c.x};if(a.current.fixed&&(!b||!1===b[0])&&h<=c.h&&d<=c.w)f={position:"fixed",top:e[0],left:e[3]};f.top=Math.ceil(Math.max(f.top,f.top+(c.h-h)*a.current.topRatio))+"px";f.left=Math.ceil(Math.max(f.left,f.left+0.5*(c.w-d)))+"px";return f},_afterZoomIn:function(){var b=a.current;a.isOpen=a.isOpened=!0;a.wrap.addClass("fancybox-opened").css("overflow","visible");a.update();a.inner.css("overflow","auto"===b.scrolling?"auto":
"yes"===b.scrolling?"scroll":"hidden");if(b.closeClick||b.nextClick)a.inner.bind("click.fb",b.nextClick?a.next:a.close);b.closeBtn&&d(a.current.tpl.closeBtn).appendTo(a.wrap).bind("click.fb",a.close);b.arrows&&1<a.group.length&&((b.loop||0<b.index)&&d(b.tpl.prev).appendTo(a.wrap).bind("click.fb",a.prev),(b.loop||b.index<a.group.length-1)&&d(b.tpl.next).appendTo(a.wrap).bind("click.fb",a.next));a.trigger("afterShow");if(a.opts.autoPlay&&!a.player.isActive)a.opts.autoPlay=!1,a.play()},_afterZoomOut:function(){a.trigger("afterClose");
a.wrap.trigger("onReset").remove();d.extend(a,{group:{},opts:{},current:null,isOpened:!1,isOpen:!1,wrap:null,outer:null,inner:null})}});a.transitions={getOrigPosition:function(){var b=a.current.element,c={},e=50,g=50,h;b&&b.nodeName&&d(b).is(":visible")?(h=d(b).find("img:first"),h.length?(c=h.offset(),e=h.outerWidth(),g=h.outerHeight()):c=d(b).offset()):(b=a.getViewport(),c.top=b.y+0.5*(b.h-g),c.left=b.x+0.5*(b.w-e));return c={top:Math.ceil(c.top)+"px",left:Math.ceil(c.left)+"px",width:Math.ceil(e)+
"px",height:Math.ceil(g)+"px"}},step:function(b,c){var e,d,h;if("width"===c.prop||"height"===c.prop)d=h=Math.ceil(b-2*a.current.padding),"height"===c.prop&&(e=(b-c.start)/(c.end-c.start),c.start>c.end&&(e=1-e),d-=a.innerSpace*e,h-=a.outerSpace*e),a.inner[c.prop](d),a.outer[c.prop](h)},zoomIn:function(){var b=a.current,c,e;c=b.dim;if("elastic"===b.openEffect){e=d.extend({},c,a._getPosition(!0));delete e.position;c=this.getOrigPosition();if(b.openOpacity)c.opacity=0,e.opacity=1;a.wrap.css(c).show().animate(e,
{duration:b.openSpeed,easing:b.openEasing,step:this.step,complete:a._afterZoomIn})}else a.wrap.css(d.extend({},c,a._getPosition())),"fade"===b.openEffect?a.wrap.fadeIn(b.openSpeed,a._afterZoomIn):(a.wrap.show(),a._afterZoomIn())},zoomOut:function(){var b=a.current,c;if("elastic"===b.closeEffect){"fixed"===a.wrap.css("position")&&a.wrap.css(a._getPosition(!0));c=this.getOrigPosition();if(b.closeOpacity)c.opacity=0;a.wrap.animate(c,{duration:b.closeSpeed,easing:b.closeEasing,step:this.step,complete:a._afterZoomOut})}else a.wrap.fadeOut("fade"===
b.closeEffect?b.closeSpeed:0,a._afterZoomOut)},changeIn:function(){var b=a.current,c;"elastic"===a.current.nextEffect?(c=a._getPosition(!0),c.opacity=0,c.top=parseInt(c.top,10)-200+"px",a.wrap.css(c).show().animate({opacity:1,top:"+=200px"},{duration:b.nextSpeed,complete:a._afterZoomIn})):(a.wrap.css(a._getPosition()),"fade"===b.nextEffect?a.wrap.hide().fadeIn(b.nextSpeed,a._afterZoomIn):(a.wrap.show(),a._afterZoomIn()))},changeOut:function(){function b(){d(this).trigger("onReset").remove()}a.wrap.removeClass("fancybox-opened");
"elastic"===a.current.prevEffect?a.wrap.animate({opacity:0,top:"+=200px"},{duration:a.current.prevSpeed,complete:b}):a.wrap.fadeOut("fade"===a.current.prevEffect?a.current.prevSpeed:0,b)}};a.helpers.overlay={overlay:null,update:function(){var a,c;this.overlay.width(0).height(0);d.browser.msie?(a=Math.max(n.documentElement.scrollWidth,n.body.scrollWidth),c=Math.max(n.documentElement.offsetWidth,n.body.offsetWidth),a=a<c?i.width():a):a=o.width();this.overlay.width(a).height(o.height())},beforeShow:function(b){if(!this.overlay)this.overlay=
d('<div id="fancybox-overlay"></div>').css(b.css||{background:"black"}).appendTo("body"),this.update(),b.closeClick&&this.overlay.bind("click.fb",a.close),i.bind("resize.fb",d.proxy(this.update,this)),this.overlay.fadeTo(b.speedIn||"fast",b.opacity||1)},onUpdate:function(){this.update()},afterClose:function(a){this.overlay&&this.overlay.fadeOut(a.speedOut||"fast",function(){d(this).remove()});this.overlay=null}};a.helpers.title={beforeShow:function(b){var c;if(c=a.current.title)c=d('<div class="fancybox-title fancybox-title-'+
b.type+'-wrap">'+c+"</div>").appendTo("body"),"float"===b.type&&(c.width(c.width()),c.wrapInner('<span class="child"></span>'),a.current.margin[2]+=Math.abs(parseInt(c.css("margin-bottom"),10))),c.appendTo("over"===b.type?a.inner:"outside"===b.type?a.wrap:a.outer)}};d.fn.fancybox=function(b){function c(b){var c=[],i=!1,j=d(this).data("fancybox-group");b.preventDefault();if("undefined"!==typeof j)i=j?"data-fancybox-group":!1;else if(this.rel&&""!==this.rel&&"nofollow"!==this.rel)j=this.rel,i="rel";
i&&(c=g.length?d(g).filter("["+i+'="'+j+'"]'):d("["+i+'="'+j+'"]'));c.length?(e.index=c.index(this),a.open(c.get(),e)):a.open(this,e);return!1}var e=b||{},g=this.selector||"";g?o.undelegate(g,"click.fb-start").delegate(g,"click.fb-start",c):d(this).unbind("click.fb-start").bind("click.fb-start",c);return this}})(window,document,jQuery);;
/**
 * v0.5 Fancy Opts plugin for jQuery
 * http://rommelsantor.com/jquery/fancyopts
 *
 * Author(s): Rommel Santor
 *            http://rommelsantor.com
 *
 * This plugin allows you to create custom, image-based radio buttons and
 * checkboxes seamlessly integrated into existing forms with graceful
 * degradation.
 *
 * Copyright (c) 2011 by Rommel Santor <rommel at rommelsantor dot com>
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
(function($){var methods={init:function(options){var settings={image:null,width:0,height:0,hasActive:true,activeHover:false,onCheck:function(value,checked){},onDisable:function(disabled){},onFocus:function(focused){}};if(typeof options==='object')
$.extend(settings,options);var $this=this;if(!settings.width||!settings.height||!settings.image)
return $this;return $this.each(function(){var $this=$(this),data=$this.data('fancyopts');if(!data){var id=$this.attr('id'),type=$this.attr('type'),name=$this.attr('name'),width=settings.width,height=settings.height;if(!id){id='fancyopts_'+Math.floor(Math.random()*1000+1);$this.attr('id',id);}
var $icon=$('<span class="fancyopts-icon fancyopts-'+type+' fancyopts-name-'+name+'" id="fancyopts-'+id+'"></span>').insertBefore($this);$icon.css({width:width+'px',height:height+'px',background:'url('+settings.image+') no-repeat',display:'inline-block'});$icon.data('input',$this);$icon.append($this);var offsets=[],top=0;for(var i=0;i<(settings.hasActive?6:4);++i){offsets.push(top);top+=height;}
var pos={off:offsets[0],offactive:-offsets[!settings.hasActive?0:1],on:-offsets[!settings.hasActive?1:2],onactive:-offsets[!settings.hasActive?1:3],disoff:-offsets[settings.hasActive?4:2],dison:-offsets[settings.hasActive?5:3]};data={settings:settings,icon:$icon,type:type,name:name,pos:pos,mdown:false,checked:$this.is(':checked'),disabled:$this.is(':disabled')};$this.data('fancyopts',data);$("label[for='"+id+"']").click(function(){$icon.click();return false;});$icon.click(function(){var $el=$(this).data('input'),data=$el.data('fancyopts');if(data.disabled)
return false;if(!document.activeElement||$el.get(0)!=document.activeElement)
$el.focus();if(data.type=='radio'){if(data.checked)
return false;$("input[type='radio'][name='"+data.name+"']:checked").fancyopts('check',false);}
data.checked=!data.checked;$el.data('fancyopts',data).fancyopts('check',data.checked);return false;});$icon.mousedown(function(){var $el=$(this).data('input'),data=$el.data('fancyopts');if(!data.settings.hasActive||data.disabled)
return;data.icon.css({backgroundPosition:'0 '+(data.checked?data.pos.onactive:data.pos.offactive)+'px'});data.mdown=true;$el.data('fancyopts',data);});$icon.mouseup(function(){var $el=$(this).data('input'),data=$el.data('fancyopts');if(!data.settings.hasActive||data.disabled)
return;data.icon.css({backgroundPosition:'0 '+(data.checked?data.pos.on:data.pos.off)+'px'});data.mdown=false;$el.data('fancyopts',data);});$icon.mouseover(function(){var $el=$(this).data('input'),data=$el.data('fancyopts');if(data.disabled)
return;if(data.settings.activeHover||data.mdown)
$(this).mousedown();});$icon.mouseout(function(){var $el=$(this).data('input'),data=$el.data('fancyopts'),mdown=data.mdown;if(data.disabled)
return;$(this).mouseup();data.mdown=mdown;$el.data('fancyopts',data);});$this.css({position:'absolute',left:'-12345px'}).focus(function(){$(this).fancyopts('focus',true);}).blur(function(){$(this).fancyopts('focus',false);});;$this.fancyopts('check',data.checked);$this.fancyopts('disable',data.disabled);}});},focus:function(focused,nocb){return this.each(function(){var data=$(this).data('fancyopts');if(focused){$('.fancyopts-icon').css({outline:'0'});data.icon.css({outline:'1px dotted'});if(data.type=='radio'){var value=$(this).attr('value');$("input[type='radio'][name='"+data.name+"']").each(function(){if($(this).attr('value')!=value)
$(this).fancyopts('check',false);});}
data.settings.onFocus.call(this,true);return false;}
data.icon.css({outline:'0'});if(nocb)
return;data.settings.onFocus.call(this,false);});},disable:function(disabled,nocb){return this.each(function(){var $this=$(this),d=disabled;var data=$this.data('fancyopts');if(!data)
return;if(typeof(d)==='undefined')
d=!data.disabled;$this.attr({disabled:d});if(d)
data.icon.css({backgroundPosition:'0 '+(data.checked?data.pos.dison:data.pos.disoff)+'px'});else
data.icon.css({backgroundPosition:'0 '+(data.checked?data.pos.on:data.pos.off)+'px'});data.disabled=d;$this.data('fancyopts',data);if(nocb)
return;data.settings.onDisable.call(this,d);});},check:function(checked,nocb){return this.each(function(){var $this=$(this);var data=$this.data('fancyopts');if(!data)
return;if(typeof(checked)==='undefined'){data.icon.click();return;}
if(checked&&data.type=='radio')
$("input[type='radio'][name='"+data.name+"']:checked").fancyopts('check',false);$this.attr({checked:checked});if(checked)
data.icon.css({backgroundPosition:'0 '+(data.disabled?data.pos.dison:data.pos.on)+'px'});else
data.icon.css({backgroundPosition:'0 '+(data.disabled?data.pos.disoff:data.pos.off)+'px'});data.checked=checked;$this.data('fancyopts',data);if(nocb)
return;if(data.type=='radio')
checked&&data.settings.onCheck.call(this,$("input[type='radio'][name='"+data.name+"']:checked").val(),checked);else
data.settings.onCheck.call(this,$this.attr('value'),checked);});},checked:function(){var $this=$(this);var data=$this.data('fancyopts');if(!data)
return null;return data.checked;},disabled:function(){var $this=$(this);var data=$this.data('fancyopts');if(!data)
return null;return data.disabled;}};$.fn.fancyopts=function(method){if(methods[method])
return methods[method].apply(this,Array.prototype.slice.call(arguments,1));else if(typeof method==='object'||!method)
return methods.init.apply(this,arguments);else
$.error('Method '+method+' does not exist on jQuery.fancyopts');};})(jQuery);;
/*!
 * jQuery Tools v1.2.6 - The missing UI library for the Web
 * 
 * toolbox/toolbox.flashembed.js
 * 
 * NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
 * 
 * http://flowplayer.org/tools/
 * 
 */
(function(){var a=document.all,b="http://www.adobe.com/go/getflashplayer",c=typeof jQuery=="function",d=/(\d+)[^\d]+(\d+)[^\d]*(\d*)/,e={width:"100%",height:"100%",id:"_"+(""+Math.random()).slice(9),allowfullscreen:!0,allowscriptaccess:"always",quality:"high",version:[3,0],onFail:null,expressInstall:null,w3c:!1,cachebusting:!1};window.attachEvent&&window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){},__flash_savedUnloadHandler=function(){}});function f(a,b){if(b)for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a}function g(a,b){var c=[];for(var d in a)a.hasOwnProperty(d)&&(c[d]=b(a[d]));return c}window.flashembed=function(a,b,c){typeof a=="string"&&(a=document.getElementById(a.replace("#","")));if(a){typeof b=="string"&&(b={src:b});return new j(a,f(f({},e),b),c)}};var h=f(window.flashembed,{conf:e,getVersion:function(){var a,b;try{b=navigator.plugins["Shockwave Flash"].description.slice(16)}catch(c){try{a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"),b=a&&a.GetVariable("$version")}catch(e){try{a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),b=a&&a.GetVariable("$version")}catch(f){}}}b=d.exec(b);return b?[b[1],b[3]]:[0,0]},asString:function(a){if(a===null||a===undefined)return null;var b=typeof a;b=="object"&&a.push&&(b="array");switch(b){case"string":a=a.replace(new RegExp("([\"\\\\])","g"),"\\$1"),a=a.replace(/^\s?(\d+\.?\d*)%/,"$1pct");return"\""+a+"\"";case"array":return"["+g(a,function(a){return h.asString(a)}).join(",")+"]";case"function":return"\"function()\"";case"object":var c=[];for(var d in a)a.hasOwnProperty(d)&&c.push("\""+d+"\":"+h.asString(a[d]));return"{"+c.join(",")+"}"}return String(a).replace(/\s/g," ").replace(/\'/g,"\"")},getHTML:function(b,c){b=f({},b);var d="<object width=\""+b.width+"\" height=\""+b.height+"\" id=\""+b.id+"\" name=\""+b.id+"\"";b.cachebusting&&(b.src+=(b.src.indexOf("?")!=-1?"&":"?")+Math.random()),b.w3c||!a?d+=" data=\""+b.src+"\" type=\"application/x-shockwave-flash\"":d+=" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"",d+=">";if(b.w3c||a)d+="<param name=\"movie\" value=\""+b.src+"\" />";b.width=b.height=b.id=b.w3c=b.src=null,b.onFail=b.version=b.expressInstall=null;for(var e in b)b[e]&&(d+="<param name=\""+e+"\" value=\""+b[e]+"\" />");var g="";if(c){for(var i in c)if(c[i]){var j=c[i];g+=i+"="+encodeURIComponent(/function|object/.test(typeof j)?h.asString(j):j)+"&"}g=g.slice(0,-1),d+="<param name=\"flashvars\" value='"+g+"' />"}d+="</object>";return d},isSupported:function(a){return i[0]>a[0]||i[0]==a[0]&&i[1]>=a[1]}}),i=h.getVersion();function j(c,d,e){if(h.isSupported(d.version))c.innerHTML=h.getHTML(d,e);else if(d.expressInstall&&h.isSupported([6,65]))c.innerHTML=h.getHTML(f(d,{src:d.expressInstall}),{MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title});else{c.innerHTML.replace(/\s/g,"")||(c.innerHTML="<h2>Flash version "+d.version+" or greater is required</h2><h3>"+(i[0]>0?"Your version is "+i:"You have no flash plugin installed")+"</h3>"+(c.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='"+b+"'>here</a></p>"),c.tagName=="A"&&(c.onclick=function(){location.href=b}));if(d.onFail){var g=d.onFail.call(this);typeof g=="string"&&(c.innerHTML=g)}}a&&(window[d.id]=document.getElementById(d.id)),f(this,{getRoot:function(){return c},getOptions:function(){return d},getConf:function(){return e},getApi:function(){return c.firstChild}})}c&&(jQuery.tools=jQuery.tools||{version:"v1.2.6"},jQuery.tools.flashembed={conf:e},jQuery.fn.flashembed=function(a,b){return this.each(function(){jQuery(this).data("flashembed",flashembed(this,a,b))})})})();
;
var Vitagate = {


  /**
   * Setup of the fancy form controls for input[type=checkbox] and input[type=radio]
   */
  initFormOpts: function() {(function($) {
    $("input[type=radio]").fancyopts({
      width : 14,
      height : 14,
      image : '/sites/all/themes/custom/vitagate/lib/fancyform/radio.png'
    });
    
    $("input[type=checkbox]").fancyopts({
      width : 12,
      height : 12,
      image : '/sites/all/themes/custom/vitagate/lib/fancyform/checkbox.png'
    });
  })(jQuery)},
  
  
  /**
   * Initializes the prompted form fields given as argument.
   */
  promptInit: function(items) {
    jQuery(items).focus(Vitagate.promptUpdateFocus);
    jQuery(items).blur(Vitagate.promptUpdateBlur);
    jQuery(items).blur();
  },
  
  
  /**
   * Handler method to handle the focus event in a prompted form field.
   */
  promptUpdateFocus: function() {
    if ( jQuery(this).hasClass("ui-input-label") ) {
      jQuery(this).removeClass("ui-input-label");
      jQuery(this).val("");
    }
  },
  
  
  /**
   * Handler method to handle the blur event in a prompted form field.
   */
  promptUpdateBlur: function() {
    if ( jQuery(this).val() == "" || jQuery(this).val() == jQuery(this).attr("rel") ) {
      if ( !jQuery(this).hasClass("ui-input-label") ) {
        jQuery(this).addClass("ui-input-label");
      }
      jQuery(this).val(jQuery(this).attr("rel"));
    }
  },
  
  
  /**
   * Initializes the ads for the current page.
   *   This method would define a timeout function
   *   for the loading of the ads. Prevents slowdown
   *   of vitagate page when the adserver would respond slowly.
   *   Furthermore, this method would initialize all sidebar video ads
   *   and their slideshow animation.
   */
  initAds: function() {(function($) {
    var t = setTimeout(Vitagate.loadAds, 250);
    
    $(".sidebar-videoad").each(function() {
      // Hide all containers.
      $(this).find(".sidebar-videoad-container").hide();
      
      // Show the first one.
      $(this).find(".sidebar-videoad-container:first").show();
    });
    
    if ( $(".sidebar-videoad").length > 0 ) {
      var vTimer = setInterval(Vitagate.sidebarVideoAdTick, 4000);
    }
    
  })(jQuery)},
  
  
  /**
   * Handler for the interval tick of the sidebar video ad slideshow.
   * This method would simply change the slides for all video ads.
   */
  sidebarVideoAdTick: function() {(function($) {
    $(".sidebar-videoad").each(function() {
      var items = $(this).find(".sidebar-videoad-container");
      if ( items.length > 1 ) {
        var oldIndex = -1;
        for ( var i = 0 ; i < items.length; i ++ )
        {
          if ( $(items[i]).is(":visible") ) {
            oldIndex = i;
            break;
          }
        }
        
        var newIndex = oldIndex + 1;
        if ( newIndex >= items.length ) { newIndex = 0; }
        
        $(items[oldIndex]).css("z-index", 10).fadeOut(300);
        $(items[newIndex]).css("z-index", 11).fadeIn(300);
      }
    });
  })(jQuery)},
  
  
  loadAds: function() {(function($) {
    if ( Drupal.settings.vitagate_ad != undefined ) {
      for ( var i = 0 ; i < Drupal.settings.vitagate_ad.length ; i ++ ) {
        $("#" + Drupal.settings.vitagate_ad[i].id).html(Drupal.settings.vitagate_ad[i].code);
      }
    }
  })(jQuery)}
};


///
// On Ready
///
(function($) {
  $(document).ready(function() {
    
    // Setup of the fancybox fancyPopup.
    $("a.fancyPopup").fancybox({
      beforeLoad: function() {
        if ( $(this.element).is(".fancyPopupIframe") ) {
          this.type = "iframe";
        }
        
        var n = $(this.element).attr("name");
        if ( n != undefined && n != "" ) {
          var titleElement = $("#" + n);
          if ( titleElement.length > 0 ) {
            this.title = titleElement.html();
          }
        }
      },
      helpers: { title: { type: "inside" } },
      tpl: {
        error: '<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',
        closeBtn: '<div title="' + Drupal.settings.fancybox.close + '" class="fancybox-item fancybox-close"></div>',
        next: '<a title="' + Drupal.settings.fancybox.next + '" class="fancybox-item fancybox-next"><span></span></a>',
        prev: '<a title="' + Drupal.settings.fancybox.prev + '" class="fancybox-item fancybox-prev"><span></span></a>'
      },
      nextEffect: 'fade',
      prevEffect: 'fade',
      closeClick: false,
      loop: true
    });
    
    
    /// Sidebar "Test"
    // Degrades well if no sidebar test had been added.
    $(".sidebar-test").css("cursor", "pointer");
    $(".sidebar-test-link a").hide();
    $(".sidebar-test").click(function(e){
      // Get the goto-link.
      var elems = $(this).find(".sidebar-test-link a");
      if ( elems.length > 0 ) {
        var a = elems[0];
        if ( a == e.target ) {
          return;
        } else {
          window.location.href = $(a).attr("href");
        }
      }
    });
    
    
    // Sidebar Tabblock Tab "Therapies"
    Vitagate.promptInit($("#tabblock-therapies-form .therapy-input"));
    
    // Sidebar Tabblock Tab "Therapies" Autocomplete
    if ( $().autocomplete ) {
      var therapies_cache = {}, therapies_lastXhr; therapies_url = "";
      $("#tabblock-therapies-form").submit(function() {
        if ( therapies_url != "" ) { window.location.href = therapies_url; }
        return false;
      });
      $("#tabblock-therapies-form .therapy-input").autocomplete({
        minLength: 1,
        select: function(event, ui) {
          window.location.href = ui.item.url;
        },
        source: function(request, response) {
          var term = request.term;
          if ( term in therapies_cache ) {
            if ( therapies_cache[term].length > 0 ) {
              therapies_url = therapies_cache[term][0].url;
            } else {
              therapies_url = "";
            }
            response(therapies_cache[term]);
            return;
          }
          
          therapies_lastXhr = $.getJSON("/" + Drupal.settings.lang + "/json/therapies", request, function(data, status, xhr) {
            therapies_cache[ term ] = data;
            if ( xhr === therapies_lastXhr ) {
              if ( data.length > 0 ) {
                therapies_url = data[0].url;
              } else {
                therapies_url = "";
              }
              
              response(data);
            }
          });
        }
      });
    }
    
    
//    Vitagate.initFormOpts(); Commented out as the wem_poll did not work properly using these fancy radio buttons.
    Vitagate.initAds();
    
    // Make sure, that the hyperlink always remove the focus after click.
    $('a').each(function() { this.onmouseup = this.blur(); });
  });
})(jQuery);




///
// Fancy Media Player
///
var FancyMediaPlayer = {
  nr: 0,
  
  open: function(mediaLink, opts) {(function($) {
    var href = $(mediaLink).attr("href");
    var label = $(mediaLink).parent().siblings("h3").html();
  
    var rel = $(mediaLink).attr("rel");
    if ( rel == undefined ) {
      return false;
    }
  
    // Parse the options.
    var options = rel.split(",");
  
    // Set the different variables used later.
    var mediaFile = options[0] ? options[0] : "";
    var gaLabel = options[1] ? options[1] : ""; // Google Analytics Event Label.
    var width = options[2] ? options[2] : "480"; // Width of movie.
    var height = options[3] ? options[3] : "270"; // Height of movie (the height of the controlbar will be added later).
    var autostart = options[4] ? options[4] : "1"; // Autostart the movie?
  
    if ( mediaFile == "" ) {
      // No media file defined.
      return false;
    }
  
    if ( gaLabel == "" ) {
      // No google event label, so set it to the mediaFile path.
      gaLabel = mediaFile;
    }
    
    // Enlarge the height by the height of the control bar.
    height = "" + (parseFloat(height) + 24);
  
    // Build the pid (the player id extended by the increasing number).
    // The number is needed in order to let the jwplayer do its work properly, as each new player instance has to be of different id.
    var pid = opts.playerId + FancyMediaPlayer.nr;
    FancyMediaPlayer.nr ++;
    
    var html = '<div class="fancybox-ad-label">' + opts.label + '</div>';
    html += '<div id="' + pid + '" style="width: ' + width + 'px; height: ' + height + 'px; overflow: hidden;"></div>';
    
    var legend = '<a href="' + href + '" target="_blank">' + label + '</a>';
    
    $.fancybox(html, { helpers: { title: { type: "inside" } }, title: legend });
    $(".fancybox-outer").addClass("fancybox-outer-ad");
    
    $f(pid, Drupal.settings.flowplayer.swf, { plugins: { controls: flowplayer_controls_video, }, clip: { autoPlay: autostart, url: mediaFile }});  
    
  })(jQuery)}
  
};




///
// Sidebar "Experts"
///
(function($) {
  var WEM_Experts = {
    
    
    /**
     * Shows the element with index idx from the given li elements.
     * Hides all other elements.
     */
    showItem: function(li, idx) {
      for ( var j = 0 ; j < li.length ; j ++ ) {
        if ( j == idx ) {
          $(li[j]).show();
        } else {
          $(li[j]).hide();
        }
      }
    },
    
    /**
     * Gets the index of the currently visible element from the given li elements.
     * If no such element could be found, returns -1.
     */
    getActiveIndex: function(li) {
      for ( var j = 0 ; j < li.length ; j ++ ) {
        if ( $(li[j]).is(":visible") ) {
          return j;
        }
      }
      return -1;
    },
    
    /**
     * Changes all experts topic sidebar elements.
     * This method would be called by the javascript interval.
     */
    changeAll: function() {
      var elements = $(".sidebar-experts-topic");
      for ( var i = 0 ; i < elements.length ; i ++ ) {
        var li = $(elements[i]).find("ul li");
        
        var activeIndex = WEM_Experts.getActiveIndex(li);
        
        activeIndex ++;
        if ( activeIndex >= li.length ) { activeIndex = 0; }
        
        WEM_Experts.showItem(li, activeIndex);
      }
    }
  };
  
  
  $(document).ready(function() {
    $(".sidebar-experts-topic").css("cursor", "pointer");
    $(".sidebar-experts-topic").click(function(e) {
      window.location = $(this).find("ul li:visible a").attr("href");
    });
        
    // Hide randomly some elements only one should be visible.
    var elements = $(".sidebar-experts-topic");
    for ( var i = 0 ; i < elements.length ; i ++ ) {
      var li = $(elements[i]).find("ul li");
      var idx = Math.floor(Math.random() * li.length);
      
      WEM_Experts.showItem(li, idx);
    }
    
    if ( elements.length > 0 ) {
      window.setInterval(WEM_Experts.changeAll, 4000);
    }
  });
})(jQuery);
///
// End of sidebar "Experts"
///


// Flowplayer settings for the vitagate theme.
var flowplayer_controls_audio = { background: "#333333", timeBgHeightRatio: 0.4, scrubberBarHeightRatio: 0.6, scrubberHeightRatio: 0.8, volumeBarHeightRatio: 0.6, volumeSliderHeightRatio: 0.8, fullscreen: false, autoHide: false, height: 20, time: false };
var flowplayer_controls_video = { background: "#333333", timeBgHeightRatio: 0.4, scrubberHeightRatio: 0.8, volumeSliderHeightRatio: 0.8, fullscreen: true, autoHide: true, height: 24 };
;

