(function($) {
	$.fn.tekstslider = function(options) {
		var opts = $.extend({}, $.fn.tekstslider.defaults, options);
		
		return this.each(function() {
			var $this 			= $(this);
			$this.opts 			= $.extend({}, opts);
			$this.opts.current	= -1;
			$(this).find('div:not(.files, .box)').css({clear:'both',display:'block',width:629,height:0, overflow: 'hidden'});
			$(this).find('h2.slideheader').click(function(){
					$h1 = $(this);
					$div = $h1.next()
					if( !$h1.hasClass('slideheaderActive'))	{
					$h1.addClass('slideheaderActive');				
					$div.animate({height: $($div).find('div').height()+30}, 300, function(){
						Cufon.refresh();
					});
					}else{
					$h1.removeClass('slideheaderActive');
					$div.animate({height: 0}, 300, function(){Cufon.refresh();});
					}
			});
			setTimeout(function(){
			}, 500);
			
		});
	};
})(jQuery);

(function(D){var A="Lite-1.0";D.fn.cycle=function(E){return this.each(function(){E=E||{};if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=0;this.cyclePause=0;var I=D(this);var J=E.slideExpr?D(E.slideExpr,this):I.children();var G=J.get();if(G.length<2){if(window.console&&window.console.log){window.console.log("terminating; too few slides: "+G.length)}return }var H=D.extend({},D.fn.cycle.defaults,E||{},D.metadata?I.metadata():D.meta?I.data():{});H.before=H.before?[H.before]:[];H.after=H.after?[H.after]:[];H.after.unshift(function(){H.busy=0});var F=this.className;H.width=parseInt((F.match(/w:(\d+)/)||[])[1])||H.width;H.height=parseInt((F.match(/h:(\d+)/)||[])[1])||H.height;H.timeout=parseInt((F.match(/t:(\d+)/)||[])[1])||H.timeout;if(I.css("position")=="static"){I.css("position","relative")}if(H.width){I.width(H.width)}if(H.height&&H.height!="auto"){I.height(H.height)}var K=0;J.css({position:"absolute",top:0,left:0}).hide().each(function(M){D(this).css("z-index",G.length-M)});D(G[K]).css("opacity",1).show();if(D.browser.msie){G[K].style.removeAttribute("filter")}if(H.fit&&H.width){J.width(H.width)}if(H.fit&&H.height&&H.height!="auto"){J.height(H.height)}if(H.pause){I.hover(function(){this.cyclePause=1},function(){this.cyclePause=0})}D.fn.cycle.transitions.fade(I,J,H);J.each(function(){var M=D(this);this.cycleH=(H.fit&&H.height)?H.height:M.height();this.cycleW=(H.fit&&H.width)?H.width:M.width()});J.not(":eq("+K+")").css({opacity:0});if(H.cssFirst){D(J[K]).css(H.cssFirst)}if(H.timeout){if(H.speed.constructor==String){H.speed={slow:600,fast:200}[H.speed]||400}if(!H.sync){H.speed=H.speed/2}while((H.timeout-H.speed)<250){H.timeout+=H.speed}}H.speedIn=H.speed;H.speedOut=H.speed;H.slideCount=G.length;H.currSlide=K;H.nextSlide=1;var L=J[K];if(H.before.length){H.before[0].apply(L,[L,L,H,true])}if(H.after.length>1){H.after[1].apply(L,[L,L,H,true])}if(H.click&&!H.next){H.next=H.click}if(H.next){D(H.next).bind("click",function(){return C(G,H,H.rev?-1:1)})}if(H.prev){D(H.prev).bind("click",function(){return C(G,H,H.rev?1:-1)})}if(H.timeout){this.cycleTimeout=setTimeout(function(){B(G,H,0,!H.rev)},H.timeout+(H.delay||0))}})};function B(J,E,I,K){if(E.busy){return }var H=J[0].parentNode,M=J[E.currSlide],L=J[E.nextSlide];if(H.cycleTimeout===0&&!I){return }if(I||!H.cyclePause){if(E.before.length){D.each(E.before,function(N,O){O.apply(L,[M,L,E,K])})}var F=function(){if(D.browser.msie){this.style.removeAttribute("filter")}D.each(E.after,function(N,O){O.apply(L,[M,L,E,K])})};if(E.nextSlide!=E.currSlide){E.busy=1;D.fn.cycle.custom(M,L,E,F)}var G=(E.nextSlide+1)==J.length;E.nextSlide=G?0:E.nextSlide+1;E.currSlide=G?J.length-1:E.nextSlide-1}if(E.timeout){H.cycleTimeout=setTimeout(function(){B(J,E,0,!E.rev)},E.timeout)}}function C(E,F,I){var H=E[0].parentNode,G=H.cycleTimeout;if(G){clearTimeout(G);H.cycleTimeout=0}F.nextSlide=F.currSlide+I;if(F.nextSlide<0){F.nextSlide=E.length-1}else{if(F.nextSlide>=E.length){F.nextSlide=0}}B(E,F,1,I>=0);return false}D.fn.cycle.custom=function(K,H,I,E){var J=D(K),G=D(H);G.css({opacity:0});var F=function(){G.animate({opacity:1},I.speedIn,I.easeIn,E)};J.animate({opacity:0},I.speedOut,I.easeOut,function(){J.css({display:"none"});if(!I.sync){F()}});if(I.sync){F()}};D.fn.cycle.transitions={fade:function(F,G,E){G.not(":eq(0)").css("opacity",0);E.before.push(function(){D(this).show()})}};D.fn.cycle.ver=function(){return A};D.fn.cycle.defaults={timeout:4000,speed:1000,next:null,prev:null,before:null,after:null,height:"auto",sync:1,fit:0,pause:0,delay:0,slideExpr:null}})(jQuery)

/*
 * Copyright (c) 2009 Simo Kinnunen.
 * Licensed under the MIT license.
 *
 * @version 1.09
 */
var Cufon=(function(){var m=function(){return m.replace.apply(null,arguments)};var x=m.DOM={ready:(function(){var C=false,E={loaded:1,complete:1};var B=[],D=function(){if(C){return}C=true;for(var F;F=B.shift();F()){}};if(document.addEventListener){document.addEventListener("DOMContentLoaded",D,false);window.addEventListener("pageshow",D,false)}if(!window.opera&&document.readyState){(function(){E[document.readyState]?D():setTimeout(arguments.callee,10)})()}if(document.readyState&&document.createStyleSheet){(function(){try{document.body.doScroll("left");D()}catch(F){setTimeout(arguments.callee,1)}})()}q(window,"load",D);return function(F){if(!arguments.length){D()}else{C?F():B.push(F)}}})(),root:function(){return document.documentElement||document.body}};var n=m.CSS={Size:function(C,B){this.value=parseFloat(C);this.unit=String(C).match(/[a-z%]*$/)[0]||"px";this.convert=function(D){return D/B*this.value};this.convertFrom=function(D){return D/this.value*B};this.toString=function(){return this.value+this.unit}},addClass:function(C,B){var D=C.className;C.className=D+(D&&" ")+B;return C},color:j(function(C){var B={};B.color=C.replace(/^rgba\((.*?),\s*([\d.]+)\)/,function(E,D,F){B.opacity=parseFloat(F);return"rgb("+D+")"});return B}),fontStretch:j(function(B){if(typeof B=="number"){return B}if(/%$/.test(B)){return parseFloat(B)/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}[B]||1}),getStyle:function(C){var B=document.defaultView;if(B&&B.getComputedStyle){return new a(B.getComputedStyle(C,null))}if(C.currentStyle){return new a(C.currentStyle)}return new a(C.style)},gradient:j(function(F){var G={id:F,type:F.match(/^-([a-z]+)-gradient\(/)[1],stops:[]},C=F.substr(F.indexOf("(")).match(/([\d.]+=)?(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)/ig);for(var E=0,B=C.length,D;E<B;++E){D=C[E].split("=",2).reverse();G.stops.push([D[1]||E/(B-1),D[0]])}return G}),quotedList:j(function(E){var D=[],C=/\s*((["'])([\s\S]*?[^\\])\2|[^,]+)\s*/g,B;while(B=C.exec(E)){D.push(B[3]||B[1])}return D}),recognizesMedia:j(function(G){var E=document.createElement("style"),D,C,B;E.type="text/css";E.media=G;try{E.appendChild(document.createTextNode("/**/"))}catch(F){}C=g("head")[0];C.insertBefore(E,C.firstChild);D=(E.sheet||E.styleSheet);B=D&&!D.disabled;C.removeChild(E);return B}),removeClass:function(D,C){var B=RegExp("(?:^|\\s+)"+C+"(?=\\s|$)","g");D.className=D.className.replace(B,"");return D},supports:function(D,C){var B=document.createElement("span").style;if(B[D]===undefined){return false}B[D]=C;return B[D]===C},textAlign:function(E,D,B,C){if(D.get("textAlign")=="right"){if(B>0){E=" "+E}}else{if(B<C-1){E+=" "}}return E},textShadow:j(function(F){if(F=="none"){return null}var E=[],G={},B,C=0;var D=/(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)|(-?[\d.]+[a-z%]*)|,/ig;while(B=D.exec(F)){if(B[0]==","){E.push(G);G={};C=0}else{if(B[1]){G.color=B[1]}else{G[["offX","offY","blur"][C++]]=B[2]}}}E.push(G);return E}),textTransform:(function(){var B={uppercase:function(C){return C.toUpperCase()},lowercase:function(C){return C.toLowerCase()},capitalize:function(C){return C.replace(/\b./g,function(D){return D.toUpperCase()})}};return function(E,D){var C=B[D.get("textTransform")];return C?C(E):E}})(),whiteSpace:(function(){var D={inline:1,"inline-block":1,"run-in":1};var C=/^\s+/,B=/\s+$/;return function(H,F,G,E){if(E){if(E.nodeName.toLowerCase()=="br"){H=H.replace(C,"")}}if(D[F.get("display")]){return H}if(!G.previousSibling){H=H.replace(C,"")}if(!G.nextSibling){H=H.replace(B,"")}return H}})()};n.ready=(function(){var B=!n.recognizesMedia("all"),E=false;var D=[],H=function(){B=true;for(var K;K=D.shift();K()){}};var I=g("link"),J=g("style");function C(K){return K.disabled||G(K.sheet,K.media||"screen")}function G(M,P){if(!n.recognizesMedia(P||"all")){return true}if(!M||M.disabled){return false}try{var Q=M.cssRules,O;if(Q){search:for(var L=0,K=Q.length;O=Q[L],L<K;++L){switch(O.type){case 2:break;case 3:if(!G(O.styleSheet,O.media.mediaText)){return false}break;default:break search}}}}catch(N){}return true}function F(){if(document.createStyleSheet){return true}var L,K;for(K=0;L=I[K];++K){if(L.rel.toLowerCase()=="stylesheet"&&!C(L)){return false}}for(K=0;L=J[K];++K){if(!C(L)){return false}}return true}x.ready(function(){if(!E){E=n.getStyle(document.body).isUsable()}if(B||(E&&F())){H()}else{setTimeout(arguments.callee,10)}});return function(K){if(B){K()}else{D.push(K)}}})();function s(D){var C=this.face=D.face,B={"\u0020":1,"\u00a0":1,"\u3000":1};this.glyphs=D.glyphs;this.w=D.w;this.baseSize=parseInt(C["units-per-em"],10);this.family=C["font-family"].toLowerCase();this.weight=C["font-weight"];this.style=C["font-style"]||"normal";this.viewBox=(function(){var F=C.bbox.split(/\s+/);var E={minX:parseInt(F[0],10),minY:parseInt(F[1],10),maxX:parseInt(F[2],10),maxY:parseInt(F[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(C.ascent,10);this.descent=-parseInt(C.descent,10);this.height=-this.ascent+this.descent;this.spacing=function(L,N,E){var O=this.glyphs,M,K,G,P=[],F=0,J=-1,I=-1,H;while(H=L[++J]){M=O[H]||this.missingGlyph;if(!M){continue}if(K){F-=G=K[H]||0;P[I]-=G}F+=P[++I]=~~(M.w||this.w)+N+(B[H]?E:0);K=M.k}P.total=F;return P}}function f(){var C={},B={oblique:"italic",italic:"oblique"};this.add=function(D){(C[D.style]||(C[D.style]={}))[D.weight]=D};this.get=function(H,I){var G=C[H]||C[B[H]]||C.normal||C.italic||C.oblique;if(!G){return null}I={normal:400,bold:700}[I]||parseInt(I,10);if(G[I]){return G[I]}var E={1:1,99:0}[I%100],K=[],F,D;if(E===undefined){E=I>400}if(I==500){I=400}for(var J in G){if(!k(G,J)){continue}J=parseInt(J,10);if(!F||J<F){F=J}if(!D||J>D){D=J}K.push(J)}if(I<F){I=F}if(I>D){I=D}K.sort(function(M,L){return(E?(M>=I&&L>=I)?M<L:M>L:(M<=I&&L<=I)?M>L:M<L)?-1:1});return G[K[0]]}}function r(){function D(F,G){if(F.contains){return F.contains(G)}return F.compareDocumentPosition(G)&16}function B(G){var F=G.relatedTarget;if(!F||D(this,F)){return}C(this,G.type=="mouseover")}function E(F){C(this,F.type=="mouseenter")}function C(F,G){setTimeout(function(){var H=d.get(F).options;m.replace(F,G?h(H,H.hover):H,true)},10)}this.attach=function(F){if(F.onmouseenter===undefined){q(F,"mouseover",B);q(F,"mouseout",B)}else{q(F,"mouseenter",E);q(F,"mouseleave",E)}}}function u(){var C=[],D={};function B(H){var E=[],G;for(var F=0;G=H[F];++F){E[F]=C[D[G]]}return E}this.add=function(F,E){D[F]=C.push(E)-1};this.repeat=function(){var E=arguments.length?B(arguments):C,F;for(var G=0;F=E[G++];){m.replace(F[0],F[1],true)}}}function A(){var D={},B=0;function C(E){return E.cufid||(E.cufid=++B)}this.get=function(E){var F=C(E);return D[F]||(D[F]={})}}function a(B){var D={},C={};this.extend=function(E){for(var F in E){if(k(E,F)){D[F]=E[F]}}return this};this.get=function(E){return D[E]!=undefined?D[E]:B[E]};this.getSize=function(F,E){return C[F]||(C[F]=new n.Size(this.get(F),E))};this.isUsable=function(){return !!B}}function q(C,B,D){if(C.addEventListener){C.addEventListener(B,D,false)}else{if(C.attachEvent){C.attachEvent("on"+B,function(){return D.call(C,window.event)})}}}function v(C,B){var D=d.get(C);if(D.options){return C}if(B.hover&&B.hoverables[C.nodeName.toLowerCase()]){b.attach(C)}D.options=B;return C}function j(B){var C={};return function(D){if(!k(C,D)){C[D]=B.apply(null,arguments)}return C[D]}}function c(F,E){var B=n.quotedList(E.get("fontFamily").toLowerCase()),D;for(var C=0;D=B[C];++C){if(i[D]){return i[D].get(E.get("fontStyle"),E.get("fontWeight"))}}return null}function g(B){return document.getElementsByTagName(B)}function k(C,B){return C.hasOwnProperty(B)}function h(){var C={},B,F;for(var E=0,D=arguments.length;B=arguments[E],E<D;++E){for(F in B){if(k(B,F)){C[F]=B[F]}}}return C}function o(E,M,C,N,F,D){var K=document.createDocumentFragment(),H;if(M===""){return K}var L=N.separate;var I=M.split(p[L]),B=(L=="words");if(B&&t){if(/^\s/.test(M)){I.unshift("")}if(/\s$/.test(M)){I.push("")}}for(var J=0,G=I.length;J<G;++J){H=z[N.engine](E,B?n.textAlign(I[J],C,J,G):I[J],C,N,F,D,J<G-1);if(H){K.appendChild(H)}}return K}function l(D,M){var C=D.nodeName.toLowerCase();if(M.ignore[C]){return}var E=!M.textless[C];var B=n.getStyle(v(D,M)).extend(M);var F=c(D,B),G,K,I,H,L,J;if(!F){return}for(G=D.firstChild;G;G=I){K=G.nodeType;I=G.nextSibling;if(E&&K==3){if(H){H.appendData(G.data);D.removeChild(G)}else{H=G}if(I){continue}}if(H){D.replaceChild(o(F,n.whiteSpace(H.data,B,H,J),B,M,G,D),H);H=null}if(K==1){if(G.firstChild){if(G.nodeName.toLowerCase()=="cufon"){z[M.engine](F,null,B,M,G,D)}else{arguments.callee(G,M)}}J=G}}}var t=" ".split(/\s+/).length==0;var d=new A();var b=new r();var y=new u();var e=false;var z={},i={},w={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(B){return jQuery(B)})||(window.dojo&&dojo.query)||(window.Ext&&Ext.query)||(window.YAHOO&&YAHOO.util&&YAHOO.util.Selector&&YAHOO.util.Selector.query)||(window.$$&&function(B){return $$(B)})||(window.$&&function(B){return $(B)})||(document.querySelectorAll&&function(B){return document.querySelectorAll(B)})||g),separate:"words",textless:{dl:1,html:1,ol:1,table:1,tbody:1,thead:1,tfoot:1,tr:1,ul:1},textShadow:"none"};var p={words:/\s/.test("\u00a0")?/[^\S\u00a0]+/:/\s+/,characters:"",none:/^/};m.now=function(){x.ready();return m};m.refresh=function(){y.repeat.apply(y,arguments);return m};m.registerEngine=function(C,B){if(!B){return m}z[C]=B;return m.set("engine",C)};m.registerFont=function(D){if(!D){return m}var B=new s(D),C=B.family;if(!i[C]){i[C]=new f()}i[C].add(B);return m.set("fontFamily",'"'+C+'"')};m.replace=function(D,C,B){C=h(w,C);if(!C.engine){return m}if(!e){n.addClass(x.root(),"cufon-active cufon-loading");n.ready(function(){n.addClass(n.removeClass(x.root(),"cufon-loading"),"cufon-ready")});e=true}if(C.hover){C.forceHitArea=true}if(C.autoDetect){delete C.fontFamily}if(typeof C.textShadow=="string"){C.textShadow=n.textShadow(C.textShadow)}if(typeof C.color=="string"&&/^-/.test(C.color)){C.textGradient=n.gradient(C.color)}else{delete C.textGradient}if(!B){y.add(D,arguments)}if(D.nodeType||typeof D=="string"){D=[D]}n.ready(function(){for(var F=0,E=D.length;F<E;++F){var G=D[F];if(typeof G=="string"){m.replace(C.selector(G),C,true)}else{l(G,C)}}});return m};m.set=function(B,C){w[B]=C;return m};return m})();Cufon.registerEngine("canvas",(function(){var b=document.createElement("canvas");if(!b||!b.getContext||!b.getContext.apply){return}b=null;var a=Cufon.CSS.supports("display","inline-block");var e=!a&&(document.compatMode=="BackCompat"||/frameset|transitional/i.test(document.doctype.publicId));var f=document.createElement("style");f.type="text/css";f.appendChild(document.createTextNode(("cufon{text-indent:0;}@media screen,projection{cufon{display:inline;display:inline-block;position:relative;vertical-align:middle;"+(e?"":"font-size:1px;line-height:1px;")+"}cufon cufontext{display:-moz-inline-box;display:inline-block;width:0;height:0;overflow:hidden;text-indent:-10000in;}"+(a?"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(f);function d(p,h){var n=0,m=0;var g=[],o=/([mrvxe])([^a-z]*)/g,k;generate:for(var j=0;k=o.exec(p);++j){var l=k[2].split(",");switch(k[1]){case"v":g[j]={m:"bezierCurveTo",a:[n+~~l[0],m+~~l[1],n+~~l[2],m+~~l[3],n+=~~l[4],m+=~~l[5]]};break;case"r":g[j]={m:"lineTo",a:[n+=~~l[0],m+=~~l[1]]};break;case"m":g[j]={m:"moveTo",a:[n=~~l[0],m=~~l[1]]};break;case"x":g[j]={m:"closePath"};break;case"e":break generate}h[g[j].m].apply(h,g[j].a)}return g}function c(m,k){for(var j=0,h=m.length;j<h;++j){var g=m[j];k[g.m].apply(k,g.a)}}return function(V,w,P,t,C,W){var k=(w===null);if(k){w=C.getAttribute("alt")}var A=V.viewBox;var m=P.getSize("fontSize",V.baseSize);var B=0,O=0,N=0,u=0;var z=t.textShadow,L=[];if(z){for(var U=z.length;U--;){var F=z[U];var K=m.convertFrom(parseFloat(F.offX));var I=m.convertFrom(parseFloat(F.offY));L[U]=[K,I];if(I<B){B=I}if(K>O){O=K}if(I>N){N=I}if(K<u){u=K}}}var Z=Cufon.CSS.textTransform(w,P).split("");var E=V.spacing(Z,~~m.convertFrom(parseFloat(P.get("letterSpacing"))||0),~~m.convertFrom(parseFloat(P.get("wordSpacing"))||0));if(!E.length){return null}var h=E.total;O+=A.width-E[E.length-1];u+=A.minX;var s,n;if(k){s=C;n=C.firstChild}else{s=document.createElement("cufon");s.className="cufon cufon-canvas";s.setAttribute("alt",w);n=document.createElement("canvas");s.appendChild(n);if(t.printable){var S=document.createElement("cufontext");S.appendChild(document.createTextNode(w));s.appendChild(S)}}var aa=s.style;var H=n.style;var j=m.convert(A.height);var Y=Math.ceil(j);var M=Y/j;var G=M*Cufon.CSS.fontStretch(P.get("fontStretch"));var J=h*G;var Q=Math.ceil(m.convert(J+O-u));var o=Math.ceil(m.convert(A.height-B+N));n.width=Q;n.height=o;H.width=Q+"px";H.height=o+"px";B+=A.minY;H.top=Math.round(m.convert(B-V.ascent))+"px";H.left=Math.round(m.convert(u))+"px";var r=Math.max(Math.ceil(m.convert(J)),0)+"px";if(a){aa.width=r;aa.height=m.convert(V.height)+"px"}else{aa.paddingLeft=r;aa.paddingBottom=(m.convert(V.height)-1)+"px"}var X=n.getContext("2d"),D=j/A.height;X.scale(D,D*M);X.translate(-u,-B);X.save();function T(){var x=V.glyphs,ab,l=-1,g=-1,y;X.scale(G,1);while(y=Z[++l]){var ab=x[Z[l]]||V.missingGlyph;if(!ab){continue}if(ab.d){X.beginPath();if(ab.code){c(ab.code,X)}else{ab.code=d("m"+ab.d,X)}X.fill()}X.translate(E[++g],0)}X.restore()}if(z){for(var U=z.length;U--;){var F=z[U];X.save();X.fillStyle=F.color;X.translate.apply(X,L[U]);T()}}var q=t.textGradient;if(q){var v=q.stops,p=X.createLinearGradient(0,A.minY,0,A.maxY);for(var U=0,R=v.length;U<R;++U){p.addColorStop.apply(p,v[U])}X.fillStyle=p}else{X.fillStyle=P.get("color")}T();return s}})());Cufon.registerEngine("vml",(function(){var e=document.namespaces;if(!e){return}e.add("cvml","urn:schemas-microsoft-com:vml");e=null;var b=document.createElement("cvml:shape");b.style.behavior="url(#default#VML)";if(!b.coordsize){return}b=null;var h=(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:'+(h?"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 c(i,j){return a(i,/(?:em|ex|%)$|^[a-z-]+$/i.test(j)?"1em":j)}function a(l,m){if(m==="0"){return 0}if(/px$/i.test(m)){return parseFloat(m)}var k=l.style.left,j=l.runtimeStyle.left;l.runtimeStyle.left=l.currentStyle.left;l.style.left=m.replace("%","em");var i=l.style.pixelLeft;l.style.left=k;l.runtimeStyle.left=j;return i}function f(l,k,j,n){var i="computed"+n,m=k[i];if(isNaN(m)){m=k.get(n);k[i]=m=(m=="normal")?0:~~j.convertFrom(a(l,m))}return m}var g={};function d(p){var q=p.id;if(!g[q]){var n=p.stops,o=document.createElement("cvml:fill"),i=[];o.type="gradient";o.angle=180;o.focus="0";o.method="sigma";o.color=n[0][1];for(var m=1,l=n.length-1;m<l;++m){i.push(n[m][0]*100+"% "+n[m][1])}o.colors=i.join(",");o.color2=n[l][1];g[q]=o}return g[q]}return function(ac,G,Y,C,K,ad,W){var n=(G===null);if(n){G=K.alt}var I=ac.viewBox;var p=Y.computedFontSize||(Y.computedFontSize=new Cufon.CSS.Size(c(ad,Y.get("fontSize"))+"px",ac.baseSize));var y,q;if(n){y=K;q=K.firstChild}else{y=document.createElement("cufon");y.className="cufon cufon-vml";y.alt=G;q=document.createElement("cufoncanvas");y.appendChild(q);if(C.printable){var Z=document.createElement("cufontext");Z.appendChild(document.createTextNode(G));y.appendChild(Z)}if(!W){y.appendChild(document.createElement("cvml:shape"))}}var ai=y.style;var R=q.style;var l=p.convert(I.height),af=Math.ceil(l);var V=af/l;var P=V*Cufon.CSS.fontStretch(Y.get("fontStretch"));var U=I.minX,T=I.minY;R.height=af;R.top=Math.round(p.convert(T-ac.ascent));R.left=Math.round(p.convert(U));ai.height=p.convert(ac.height)+"px";var F=Y.get("color");var ag=Cufon.CSS.textTransform(G,Y).split("");var L=ac.spacing(ag,f(ad,Y,p,"letterSpacing"),f(ad,Y,p,"wordSpacing"));if(!L.length){return null}var k=L.total;var x=-U+k+(I.width-L[L.length-1]);var ah=p.convert(x*P),X=Math.round(ah);var O=x+","+I.height,m;var J="r"+O+"ns";var u=C.textGradient&&d(C.textGradient);var o=ac.glyphs,S=0;var H=C.textShadow;var ab=-1,aa=0,w;while(w=ag[++ab]){var D=o[ag[ab]]||ac.missingGlyph,v;if(!D){continue}if(n){v=q.childNodes[aa];while(v.firstChild){v.removeChild(v.firstChild)}}else{v=document.createElement("cvml:shape");q.appendChild(v)}v.stroked="f";v.coordsize=O;v.coordorigin=m=(U-S)+","+T;v.path=(D.d?"m"+D.d+"xe":"")+"m"+m+J;v.fillcolor=F;if(u){v.appendChild(u.cloneNode(false))}var ae=v.style;ae.width=X;ae.height=af;if(H){var s=H[0],r=H[1];var B=Cufon.CSS.color(s.color),z;var N=document.createElement("cvml:shadow");N.on="t";N.color=B.color;N.offset=s.offX+","+s.offY;if(r){z=Cufon.CSS.color(r.color);N.type="double";N.color2=z.color;N.offset2=r.offX+","+r.offY}N.opacity=B.opacity||(z&&z.opacity)||1;v.appendChild(N)}S+=L[aa++]}var M=v.nextSibling,t,A;if(C.forceHitArea){if(!M){M=document.createElement("cvml:rect");M.stroked="f";M.className="cufon-vml-cover";t=document.createElement("cvml:fill");t.opacity=0;M.appendChild(t);q.appendChild(M)}A=M.style;A.width=X;A.height=af}else{if(M){q.removeChild(M)}}ai.width=Math.max(Math.ceil(p.convert(k*P)),0);if(h){var Q=Y.computedYAdjust;if(Q===undefined){var E=Y.get("lineHeight");if(E=="normal"){E="1em"}else{if(!isNaN(E)){E+="em"}}Y.computedYAdjust=Q=0.5*(a(ad,E)-parseFloat(ai.height))}if(Q){ai.marginTop=Math.ceil(Q)+"px";ai.marginBottom=Q+"px"}}return y}})());
/*!
 * The following copyright notice may not be removed under any circumstances.
 * 
 * Copyright:
 * 2005 Albert-Jan Pool published by FSI Fonts und Software GmbH
 * 
 * Trademark:
 * DIN is a trademark of FSI Fonts und Software GmbH
 * 
 * Manufacturer:
 * FSI Fonts und Software GmbH
 * 
 * Designer:
 * Albert-Jan Pool
 * 
 * Vendor URL:
 * http://www.fontfont.com
 * 
 * License information:
 * http://www.fontfont.com/eula/license.html
 */Cufon.registerFont({"w":187,"face":{"font-family":"DINPro-Regular","font-weight":400,"font-stretch":"normal","units-per-em":"360","panose-1":"2 0 5 3 3 0 0 2 0 4","ascent":"275","descent":"-85","x-height":"2","bbox":"-5 -290 302 81.3705","underline-thickness":"18.36","underline-position":"-30.6","stemh":"24","stemv":"26","unicode-range":"U+0020-U+007E"},"glyphs":{" ":{"w":89},"!":{"d":"77,-256r-4,184r-22,0r-3,-184r29,0xm78,0r-31,0r0,-30r31,0r0,30","w":113},"\"":{"d":"121,-195r-29,0r0,-61r29,0r0,61xm60,-195r-28,0r0,-61r28,0r0,61","w":152},"#":{"d":"217,-156r-35,0r-8,51r32,0r0,23r-36,0r-13,82r-26,0r13,-82r-58,0r-13,82r-26,0r13,-82r-32,0r0,-23r36,0r8,-51r-33,0r0,-23r36,0r12,-78r27,0r-12,78r57,0r12,-78r27,0r-13,78r32,0r0,23xm156,-156r-58,0r-8,51r57,0","w":235},"$":{"d":"172,-121v46,42,16,125,-56,122r0,40r-22,0r0,-39v-34,-1,-57,-12,-79,-34r19,-18v19,19,38,26,62,27r0,-95v-43,-4,-74,-24,-74,-68v0,-41,27,-68,72,-72r0,-32r22,0r0,32v28,1,47,10,67,28r-18,17v-14,-12,-28,-20,-50,-21r0,93v24,4,46,9,57,20xm115,-23v47,2,68,-51,39,-79v-11,-11,-24,-11,-39,-13r0,92xm96,-144r0,-90v-42,0,-62,49,-36,76v9,9,24,12,36,14","w":214},"%":{"d":"277,-84v0,48,-6,87,-49,87v-43,0,-48,-39,-48,-87v0,-30,20,-48,48,-48v28,0,49,18,49,48xm121,-210v0,48,-5,86,-49,86v-43,0,-49,-38,-49,-86v0,-30,21,-49,49,-49v28,0,49,19,49,49xm221,-256r-120,256r-22,0r120,-256r22,0xm228,-15v33,1,28,-36,28,-68v0,-19,-9,-31,-28,-31v-34,-1,-28,35,-28,67v0,19,8,32,28,32xm72,-142v33,1,28,-36,28,-68v0,-19,-9,-31,-28,-31v-34,-1,-28,36,-28,68v0,19,9,31,28,31","w":299},"&":{"d":"242,0r-35,0r-23,-28v-10,10,-34,30,-75,30v-50,0,-81,-29,-81,-74v0,-39,27,-58,55,-77v-40,-29,-37,-109,29,-109v57,0,75,78,27,99r-19,13r66,79v10,-16,14,-30,14,-59r26,0v0,32,-7,59,-24,79xm169,-47r-71,-85v-22,15,-44,30,-44,59v0,59,76,67,115,26xm105,-163v17,-12,37,-19,37,-41v0,-17,-13,-31,-30,-31v-40,0,-38,43,-7,72","w":266},"'":{"d":"60,-195r-28,0r0,-61r28,0r0,61","w":91},"(":{"d":"59,-36v0,28,11,38,25,52r-17,18v-20,-18,-34,-35,-34,-68v0,-90,-26,-211,34,-256r17,17v-14,15,-25,25,-25,53r0,184","w":107},")":{"d":"41,-290v20,18,34,35,33,68r0,188v1,33,-13,50,-33,68r-19,-19v14,-14,25,-23,25,-51r0,-184v1,-28,-11,-38,-25,-52","w":107},"*":{"d":"147,-170r-11,18r-42,-26r2,49r-21,0r1,-49r-41,26r-11,-18r43,-23r-43,-24r11,-17r41,25r-1,-49r21,0r-2,49r42,-25r11,17r-44,24","w":170},"+":{"d":"169,-84r-63,0r0,63r-24,0r0,-63r-63,0r0,-24r63,0r0,-63r24,0r0,63r63,0r0,24"},",":{"d":"63,23r-31,29r0,-84r31,0r0,55","w":95},"-":{"d":"126,-85r-99,0r0,-24r99,0r0,24","w":153},".":{"d":"66,0r-34,0r0,-34r34,0r0,34","w":97},"\/":{"d":"128,-283r-102,310r-26,0r103,-310r25,0","w":127},"0":{"d":"164,-68v0,42,-30,70,-70,70v-40,0,-70,-28,-70,-70r0,-120v0,-42,30,-70,70,-70v40,0,70,28,70,70r0,120xm94,-21v67,-2,44,-102,44,-165v0,-28,-16,-49,-44,-49v-67,2,-44,102,-44,165v0,28,16,49,44,49"},"1":{"d":"119,0r-26,0r0,-228r-48,43r0,-30r48,-41r26,0r0,256"},"2":{"d":"166,0r-142,0r0,-23r102,-129v27,-30,13,-83,-31,-83v-24,0,-44,13,-44,46r-26,0v0,-40,27,-69,70,-69v65,0,87,72,50,120r-89,115r110,0r0,23"},"3":{"d":"166,-70v0,47,-34,73,-76,73v-40,0,-73,-22,-75,-68r26,0v4,63,99,56,99,-5v0,-33,-18,-52,-56,-50r0,-23v34,1,51,-15,51,-46v0,-31,-20,-47,-45,-47v-27,0,-43,17,-46,43r-26,0v3,-41,33,-66,72,-66v72,0,98,102,36,127v26,10,40,30,40,62"},"4":{"d":"174,-41r-32,0r0,41r-25,0r0,-41r-103,0r0,-23r93,-192r28,0r-93,192r75,0r0,-73r25,0r0,73r32,0r0,23"},"5":{"d":"101,-170v47,-2,65,44,65,85v0,47,-21,89,-71,88v-42,0,-68,-25,-70,-63r26,0v3,26,17,39,44,39v35,0,45,-33,45,-64v0,-31,-6,-62,-43,-62v-22,0,-37,10,-42,25r-24,0r0,-134r130,0r0,23r-106,0r0,81v10,-11,26,-18,46,-18"},"6":{"d":"166,-74v0,44,-27,76,-71,76v-68,1,-84,-72,-55,-131r63,-127r26,0r-57,115v48,-21,94,15,94,67xm140,-73v0,-28,-16,-52,-46,-52v-27,0,-45,20,-45,52v0,31,18,52,45,52v27,0,46,-21,46,-52"},"7":{"d":"170,-233r-89,233r-28,0r89,-233r-89,0r0,40r-26,0r0,-63r143,0r0,23"},"8":{"d":"170,-71v0,43,-34,73,-76,73v-42,0,-76,-30,-76,-73v0,-30,17,-50,39,-62v-58,-27,-36,-125,37,-125v72,0,95,98,37,125v22,12,39,32,39,62xm144,-71v0,-28,-22,-50,-50,-50v-28,0,-50,22,-50,50v0,28,22,50,50,50v28,0,50,-22,50,-50xm139,-189v0,-27,-19,-46,-45,-46v-26,0,-45,19,-45,46v0,27,19,45,45,45v26,0,45,-18,45,-45"},"9":{"d":"93,-258v69,-2,84,72,55,131r-63,127r-27,0r58,-115v-49,19,-94,-16,-94,-68v0,-44,27,-75,71,-75xm139,-184v0,-31,-19,-51,-46,-51v-27,0,-45,20,-45,51v0,28,15,52,45,52v27,0,46,-20,46,-52"},":":{"d":"75,-108r-34,0r0,-34r34,0r0,34xm75,0r-34,0r0,-34r34,0r0,34","w":106},";":{"d":"74,23r-32,29r0,-84r32,0r0,55xm75,-108r-34,0r0,-34r34,0r0,34","w":106},"<":{"d":"153,-24r-119,-61r0,-24r119,-60r0,28r-90,44r90,45r0,28"},"=":{"d":"169,-115r-150,0r0,-24r150,0r0,24xm169,-54r-150,0r0,-24r150,0r0,24"},">":{"d":"153,-85r-119,61r0,-28r90,-45r-90,-44r0,-28r119,60r0,24"},"?":{"d":"95,-258v57,0,87,67,51,109v-13,24,-39,38,-36,77r-26,0v-6,-59,52,-70,52,-121v0,-24,-17,-42,-41,-42v-26,0,-42,19,-42,42r-26,0v0,-37,29,-65,68,-65xm113,0r-31,0r0,-30r31,0r0,30","w":178},"@":{"d":"102,-257v74,0,129,9,129,78r0,179r-25,0r0,-20v-42,49,-127,14,-113,-66v-13,-81,69,-113,113,-65v5,-49,-9,-84,-54,-84v-55,0,-106,2,-101,56v5,58,-19,139,21,165r-18,17v-48,-28,-23,-115,-28,-182v-3,-47,28,-78,76,-78xm206,-86v0,-33,-6,-66,-44,-66v-38,0,-44,33,-44,66v0,33,6,66,44,66v38,0,44,-33,44,-66","w":256},"A":{"d":"216,0r-30,0r-20,-58r-112,0r-21,58r-29,0r95,-256r23,0xm158,-82r-47,-135r-49,135r96,0","w":219,"k":{"y":6,"v":6,"Y":13,"W":5,"V":13,"T":22,"Q":4,"O":4,"J":-4,"G":4,"C":4}},"B":{"d":"213,-71v2,84,-94,71,-176,71r0,-256v79,-1,175,-12,172,68v0,27,-16,48,-38,56v24,9,42,30,42,61xm186,-72v0,-55,-67,-46,-122,-46r0,94v56,1,122,8,122,-48xm182,-188v0,-56,-65,-43,-118,-44r0,89v54,-1,118,11,118,-45","w":240,"k":{"J":10}},"C":{"d":"55,-128v0,79,9,106,62,106v32,0,55,-21,62,-52r27,0v-8,48,-43,76,-89,76v-66,0,-90,-44,-90,-130v0,-86,23,-130,90,-130v46,0,80,28,89,76r-28,0v-7,-31,-29,-52,-61,-52v-53,0,-62,28,-62,106","w":229,"k":{"Y":4,"X":4,"W":4,"V":4,"T":7,"J":12,"A":4}},"D":{"d":"125,-256v70,-5,90,63,90,125v0,36,1,79,-25,107v-30,32,-95,22,-153,24r0,-256r88,0xm188,-131v0,-55,-14,-101,-68,-101r-56,0r0,208v43,-1,84,6,107,-19v17,-19,17,-57,17,-88","w":242,"k":{"Y":4,"X":4,"W":4,"V":4,"T":7,"J":13,"A":4}},"E":{"d":"196,0r-159,0r0,-256r159,0r0,24r-132,0r0,91r113,0r0,24r-113,0r0,93r132,0r0,24","w":216,"k":{"J":3}},"F":{"d":"196,-232r-132,0r0,94r113,0r0,25r-113,0r0,113r-27,0r0,-256r159,0r0,24","w":208,"k":{"z":11,"x":11,"u":11,"r":11,"p":11,"o":14,"n":11,"m":11,"e":14,"c":14,"a":14,"S":4,"Q":7,"O":7,"J":49,"G":7,"C":7,"A":22,".":35}},"G":{"d":"117,-22v43,0,70,-35,63,-88r-63,0r0,-24r90,0v10,81,-24,136,-90,136v-66,0,-90,-44,-90,-130v0,-86,22,-130,90,-130v49,0,82,31,90,76r-28,0v-7,-32,-30,-52,-62,-52v-53,0,-62,28,-62,106v0,79,9,106,62,106","w":234,"k":{"Y":4,"X":4,"W":4,"V":4,"T":7,"J":14,"A":4}},"H":{"d":"213,0r-27,0r0,-117r-122,0r0,117r-27,0r0,-256r27,0r0,115r122,0r0,-115r27,0r0,256","w":250},"I":{"d":"64,0r-27,0r0,-256r27,0r0,256","w":101},"J":{"d":"147,-78v6,75,-92,104,-139,57r19,-18v27,32,93,17,93,-42r0,-175r27,0r0,178","w":180,"k":{"A":4}},"K":{"d":"229,0r-32,0r-79,-136r-54,64r0,72r-27,0r0,-256r27,0r0,147r120,-147r33,0r-80,99","w":234,"k":{"y":11,"Q":4,"O":4,"J":-4,"G":4,"C":4}},"L":{"d":"195,0r-158,0r0,-256r27,0r0,232r131,0r0,24","w":206,"k":{"y":22,"Y":29,"W":14,"V":25,"U":12,"T":29,"Q":13,"O":13,"J":-4,"G":13,"C":13}},"M":{"d":"257,0r-28,0r0,-195r-70,155r-23,0r-72,-155r0,195r-27,0r0,-256r27,0r84,181r81,-181r28,0r0,256","w":293},"N":{"d":"226,0r-25,0r-137,-206r0,206r-27,0r0,-256r26,0r136,205r0,-205r27,0r0,256","w":263},"O":{"d":"117,-258v67,0,90,44,90,130v0,86,-22,130,-90,130v-67,0,-90,-44,-90,-130v0,-86,22,-130,90,-130xm117,-22v51,-9,62,-28,62,-106v0,-79,-9,-97,-62,-106v-52,8,-62,28,-62,106v0,79,11,96,62,106","w":234,"k":{"Y":4,"X":4,"W":4,"V":4,"T":7,"J":14,"A":4}},"P":{"d":"212,-181v1,72,-70,82,-148,76r0,105r-27,0r0,-256r95,0v47,0,80,29,80,75xm184,-181v0,-60,-63,-51,-120,-51r0,102v57,0,120,9,120,-51","w":226,"k":{"s":4,"q":4,"o":4,"g":4,"e":4,"d":4,"c":4,"a":4,"J":43,"A":18,".":40}},"Q":{"d":"117,-258v67,0,90,44,90,130v0,49,0,74,-18,96r28,28r-16,17r-29,-29v-75,47,-165,-4,-145,-112v-7,-86,22,-130,90,-130xm55,-128v0,79,10,106,62,106v14,0,26,-5,36,-13r-32,-32r17,-17r31,32v9,-15,10,-35,10,-76v0,-79,-9,-97,-62,-106v-52,8,-62,28,-62,106","w":233},"R":{"d":"216,0r-32,0r-58,-114r-62,0r0,114r-27,0r0,-256r98,0v45,0,76,27,76,71v0,37,-22,62,-55,69xm184,-185v0,-57,-65,-47,-120,-47r0,94v55,0,120,11,120,-47","w":236,"k":{"J":9}},"S":{"d":"170,-121v47,47,11,123,-67,123v-39,0,-64,-10,-88,-34r19,-18v32,42,130,39,130,-20v-1,-80,-142,-15,-142,-116v0,-77,114,-93,158,-44r-17,17v-28,-34,-114,-30,-114,26v0,60,93,38,121,66","w":211,"k":{"Y":7,"S":6,"J":7}},"T":{"d":"186,-232r-74,0r0,232r-27,0r0,-232r-74,0r0,-24r175,0r0,24","w":197,"k":{"z":19,"y":19,"x":19,"w":19,"v":19,"u":19,"s":27,"r":19,"q":27,"p":19,"o":27,"n":19,"m":19,"g":27,"e":27,"d":27,"c":27,"a":27,"Q":7,"O":7,"J":29,"G":7,"C":7,"A":22,".":29}},"U":{"d":"212,-85v0,51,-37,87,-89,87v-52,0,-90,-36,-90,-87r0,-171r28,0r0,169v0,39,25,65,62,65v37,0,62,-26,62,-65r0,-169r27,0r0,171","w":245,"k":{"J":12}},"V":{"d":"194,-256r-85,256r-22,0r-84,-256r29,0r66,207r67,-207r29,0","w":196,"k":{"z":7,"y":4,"x":7,"u":7,"s":14,"r":7,"q":14,"p":7,"o":14,"n":7,"m":7,"g":14,"e":14,"d":14,"c":14,"a":14,"Q":4,"O":4,"G":4,"C":4,"A":13,".":29}},"W":{"d":"302,-256r-66,256r-25,0r-57,-205r-57,205r-26,0r-65,-256r29,0r50,206r56,-206r25,0r56,206r51,-206r29,0","w":307,"k":{"s":14,"q":14,"o":14,"g":14,"e":14,"d":14,"c":14,"a":14,"Q":4,"O":4,"G":4,"C":4,"A":4,".":18}},"X":{"d":"193,0r-32,0r-62,-108r-63,108r-31,0r79,-131r-74,-125r32,0r57,101r57,-101r32,0r-74,125","w":198,"k":{"y":7,"Q":4,"O":4,"J":-4,"G":4,"C":4}},"Y":{"d":"182,-256r-75,150r0,106r-28,0r0,-106r-76,-150r29,0r61,122r60,-122r29,0","w":185,"k":{"z":14,"x":14,"u":14,"s":29,"r":14,"q":29,"p":14,"o":29,"n":14,"m":14,"g":29,"e":29,"d":29,"c":29,"a":29,"Q":4,"O":4,"J":14,"G":4,"C":4,"A":14,".":29}},"Z":{"d":"180,0r-159,0r0,-26r128,-206r-123,0r0,-24r154,0r0,23r-130,209r130,0r0,24","w":200},"[":{"d":"97,27r-64,0r0,-310r64,0r0,23r-38,0r0,264r38,0r0,23","w":112},"\\":{"d":"128,27r-26,0r-102,-309r26,0","w":127},"]":{"d":"80,27r-64,0r0,-23r39,0r0,-265r-39,0r0,-22r64,0r0,310","w":112},"^":{"d":"167,-149r-26,0r-44,-82r-44,82r-27,0r59,-109r24,0","w":193},"_":{"d":"193,59r-193,0r0,-18r193,0r0,18","w":193},"`":{"d":"108,-214r-24,0r-39,-55r31,0","w":180},"a":{"d":"133,-17v-32,35,-115,23,-115,-33v0,-50,59,-55,115,-51v3,-37,-7,-56,-46,-56v-23,0,-34,5,-44,20r-18,-16v31,-46,134,-32,134,33r0,120r-26,0r0,-17xm84,-20v35,0,55,-19,49,-62v-38,0,-89,-7,-89,32v0,21,12,30,40,30","w":189},"b":{"d":"108,-179v51,-2,65,44,65,90v0,46,-13,93,-65,91v-19,0,-36,-4,-50,-23r0,21r-26,0r0,-256r26,0r0,99v14,-18,31,-22,50,-22xm147,-89v0,-35,-5,-67,-44,-67v-39,0,-45,32,-45,67v0,35,6,68,45,68v39,0,44,-33,44,-68","w":196},"c":{"d":"49,-89v-8,62,58,90,93,48r17,17v-49,54,-136,23,-136,-65v0,-88,87,-117,136,-64r-17,17v-34,-42,-101,-14,-93,47","w":176,"k":{"w":7,"o":5,"e":5,"d":4,"c":5,"a":4}},"d":{"d":"23,-89v0,-45,14,-92,65,-90v19,0,36,4,50,22r0,-99r26,0r0,256r-26,0r0,-21v-14,19,-31,23,-50,23v-51,2,-65,-45,-65,-91xm138,-89v0,-35,-5,-67,-44,-67v-39,0,-45,32,-45,67v0,35,6,68,45,68v39,0,44,-33,44,-68","w":196},"e":{"d":"168,-82r-119,0v-6,62,66,79,98,41r18,16v-48,50,-142,33,-142,-64v0,-57,27,-90,72,-90v50,0,76,38,73,97xm142,-101v8,-58,-69,-75,-88,-30v-4,10,-4,16,-5,30r93,0","w":190,"k":{"y":4,"x":6,"w":2,"v":4}},"f":{"d":"102,-156r-38,0r0,156r-26,0r0,-156r-23,0r0,-20r23,0v-5,-52,7,-88,64,-81r0,22v-39,-7,-40,22,-38,59r38,0r0,20","w":113,"k":{"o":7,"e":7,"c":7,"a":7,".":18}},"g":{"d":"23,-90v0,-46,15,-90,65,-89v19,0,36,4,50,23r0,-21r25,0r0,182v7,71,-90,101,-134,53r17,-17v29,35,99,15,91,-37r0,-27v-14,18,-31,23,-50,23v-49,0,-64,-44,-64,-90xm137,-90v0,-33,-5,-66,-44,-66v-39,0,-44,33,-44,66v0,33,5,66,44,66v39,0,44,-33,44,-66","w":195},"h":{"d":"172,0r-26,0v-5,-59,22,-156,-43,-156v-66,0,-40,96,-45,156r-26,0r0,-256r26,0r0,98v36,-42,114,-19,114,44r0,114","w":202},"i":{"d":"58,0r-26,0r0,-177r26,0r0,177xm60,-228r-29,0r0,-29r29,0r0,29","w":91},"j":{"d":"58,32v1,33,-22,53,-63,48r0,-23v24,2,37,-3,37,-26r0,-207r26,0r0,208xm60,-228r-29,0r0,-29r29,0r0,29","w":91},"k":{"d":"181,0r-32,0r-56,-91r-35,40r0,51r-26,0r0,-256r26,0r0,171r80,-92r33,0r-60,68","w":192,"k":{"q":7,"o":7,"g":7,"e":7,"d":7,"c":7}},"l":{"d":"95,0v-40,4,-63,-13,-63,-47r0,-209r26,0r0,208v-2,23,13,28,37,26r0,22","w":106,"k":{"y":8,"w":7,"v":14,"o":7,"e":9,"c":9}},"m":{"d":"163,-150v31,-50,123,-32,123,37r0,113r-26,0v-5,-60,21,-156,-44,-156v-66,0,-39,96,-44,156r-26,0v-5,-59,22,-156,-43,-156v-66,0,-40,96,-45,156r-26,0r0,-177r26,0r0,19v26,-31,86,-27,105,8","w":316},"n":{"d":"58,-158v37,-42,114,-18,114,45r0,113r-26,0v-5,-60,21,-156,-44,-156v-65,0,-39,96,-44,156r-26,0r0,-177r26,0r0,19","w":202},"o":{"d":"95,-179v50,0,73,42,73,90v0,48,-22,91,-73,91v-50,0,-72,-43,-72,-91v0,-48,22,-90,72,-90xm95,-21v35,0,47,-33,47,-68v0,-34,-12,-67,-47,-67v-34,0,-46,33,-46,67v0,34,11,68,46,68","w":190,"k":{"y":4,"x":7,"w":2,"v":4}},"p":{"d":"108,-179v51,-2,65,44,65,90v0,46,-13,93,-65,91v-19,0,-36,-5,-50,-23r0,100r-26,0r0,-256r26,0r0,21v14,-19,31,-23,50,-23xm147,-89v0,-35,-5,-67,-44,-67v-39,0,-45,32,-45,67v0,35,6,68,45,68v39,0,44,-33,44,-68","w":196},"q":{"d":"23,-89v0,-45,14,-92,65,-90v19,0,36,4,50,23r0,-21r26,0r0,256r-26,0r0,-100v-14,18,-31,23,-50,23v-51,2,-65,-45,-65,-91xm138,-89v0,-35,-5,-67,-44,-67v-39,0,-45,32,-45,67v0,35,6,68,45,68v39,0,44,-33,44,-68","w":196},"r":{"d":"150,-163r-19,20v-26,-29,-73,-6,-73,34r0,109r-26,0r0,-177r26,0r0,21v18,-26,67,-33,92,-7","w":151,"k":{"s":4,"q":12,"o":12,"g":12,"e":12,"d":12,"c":12,"a":4,".":43,",":43}},"s":{"d":"160,-52v0,62,-110,70,-145,29r18,-18v21,29,100,31,102,-10v1,-25,-34,-27,-59,-29v-35,-3,-53,-18,-53,-47v0,-57,93,-65,129,-33r-17,17v-22,-20,-88,-21,-86,15v-3,25,33,26,59,28v31,2,52,15,52,48","w":178,"k":{"v":4,"t":4,"s":6}},"t":{"d":"100,0v-40,5,-64,-15,-63,-48r0,-108r-23,0r0,-20r23,0r0,-55r26,0r0,55r37,0r0,20r-37,0r0,108v-1,21,14,28,37,26r0,22","w":119,"k":{"o":3,"e":3,"c":3,"a":3}},"u":{"d":"144,-20v-36,43,-113,20,-113,-44r0,-113r26,0v5,59,-22,156,43,156v65,0,39,-96,44,-156r26,0r0,177r-26,0r0,-20","w":202},"v":{"d":"157,-177r-65,177r-23,0r-65,-177r28,0r48,142r49,-142r28,0","w":160,"k":{"s":4,"o":4,"e":4,"c":4,"a":4,".":24}},"w":{"d":"257,-177r-56,177r-24,0r-47,-138r-46,138r-24,0r-56,-177r28,0r41,142r46,-142r22,0r47,142r41,-142r28,0","w":260,"k":{"o":2,"e":2,"c":2,".":19}},"x":{"d":"160,0r-31,0r-43,-69r-43,69r-31,0r60,-90r-58,-87r32,0r40,65r40,-65r32,0r-58,87","w":172,"k":{"o":7,"e":7,"c":7}},"y":{"d":"157,-177r-81,220v-8,25,-27,35,-58,33r0,-23v39,6,38,-33,50,-57r-64,-173r28,0r49,142r48,-142r28,0","w":160,"k":{"o":4,"e":4,"c":4,"a":4,".":24,",":29}},"z":{"d":"147,0r-129,0r0,-22r99,-132r-94,0r0,-23r124,0r0,22r-99,132r99,0r0,23","w":165},"{":{"d":"53,-128v58,22,-22,143,57,132r0,23v-40,2,-61,-6,-61,-47v0,-38,19,-103,-32,-97r0,-23v80,10,-27,-161,93,-143r0,23v-75,-15,-1,108,-57,132","w":127},"|":{"d":"72,27r-26,0r0,-310r26,0r0,310","w":117},"}":{"d":"17,-283v119,-19,10,142,93,143r0,23v-79,-7,26,162,-93,144r0,-23v75,15,0,-109,58,-132v-33,-8,-23,-64,-23,-104v0,-28,-9,-28,-35,-28r0,-23","w":127},"~":{"d":"18,-95v44,-66,96,27,142,-21r16,16v-45,65,-96,-28,-143,21","w":194},"\u00a0":{"w":89}}});

// JavaScript Document
var portfolioslider = null;

(function($) {
	$.fn.portfolio = function(options) {
		var opts = $.extend({}, $.fn.portfolio.defaults, options);
		return this.each(function() {
			var $this 			= $(this);
			$this.opts 			= $.extend({}, opts);
			portfolioslider		= $this;
			$this.opts.totaal 	= $this.find('.hider li').length;
			$this.opts.typeto 	= null;
			$this.opts.width 	= $this.find('.hider li:eq(1)').offset().left - $this.find('.hider li:eq(0)').offset().left;
			$this.opts.height 	= $this.find('.hider li:eq(1)').outerHeight();
			//alert($this.find('.hider li:eq(1) a').outerHeight());
			//alert($this.find('.hider li:eq(1) a').height());
//			$this.disableTextSelect();
			
			$this.find('.arrow_up').click(function(){
				$.fn.portfolio.sliderow($this, 1);
				return false;
			});
			
			$this.find('.arrow_down').click(function(){
				$.fn.portfolio.sliderow($this, -1);
				return false;
			});
			
			$(document).keydown(function(e){
				if (e.keyCode == 40) { 
				   $.fn.portfolio.sliderow($this, -1);
				}
				if (e.keyCode == 33) {
				   $.fn.portfolio.sliderow($this, 3);
				}
				if (e.keyCode == 36) {
				   $.fn.portfolio.slider($this, 0);
				}
				if (e.keyCode == 38) { 
				   $.fn.portfolio.sliderow($this, 1);
				}
				if (e.keyCode == 34) { 
				   $.fn.portfolio.sliderow($this, -3);
				}
				if (e.keyCode == 35) {
				   $.fn.portfolio.slider($this, -$this.find('.hider .clones li').height());
				}
			});
			$(document).bind('mousewheel', function(event, delta) {
				$.fn.portfolio.sliderow($this, delta);
			});
			
			
			$this.find('[name=portfoliozoek]').attr('rel',$this.find('[name=portfoliozoek]').val());
			
			$this.find('[name=portfoliozoek]').keyup(function(){
				if($this.find('[name=portfoliozoek]').val() != $this.find('[name=portfoliozoek]').attr('valoud')){
					if($this.opts.typeto){
						clearTimeout($this.opts.typeto);
						$this.opts.typeto = null;	
					}
					$this.opts.typeto = setTimeout(function(){ $.fn.portfolio.filter($this) },300);
					$this.find('[name=portfoliozoek]').attr('valoud',$this.find('[name=portfoliozoek]').val())
				}
			});
			
			$this.find('[name=portfoliozoek]').focus(function(){
				if($(this).val() == $(this).attr('rel')){
					$(this).val('');	
				}
			});
			
			$this.find('[name=portfoliozoek]').blur(function(){
				if($(this).val() == ''){
					$(this).val($(this).attr('rel'));	
				}
			});
			// ALLE BESTAANDE DINGEN BUITEN BEELD ZETTEN
			$this.find('.hider .scroller').css({'position':'absolute','top':$(this).height()*$this.opts.aantalvertical + 'px'});
			
			
			// NIEUWE LIS AANMAKEN VOOR DE CLONES
			$this.find(".hider").prepend('<ul class="clones"><li></li><li></li><li></li></ul>');
			$this.find(".hider .scroller").hide();
			
			for(i=0;i < $this.opts.aantal;i++){
				$this.find('.hider .clones li:eq('+i+')').css({'left':(i*$this.opts.width)+'px'});
			}
			
			/*
			$this.find('.scroller li a img').each(function(i){
				$(this).attr('img',$(this).attr('src'));
				if(i >= 9){
					$(this).attr('src','images/spacer.gif');
				}
			});
			*/
			
			$('.hider .clones').css('zIndex',1);
			
			$this.find('.tags a').click(function(e){
				if(!$(this).hasClass('active')){
					$(this).addClass('active');
				}else{	
					$(this).removeClass('active');
				}
				$.fn.portfolio.filter($this);
				e.preventDefault();
			});
			
			$.fn.portfolio.filter($this);
		});
	};
	
	
	$.fn.portfolio.defaults = {
		aantal: 		3,
		aantalvertical: 4,
		current: 		0,
		movecount: 		0,
		loadthumbs:		true,
		thumbtimeout:	null
	};
	
	$.fn.portfolio.sliderow = function($this,row){
		$this.find('.hider .clones li').each(function(){
			if(!$(this).attr('top')) $(this).attr('top',0);
			newheight = parseInt($(this).attr('top'))+(row*$this.opts.height);
			if(newheight <= -$(this).outerHeight()+$this.find('.hider').height()+17){
				newheight = -$(this).outerHeight()+$this.find('.hider').height()+17;
			}
			if(newheight > 0){
				newheight = 0;
			}
			$(this).attr('top',newheight);
			$(this).stop().animate({'top':$(this).attr('top')+'px'},500);
		});
	};
	
	$.fn.portfolio.slider = function($this,pos){
		$this.find('.hider .clones li').each(function(){
			if(!$(this).attr('top')) $(this).attr('top',0);
			newheight = pos;
			if(newheight <= -$(this).outerHeight()+$this.find('.hider').height()+17){
				newheight = -$(this).outerHeight()+$this.find('.hider').height()+17;
			}
			if(newheight > 0){
				newheight = 0;
			}
			$(this).attr('top',newheight);
			$(this).stop().animate({'top':$(this).attr('top')+'px'},500);
		});
	};
	
	$.fn.portfolio.stopthumbs = function($this){
		$this.opts.loadthumbs = false;
		clearTimeout($this.opts.thumbtimeout);
	};
	
	$.fn.portfolio.startthumbs = function($this){
		$this.opts.loadthumbs = true;
		$.fn.portfolio.showthumb($this);
	};
	
	$.fn.portfolio.showthumb = function($this){
		if($this.opts.loadthumbs == true){
			clearTimeout($this.opts.thumbtimeout);
			var maxtop 	= null;
			var thumb 	= null;
			
			$this.find('.hider .clones li').each(function(){
				var thumb2 = $(this).find('.new img[src2]:eq(0)');
				if(thumb2.length > 0){
					if(thumb2.offset().top < maxtop || maxtop == null){
						maxtop = thumb2.offset().top;
						thumb = thumb2;
					}
				}
			});
			
			if(thumb != null){
				if(thumb.length > 0){
					var src = thumb.attr('src2');
					
					thumb.load(function(){
						$(this).fadeTo(0,0).fadeTo(400,1);
						$this.opts.thumbtimeout = setTimeout(function(){ $.fn.portfolio.showthumb($this) }, 20);
					});
					
					thumb.hide().removeAttr('src2').attr('src',src);
					$this.find('.hider .scroller img[src2='+src+']').removeAttr('src2').attr('src',src);
				}
			}
		}
	};
	
	$.fn.portfolio.filter = function($this){
		
		
		// CLEAR DE TYP-INTERVAL
		$this.opts.typeto = null;
					
		$.fn.portfolio.stopthumbs($this);
		
		$this.find('.hider .clones div').removeClass('new').addClass('delete');
		$this.find('.hider .scroller li').removeClass('hide');
		var aantaltags = 0;
		
		$this.find('.tags ul li a').each(function(){
			if($(this).hasClass('active')){
				
				$this.find('.hider .scroller li:not([tags*=|'+$(this).attr('rel')+'|])').addClass('hide');
				aantaltags++;
			}
		});
		
		if($this.find('[name=portfoliozoek]').val() != $this.find('[name=portfoliozoek]').attr('rel') && $this.find('[name=portfoliozoek]').val() != ''){
			zoekstring = $this.find('[name=portfoliozoek]').val();
			if(zoekstring != ''){
				$this.find('.hider .scroller li:not(.hide)').each(function(){
					if($(this).html().indexOf(zoekstring) == -1){
						$(this).addClass('hide');
					}
				});
			}
		}
		
		var teller 		= 0;
		var maxaantal 	= 0; 
		var data 		= Array();
		data[0] = data[1] = data[2] = '';
		
		$this.find('.hider .scroller li:not(.hide)').each(function(){
			
			data[teller%3] += $(this).html();
			teller++;
		});
		
		$(".tags h4").html(teller + ' resultaten');
		
		$this.find('.tags ul li a').each(function(){
			if(!$(this).hasClass('active')){
				aantal = $this.find('.hider .scroller li[tags*=|'+$(this).attr('rel')+'|]:not(.hide)').length;
				if(aantal > maxaantal) maxaantal = aantal;
			}
		});
		

		$this.find('.tags ul li a').each(function(){
			if(!$(this).hasClass('active')){
				aantal = $this.find('.hider .scroller li[tags*=|'+$(this).attr('rel')+'|]:not(.hide)').length;
				if(aantal > 0){
					size = aantal / maxaantal * 25;
					if(size < 13) size = 13;
					$(this).parent().stop().show('fast').animate({'fontSize':size+'px'},500);
				}else{
					$(this).parent().stop().hide('fast');
				}
			}else{
				$(this).parent().stop().show('fast').animate({'fontSize':'25px'},500);
			}
		});		
		
		
		
		for(i=0;i < $this.opts.aantal;i++){
			$this.find('.hider .clones li:eq('+i+')').append('<div class="new">'+data[i]+'</div>');
			if($this.find('.hider .clones li:eq('+i+') .delete').length > 0){
				var height = $this.find('.hider .clones li:eq('+i+') .new').offset().top - $this.find('.hider .clones li:eq('+i+')').offset().top;
				$this.find('.hider .clones li:eq('+i+')').stop().animate({'top':'-'+height+'px'},1000, function(){
					$(this).find('.delete').remove();
					$(this).css({'top':'0px'});
					$(this).attr('top',0);
				});
			}
		}
									
		$this.find('.clones .new a').hover(
			function(){ 
				$(this).find('.flag').stop().fadeTo(400,1,function(){ });
			},
			function(){ 
				$(this).find('.flag').stop().fadeTo(400,0,function(){ });
			}
		).removeClass('jQueryLoaded');
		
		//$this.find("a[ajax]:not(.jQueryLoaded)").addClass('jQueryLoaded').ajaxlinks();
		//.ajaxlinks();
			
		$.fn.portfolio.startthumbs($this);
//		$this.find('.scroller li.hide').hide();
//		$this.find('.scroller li:not(.hide)').show();
	};
})(jQuery);

/*
 * jQuery Cycle Plugin (with Transition Definitions)
 * Examples and documentation at: http://jquery.malsup.com/cycle/
 * Copyright (c) 2007-2010 M. Alsup
 * Version: 2.88 (08-JUN-2010)
 * Dual licensed under the MIT and GPL licenses.
 * http://jquery.malsup.com/license.html
 * Requires: jQuery v1.2.6 or later
 */
(function($){var ver="2.88";if($.support==undefined){$.support={opacity:!($.browser.msie)};}function debug(s){if($.fn.cycle.debug){log(s);}}function log(){if(window.console&&window.console.log){window.console.log("[cycle] "+Array.prototype.join.call(arguments," "));}}$.fn.cycle=function(options,arg2){var o={s:this.selector,c:this.context};if(this.length===0&&options!="stop"){if(!$.isReady&&o.s){log("DOM not ready, queuing slideshow");$(function(){$(o.s,o.c).cycle(options,arg2);});return this;}log("terminating; zero elements found by selector"+($.isReady?"":" (DOM not ready)"));return this;}return this.each(function(){var opts=handleArguments(this,options,arg2);if(opts===false){return;}opts.updateActivePagerLink=opts.updateActivePagerLink||$.fn.cycle.updateActivePagerLink;if(this.cycleTimeout){clearTimeout(this.cycleTimeout);}this.cycleTimeout=this.cyclePause=0;var $cont=$(this);var $slides=opts.slideExpr?$(opts.slideExpr,this):$cont.children();var els=$slides.get();if(els.length<2){log("terminating; too few slides: "+els.length);return;}var opts2=buildOptions($cont,$slides,els,opts,o);if(opts2===false){return;}var startTime=opts2.continuous?10:getTimeout(els[opts2.currSlide],els[opts2.nextSlide],opts2,!opts2.rev);if(startTime){startTime+=(opts2.delay||0);if(startTime<10){startTime=10;}debug("first timeout: "+startTime);this.cycleTimeout=setTimeout(function(){go(els,opts2,0,(!opts2.rev&&!opts.backwards));},startTime);}});};function handleArguments(cont,options,arg2){if(cont.cycleStop==undefined){cont.cycleStop=0;}if(options===undefined||options===null){options={};}if(options.constructor==String){switch(options){case"destroy":case"stop":var opts=$(cont).data("cycle.opts");if(!opts){return false;}cont.cycleStop++;if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);}cont.cycleTimeout=0;$(cont).removeData("cycle.opts");if(options=="destroy"){destroy(opts);}return false;case"toggle":cont.cyclePause=(cont.cyclePause===1)?0:1;checkInstantResume(cont.cyclePause,arg2,cont);return false;case"pause":cont.cyclePause=1;return false;case"resume":cont.cyclePause=0;checkInstantResume(false,arg2,cont);return false;case"prev":case"next":var opts=$(cont).data("cycle.opts");if(!opts){log('options not found, "prev/next" ignored');return false;}$.fn.cycle[options](opts);return false;default:options={fx:options};}return options;}else{if(options.constructor==Number){var num=options;options=$(cont).data("cycle.opts");if(!options){log("options not found, can not advance slide");return false;}if(num<0||num>=options.elements.length){log("invalid slide index: "+num);return false;}options.nextSlide=num;if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);cont.cycleTimeout=0;}if(typeof arg2=="string"){options.oneTimeFx=arg2;}go(options.elements,options,1,num>=options.currSlide);return false;}}return options;function checkInstantResume(isPaused,arg2,cont){if(!isPaused&&arg2===true){var options=$(cont).data("cycle.opts");if(!options){log("options not found, can not resume");return false;}if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);cont.cycleTimeout=0;}go(options.elements,options,1,(!opts.rev&&!opts.backwards));}}}function removeFilter(el,opts){if(!$.support.opacity&&opts.cleartype&&el.style.filter){try{el.style.removeAttribute("filter");}catch(smother){}}}function destroy(opts){if(opts.next){$(opts.next).unbind(opts.prevNextEvent);}if(opts.prev){$(opts.prev).unbind(opts.prevNextEvent);}if(opts.pager||opts.pagerAnchorBuilder){$.each(opts.pagerAnchors||[],function(){this.unbind().remove();});}opts.pagerAnchors=null;if(opts.destroy){opts.destroy(opts);}}function buildOptions($cont,$slides,els,options,o){var opts=$.extend({},$.fn.cycle.defaults,options||{},$.metadata?$cont.metadata():$.meta?$cont.data():{});if(opts.autostop){opts.countdown=opts.autostopCount||els.length;}var cont=$cont[0];$cont.data("cycle.opts",opts);opts.$cont=$cont;opts.stopCount=cont.cycleStop;opts.elements=els;opts.before=opts.before?[opts.before]:[];opts.after=opts.after?[opts.after]:[];opts.after.unshift(function(){opts.busy=0;});if(!$.support.opacity&&opts.cleartype){opts.after.push(function(){removeFilter(this,opts);});}if(opts.continuous){opts.after.push(function(){go(els,opts,0,(!opts.rev&&!opts.backwards));});}saveOriginalOpts(opts);if(!$.support.opacity&&opts.cleartype&&!opts.cleartypeNoBg){clearTypeFix($slides);}if($cont.css("position")=="static"){$cont.css("position","relative");}if(opts.width){$cont.width(opts.width);}if(opts.height&&opts.height!="auto"){$cont.height(opts.height);}if(opts.startingSlide){opts.startingSlide=parseInt(opts.startingSlide);}else{if(opts.backwards){opts.startingSlide=els.length-1;}}if(opts.random){opts.randomMap=[];for(var i=0;i<els.length;i++){opts.randomMap.push(i);}opts.randomMap.sort(function(a,b){return Math.random()-0.5;});opts.randomIndex=1;opts.startingSlide=opts.randomMap[1];}else{if(opts.startingSlide>=els.length){opts.startingSlide=0;}}opts.currSlide=opts.startingSlide||0;var first=opts.startingSlide;$slides.css({position:"absolute",top:0,left:0}).hide().each(function(i){var z;if(opts.backwards){z=first?i<=first?els.length+(i-first):first-i:els.length-i;}else{z=first?i>=first?els.length-(i-first):first-i:els.length-i;}$(this).css("z-index",z);});$(els[first]).css("opacity",1).show();removeFilter(els[first],opts);if(opts.fit&&opts.width){$slides.width(opts.width);}if(opts.fit&&opts.height&&opts.height!="auto"){$slides.height(opts.height);}var reshape=opts.containerResize&&!$cont.innerHeight();if(reshape){var maxw=0,maxh=0;for(var j=0;j<els.length;j++){var $e=$(els[j]),e=$e[0],w=$e.outerWidth(),h=$e.outerHeight();if(!w){w=e.offsetWidth||e.width||$e.attr("width");}if(!h){h=e.offsetHeight||e.height||$e.attr("height");}maxw=w>maxw?w:maxw;maxh=h>maxh?h:maxh;}if(maxw>0&&maxh>0){$cont.css({width:maxw+"px",height:maxh+"px"});}}if(opts.pause){$cont.hover(function(){this.cyclePause++;},function(){this.cyclePause--;});}if(supportMultiTransitions(opts)===false){return false;}var requeue=false;options.requeueAttempts=options.requeueAttempts||0;$slides.each(function(){var $el=$(this);this.cycleH=(opts.fit&&opts.height)?opts.height:($el.height()||this.offsetHeight||this.height||$el.attr("height")||0);this.cycleW=(opts.fit&&opts.width)?opts.width:($el.width()||this.offsetWidth||this.width||$el.attr("width")||0);if($el.is("img")){var loadingIE=($.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);var loadingFF=($.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete);var loadingOp=($.browser.opera&&((this.cycleW==42&&this.cycleH==19)||(this.cycleW==37&&this.cycleH==17))&&!this.complete);var loadingOther=(this.cycleH==0&&this.cycleW==0&&!this.complete);if(loadingIE||loadingFF||loadingOp||loadingOther){if(o.s&&opts.requeueOnImageNotLoaded&&++options.requeueAttempts<100){log(options.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){$(o.s,o.c).cycle(options);},opts.requeueTimeout);requeue=true;return false;}else{log("could not determine size of image: "+this.src,this.cycleW,this.cycleH);}}}return true;});if(requeue){return false;}opts.cssBefore=opts.cssBefore||{};opts.animIn=opts.animIn||{};opts.animOut=opts.animOut||{};$slides.not(":eq("+first+")").css(opts.cssBefore);if(opts.cssFirst){$($slides[first]).css(opts.cssFirst);}if(opts.timeout){opts.timeout=parseInt(opts.timeout);if(opts.speed.constructor==String){opts.speed=$.fx.speeds[opts.speed]||parseInt(opts.speed);}if(!opts.sync){opts.speed=opts.speed/2;}var buffer=opts.fx=="shuffle"?500:250;while((opts.timeout-opts.speed)<buffer){opts.timeout+=opts.speed;}}if(opts.easing){opts.easeIn=opts.easeOut=opts.easing;}if(!opts.speedIn){opts.speedIn=opts.speed;}if(!opts.speedOut){opts.speedOut=opts.speed;}opts.slideCount=els.length;opts.currSlide=opts.lastSlide=first;if(opts.random){if(++opts.randomIndex==els.length){opts.randomIndex=0;}opts.nextSlide=opts.randomMap[opts.randomIndex];}else{if(opts.backwards){opts.nextSlide=opts.startingSlide==0?(els.length-1):opts.startingSlide-1;}else{opts.nextSlide=opts.startingSlide>=(els.length-1)?0:opts.startingSlide+1;}}if(!opts.multiFx){var init=$.fn.cycle.transitions[opts.fx];if($.isFunction(init)){init($cont,$slides,opts);}else{if(opts.fx!="custom"&&!opts.multiFx){log("unknown transition: "+opts.fx,"; slideshow terminating");return false;}}}var e0=$slides[first];if(opts.before.length){opts.before[0].apply(e0,[e0,e0,opts,true]);}if(opts.after.length>1){opts.after[1].apply(e0,[e0,e0,opts,true]);}if(opts.next){$(opts.next).bind(opts.prevNextEvent,function(){return advance(opts,opts.rev?-1:1);});}if(opts.prev){$(opts.prev).bind(opts.prevNextEvent,function(){return advance(opts,opts.rev?1:-1);});}if(opts.pager||opts.pagerAnchorBuilder){buildPager(els,opts);}exposeAddSlide(opts,els);return opts;}function saveOriginalOpts(opts){opts.original={before:[],after:[]};opts.original.cssBefore=$.extend({},opts.cssBefore);opts.original.cssAfter=$.extend({},opts.cssAfter);opts.original.animIn=$.extend({},opts.animIn);opts.original.animOut=$.extend({},opts.animOut);$.each(opts.before,function(){opts.original.before.push(this);});$.each(opts.after,function(){opts.original.after.push(this);});}function supportMultiTransitions(opts){var i,tx,txs=$.fn.cycle.transitions;if(opts.fx.indexOf(",")>0){opts.multiFx=true;opts.fxs=opts.fx.replace(/\s*/g,"").split(",");for(i=0;i<opts.fxs.length;i++){var fx=opts.fxs[i];tx=txs[fx];if(!tx||!txs.hasOwnProperty(fx)||!$.isFunction(tx)){log("discarding unknown transition: ",fx);opts.fxs.splice(i,1);i--;}}if(!opts.fxs.length){log("No valid transitions named; slideshow terminating.");return false;}}else{if(opts.fx=="all"){opts.multiFx=true;opts.fxs=[];for(p in txs){tx=txs[p];if(txs.hasOwnProperty(p)&&$.isFunction(tx)){opts.fxs.push(p);}}}}if(opts.multiFx&&opts.randomizeEffects){var r1=Math.floor(Math.random()*20)+30;for(i=0;i<r1;i++){var r2=Math.floor(Math.random()*opts.fxs.length);opts.fxs.push(opts.fxs.splice(r2,1)[0]);}debug("randomized fx sequence: ",opts.fxs);}return true;}function exposeAddSlide(opts,els){opts.addSlide=function(newSlide,prepend){var $s=$(newSlide),s=$s[0];if(!opts.autostopCount){opts.countdown++;}els[prepend?"unshift":"push"](s);if(opts.els){opts.els[prepend?"unshift":"push"](s);}opts.slideCount=els.length;$s.css("position","absolute");$s[prepend?"prependTo":"appendTo"](opts.$cont);if(prepend){opts.currSlide++;opts.nextSlide++;}if(!$.support.opacity&&opts.cleartype&&!opts.cleartypeNoBg){clearTypeFix($s);}if(opts.fit&&opts.width){$s.width(opts.width);}if(opts.fit&&opts.height&&opts.height!="auto"){$slides.height(opts.height);}s.cycleH=(opts.fit&&opts.height)?opts.height:$s.height();s.cycleW=(opts.fit&&opts.width)?opts.width:$s.width();$s.css(opts.cssBefore);if(opts.pager||opts.pagerAnchorBuilder){$.fn.cycle.createPagerAnchor(els.length-1,s,$(opts.pager),els,opts);}if($.isFunction(opts.onAddSlide)){opts.onAddSlide($s);}else{$s.hide();}};}$.fn.cycle.resetState=function(opts,fx){fx=fx||opts.fx;opts.before=[];opts.after=[];opts.cssBefore=$.extend({},opts.original.cssBefore);opts.cssAfter=$.extend({},opts.original.cssAfter);opts.animIn=$.extend({},opts.original.animIn);opts.animOut=$.extend({},opts.original.animOut);opts.fxFn=null;$.each(opts.original.before,function(){opts.before.push(this);});$.each(opts.original.after,function(){opts.after.push(this);});var init=$.fn.cycle.transitions[fx];if($.isFunction(init)){init(opts.$cont,$(opts.elements),opts);}};function go(els,opts,manual,fwd){if(manual&&opts.busy&&opts.manualTrump){debug("manualTrump in go(), stopping active transition");$(els).stop(true,true);opts.busy=false;}if(opts.busy){debug("transition active, ignoring new tx request");return;}var p=opts.$cont[0],curr=els[opts.currSlide],next=els[opts.nextSlide];if(p.cycleStop!=opts.stopCount||p.cycleTimeout===0&&!manual){return;}if(!manual&&!p.cyclePause&&!opts.bounce&&((opts.autostop&&(--opts.countdown<=0))||(opts.nowrap&&!opts.random&&opts.nextSlide<opts.currSlide))){if(opts.end){opts.end(opts);}return;}var changed=false;if((manual||!p.cyclePause)&&(opts.nextSlide!=opts.currSlide)){changed=true;var fx=opts.fx;curr.cycleH=curr.cycleH||$(curr).height();curr.cycleW=curr.cycleW||$(curr).width();next.cycleH=next.cycleH||$(next).height();next.cycleW=next.cycleW||$(next).width();if(opts.multiFx){if(opts.lastFx==undefined||++opts.lastFx>=opts.fxs.length){opts.lastFx=0;}fx=opts.fxs[opts.lastFx];opts.currFx=fx;}if(opts.oneTimeFx){fx=opts.oneTimeFx;opts.oneTimeFx=null;}$.fn.cycle.resetState(opts,fx);if(opts.before.length){$.each(opts.before,function(i,o){if(p.cycleStop!=opts.stopCount){return;}o.apply(next,[curr,next,opts,fwd]);});}var after=function(){$.each(opts.after,function(i,o){if(p.cycleStop!=opts.stopCount){return;}o.apply(next,[curr,next,opts,fwd]);});};debug("tx firing; currSlide: "+opts.currSlide+"; nextSlide: "+opts.nextSlide);opts.busy=1;if(opts.fxFn){opts.fxFn(curr,next,opts,after,fwd,manual&&opts.fastOnEvent);}else{if($.isFunction($.fn.cycle[opts.fx])){$.fn.cycle[opts.fx](curr,next,opts,after,fwd,manual&&opts.fastOnEvent);}else{$.fn.cycle.custom(curr,next,opts,after,fwd,manual&&opts.fastOnEvent);}}}if(changed||opts.nextSlide==opts.currSlide){opts.lastSlide=opts.currSlide;if(opts.random){opts.currSlide=opts.nextSlide;if(++opts.randomIndex==els.length){opts.randomIndex=0;}opts.nextSlide=opts.randomMap[opts.randomIndex];if(opts.nextSlide==opts.currSlide){opts.nextSlide=(opts.currSlide==opts.slideCount-1)?0:opts.currSlide+1;}}else{if(opts.backwards){var roll=(opts.nextSlide-1)<0;if(roll&&opts.bounce){opts.backwards=!opts.backwards;opts.nextSlide=1;opts.currSlide=0;}else{opts.nextSlide=roll?(els.length-1):opts.nextSlide-1;opts.currSlide=roll?0:opts.nextSlide+1;}}else{var roll=(opts.nextSlide+1)==els.length;if(roll&&opts.bounce){opts.backwards=!opts.backwards;opts.nextSlide=els.length-2;opts.currSlide=els.length-1;}else{opts.nextSlide=roll?0:opts.nextSlide+1;opts.currSlide=roll?els.length-1:opts.nextSlide-1;}}}}if(changed&&opts.pager){opts.updateActivePagerLink(opts.pager,opts.currSlide,opts.activePagerClass);}var ms=0;if(opts.timeout&&!opts.continuous){ms=getTimeout(els[opts.currSlide],els[opts.nextSlide],opts,fwd);}else{if(opts.continuous&&p.cyclePause){ms=10;}}if(ms>0){p.cycleTimeout=setTimeout(function(){go(els,opts,0,(!opts.rev&&!opts.backwards));},ms);}}$.fn.cycle.updateActivePagerLink=function(pager,currSlide,clsName){$(pager).each(function(){$(this).children().removeClass(clsName).eq(currSlide).addClass(clsName);});};function getTimeout(curr,next,opts,fwd){if(opts.timeoutFn){var t=opts.timeoutFn.call(curr,curr,next,opts,fwd);while((t-opts.speed)<250){t+=opts.speed;}debug("calculated timeout: "+t+"; speed: "+opts.speed);if(t!==false){return t;}}return opts.timeout;}$.fn.cycle.next=function(opts){advance(opts,opts.rev?-1:1);};$.fn.cycle.prev=function(opts){advance(opts,opts.rev?1:-1);};function advance(opts,val){var els=opts.elements;var p=opts.$cont[0],timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0;}if(opts.random&&val<0){opts.randomIndex--;if(--opts.randomIndex==-2){opts.randomIndex=els.length-2;}else{if(opts.randomIndex==-1){opts.randomIndex=els.length-1;}}opts.nextSlide=opts.randomMap[opts.randomIndex];}else{if(opts.random){opts.nextSlide=opts.randomMap[opts.randomIndex];}else{opts.nextSlide=opts.currSlide+val;if(opts.nextSlide<0){if(opts.nowrap){return false;}opts.nextSlide=els.length-1;}else{if(opts.nextSlide>=els.length){if(opts.nowrap){return false;}opts.nextSlide=0;}}}}var cb=opts.onPrevNextEvent||opts.prevNextClick;if($.isFunction(cb)){cb(val>0,opts.nextSlide,els[opts.nextSlide]);}go(els,opts,1,val>=0);return false;}function buildPager(els,opts){var $p=$(opts.pager);$.each(els,function(i,o){$.fn.cycle.createPagerAnchor(i,o,$p,els,opts);});opts.updateActivePagerLink(opts.pager,opts.startingSlide,opts.activePagerClass);}$.fn.cycle.createPagerAnchor=function(i,el,$p,els,opts){var a;if($.isFunction(opts.pagerAnchorBuilder)){a=opts.pagerAnchorBuilder(i,el);debug("pagerAnchorBuilder("+i+", el) returned: "+a);}else{a='<a href="#">'+(i+1)+"</a>";}if(!a){return;}var $a=$(a);if($a.parents("body").length===0){var arr=[];if($p.length>1){$p.each(function(){var $clone=$a.clone(true);$(this).append($clone);arr.push($clone[0]);});$a=$(arr);}else{$a.appendTo($p);}}opts.pagerAnchors=opts.pagerAnchors||[];opts.pagerAnchors.push($a);$a.bind(opts.pagerEvent,function(e){e.preventDefault();opts.nextSlide=i;var p=opts.$cont[0],timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0;}var cb=opts.onPagerEvent||opts.pagerClick;if($.isFunction(cb)){cb(opts.nextSlide,els[opts.nextSlide]);}go(els,opts,1,opts.currSlide<i);});if(!/^click/.test(opts.pagerEvent)&&!opts.allowPagerClickBubble){$a.bind("click.cycle",function(){return false;});}if(opts.pauseOnPagerHover){$a.hover(function(){opts.$cont[0].cyclePause++;},function(){opts.$cont[0].cyclePause--;});}};$.fn.cycle.hopsFromLast=function(opts,fwd){var hops,l=opts.lastSlide,c=opts.currSlide;if(fwd){hops=c>l?c-l:opts.slideCount-l;}else{hops=c<l?l-c:l+opts.slideCount-c;}return hops;};function clearTypeFix($slides){debug("applying clearType background-color hack");function hex(s){s=parseInt(s).toString(16);return s.length<2?"0"+s:s;}function getBg(e){for(;e&&e.nodeName.toLowerCase()!="html";e=e.parentNode){var v=$.css(e,"background-color");if(v.indexOf("rgb")>=0){var rgb=v.match(/\d+/g);return"#"+hex(rgb[0])+hex(rgb[1])+hex(rgb[2]);}if(v&&v!="transparent"){return v;}}return"#ffffff";}$slides.each(function(){$(this).css("background-color",getBg(this));});}$.fn.cycle.commonReset=function(curr,next,opts,w,h,rev){$(opts.elements).not(curr).hide();opts.cssBefore.opacity=1;opts.cssBefore.display="block";if(w!==false&&next.cycleW>0){opts.cssBefore.width=next.cycleW;}if(h!==false&&next.cycleH>0){opts.cssBefore.height=next.cycleH;}opts.cssAfter=opts.cssAfter||{};opts.cssAfter.display="none";$(curr).css("zIndex",opts.slideCount+(rev===true?1:0));$(next).css("zIndex",opts.slideCount+(rev===true?0:1));};$.fn.cycle.custom=function(curr,next,opts,cb,fwd,speedOverride){var $l=$(curr),$n=$(next);var speedIn=opts.speedIn,speedOut=opts.speedOut,easeIn=opts.easeIn,easeOut=opts.easeOut;$n.css(opts.cssBefore);if(speedOverride){if(typeof speedOverride=="number"){speedIn=speedOut=speedOverride;}else{speedIn=speedOut=1;}easeIn=easeOut=null;}var fn=function(){$n.animate(opts.animIn,speedIn,easeIn,cb);};$l.animate(opts.animOut,speedOut,easeOut,function(){if(opts.cssAfter){$l.css(opts.cssAfter);}if(!opts.sync){fn();}});if(opts.sync){fn();}};$.fn.cycle.transitions={fade:function($cont,$slides,opts){$slides.not(":eq("+opts.currSlide+")").css("opacity",0);opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.opacity=0;});opts.animIn={opacity:1};opts.animOut={opacity:0};opts.cssBefore={top:0,left:0};}};$.fn.cycle.ver=function(){return ver;};$.fn.cycle.defaults={fx:"fade",timeout:4000,timeoutFn:null,continuous:0,speed:1000,speedIn:null,speedOut:null,next:null,prev:null,onPrevNextEvent:null,prevNextEvent:"click.cycle",pager:null,onPagerEvent:null,pagerEvent:"click.cycle",allowPagerClickBubble:false,pagerAnchorBuilder:null,before:null,after:null,end:null,easing:null,easeIn:null,easeOut:null,shuffle:null,animIn:null,animOut:null,cssBefore:null,cssAfter:null,fxFn:null,height:"auto",startingSlide:0,sync:1,random:0,fit:0,containerResize:1,pause:0,pauseOnPagerHover:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:!$.support.opacity,cleartypeNoBg:false,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:true,requeueOnImageNotLoaded:true,requeueTimeout:250,activePagerClass:"activeSlide",updateActivePagerLink:null,backwards:false};})(jQuery);
/*
 * jQuery Cycle Plugin Transition Definitions
 * This script is a plugin for the jQuery Cycle Plugin
 * Examples and documentation at: http://malsup.com/jquery/cycle/
 * Copyright (c) 2007-2010 M. Alsup
 * Version:	 2.72
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 */
(function($){$.fn.cycle.transitions.none=function($cont,$slides,opts){opts.fxFn=function(curr,next,opts,after){$(next).show();$(curr).hide();after();};};$.fn.cycle.transitions.scrollUp=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var h=$cont.height();opts.cssBefore={top:h,left:0};opts.cssFirst={top:0};opts.animIn={top:0};opts.animOut={top:-h};};$.fn.cycle.transitions.scrollDown=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var h=$cont.height();opts.cssFirst={top:0};opts.cssBefore={top:-h,left:0};opts.animIn={top:0};opts.animOut={top:h};};$.fn.cycle.transitions.scrollLeft=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var w=$cont.width();opts.cssFirst={left:0};opts.cssBefore={left:w,top:0};opts.animIn={left:0};opts.animOut={left:0-w};};$.fn.cycle.transitions.scrollRight=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var w=$cont.width();opts.cssFirst={left:0};opts.cssBefore={left:-w,top:0};opts.animIn={left:0};opts.animOut={left:w};};$.fn.cycle.transitions.scrollHorz=function($cont,$slides,opts){$cont.css("overflow","hidden").width();opts.before.push(function(curr,next,opts,fwd){$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.left=fwd?(next.cycleW-1):(1-next.cycleW);opts.animOut.left=fwd?-curr.cycleW:curr.cycleW;});opts.cssFirst={left:0};opts.cssBefore={top:0};opts.animIn={left:0};opts.animOut={top:0};};$.fn.cycle.transitions.scrollVert=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push(function(curr,next,opts,fwd){$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.top=fwd?(1-next.cycleH):(next.cycleH-1);opts.animOut.top=fwd?curr.cycleH:-curr.cycleH;});opts.cssFirst={top:0};opts.cssBefore={left:0};opts.animIn={top:0};opts.animOut={left:0};};$.fn.cycle.transitions.slideX=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$(opts.elements).not(curr).hide();$.fn.cycle.commonReset(curr,next,opts,false,true);opts.animIn.width=next.cycleW;});opts.cssBefore={left:0,top:0,width:0};opts.animIn={width:"show"};opts.animOut={width:0};};$.fn.cycle.transitions.slideY=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$(opts.elements).not(curr).hide();$.fn.cycle.commonReset(curr,next,opts,true,false);opts.animIn.height=next.cycleH;});opts.cssBefore={left:0,top:0,height:0};opts.animIn={height:"show"};opts.animOut={height:0};};$.fn.cycle.transitions.shuffle=function($cont,$slides,opts){var i,w=$cont.css("overflow","visible").width();$slides.css({left:0,top:0});opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,true,true);});if(!opts.speedAdjusted){opts.speed=opts.speed/2;opts.speedAdjusted=true;}opts.random=0;opts.shuffle=opts.shuffle||{left:-w,top:15};opts.els=[];for(i=0;i<$slides.length;i++){opts.els.push($slides[i]);}for(i=0;i<opts.currSlide;i++){opts.els.push(opts.els.shift());}opts.fxFn=function(curr,next,opts,cb,fwd){var $el=fwd?$(curr):$(next);$(next).css(opts.cssBefore);var count=opts.slideCount;$el.animate(opts.shuffle,opts.speedIn,opts.easeIn,function(){var hops=$.fn.cycle.hopsFromLast(opts,fwd);for(var k=0;k<hops;k++){fwd?opts.els.push(opts.els.shift()):opts.els.unshift(opts.els.pop());}if(fwd){for(var i=0,len=opts.els.length;i<len;i++){$(opts.els[i]).css("z-index",len-i+count);}}else{var z=$(curr).css("z-index");$el.css("z-index",parseInt(z)+1+count);}$el.animate({left:0,top:0},opts.speedOut,opts.easeOut,function(){$(fwd?this:curr).hide();if(cb){cb();}});});};opts.cssBefore={display:"block",opacity:1,top:0,left:0};};$.fn.cycle.transitions.turnUp=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,false);opts.cssBefore.top=next.cycleH;opts.animIn.height=next.cycleH;});opts.cssFirst={top:0};opts.cssBefore={left:0,height:0};opts.animIn={top:0};opts.animOut={height:0};};$.fn.cycle.transitions.turnDown=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,false);opts.animIn.height=next.cycleH;opts.animOut.top=curr.cycleH;});opts.cssFirst={top:0};opts.cssBefore={left:0,top:0,height:0};opts.animOut={height:0};};$.fn.cycle.transitions.turnLeft=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,true);opts.cssBefore.left=next.cycleW;opts.animIn.width=next.cycleW;});opts.cssBefore={top:0,width:0};opts.animIn={left:0};opts.animOut={width:0};};$.fn.cycle.transitions.turnRight=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,true);opts.animIn.width=next.cycleW;opts.animOut.left=curr.cycleW;});opts.cssBefore={top:0,left:0,width:0};opts.animIn={left:0};opts.animOut={width:0};};$.fn.cycle.transitions.zoom=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,false,true);opts.cssBefore.top=next.cycleH/2;opts.cssBefore.left=next.cycleW/2;opts.animIn={top:0,left:0,width:next.cycleW,height:next.cycleH};opts.animOut={width:0,height:0,top:curr.cycleH/2,left:curr.cycleW/2};});opts.cssFirst={top:0,left:0};opts.cssBefore={width:0,height:0};};$.fn.cycle.transitions.fadeZoom=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,false);opts.cssBefore.left=next.cycleW/2;opts.cssBefore.top=next.cycleH/2;opts.animIn={top:0,left:0,width:next.cycleW,height:next.cycleH};});opts.cssBefore={width:0,height:0};opts.animOut={opacity:0};};$.fn.cycle.transitions.blindX=function($cont,$slides,opts){var w=$cont.css("overflow","hidden").width();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.animIn.width=next.cycleW;opts.animOut.left=curr.cycleW;});opts.cssBefore={left:w,top:0};opts.animIn={left:0};opts.animOut={left:w};};$.fn.cycle.transitions.blindY=function($cont,$slides,opts){var h=$cont.css("overflow","hidden").height();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.animIn.height=next.cycleH;opts.animOut.top=curr.cycleH;});opts.cssBefore={top:h,left:0};opts.animIn={top:0};opts.animOut={top:h};};$.fn.cycle.transitions.blindZ=function($cont,$slides,opts){var h=$cont.css("overflow","hidden").height();var w=$cont.width();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.animIn.height=next.cycleH;opts.animOut.top=curr.cycleH;});opts.cssBefore={top:h,left:w};opts.animIn={top:0,left:0};opts.animOut={top:h,left:w};};$.fn.cycle.transitions.growX=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,true);opts.cssBefore.left=this.cycleW/2;opts.animIn={left:0,width:this.cycleW};opts.animOut={left:0};});opts.cssBefore={width:0,top:0};};$.fn.cycle.transitions.growY=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,false);opts.cssBefore.top=this.cycleH/2;opts.animIn={top:0,height:this.cycleH};opts.animOut={top:0};});opts.cssBefore={height:0,left:0};};$.fn.cycle.transitions.curtainX=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,true,true);opts.cssBefore.left=next.cycleW/2;opts.animIn={left:0,width:this.cycleW};opts.animOut={left:curr.cycleW/2,width:0};});opts.cssBefore={top:0,width:0};};$.fn.cycle.transitions.curtainY=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,false,true);opts.cssBefore.top=next.cycleH/2;opts.animIn={top:0,height:next.cycleH};opts.animOut={top:curr.cycleH/2,height:0};});opts.cssBefore={left:0,height:0};};$.fn.cycle.transitions.cover=function($cont,$slides,opts){var d=opts.direction||"left";var w=$cont.css("overflow","hidden").width();var h=$cont.height();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);if(d=="right"){opts.cssBefore.left=-w;}else{if(d=="up"){opts.cssBefore.top=h;}else{if(d=="down"){opts.cssBefore.top=-h;}else{opts.cssBefore.left=w;}}}});opts.animIn={left:0,top:0};opts.animOut={opacity:1};opts.cssBefore={top:0,left:0};};$.fn.cycle.transitions.uncover=function($cont,$slides,opts){var d=opts.direction||"left";var w=$cont.css("overflow","hidden").width();var h=$cont.height();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,true,true);if(d=="right"){opts.animOut.left=w;}else{if(d=="up"){opts.animOut.top=-h;}else{if(d=="down"){opts.animOut.top=h;}else{opts.animOut.left=-w;}}}});opts.animIn={left:0,top:0};opts.animOut={opacity:1};opts.cssBefore={top:0,left:0};};$.fn.cycle.transitions.toss=function($cont,$slides,opts){var w=$cont.css("overflow","visible").width();var h=$cont.height();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,true,true);if(!opts.animOut.left&&!opts.animOut.top){opts.animOut={left:w*2,top:-h/2,opacity:0};}else{opts.animOut.opacity=0;}});opts.cssBefore={left:0,top:0};opts.animIn={left:0};};$.fn.cycle.transitions.wipe=function($cont,$slides,opts){var w=$cont.css("overflow","hidden").width();var h=$cont.height();opts.cssBefore=opts.cssBefore||{};var clip;if(opts.clip){if(/l2r/.test(opts.clip)){clip="rect(0px 0px "+h+"px 0px)";}else{if(/r2l/.test(opts.clip)){clip="rect(0px "+w+"px "+h+"px "+w+"px)";}else{if(/t2b/.test(opts.clip)){clip="rect(0px "+w+"px 0px 0px)";}else{if(/b2t/.test(opts.clip)){clip="rect("+h+"px "+w+"px "+h+"px 0px)";}else{if(/zoom/.test(opts.clip)){var top=parseInt(h/2);var left=parseInt(w/2);clip="rect("+top+"px "+left+"px "+top+"px "+left+"px)";}}}}}}opts.cssBefore.clip=opts.cssBefore.clip||clip||"rect(0px 0px 0px 0px)";var d=opts.cssBefore.clip.match(/(\d+)/g);var t=parseInt(d[0]),r=parseInt(d[1]),b=parseInt(d[2]),l=parseInt(d[3]);opts.before.push(function(curr,next,opts){if(curr==next){return;}var $curr=$(curr),$next=$(next);$.fn.cycle.commonReset(curr,next,opts,true,true,false);opts.cssAfter.display="block";var step=1,count=parseInt((opts.speedIn/13))-1;(function f(){var tt=t?t-parseInt(step*(t/count)):0;var ll=l?l-parseInt(step*(l/count)):0;var bb=b<h?b+parseInt(step*((h-b)/count||1)):h;var rr=r<w?r+parseInt(step*((w-r)/count||1)):w;$next.css({clip:"rect("+tt+"px "+rr+"px "+bb+"px "+ll+"px)"});(step++<=count)?setTimeout(f,13):$curr.css("display","none");})();});opts.cssBefore={display:"block",opacity:1,top:0,left:0};opts.animIn={left:0};opts.animOut={left:0};};})(jQuery);
