var HSA_scrollAreas=new Array();var HSA_autoslide=50;var HSA_default_scrollStep=5;var HSA_default_imagesPath="images";var HSA_default_btnLeftImage="button-left.gif";var HSA_default_btnRightImage="button-right.gif";var HSA_default_wheelSensitivity=10;var HSA_default_scrollbarPosition="bottom";var HSA_default_scrollButtonWidth=30;var HSA_default_scrollbarHeight=11;var HSA_resizeTimer=200;if(window.addEventListener){window.addEventListener("load",HSA_initScrollbars,false)}else{if(window.attachEvent){window.attachEvent("onload",HSA_initScrollbars)}}function HSA_autoscroll(a){var b=null;var c=a;c.scrolling=true;c.hsaTimer=setInterval(function(){if(c.direct&&!c.over){if(c.scrollingLimit>0){c.scrollingLimit--;if(c.scrollingLimit==0){c.scrolling=false}}if(!c.scrolling){return}c.scrollContent.scrollLeft+=c.scrollStep;c.scrollslider.style.left=1/c.scrollFactor*Math.abs(c.scrollContent.scrollLeft)+c.scrollButtonWidth+"px";if(c.scrollContent.scrollLeft>=(c.scrollContent.scrollWidth-c.scrollContent.offsetWidth)){c.direct=false;c.scrollContent.scrollLeft=(c.scrollContent.scrollWidth-c.scrollContent.offsetWidth);c.scrollslider.style.left=c.scrollbar.offsetWidth-c.scrollButtonWidth-c.scrollslider.offsetWidth+"px";return}}},HSA_autoslide)}function HSA_initScrollbars(){var a=HSA_getElements("scrollable","DIV",document,"class");for(var b=0;b<a.length;b++){HSA_scrollAreas[b]=new ScrollArea(b,a[b])}}function ScrollArea(b,c){this.index=b;this.element=c;var a=this.element.getAttribute("imagesPath");this.imagesPath=a?a:HSA_default_imagesPath;a=this.element.getAttribute("btnLeftImage");this.btnLeftImage=a?a:HSA_default_btnLeftImage;a=this.element.getAttribute("btnRightImage");this.btnRightImage=a?a:HSA_default_btnRightImage;a=Number(this.element.getAttribute("scrollStep"));this.scrollStep=a?a:HSA_default_scrollStep;a=Number(this.element.getAttribute("wheelSensitivity"));this.wheelSensitivity=a?a:HSA_default_wheelSensitivity;a=this.element.getAttribute("scrollbarPosition");this.scrollbarPosition=a?a:HSA_default_scrollbarPosition;a=this.element.getAttribute("scrollButtonWidth");this.scrollButtonWidth=a?a:HSA_default_scrollButtonWidth;a=this.element.getAttribute("scrollbarHeight");this.scrollbarHeight=a?a:HSA_default_scrollbarHeight;this.scrolling=false;this.iOffsetX=0;this.scrollWidth=0;this.scrollContent=null;this.scrollbar=null;this.scrollleft=null;this.scrollright=null;this.scrollslider=null;this.scroll=null;this.enableScrollbar=false;this.scrollFactor=1;this.scrollingLimit=0;this.leftPosition=0;this.init=HSA_init;this.scrollLeft=HSA_scrollLeft;this.scrollRight=HSA_scrollRight;this.createScrollBar=HSA_createScrollBar;this.scrollIt=HSA_scrollIt;this.hsaTimer=null;this.direct=true;this.init()}function HSA_init(){this.scrollContent=document.createElement("DIV");this.scrollContent.style.position="absolute";this.scrollContent.style.width=this.element.offsetWidth+"px";this.scrollContent.style.height=this.element.offsetHeight+"px";this.scrollContent.innerHTML=this.element.innerHTML;this.scrollContent.style.overflow="hidden";this.element.innerHTML="";this.element.style.overflow="hidden";this.element.style.display="block";this.element.style.visibility="visible";this.element.style.position="relative";this.element.appendChild(this.scrollContent);this.scrollContent.className="scroll-content";this.element.index=this.index;this.element.over=false;var a=this;this.element.onmouseover=function(){a.element.over=true;if(a.hsaTimer){clearInterval(a.hsaTimer)}};this.element.onmouseout=function(){a.element.over=false;if(a.hsaTimer){clearInterval(a.hsaTimer)}HSA_autoscroll(a)};this.createScrollBar();if(window.addEventListener){this.element.addEventListener("DOMMouseScroll",HSA_handleMouseWheel,false)}this.element.onmousewheel=document.onmousewheel=HSA_handleMouseWheel}function HSA_createScrollBar(){if(this.scrollbar!=null){this.element.removeChild(this.scrollbar);this.scrollbar=null}if(this.scrollContent.scrollWidth<=this.scrollContent.offsetWidth){this.enableScrollbar=false}else{if(this.element.offsetWidth>2*this.scrollButtonWidth){this.enableScrollbar=true}else{this.enableScrollbar=false}}if(this.scrollContent.scrollWidth-Math.abs(this.scrollContent.scrollLeft)<this.element.offsetWidth){this.scrollContent.style.left=0}if(this.enableScrollbar){this.scrollbar=document.createElement("DIV");this.element.appendChild(this.scrollbar);this.scrollbar.style.position="absolute";this.scrollbar.style.left="0px";this.scrollbar.style.width=this.element.offsetWidth+"px";this.scrollbar.style.height=this.scrollbarHeight+"px";this.scrollbar.className="hscroll-bar";if(this.scrollbarHeight!=this.scrollbar.offsetHeight){this.scrollbarHeight=this.scrollbar.offsetWidth}this.scrollbarHeight=this.scrollbar.offsetHeight;if(this.scrollbarPosition=="top"){this.scrollContent.style.top=this.scrollbarHeight+5+"px";this.scrollContent.style.height=this.element.offsetHeight-this.scrollbarHeight-5+"px"}else{if(this.scrollbarPosition=="bottom"){this.scrollbar.style.top=this.element.offsetHeight-this.scrollbarHeight+"px";this.scrollContent.style.height=this.element.offsetHeight-this.scrollbarHeight-5+"px"}}this.scrollleft=document.createElement("DIV");this.scrollleft.index=this.index;this.scrollleft.onmousedown=HSA_handleBtnLeftMouseRight;this.scrollleft.onmouseup=HSA_handleBtnLeftMouseLeft;this.scrollleft.onmouseout=HSA_handleBtnLeftMouseOut;this.scrollleft.style.position="absolute";this.scrollleft.style.left="0px";this.scrollleft.style.width=this.scrollButtonWidth+"px";this.scrollleft.style.height=this.scrollbarHeight+"px";this.scrollleft.innerHTML='<img src="'+this.imagesPath+"/"+this.btnLeftImage+'" border="0"/>';this.scrollbar.appendChild(this.scrollleft);this.scrollleft.className="hscroll-left";if(this.scrollButtonWidth!=this.scrollleft.offsetWidth){this.scrollButtonWidth=this.scrollleft.offsetWidth}this.scrollright=document.createElement("DIV");this.scrollright.index=this.index;this.scrollright.onmousedown=HSA_handleBtnRightMouseRight;this.scrollright.onmouseup=HSA_handleBtnRightMouseLeft;this.scrollright.onmouseout=HSA_handleBtnRightMouseOut;this.scrollright.style.position="absolute";this.scrollright.style.left=this.scrollbar.offsetWidth-this.scrollButtonWidth+"px";this.scrollright.style.height=this.scrollbarHeight+"px";this.scrollright.innerHTML='<img src="'+this.imagesPath+"/"+this.btnRightImage+'" border="0"/>';this.scrollbar.appendChild(this.scrollright);this.scrollright.className="hscroll-right";this.scroll=document.createElement("DIV");this.scroll.index=this.index;this.scroll.style.position="absolute";this.scroll.style.zIndex=0;this.scroll.style.textAlign="center";this.scroll.style.left=this.scrollButtonWidth+"px";this.scroll.style.height=this.scrollbarHeight+"px";var a=this.scrollbar.offsetWidth-2*this.scrollButtonWidth;this.scroll.style.width=((a>0)?a:0)+"px";this.scroll.innerHTML="";this.scroll.onclick=HSA_handleScrollbarClick;this.scrollbar.appendChild(this.scroll);this.scroll.style.overflow="hidden";this.scroll.className="hscroll-line";this.scrollslider=document.createElement("DIV");this.scrollslider.index=this.index;this.scrollslider.style.position="absolute";this.scrollslider.style.zIndex=1000;this.scrollslider.style.textAlign="center";this.scrollslider.innerHTML='<div id="scrollslider'+this.index+'" style="padding:0;margin:0;"><div class="scroll-bar-left"></div><div class="scroll-bar-right"></div></div>';this.scrollbar.appendChild(this.scrollslider);this.subscrollslider=document.getElementById("scrollslider"+this.index);this.subscrollslider.style.width=Math.round((this.scrollContent.offsetWidth/this.scrollContent.scrollWidth)*(this.scrollbar.offsetWidth-2*this.scrollButtonWidth))+"px";this.scrollslider.className="hscroll-slider";this.scrollWidth=this.scrollbar.offsetWidth-2*this.scrollButtonWidth-this.scrollslider.offsetWidth;this.scrollFactor=(this.scrollContent.scrollWidth-this.scrollContent.offsetWidth)/this.scrollWidth;this.leftPosition=getRealLeft(this.scrollbar)+this.scrollButtonWidth;this.scrollslider.style.left=this.scrollButtonWidth+"px";this.scrollslider.style.height="100%";this.scrollslider.onmousedown=HSA_handleSliderMouseDown;if(document.all){this.scrollslider.onmouseup=HSA_handleSliderMouseLeft}if(HSA_autoslide){if(this.element.className.indexOf("hsa-autoscroll")!=-1){HSA_autoscroll(this)}}}else{this.scrollContent.style.height=this.element.offsetHeight+"px"}}function HSA_handleBtnLeftMouseRight(){var a=HSA_scrollAreas[this.index];a.scrolling=true;a.scrollLeft()}function HSA_handleBtnLeftMouseLeft(){HSA_scrollAreas[this.index].scrolling=false}function HSA_handleBtnLeftMouseOut(){HSA_scrollAreas[this.index].scrolling=false}function HSA_handleBtnRightMouseRight(){var a=HSA_scrollAreas[this.index];a.scrolling=true;a.scrollRight()}function HSA_handleBtnRightMouseLeft(){HSA_scrollAreas[this.index].scrolling=false}function HSA_handleBtnRightMouseOut(){HSA_scrollAreas[this.index].scrolling=false}function HSA_scrollIt(){this.scrollContent.scrollLeft=this.scrollFactor*((this.scrollslider.offsetLeft+this.scrollslider.offsetWidth/2)-this.scrollButtonWidth-this.scrollslider.offsetWidth/2)}function HSA_scrollLeft(){if(this.scrollingLimit>0){this.scrollingLimit--;if(this.scrollingLimit==0){this.scrolling=false}}if(!this.scrolling){return}if(this.scrollContent.scrollLeft-this.scrollStep>0){this.scrollContent.scrollLeft-=this.scrollStep;this.scrollslider.style.left=1/this.scrollFactor*Math.abs(this.scrollContent.scrollLeft)+this.scrollButtonWidth+"px"}else{this.scrollContent.scrollLeft="0";this.scrollslider.style.left=this.scrollButtonWidth+"px";return}setTimeout("HSA_Ext_scrollLeft("+this.index+")",30)}function HSA_Ext_scrollLeft(a){HSA_scrollAreas[a].scrollLeft()}function HSA_scrollRight(){if(this.scrollingLimit>0){this.scrollingLimit--;if(this.scrollingLimit==0){this.scrolling=false}}if(!this.scrolling){return}this.scrollContent.scrollLeft+=this.scrollStep;this.scrollslider.style.left=1/this.scrollFactor*Math.abs(this.scrollContent.scrollLeft)+this.scrollButtonWidth+"px";if(this.scrollContent.scrollLeft>=(this.scrollContent.scrollWidth-this.scrollContent.offsetWidth)){this.scrollContent.scrollLeft=(this.scrollContent.scrollWidth-this.scrollContent.offsetWidth);this.scrollslider.style.left=this.scrollbar.offsetWidth-this.scrollButtonWidth-this.scrollslider.offsetWidth+"px";return}setTimeout("HSA_Ext_scrollRight("+this.index+")",30)}function HSA_Ext_scrollRight(a){HSA_scrollAreas[a].scrollRight()}function HSA_handleMouseMove(b){var a=HSA_scrollAreas[((document.all&&!window.opera)?this.index:document.documentElement.scrollAreaIndex)];var d=0;if(!b){var b=window.event}if(b.pageX){d=b.pageX}else{if(b.clientX){d=b.clientX}}if(document.all&&!window.opera){d+=document.documentElement.scrollLeft}var c=d-a.iOffsetX-a.leftPosition;c+=a.scrollButtonWidth;if(c<a.scrollButtonWidth){c=a.scrollButtonWidth}if(c>(a.scrollbar.offsetWidth-a.scrollButtonWidth)-a.scrollslider.offsetWidth){c=(a.scrollbar.offsetWidth-a.scrollButtonWidth)-a.scrollslider.offsetWidth}a.scrollslider.style.left=c+"px";a.scrollIt()}function HSA_handleSliderMouseDown(b){if(!(document.uniqueID&&document.compatMode&&!window.XMLHttpRequest)){document.onselectstart=function(){return false};document.onmousedown=function(){return false}}var a=HSA_scrollAreas[this.index];if(document.all&&!window.opera){a.scrollslider.setCapture();a.iOffsetX=event.offsetX;a.scrollslider.onmousemove=HSA_handleMouseMove}else{if(window.opera){a.iOffsetX=event.offsetX}else{a.iOffsetX=b.layerX}document.documentElement.scrollAreaIndex=a.index;document.documentElement.addEventListener("mousemove",HSA_handleMouseMove,true);document.documentElement.addEventListener("mouseup",HSA_handleSliderMouseLeft,true)}}function HSA_handleSliderMouseLeft(){if(!(document.uniqueID&&document.compatMode&&!window.XMLHttpRequest)){document.onmousedown=null;document.onselectstart=null}if(document.all&&!window.opera){var a=HSA_scrollAreas[this.index];a.scrollslider.onmousemove=null;a.scrollslider.releaseCapture();a.scrollIt()}else{var a=HSA_scrollAreas[document.documentElement.scrollAreaIndex];document.documentElement.removeEventListener("mousemove",HSA_handleMouseMove,true);document.documentElement.removeEventListener("mouseup",HSA_handleSliderMouseLeft,true);a.scrollIt()}}function HSA_handleResize(){if(HSA_resizeTimer){clearTimeout(HSA_resizeTimer);HSA_resizeTimer=0}HSA_resizeTimer=setTimeout("HSA_performResizeEvent()",100)}function HSA_performResizeEvent(){for(var a=0;a<HSA_scrollAreas.length;a++){HSA_scrollAreas[a].createScrollBar()}}function HSA_handleMouseWheel(b){if(this.index!=null){var a=HSA_scrollAreas[this.index];if(a.scrollbar==null){return}a.scrolling=true;a.scrollingLimit=a.wheelSensitivity;var c=0;if(!b){b=window.event}if(b.wheelDelta){c=b.wheelDelta/120}else{if(b.detail){c=-b.detail/3}}if(c&&a.element.over){if(c>0){a.scrollLeft()}else{a.scrollRight()}if(b.preventDefault){b.preventDefault()}b.returnValue=false}}}function HSA_handleSelectStart(){event.returnValue=false}function HSA_handleScrollbarClick(c){var b=HSA_scrollAreas[this.index];var a=(document.all?event.offsetX:c.layerX);if(a<(b.scrollButtonWidth+b.scrollslider.offsetWidth/2)){b.scrollslider.style.left=b.scrollButtonWidth+"px"}else{if(a>(b.scrollbar.offsetWidth-b.scrollButtonWidth-b.scrollslider.offsetWidth)){b.scrollslider.style.left=b.scrollbar.offsetWidth-b.scrollButtonWidth-b.scrollslider.offsetWidth+"px"}else{b.scrollslider.style.left=a+b.scrollButtonWidth-b.scrollslider.offsetWidth/2+"px"}}b.scrollIt()}function HSA_handleOnScroll(){event.srcElement.doScroll("pageLeft")}function HSA_getElements(f,e,g,d){if(!e){e="*"}if(!g){g=document}if(!d){d="name"}var a=[];var b=g.getElementsByTagName(e);for(var c=0;c<b.length;c++){if(b.item(c).className.indexOf(f)!=-1){a.push(b.item(c))}}return a}function getRealLeft(b){var a=0;if(b){do{a+=b.offsetLeft-b.scrollLeft;b=b.offsetParent}while(b)}return a}var Cufon=(function(){var P=function(){return P.replace.apply(null,arguments)};var D=P.DOM={ready:(function(){var c=false,a={loaded:1,complete:1};var d=[],b=function(){if(c){return}c=true;for(var e;e=d.shift();e()){}};if(document.addEventListener){document.addEventListener("DOMContentLoaded",b,false);window.addEventListener("pageshow",b,false)}if(!window.opera&&document.readyState){(function(){a[document.readyState]?b():setTimeout(arguments.callee,10)})()}if(document.readyState&&document.createStyleSheet){(function(){try{document.body.doScroll("left");b()}catch(e){setTimeout(arguments.callee,1)}})()}K(window,"load",b);return function(e){if(!arguments.length){b()}else{c?e():d.push(e)}}})(),root:function(){return document.documentElement||document.body}};var O=P.CSS={Size:function(a,b){this.value=parseFloat(a);this.unit=String(a).match(/[a-z%]*$/)[0]||"px";this.convert=function(c){return c/b*this.value};this.convertFrom=function(c){return c/this.value*b};this.toString=function(){return this.value+this.unit}},addClass:function(b,c){var a=b.className;b.className=a+(a&&" ")+c;return b},color:S(function(a){var b={};b.color=a.replace(/^rgba\((.*?),\s*([\d.]+)\)/,function(d,e,c){b.opacity=parseFloat(c);return"rgb("+e+")"});return b}),fontStretch:S(function(a){if(typeof a=="number"){return a}if(/%$/.test(a)){return parseFloat(a)/100}return{"ultra-condensed":0.5,"extra-condensed":0.625,condensed:0.75,"semi-condensed":0.875,"semi-expanded":1.125,expanded:1.25,"extra-expanded":1.5,"ultra-expanded":2}[a]||1}),getStyle:function(a){var b=document.defaultView;if(b&&b.getComputedStyle){return new ab(b.getComputedStyle(a,null))}if(a.currentStyle){return new ab(a.currentStyle)}return new ab(a.style)},gradient:S(function(b){var a={id:b,type:b.match(/^-([a-z]+)-gradient\(/)[1],stops:[]},e=b.substr(b.indexOf("(")).match(/([\d.]+=)?(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)/ig);for(var c=0,f=e.length,d;c<f;++c){d=e[c].split("=",2).reverse();a.stops.push([d[1]||c/(f-1),d[0]])}return a}),quotedList:S(function(a){var b=[],c=/\s*((["'])([\s\S]*?[^\\])\2|[^,]+)\s*/g,d;while(d=c.exec(a)){b.push(d[3]||d[1])}return b}),recognizesMedia:S(function(a){var c=document.createElement("style"),d,e,f;c.type="text/css";c.media=a;try{c.appendChild(document.createTextNode("/**/"))}catch(b){}e=V("head")[0];e.insertBefore(c,e.firstChild);d=(c.sheet||c.styleSheet);f=d&&!d.disabled;e.removeChild(c);return f}),removeClass:function(a,b){var c=RegExp("(?:^|\\s+)"+b+"(?=\\s|$)","g");a.className=a.className.replace(c,"");return a},supports:function(a,b){var c=document.createElement("span").style;if(c[a]===undefined){return false}c[a]=b;return c[a]===b},textAlign:function(a,b,d,c){if(b.get("textAlign")=="right"){if(d>0){a=" "+a}}else{if(d<c-1){a+=" "}}return a},textShadow:S(function(b){if(b=="none"){return null}var c=[],a={},f,e=0;var d=/(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)|(-?[\d.]+[a-z%]*)|,/ig;while(f=d.exec(b)){if(f[0]==","){c.push(a);a={};e=0}else{if(f[1]){a.color=f[1]}else{a[["offX","offY","blur"][e++]]=f[2]}}}c.push(a);return c}),textTransform:(function(){var a={uppercase:function(b){return b.toUpperCase()},lowercase:function(b){return b.toLowerCase()},capitalize:function(b){return b.replace(/\b./g,function(c){return c.toUpperCase()})}};return function(b,c){var d=a[c.get("textTransform")];return d?d(b):b}})(),whiteSpace:(function(){var a={inline:1,"inline-block":1,"run-in":1};var b=/^\s+/,c=/\s+$/;return function(d,f,e,g){if(g){if(g.nodeName.toLowerCase()=="br"){d=d.replace(b,"")}}if(a[f.get("display")]){return d}if(!e.previousSibling){d=d.replace(b,"")}if(!e.nextSibling){d=d.replace(c,"")}return d}})()};O.ready=(function(){var c=!O.recognizesMedia("all"),i=false;var a=[],f=function(){c=true;for(var j;j=a.shift();j()){}};var e=V("link"),d=V("style");function b(j){return j.disabled||g(j.sheet,j.media||"screen")}function g(p,m){if(!O.recognizesMedia(m||"all")){return true}if(!p||p.disabled){return false}try{var l=p.cssRules,n;if(l){search:for(var j=0,k=l.length;n=l[j],j<k;++j){switch(n.type){case 2:break;case 3:if(!g(n.styleSheet,n.media.mediaText)){return false}break;default:break search}}}}catch(o){}return true}function h(){if(document.createStyleSheet){return true}var j,k;for(k=0;j=e[k];++k){if(j.rel.toLowerCase()=="stylesheet"&&!b(j)){return false}}for(k=0;j=d[k];++k){if(!b(j)){return false}}return true}D.ready(function(){if(!i){i=O.getStyle(document.body).isUsable()}if(c||(i&&h())){f()}else{setTimeout(arguments.callee,10)}});return function(j){if(c){j()}else{a.push(j)}}})();function I(a){var b=this.face=a.face,c={"\u0020":1,"\u00a0":1,"\u3000":1};this.glyphs=a.glyphs;this.w=a.w;this.baseSize=parseInt(b["units-per-em"],10);this.family=b["font-family"].toLowerCase();this.weight=b["font-weight"];this.style=b["font-style"]||"normal";this.viewBox=(function(){var d=b.bbox.split(/\s+/);var e={minX:parseInt(d[0],10),minY:parseInt(d[1],10),maxX:parseInt(d[2],10),maxY:parseInt(d[3],10)};e.width=e.maxX-e.minX;e.height=e.maxY-e.minY;e.toString=function(){return[this.minX,this.minY,this.width,this.height].join(" ")};return e})();this.ascent=-parseInt(b.ascent,10);this.descent=-parseInt(b.descent,10);this.height=-this.ascent+this.descent;this.spacing=function(h,f,o){var e=this.glyphs,g,i,m,d=[],n=0,j=-1,k=-1,l;while(l=h[++j]){g=e[l]||this.missingGlyph;if(!g){continue}if(i){n-=m=i[l]||0;d[k]-=m}n+=d[++k]=~~(g.w||this.w)+f+(c[l]?o:0);i=g.k}d.total=n;return d}}function W(){var a={},b={oblique:"italic",italic:"oblique"};this.add=function(c){(a[c.style]||(a[c.style]={}))[c.weight]=c};this.get=function(f,e){var g=a[f]||a[b[f]]||a.normal||a.italic||a.oblique;if(!g){return null}e={normal:400,bold:700}[e]||parseInt(e,10);if(g[e]){return g[e]}var i={1:1,99:0}[e%100],c=[],h,j;if(i===undefined){i=e>400}if(e==500){e=400}for(var d in g){if(!R(g,d)){continue}d=parseInt(d,10);if(!h||d<h){h=d}if(!j||d>j){j=d}c.push(d)}if(e<h){e=h}if(e>j){e=j}c.sort(function(l,k){return(i?(l>=e&&k>=e)?l<k:l>k:(l<=e&&k<=e)?l>k:l<k)?-1:1});return g[c[0]]}}function J(){function b(f,e){if(f.contains){return f.contains(e)}return f.compareDocumentPosition(e)&16}function d(e){var f=e.relatedTarget;if(!f||b(this,f)){return}c(this,e.type=="mouseover")}function a(e){c(this,e.type=="mouseenter")}function c(f,e){setTimeout(function(){var g=Y.get(f).options;P.replace(f,e?U(g,g.hover):g,true)},10)}this.attach=function(e){if(e.onmouseenter===undefined){K(e,"mouseover",d);K(e,"mouseout",d)}else{K(e,"mouseenter",a);K(e,"mouseleave",a)}}}function G(){var b=[],a={};function c(d){var g=[],e;for(var f=0;e=d[f];++f){g[f]=b[a[e]]}return g}this.add=function(d,e){a[d]=b.push(e)-1};this.repeat=function(){var f=arguments.length?c(arguments):b,e;for(var d=0;e=f[d++];){P.replace(e[0],e[1],true)}}}function M(){var a={},c=0;function b(d){return d.cufid||(d.cufid=++c)}this.get=function(e){var d=b(e);return a[d]||(a[d]={})}}function ab(c){var a={},b={};this.extend=function(e){for(var d in e){if(R(e,d)){a[d]=e[d]}}return this};this.get=function(d){return a[d]!=undefined?a[d]:c[d]};this.getSize=function(d,e){return b[d]||(b[d]=new O.Size(this.get(d),e))};this.isUsable=function(){return !!c}}function K(b,c,a){if(b.addEventListener){b.addEventListener(c,a,false)}else{if(b.attachEvent){b.attachEvent("on"+c,function(){return a.call(b,window.event)})}}}function F(b,c){var a=Y.get(b);if(a.options){return b}if(c.hover&&c.hoverables[b.nodeName.toLowerCase()]){aa.attach(b)}a.options=c;return b}function S(b){var a={};return function(c){if(!R(a,c)){a[c]=b.apply(null,arguments)}return a[c]}}function Z(a,b){var e=O.quotedList(b.get("fontFamily").toLowerCase()),c;for(var d=0;c=e[d];++d){if(T[c]){return T[c].get(b.get("fontStyle"),b.get("fontWeight"))}}return null}function V(a){return document.getElementsByTagName(a)}function R(a,b){return a.hasOwnProperty(b)}function U(){var d={},e,a;for(var b=0,c=arguments.length;e=arguments[b],b<c;++b){for(a in e){if(R(e,a)){d[a]=e[a]}}}return d}function N(m,e,b,d,l,a){var g=document.createDocumentFragment(),j;if(e===""){return g}var f=d.separate;var i=e.split(L[f]),c=(f=="words");if(c&&H){if(/^\s/.test(e)){i.unshift("")}if(/\s$/.test(e)){i.push("")}}for(var h=0,k=i.length;h<k;++h){j=B[d.engine](m,c?O.textAlign(i[h],b,h,k):i[h],b,d,l,a,h<k-1);if(j){g.appendChild(j)}}return g}function Q(a,d){var b=a.nodeName.toLowerCase();if(d.ignore[b]){return}var l=!d.textless[b];var c=O.getStyle(F(a,d)).extend(d);var k=Z(a,c),j,f,h,i,e,g;if(!k){return}for(j=a.firstChild;j;j=h){f=j.nodeType;h=j.nextSibling;if(l&&f==3){if(i){i.appendData(j.data);a.removeChild(j)}else{i=j}if(h){continue}}if(i){a.replaceChild(N(k,O.whiteSpace(i.data,c,i,g),c,d,j,a),i);i=null}if(f==1){if(j.firstChild){if(j.nodeName.toLowerCase()=="cufon"){B[d.engine](k,null,c,d,j,a)}else{arguments.callee(j,d)}}g=j}}}var H=" ".split(/\s+/).length==0;var Y=new M();var aa=new J();var C=new G();var X=false;var B={},T={},E={autoDetect:false,engine:null,forceHitArea:false,hover:false,hoverables:{a:true},ignore:{applet:1,canvas:1,col:1,colgroup:1,head:1,iframe:1,map:1,optgroup:1,option:1,script:1,select:1,style:1,textarea:1,title:1,pre:1},printable:true,selector:(window.Sizzle||(window.jQuery&&function(a){return jQuery(a)})||(window.dojo&&dojo.query)||(window.Ext&&Ext.query)||(window.YAHOO&&YAHOO.util&&YAHOO.util.Selector&&YAHOO.util.Selector.query)||(window.$$&&function(a){return $$(a)})||(window.$&&function(a){return $(a)})||(document.querySelectorAll&&function(a){return document.querySelectorAll(a)})||V),separate:"words",textless:{dl:1,html:1,ol:1,table:1,tbody:1,thead:1,tfoot:1,tr:1,ul:1},textShadow:"none"};var L={words:/\s/.test("\u00a0")?/[^\S\u00a0]+/:/\s+/,characters:"",none:/^/};P.now=function(){D.ready();return P};P.refresh=function(){C.repeat.apply(C,arguments);return P};P.registerEngine=function(a,b){if(!b){return P}B[a]=b;return P.set("engine",a)};P.registerFont=function(a){if(!a){return P}var c=new I(a),b=c.family;if(!T[b]){T[b]=new W()}T[b].add(c);return P.set("fontFamily",'"'+b+'"')};P.replace=function(a,b,c){b=U(E,b);if(!b.engine){return P}if(!X){O.addClass(D.root(),"cufon-active cufon-loading");O.ready(function(){O.addClass(O.removeClass(D.root(),"cufon-loading"),"cufon-ready")});X=true}if(b.hover){b.forceHitArea=true}if(b.autoDetect){delete b.fontFamily}if(typeof b.textShadow=="string"){b.textShadow=O.textShadow(b.textShadow)}if(typeof b.color=="string"&&/^-/.test(b.color)){b.textGradient=O.gradient(b.color)}else{delete b.textGradient}if(!c){C.add(a,arguments)}if(a.nodeType||typeof a=="string"){a=[a]}O.ready(function(){for(var e=0,f=a.length;e<f;++e){var d=a[e];if(typeof d=="string"){P.replace(b.selector(d),b,true)}else{Q(d,b)}}});return P};P.set=function(b,a){E[b]=a;return P};return P})();Cufon.registerEngine("canvas",(function(){var g=document.createElement("canvas");if(!g||!g.getContext||!g.getContext.apply){return}g=null;var h=Cufon.CSS.supports("display","inline-block");var j=!h&&(document.compatMode=="BackCompat"||/frameset|transitional/i.test(document.doctype.publicId));var i=document.createElement("style");i.type="text/css";i.appendChild(document.createTextNode(("cufon{text-indent:0;}@media screen,projection{cufon{display:inline;display:inline-block;position:relative;vertical-align:middle;"+(j?"":"font-size:1px;line-height:1px;")+"}cufon cufontext{display:-moz-inline-box;display:inline-block;width:0;height:0;overflow:hidden;text-indent:-10000in;}"+(h?"cufon canvas{position:relative;}":"cufon canvas{position:absolute;}")+"}@media print{cufon{padding:0;}cufon canvas{display:none;}}").replace(/;/g,"!important;")));document.getElementsByTagName("head")[0].appendChild(i);function k(a,r){var c=0,d=0;var s=[],b=/([mrvxe])([^a-z]*)/g,f;generate:for(var q=0;f=b.exec(a);++q){var e=f[2].split(",");switch(f[1]){case"v":s[q]={m:"bezierCurveTo",a:[c+~~e[0],d+~~e[1],c+~~e[2],d+~~e[3],c+=~~e[4],d+=~~e[5]]};break;case"r":s[q]={m:"lineTo",a:[c+=~~e[0],d+=~~e[1]]};break;case"m":s[q]={m:"moveTo",a:[c=~~e[0],d=~~e[1]]};break;case"x":s[q]={m:"closePath"};break;case"e":break generate}r[s[q].m].apply(r,s[q].a)}return s}function l(a,b){for(var c=0,d=a.length;c<d;++c){var e=a[c];b[e.m].apply(b,e.a)}}return function(e,aw,ad,az,aq,d){var aH=(aw===null);if(aH){aw=aq.getAttribute("alt")}var at=e.viewBox;var aG=ad.getSize("fontSize",e.baseSize);var ar=0,ae=0,af=0,ay=0;var av=az.textShadow,ah=[];if(av){for(var f=av.length;f--;){var an=av[f];var ai=aG.convertFrom(parseFloat(an.offX));var ak=aG.convertFrom(parseFloat(an.offY));ah[f]=[ai,ak];if(ak<ar){ar=ak}if(ai>ae){ae=ai}if(ak>af){af=ak}if(ai<ay){ay=ai}}}var a=Cufon.CSS.textTransform(aw,ad).split("");var ao=e.spacing(a,~~aG.convertFrom(parseFloat(ad.get("letterSpacing"))||0),~~aG.convertFrom(parseFloat(ad.get("wordSpacing"))||0));if(!ao.length){return null}var aJ=ao.total;ae+=at.width-ao[ao.length-1];ay+=at.minX;var aA,aF;if(aH){aA=aq;aF=aq.firstChild}else{aA=document.createElement("cufon");aA.className="cufon cufon-canvas";aA.setAttribute("alt",aw);aF=document.createElement("canvas");aA.appendChild(aF);if(az.printable){var y=document.createElement("cufontext");y.appendChild(document.createTextNode(aw));aA.appendChild(y)}}var au=aA.style;var al=aF.style;var aI=aG.convert(at.height);var b=Math.ceil(aI);var ag=b/aI;var am=ag*Cufon.CSS.fontStretch(ad.get("fontStretch"));var aj=aJ*am;var ac=Math.ceil(aG.convert(aj+ae-ay));var aE=Math.ceil(aG.convert(at.height-ar+af));aF.width=ac;aF.height=aE;al.width=ac+"px";al.height=aE+"px";ar+=at.minY;al.top=Math.round(aG.convert(ar-e.ascent))+"px";al.left=Math.round(aG.convert(ay))+"px";var aB=Math.max(Math.ceil(aG.convert(aj)),0)+"px";if(h){au.width=aB;au.height=aG.convert(e.height)+"px"}else{au.paddingLeft=aB;au.paddingBottom=(aG.convert(e.height)-1)+"px"}var c=aF.getContext("2d"),ap=aI/at.height;c.scale(ap,ap*ag);c.translate(-ay,-ar);c.save();function x(){var m=e.glyphs,p,n=-1,o=-1,q;c.scale(am,1);while(q=a[++n]){var p=m[a[n]]||e.missingGlyph;if(!p){continue}if(p.d){c.beginPath();if(p.code){l(p.code,c)}else{p.code=k("m"+p.d,c)}c.fill()}c.translate(ao[++o],0)}c.restore()}if(av){for(var f=av.length;f--;){var an=av[f];c.save();c.fillStyle=an.color;c.translate.apply(c,ah[f]);x()}}var aC=az.textGradient;if(aC){var ax=aC.stops,aD=c.createLinearGradient(0,at.minY,0,at.maxY);for(var f=0,ab=ax.length;f<ab;++f){aD.addColorStop.apply(aD,ax[f])}c.fillStyle=aD}else{c.fillStyle=ad.get("color")}x();return aA}})());Cufon.registerEngine("vml",(function(){var n=document.namespaces;if(!n){return}n.add("cvml","urn:schemas-microsoft-com:vml");n=null;var i=document.createElement("cvml:shape");i.style.behavior="url(#default#VML)";if(!i.coordsize){return}i=null;var k=(document.documentMode||0)<8;document.write(('<style type="text/css">cufoncanvas{text-indent:0;}@media screen{cvml\\:shape,cvml\\:rect,cvml\\:fill,cvml\\:shadow{behavior:url(#default#VML);display:block;antialias:true;position:absolute;}cufoncanvas{position:absolute;text-align:left;}cufon{display:inline-block;position:relative;vertical-align:'+(k?"middle":"text-bottom")+";}cufon cufontext{position:absolute;left:-10000in;font-size:1px;}a cufon{cursor:pointer}}@media print{cufon cufoncanvas{display:none;}}</style>").replace(/;/g,"!important;"));function p(b,a){return j(b,/(?:em|ex|%)$|^[a-z-]+$/i.test(a)?"1em":a)}function j(b,a){if(a==="0"){return 0}if(/px$/i.test(a)){return parseFloat(a)}var c=b.style.left,d=b.runtimeStyle.left;b.runtimeStyle.left=b.currentStyle.left;b.style.left=a.replace("%","em");var e=b.style.pixelLeft;b.style.left=c;b.runtimeStyle.left=d;return e}function m(b,c,d,f){var e="computed"+f,a=c[e];if(isNaN(a)){a=c.get(f);c[e]=a=(a=="normal")?0:~~d.convertFrom(j(b,a))}return a}var l={};function o(e){var d=e.id;if(!l[d]){var g=e.stops,f=document.createElement("cvml:fill"),c=[];f.type="gradient";f.angle=180;f.focus="0";f.method="sigma";f.color=g[0][1];for(var a=1,b=g.length-1;a<b;++a){c.push(g[a][0]*100+"% "+g[a][1])}f.colors=c.join(",");f.color2=g[b][1];l[d]=f}return l[d]}return function(aH,ax,b,aF,aq,aE,d){var aX=(ax===null);if(aX){ax=aq.alt}var at=aH.viewBox;var aV=b.computedFontSize||(b.computedFontSize=new Cufon.CSS.Size(p(aE,b.get("fontSize"))+"px",aH.baseSize));var aM,aU;if(aX){aM=aq;aU=aq.firstChild}else{aM=document.createElement("cufon");aM.className="cufon cufon-vml";aM.alt=ax;aU=document.createElement("cufoncanvas");aM.appendChild(aU);if(aF.printable){var a=document.createElement("cufontext");a.appendChild(document.createTextNode(ax));aM.appendChild(a)}if(!d){aM.appendChild(document.createElement("cvml:shape"))}}var au=aM.style;var aj=aU.style;var aZ=aV.convert(at.height),aB=Math.ceil(aZ);var e=aB/aZ;var al=e*Cufon.CSS.fontStretch(b.get("fontStretch"));var f=at.minX,g=at.minY;aj.height=aB;aj.top=Math.round(aV.convert(g-aH.ascent));aj.left=Math.round(aV.convert(f));au.height=aV.convert(aH.height)+"px";var az=b.get("color");var ay=Cufon.CSS.textTransform(ax,b).split("");var ap=aH.spacing(ay,m(aE,b,aV,"letterSpacing"),m(aE,b,aV,"wordSpacing"));if(!ap.length){return null}var a0=ap.total;var aN=-f+a0+(at.width-ap[ap.length-1]);var aw=aV.convert(aN*al),c=Math.round(aw);var am=aN+","+at.height,aY;var ar="r"+am+"ns";var aQ=aF.textGradient&&o(aF.textGradient);var aW=aH.glyphs,h=0;var av=aF.textShadow;var aJ=-1,aK=0,aO;while(aO=ay[++aJ]){var aD=aW[ay[aJ]]||aH.missingGlyph,aP;if(!aD){continue}if(aX){aP=aU.childNodes[aK];while(aP.firstChild){aP.removeChild(aP.firstChild)}}else{aP=document.createElement("cvml:shape");aU.appendChild(aP)}aP.stroked="f";aP.coordsize=am;aP.coordorigin=aY=(f-h)+","+g;aP.path=(aD.d?"m"+aD.d+"xe":"")+"m"+aY+ar;aP.fillcolor=az;if(aQ){aP.appendChild(aQ.cloneNode(false))}var aC=aP.style;aC.width=c;aC.height=aB;if(av){var aS=av[0],aT=av[1];var aG=Cufon.CSS.color(aS.color),aL;var an=document.createElement("cvml:shadow");an.on="t";an.color=aG.color;an.offset=aS.offX+","+aS.offY;if(aT){aL=Cufon.CSS.color(aT.color);an.type="double";an.color2=aL.color;an.offset2=aT.offX+","+aT.offY}an.opacity=aG.opacity||(aL&&aL.opacity)||1;aP.appendChild(an)}h+=ap[aK++]}var ao=aP.nextSibling,aR,aI;if(aF.forceHitArea){if(!ao){ao=document.createElement("cvml:rect");ao.stroked="f";ao.className="cufon-vml-cover";aR=document.createElement("cvml:fill");aR.opacity=0;ao.appendChild(aR);aU.appendChild(ao)}aI=ao.style;aI.width=c;aI.height=aB}else{if(ao){aU.removeChild(ao)}}au.width=Math.max(Math.ceil(aV.convert(a0*al)),0);if(k){var ak=b.computedYAdjust;if(ak===undefined){var aA=b.get("lineHeight");if(aA=="normal"){aA="1em"}else{if(!isNaN(aA)){aA+="em"}}b.computedYAdjust=ak=0.5*(j(aE,aA)-parseFloat(au.height))}if(ak){au.marginTop=Math.ceil(ak)+"px";au.marginBottom=ak+"px"}}return aM}})());jQuery.fn.acc=function(_options){var _options=jQuery.extend({speed:400,active:"active",list:".children()",opener:"a.opener",slide:"div.slide"},_options);return this.each(function(){var _list=eval("$(this)"+_options.list);var _active=_options.active;var _speed=_options.speed;var _a=_list.index(_list.filter("."+_active+":eq(0)"));if(_a!=-1){_list.removeClass(_active).eq(_a).addClass(_active)}for(var i=0;i<_list.length;i++){_list.eq(i).data("btn",_list.eq(i).find(_options.opener).eq(0));_list.eq(i).data("box",_list.eq(i).find(_options.slide).eq(0));if(i==_a){_list.eq(i).data("box").css("display","block")}else{_list.eq(i).data("box").css("display","none")}_list.eq(i).data("btn").data("ind",i);_list.eq(i).data("btn").click(function(){changeEl($(this).data("ind"));return false})}var anim_f=true;var a_h,ind_h,_k;function changeEl(_ind){if(anim_f){anim_f=false;if(_a==_ind){_list.eq(_a).removeClass(_active).data("box").animate({height:0},{duration:_speed,complete:function(){$(this).css({display:"none",height:"auto"});_a=-1;anim_f=true}})}else{_list.eq(_ind).data("box").css("display","block");ind_h=_list.eq(_ind).data("box").outerHeight();_list.eq(_ind).data("box").height(0);if(_a!=-1){a_h=_list.eq(_a).removeClass(_active).data("box").outerHeight();_k=a_h/ind_h}_list.eq(_ind).addClass(_active).data("box").animate({height:ind_h},{duration:_speed,step:function(t_h){if(_a!=-1){_list.eq(_a).data("box").height(a_h-t_h*_k)}},complete:function(){_list.eq(_ind).data("box").height("auto");if(_a!=-1){_list.eq(_a).data("box").css({display:"none",height:"auto"})}_a=_ind;anim_f=true}})}}}})};jQuery.fn.overlay=function(a){var a=jQuery.extend({opacity:"70",color:"#000",window_width:"400",window_height:"300",window_background_color:"#fff",close_img:"images/close.bmp",src:"<p>Dit is de overlay</p>"},a);return $(this).each(function(){var c=$(this);var b=parseInt(a.window_height)/2;b=b+"px";var e=parseInt(a.window_width)/2;e=e+"px";var d=c.offset().top;$("html,body").animate({scrollTop:d},500,function(){if($("#overlay").length==0){c.css({overflow:"hidden"});c.append('<div id="overlay" style="z-index: 9998; position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: '+a.color+"; opacity:."+a.opacity+"; filter: alpha(opacity="+a.opacity+"); -moz-opacity: 0."+a.opacity+';"></div>');c.append('<div id="overlay-window" style="margin-top: -'+b+"; margin-left: -"+e+"; z-index: 9999;position: absolute; left: 50%; top: 50%; width: "+a.window_width+"px; height: "+a.window_height+"px; background-color: "+a.window_background_color+';"><div class="inner_window"><a href="javascript:;" class="close-overlay" id="btn-close-overlay"><img src="'+a.close_img+'" alt="Sluiten" /></a>'+a.src+"</div></div>");$(".close-overlay").click(function(f){f.preventDefault();$("#overlay").remove();$("#overlay-window").remove();c.css({overflow:"auto"})})}})})};