-1){var x,t=false;for(var n=0;n");if(x==g(m[p])){t=true}}if(!t){v=v+m[p];var h=false;for(var A=y.length-1;A>=0;A--){if(y[A].slice(0,y[A].indexOf(" ")).replace(/(\w)$/,"$1>")==g(m[p])&&h==false){u=u?y[A]+u:y[A];h=true}}}}}l=u&&u+l||l}r.html([v,'',k.expandPrefix,'',k.expandText,"","",'',l,""].join(""))}var w=a(".details",this),z=a("span.read-more",this);w.hide();z.find("a").click(function(){z.hide();if(k.expandEffect==="show"&&!k.expandSpeed){k.beforeExpand(r);w.show();k.afterExpand(r);e(k,w)}else{k.beforeExpand(r);w[k.expandEffect](k.expandSpeed,function(){w.css({zoom:""});k.afterExpand(r);e(k,w)})}return false});if(k.userCollapse){r.find(".details").append(''+k.userCollapsePrefix+''+k.userCollapseText+"");r.find("span.re-collapse a").click(function(){clearTimeout(c);var i=a(this).parents(".details");b(i);k.onCollapse(r,true);return false})}});function b(h){h.hide().prev("span.read-more").show()}function e(i,h){if(i.collapseTimer){c=setTimeout(function(){b(h);i.onCollapse(h.parent(),false)},i.collapseTimer)}}function g(h){return h.replace(/\//,"")}};a.fn.expander.defaults={slicePoint:100,widow:4,expandText:"read more",expandPrefix:"… ",collapseTimer:0,expandEffect:"fadeIn",expandSpeed:"",userCollapse:true,userCollapseText:"[collapse expanded text]",userCollapsePrefix:" ",beforeExpand:function(b){},afterExpand:function(b){},onCollapse:function(c,b){}}})(jQuery);$(document).ready(function(){
/* e-asy optimalisatie */
if($('#button') && $('#toggleList')) {
$('#button').click(function () {
$('#toggleList').slideToggle('slow');
});
$('#toggleList').hide();
}
});(function(E){E.ui=E.ui||{};E.fn.extend({accordion:function(H,I){var G=Array.prototype.slice.call(arguments,1);return this.each(function(){if(typeof H=="string"){var J=E.data(this,"ui-accordion");J[H].apply(J,G)}else{if(!E(this).is(".ui-accordion")){E.data(this,"ui-accordion",new E.ui.accordion(this,H))}}})},activate:function(G){return this.accordion("activate",G)}});E.ui.accordion=function(G,H){this.options=H=E.extend({},E.ui.accordion.defaults,H);this.element=G;E(G).addClass("ui-accordion");if(H.navigation){var K=E(G).find("a").filter(H.navigationFilter);if(K.length){if(K.filter(H.header).length){H.active=K}else{H.active=K.parent().parent().prev();K.addClass("current")}}}H.headers=E(G).find(H.header);H.active=C(H.headers,H.active);if(H.fillSpace){var J=E(G).parent().height();H.headers.each(function(){J-=E(this).outerHeight()});var I=0;H.headers.next().each(function(){I=Math.max(I,E(this).innerHeight()-E(this).height())}).height(J-I)}else{if(H.autoheight){var J=0;H.headers.next().each(function(){J=Math.max(J,E(this).outerHeight())}).height(J)}}H.headers.not(H.active||"").next().hide();H.active.parent().andSelf().addClass(H.selectedClass);if(H.event){E(G).bind((H.event)+".ui-accordion",F)}};E.ui.accordion.prototype={activate:function(G){F.call(this.element,{target:C(this.options.headers,G)[0]})},enable:function(){this.options.disabled=false},disable:function(){this.options.disabled=true},destroy:function(){this.options.headers.next().css("display","");if(this.options.fillSpace||this.options.autoheight){this.options.headers.next().css("height","")}E.removeData(this.element,"ui-accordion");E(this.element).removeClass("ui-accordion").unbind(".ui-accordion")}};function B(H,G){return function(){return H.apply(G,arguments)}}function D(I){if(!E.data(this,"ui-accordion")){return }var G=E.data(this,"ui-accordion");var H=G.options;H.running=I?0:--H.running;if(H.running){return }if(H.clearStyle){H.toShow.add(H.toHide).css({height:"",overflow:""})}E(this).triggerHandler("change.ui-accordion",[H.data],H.change)}function A(G,K,L,J,M){var I=E.data(this,"ui-accordion").options;I.toShow=G;I.toHide=K;I.data=L;var H=B(D,this);I.running=K.size()==0?G.size():K.size();if(I.animated){if(!I.alwaysOpen&&J){E.ui.accordion.animations[I.animated]({toShow:jQuery([]),toHide:K,complete:H,down:M,autoheight:I.autoheight})}else{E.ui.accordion.animations[I.animated]({toShow:G,toHide:K,complete:H,down:M,autoheight:I.autoheight})}}else{if(!I.alwaysOpen&&J){G.toggle()}else{K.hide();G.show()}H(true)}}function F(L){var J=E.data(this,"ui-accordion").options;if(J.disabled){return false}if(!L.target&&!J.alwaysOpen){J.active.parent().andSelf().toggleClass(J.selectedClass);var I=J.active.next(),M={instance:this,options:J,newHeader:jQuery([]),oldHeader:J.active,newContent:jQuery([]),oldContent:I},G=J.active=E([]);A.call(this,G,I,M);return false}var K=E(L.target);if(K.parents(J.header).length){while(!K.is(J.header)){K=K.parent()}}var H=K[0]==J.active[0];if(J.running||(J.alwaysOpen&&H)){return false}if(!K.is(J.header)){return }J.active.parent().andSelf().toggleClass(J.selectedClass);if(!H){K.parent().andSelf().addClass(J.selectedClass)}var G=K.next(),I=J.active.next(),M={instance:this,options:J,newHeader:K,oldHeader:J.active,newContent:G,oldContent:I},N=J.headers.index(J.active[0])>J.headers.index(K[0]);J.active=H?E([]):K;A.call(this,G,I,M,H,N);return false}function C(H,G){return G!=undefined?typeof G=="number"?H.filter(":eq("+G+")"):H.not(H.not(G)):G===false?E([]):H.filter(":eq(0)")}E.extend(E.ui.accordion,{defaults:{selectedClass:"selected",alwaysOpen:true,animated:"slide",event:"click",header:"a",autoheight:true,running:0,navigationFilter:function(){return this.href.toLowerCase()==location.href.toLowerCase()}},animations:{slide:function(G,I){G=E.extend({easing:"swing",duration:300},G,I);if(!G.toHide.size()){G.toShow.animate({height:"show"},G);return }var H=G.toHide.height(),J=G.toShow.height(),K=J/H;G.toShow.css({height:0,overflow:"hidden"}).show();G.toHide.filter(":hidden").each(G.complete).end().filter(":visible").animate({height:"hide"},{step:function(L){var M=(H-L)*K;if(E.browser.msie||E.browser.opera){M=Math.ceil(M)}G.toShow.height(M)},duration:G.duration,easing:G.easing,complete:function(){if(!G.autoheight){G.toShow.css("height","auto")}G.complete()}})},bounceslide:function(G){this.slide(G,{easing:G.down?"bounceout":"swing",duration:G.down?1000:200})},easeslide:function(G){this.slide(G,{easing:"easeinout",duration:700})}}})})(jQuery);(function(D){var C=D.ajax;var A={};var E=[];var B=[];D.ajax=function(H){H=jQuery.extend(H,jQuery.extend({},jQuery.ajaxSettings,H));var G=H.port;switch(H.mode){case"abort":if(A[G]){A[G].abort()}return A[G]=C.apply(this,arguments);case"queue":var F=H.complete;H.complete=function(){if(F){F.apply(this,arguments)}jQuery([C]).dequeue("ajax"+G)};jQuery([C]).queue("ajax"+G,function(){C(H)});return ;case"sync":var I=E.length;E[I]={error:H.error,success:H.success,complete:H.complete,done:false};B[I]={error:[],success:[],complete:[]};H.error=function(){B[I].error=arguments};H.success=function(){B[I].success=arguments};H.complete=function(){B[I].complete=arguments;E[I].done=true;if(I==0||!E[I-1]){for(var J=I;J';return this.each(function(){if($('> iframe.bgiframe',this).length==0)this.insertBefore(document.createElement(html),this.firstChild);});}return this;};})(jQuery);(function(B){B.dimensions={version:"1.2"};B.each(["Height","Width"],function(D,C){B.fn["inner"+C]=function(){if(!this[0]){return }var F=C=="Height"?"Top":"Left",E=C=="Height"?"Bottom":"Right";return this.is(":visible")?this[0]["client"+C]:A(this,C.toLowerCase())+A(this,"padding"+F)+A(this,"padding"+E)};B.fn["outer"+C]=function(F){if(!this[0]){return }var H=C=="Height"?"Top":"Left",E=C=="Height"?"Bottom":"Right";F=B.extend({margin:false},F||{});var G=this.is(":visible")?this[0]["offset"+C]:A(this,C.toLowerCase())+A(this,"border"+H+"Width")+A(this,"border"+E+"Width")+A(this,"padding"+H)+A(this,"padding"+E);return G+(F.margin?(A(this,"margin"+H)+A(this,"margin"+E)):0)}});B.each(["Left","Top"],function(D,C){B.fn["scroll"+C]=function(E){if(!this[0]){return }return E!=undefined?this.each(function(){this==window||this==document?window.scrollTo(C=="Left"?E:B(window)["scrollLeft"](),C=="Top"?E:B(window)["scrollTop"]()):this["scroll"+C]=E}):this[0]==window||this[0]==document?self[(C=="Left"?"pageXOffset":"pageYOffset")]||B.boxModel&&document.documentElement["scroll"+C]||document.body["scroll"+C]:this[0]["scroll"+C]}});B.fn.extend({position:function(){var H=0,G=0,F=this[0],I,C,E,D;if(F){E=this.offsetParent();I=this.offset();C=E.offset();I.top-=A(F,"marginTop");I.left-=A(F,"marginLeft");C.top+=A(E,"borderTopWidth");C.left+=A(E,"borderLeftWidth");D={top:I.top-C.top,left:I.left-C.left}}return D},offsetParent:function(){var C=this[0].offsetParent;while(C&&(!/^body|html$/i.test(C.tagName)&&B.css(C,"position")=="static")){C=C.offsetParent}return B(C)}});function A(C,D){return parseInt(B.curCSS(C.jquery?C[0]:C,D,true))||0}})(jQuery);jQuery.extend(jQuery.easing,{easein:function(B,C,A,E,D){return E*(C/=D)*C+A},easeinout:function(B,C,A,F,E){if(C=0)?this.offsetHeight:0;this.each(function(){var l,n="",b="";if(a!=""){a=a.replace("left","tl bl");a=a.replace("right","tr br");a=a.replace("top","tr tl");a=a.replace("bottom","br bl");a=a.replace("transparent","alias");if(a.indexOf("tl")>=0){n="both";if(a.indexOf("tr")==-1){n="left"}}else{if(a.indexOf("tr")>=0){n="right"}}if(a.indexOf("bl")>=0){b="both";if(a.indexOf("br")==-1){b="left"}}else{if(a.indexOf("br")>=0){b="right"}}}if(n==""&&b==""&&a.indexOf("none")==-1){n="both";b="both"}if(this.currentStyle!=null&&this.currentStyle.hasLayout!=null&&this.currentStyle.hasLayout==false){jQuery(this).css("display","inline-block")}if(n!=""){var m=document.createElement("b"),f=4,k="",c,l,e="r",g,j;jQuery(m).css("marginLeft","-"+_niftyGP(this,"Left")+"px");jQuery(m).css("marginRight","-"+_niftyGP(this,"Right")+"px");if(a.indexOf("alias")>=0||(j=_niftyBC(this))=="transparent"){j="transparent";g="transparent";k=_niftyPBC(this);e="t"}else{g=_niftyPBC(this);k=_niftyMix(j,g)}jQuery(m).css("background",g);m.className="niftycorners";c=_niftyGP(this,"Top");if(a.indexOf("small")>=0){jQuery(m).css("marginBottom",(c-2)+"px");e+="s";f=2}else{if(a.indexOf("big")>=0){jQuery(m).css("marginBottom",(c-10)+"px");e+="b";f=8}else{jQuery(m).css("marginBottom",(c-5)+"px")}}for(l=1;l<=f;l++){jQuery(m).append(CreateStrip(l,n,j,k,e))}jQuery(this).css("paddingTop","0px");jQuery(this).prepend(m)}if(b!=""){var m=document.createElement("b"),f=4,k="",c,l,e="r",g,j;jQuery(m).css("marginLeft","-"+_niftyGP(this,"Left")+"px");jQuery(m).css("marginRight","-"+_niftyGP(this,"Right")+"px");if(a.indexOf("alias")>=0||(j=_niftyBC(this))=="transparent"){j="transparent";g="transparent";k=_niftyPBC(this);e="t"}else{g=_niftyPBC(this);k=_niftyMix(j,g)}jQuery(m).css("background",g);m.className="niftycorners";c=_niftyGP(this,"Bottom");if(a.indexOf("small")>=0){jQuery(m).css("marginTop",(c-2)+"px");e+="s";f=2}else{if(a.indexOf("big")>=0){jQuery(m).css("marginTop",(c-10)+"px");e+="b";f=8}else{jQuery(m).css("marginTop",(c-5)+"px")}}for(l=f;l>0;l--){jQuery(m).append(CreateStrip(l,b,j,k,e))}jQuery(this).css("paddingBottom","0");jQuery(this).append(m)}});if(a.indexOf("height")>=0){this.each(function(){if(this.offsetHeight>h){h=this.offsetHeight}jQuery(this).css("height","auto");var c=h-this.offsetHeight;if(c>0){var b=document.createElement("b");b.className="niftyfill";jQuery(b).css("height",c+"px");nc=this.lastChild;nc.className=="niftycorners"?this.insertBefore(b,nc):jQuery(this).append(b)}})}};function CreateStrip(d,e,b,c,f){var a=document.createElement("b");a.className=f+d;jQuery(a).css("backgroundColor",b).css("borderColor",c);if(e=="left"){jQuery(a).css("borderRightWidth","0").css("marginRight","0")}else{if(e=="right"){jQuery(a).css("borderLeftWidth","0").css("marginLeft","0")}}return(a)}function _niftyPBC(a){var b=a.parentNode,d;while(b.tagName.toUpperCase()!="HTML"&&(d=_niftyBC(b))=="transparent"){b=b.parentNode}if(d=="transparent"){d="#FFFFFF"}return(d)}function _niftyBC(a){var j=jQuery(a).css("backgroundColor");if(j==null||j=="transparent"||j.indexOf("rgba(0, 0, 0, 0)")>=0){return("transparent")}if(j.indexOf("rgb")>=0){var f="";var g=/([0-9]+)[, ]+([0-9]+)[, ]+([0-9]+)/;var e=g.exec(j);for(var d=1;d<4;d++){var b=parseInt(e[d]).toString(16);if(b.length==1){f+="0"+b}else{f+=b}}j="#"+f}return(j)}function _niftyGP(a,b){var c=jQuery(a).css("padding"+b);if(c==null||c.indexOf("px")==-1){return(0)}return(parseInt(c))}function _niftyMix(f,e){var d,c,b,a,j,g=new Array(3);f.length==4?c=1:c=2;e.length==4?b=1:b=2;for(d=0;d<3;d++){a=parseInt(f.substr(1+c*d,c),16);if(c==1){a=16*a+a}j=parseInt(e.substr(1+b*d,b),16);if(b==1){j=16*j+j}g[d]=Math.floor((a*50+j*50)/100);g[d]=g[d].toString(16);if(g[d].length==1){g[d]="0"+g[d]}}return("#"+g[0]+g[1]+g[2])};Date.dayNames=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];Date.abbrDayNames=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];Date.monthNames=["January","February","March","April","May","June","July","August","September","October","November","December"];Date.abbrMonthNames=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];Date.firstDayOfWeek=1;Date.format="dd/mm/yyyy";Date.fullYearStart="20";(function(){function B(C,D){if(!Date.prototype[C]){Date.prototype[C]=D}}B("isLeapYear",function(){var C=this.getFullYear();return(C%4==0&&C%100!=0)||C%400==0});B("isWeekend",function(){return this.getDay()==0||this.getDay()==6});B("isWeekDay",function(){return !this.isWeekend()});B("getDaysInMonth",function(){return[31,(this.isLeapYear()?29:28),31,30,31,30,31,31,30,31,30,31][this.getMonth()]});B("getDayName",function(C){return C?Date.abbrDayNames[this.getDay()]:Date.dayNames[this.getDay()]});B("getMonthName",function(C){return C?Date.abbrMonthNames[this.getMonth()]:Date.monthNames[this.getMonth()]});B("getDayOfYear",function(){var C=new Date("1/1/"+this.getFullYear());return Math.floor((this.getTime()-C.getTime())/86400000)});B("getWeekOfYear",function(){return Math.ceil(this.getDayOfYear()/7)});B("setDayOfYear",function(C){this.setMonth(0);this.setDate(C);return this});B("addYears",function(C){this.setFullYear(this.getFullYear()+C);return this});B("addMonths",function(D){var C=this.getDate();this.setMonth(this.getMonth()+D);if(C>this.getDate()){this.addDays(-this.getDate())}return this});B("addDays",function(C){this.setDate(this.getDate()+C);return this});B("addHours",function(C){this.setHours(this.getHours()+C);return this});B("addMinutes",function(C){this.setMinutes(this.getMinutes()+C);return this});B("addSeconds",function(C){this.setSeconds(this.getSeconds()+C);return this});B("zeroTime",function(){this.setMilliseconds(0);this.setSeconds(0);this.setMinutes(0);this.setHours(0);return this});B("asString",function(){var C=Date.format;return C.split("yyyy").join(this.getFullYear()).split("yy").join((this.getFullYear()+"").substring(2)).split("mmm").join(this.getMonthName(true)).split("mm").join(A(this.getMonth()+1)).split("dd").join(A(this.getDate()))});Date.fromString=function(E){var F=Date.format;var H=new Date("01/01/1977");var I=F.indexOf("yyyy");if(I>-1){H.setFullYear(Number(E.substr(I,4)))}else{H.setFullYear(Number(Date.fullYearStart+E.substr(F.indexOf("yy"),2)))}var C=F.indexOf("mmm");if(C>-1){var G=E.substr(C,3);for(var D=0;D1){J-=7}var O=Math.ceil(((-1*J+1)+K.getDaysInMonth())/7);K.addDays(J-1);var V=function(){if(P.hoverClass){D(this).addClass(P.hoverClass)}};var G=function(){if(P.hoverClass){D(this).removeClass(P.hoverClass)}};var L=0;while(L++'+D.dpText.TEXT_CHOOSE_DATE+"").bind("click",function(){G.dpDisplay(this);this.blur();return false});G.after(F.button)}if(!I&&G.is(":text")){G.bind("dateSelected",function(K,J,L){this.value=J.asString()}).bind("change",function(){var J=Date.fromString(this.value);if(J){F.setSelected(J,true,true)}});if(E.clickInput){G.bind("click",function(){G.dpDisplay()})}var H=Date.fromString(this.value);if(this.value!=""&&H){F.setSelected(H,true,true)}}G.addClass("dp-applied")})},dpSetDisabled:function(E){return B.call(this,"setDisabled",E)},dpSetStartDate:function(E){return B.call(this,"setStartDate",E)},dpSetEndDate:function(E){return B.call(this,"setEndDate",E)},dpGetSelected:function(){var E=C(this[0]);if(E){return E.getSelected()}return null},dpSetSelected:function(G,F,E){if(F==undefined){F=true}if(E==undefined){E=true}return B.call(this,"setSelected",Date.fromString(G),F,E)},dpSetDisplayedMonth:function(E,F){return B.call(this,"setDisplayedMonth",Number(E),Number(F))},dpDisplay:function(E){return B.call(this,"display",E)},dpSetRenderCallback:function(E){return B.call(this,"setRenderCallback",E)},dpSetPosition:function(E,F){return B.call(this,"setPosition",E,F)},dpSetOffset:function(E,F){return B.call(this,"setOffset",E,F)},dpClose:function(){return B.call(this,"_closeCalendar",false,this[0])},_dpDestroy:function(){}});var B=function(G,F,E,H){return this.each(function(){var I=C(this);if(I){I[G](F,E,H)}})};function A(E){this.ele=E;this.displayedMonth=null;this.displayedYear=null;this.startDate=null;this.endDate=null;this.showYearNavigation=null;this.closeOnSelect=null;this.displayClose=null;this.selectMultiple=null;this.verticalPosition=null;this.horizontalPosition=null;this.verticalOffset=null;this.horizontalOffset=null;this.button=null;this.renderCallback=[];this.selectedDates={};this.inline=null;this.context="#dp-popup"}D.extend(A.prototype,{init:function(E){this.setStartDate(E.startDate);this.setEndDate(E.endDate);this.setDisplayedMonth(Number(E.month),Number(E.year));this.setRenderCallback(E.renderCallback);this.showYearNavigation=E.showYearNavigation;this.closeOnSelect=E.closeOnSelect;this.displayClose=E.displayClose;this.selectMultiple=E.selectMultiple;this.verticalPosition=E.verticalPosition;this.horizontalPosition=E.horizontalPosition;this.hoverClass=E.hoverClass;this.setOffset(E.verticalOffset,E.horizontalOffset);this.inline=E.inline;if(this.inline){this.context=this.ele;this.display()}},setStartDate:function(E){if(E){this.startDate=Date.fromString(E)}if(!this.startDate){this.startDate=(new Date()).zeroTime()}this.setDisplayedMonth(this.displayedMonth,this.displayedYear)},setEndDate:function(E){if(E){this.endDate=Date.fromString(E)}if(!this.endDate){this.endDate=(new Date("12/31/2999"))}if(this.endDate.getTime()H.getTime()){F=H}}this.displayedMonth=F.getMonth();this.displayedYear=F.getFullYear()},setSelected:function(G,E,F){if(this.selectMultiple==false){this.selectedDates={};D("td.selected",this.context).removeClass("selected")}if(F){this.setDisplayedMonth(G.getMonth(),G.getFullYear())}this.selectedDates[G.toString()]=E},isSelected:function(E){return this.selectedDates[E.toString()]},getSelected:function(){var E=[];for(s in this.selectedDates){if(this.selectedDates[s]==true){E.push(Date.parse(s))}}return E},display:function(E){if(D(this.ele).is(".dp-disabled")){return }E=E||this.ele;var L=this;var H=D(E);var K=H.offset();var M;var N;var G;var I;if(L.inline){M=D(this.ele);N={id:"calendar-"+this.ele._dpId,className:"dp-popup dp-popup-inline"};I={}}else{M=D("body");N={id:"dp-popup",className:"dp-popup"};I={top:K.top+L.verticalOffset,left:K.left+L.horizontalOffset};var J=function(Q){var O=Q.target;var P=D("#dp-popup")[0];while(true){if(O==P){return true}else{if(O==document){L._closeCalendar();return false}else{O=D(O).parent()[0]}}}};this._checkMouse=J;this._closeCalendar(true)}M.append(D("").attr(N).css(I).append(D(""),D('').append(D('<<').bind("click",function(){return L._displayNewMonth.call(L,this,0,-1)}),D('<').bind("click",function(){return L._displayNewMonth.call(L,this,-1,0)})),D('').append(D('>>').bind("click",function(){return L._displayNewMonth.call(L,this,0,1)}),D('>').bind("click",function(){return L._displayNewMonth.call(L,this,1,0)})),D("").attr("className","dp-calendar")).bgIframe());var F=this.inline?D(".dp-popup",this.context):D("#dp-popup");if(this.showYearNavigation==false){D(".dp-nav-prev-year, .dp-nav-next-year",L.context).css("display","none")}if(this.displayClose){F.append(D(''+D.dpText.TEXT_CLOSE+"").bind("click",function(){L._closeCalendar();return false}))}L._renderCalendar();D(this.ele).trigger("dpDisplayed",F);if(!L.inline){if(this.verticalPosition==D.dpConst.POS_BOTTOM){F.css("top",K.top+H.height()-F.height()+L.verticalOffset)}if(this.horizontalPosition==D.dpConst.POS_RIGHT){F.css("left",K.left+H.width()-F.width()+L.horizontalOffset)}D(document).bind("mousedown",this._checkMouse)}},setRenderCallback:function(E){if(E&&typeof (E)=="function"){E=[E]}this.renderCallback=this.renderCallback.concat(E)},cellRender:function(J,E,H,G){var K=this.dpController;var I=new Date(E.getTime());J.bind("click",function(){var M=D(this);if(!M.is(".disabled")){K.setSelected(I,!M.is(".selected")||!K.selectMultiple);var L=K.isSelected(I);D(K.ele).trigger("dateSelected",[I,J,L]);D(K.ele).trigger("change");if(K.closeOnSelect){K._closeCalendar()}else{M[L?"addClass":"removeClass"]("selected")}}});if(K.isSelected(I)){J.addClass("selected")}for(var F=0;F20){H.addClass("disabled")}});var G=this.startDate.getDate();D(".dp-calendar td.current-month",this.context).each(function(){var H=D(this);if(Number(H.text())20){var F=new Date(this.startDate.getTime());F.addMonths(1);if(this.displayedYear==F.getFullYear()&&this.displayedMonth==F.getMonth()){D("dp-calendar td.other-month",this.context).each(function(){var H=D(this);if(Number(H.text())G){H.addClass("disabled")}})}else{D(".dp-nav-next-year",this.context).removeClass("disabled");D(".dp-nav-next-month",this.context).removeClass("disabled");var G=this.endDate.getDate();if(G<13){var E=new Date(this.endDate.getTime());E.addMonths(-1);if(this.displayedYear==E.getFullYear()&&this.displayedMonth==E.getMonth()){D(".dp-calendar td.other-month",this.context).each(function(){var H=D(this);if(Number(H.text())>G){H.addClass("disabled")}})}}}},_closeCalendar:function(E,F){if(!F||F==this.ele){D(document).unbind("mousedown",this._checkMouse);this._clearCalendar();D("#dp-popup a").unbind();D("#dp-popup").empty().remove();if(!E){D(this.ele).trigger("dpClosed",[this.getSelected()])}}},_clearCalendar:function(){D(".dp-calendar td",this.context).unbind();D(".dp-calendar",this.context).empty()}});D.dpConst={SHOW_HEADER_NONE:0,SHOW_HEADER_SHORT:1,SHOW_HEADER_LONG:2,POS_TOP:0,POS_BOTTOM:1,POS_LEFT:0,POS_RIGHT:1};D.dpText={TEXT_PREV_YEAR:"Previous year",TEXT_PREV_MONTH:"Previous month",TEXT_NEXT_YEAR:"Next year",TEXT_NEXT_MONTH:"Next month",TEXT_CLOSE:"Close",TEXT_CHOOSE_DATE:"Choose date"};D.dpVersion="$Id: jquery.datePicker.js 3739 2007-10-25 13:55:30Z kelvin.luck $";function C(E){if(E._dpId){return D.event._dpCache[E._dpId]}return false}if(D.fn.bgIframe==undefined){D.fn.bgIframe=function(){return this}}D(window).bind("unload",function(){var F=D.event._dpCache||[];for(var E in F){D(F[E].ele)._dpDestroy()}})})(jQuery);/*
* SimpleModal 1.4 - jQuery Plugin
* http://www.ericmmartin.com/projects/simplemodal/
* Copyright (c) 2010 Eric Martin (http://twitter.com/ericmmartin)
* Dual licensed under the MIT and GPL licenses
* Revision: $Id: jquery.simplemodal.js 256 2010-07-27 23:05:43Z emartin24 $
*/
(function(d){var k=d.browser.msie&&parseInt(d.browser.version)===6&&typeof window.XMLHttpRequest!=="object",l=null,f=[];d.modal=function(a,b){return d.modal.impl.init(a,b)};d.modal.close=function(){d.modal.impl.close()};d.modal.focus=function(a){d.modal.impl.focus(a)};d.modal.setContainerDimensions=function(){d.modal.impl.setContainerDimensions()};d.modal.setPosition=function(){d.modal.impl.setPosition()};d.modal.update=function(a,b){d.modal.impl.update(a,b)};d.fn.modal=function(a){return d.modal.impl.init(this,
a)};d.modal.defaults={appendTo:"body",focus:true,opacity:50,overlayId:"simplemodal-overlay",overlayCss:{},containerId:"simplemodal-container",containerCss:{},dataId:"simplemodal-data",dataCss:{},minHeight:null,minWidth:null,maxHeight:null,maxWidth:null,autoResize:false,autoPosition:true,zIndex:1E3,close:true,closeHTML:'',closeClass:"simplemodal-close",escClose:true,overlayClose:false,position:null,persist:false,modal:true,onOpen:null,onShow:null,onClose:null};
d.modal.impl={d:{},init:function(a,b){var c=this;if(c.d.data)return false;l=d.browser.msie&&!d.boxModel;c.o=d.extend({},d.modal.defaults,b);c.zIndex=c.o.zIndex;c.occb=false;if(typeof a==="object"){a=a instanceof jQuery?a:d(a);c.d.placeholder=false;if(a.parent().parent().size()>0){a.before(d("").attr("id","simplemodal-placeholder").css({display:"none"}));c.d.placeholder=true;c.display=a.css("display");if(!c.o.persist)c.d.orig=a.clone(true)}}else if(typeof a==="string"||typeof a==="number")a=
d("").html(a);else{alert("SimpleModal Error: Unsupported data type: "+typeof a);return c}c.create(a);c.open();d.isFunction(c.o.onShow)&&c.o.onShow.apply(c,[c.d]);return c},create:function(a){var b=this;f=b.getDimensions();if(b.o.modal&&k)b.d.iframe=d('').css(d.extend(b.o.iframeCss,{display:"none",opacity:0,position:"fixed",height:f[0],width:f[1],zIndex:b.o.zIndex,top:0,left:0})).appendTo(b.o.appendTo);b.d.overlay=d("").attr("id",b.o.overlayId).addClass("simplemodal-overlay").css(d.extend(b.o.overlayCss,
{display:"none",opacity:b.o.opacity/100,height:b.o.modal?f[0]:0,width:b.o.modal?f[1]:0,position:"fixed",left:0,top:0,zIndex:b.o.zIndex+1})).appendTo(b.o.appendTo);b.d.container=d("").attr("id",b.o.containerId).addClass("simplemodal-container").css(d.extend(b.o.containerCss,{display:"none",position:"fixed",zIndex:b.o.zIndex+2})).append(b.o.close&&b.o.closeHTML?d(b.o.closeHTML).addClass(b.o.closeClass):"").appendTo(b.o.appendTo);b.d.wrap=d("").attr("tabIndex",-1).addClass("simplemodal-wrap").css({height:"100%",
outline:0,width:"100%"}).appendTo(b.d.container);b.d.data=a.attr("id",a.attr("id")||b.o.dataId).addClass("simplemodal-data").css(d.extend(b.o.dataCss,{display:"none"})).appendTo("body");b.setContainerDimensions();b.d.data.appendTo(b.d.wrap);if(k||l)b.fixIE()},bindEvents:function(){var a=this;d("."+a.o.closeClass).bind("click.simplemodal",function(b){b.preventDefault();a.close()});a.o.modal&&a.o.close&&a.o.overlayClose&&a.d.overlay.bind("click.simplemodal",function(b){b.preventDefault();a.close()});
d(document).bind("keydown.simplemodal",function(b){if(a.o.modal&&b.keyCode===9)a.watchTab(b);else if(a.o.close&&a.o.escClose&&b.keyCode===27){b.preventDefault();a.close()}});d(window).bind("resize.simplemodal",function(){f=a.getDimensions();a.o.autoResize?a.setContainerDimensions():a.o.autoPosition&&a.setPosition();if(k||l)a.fixIE();else if(a.o.modal){a.d.iframe&&a.d.iframe.css({height:f[0],width:f[1]});a.d.overlay.css({height:f[0],width:f[1]})}})},unbindEvents:function(){d("."+this.o.closeClass).unbind("click.simplemodal");
d(document).unbind("keydown.simplemodal");d(window).unbind("resize.simplemodal");this.d.overlay.unbind("click.simplemodal")},fixIE:function(){var a=this,b=a.o.position;d.each([a.d.iframe||null,!a.o.modal?null:a.d.overlay,a.d.container],function(c,h){if(h){var g=h[0].style;g.position="absolute";if(c<2){g.removeExpression("height");g.removeExpression("width");g.setExpression("height",'document.body.scrollHeight > document.body.clientHeight ? document.body.scrollHeight : document.body.clientHeight + "px"');
g.setExpression("width",'document.body.scrollWidth > document.body.clientWidth ? document.body.scrollWidth : document.body.clientWidth + "px"')}else{var e;if(b&&b.constructor===Array){c=b[0]?typeof b[0]==="number"?b[0].toString():b[0].replace(/px/,""):h.css("top").replace(/px/,"");c=c.indexOf("%")===-1?c+' + (t = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"':parseInt(c.replace(/%/,""))+' * ((document.documentElement.clientHeight || document.body.clientHeight) / 100) + (t = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"';
if(b[1]){e=typeof b[1]==="number"?b[1].toString():b[1].replace(/px/,"");e=e.indexOf("%")===-1?e+' + (t = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft) + "px"':parseInt(e.replace(/%/,""))+' * ((document.documentElement.clientWidth || document.body.clientWidth) / 100) + (t = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft) + "px"'}}else{c='(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (t = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"';
e='(document.documentElement.clientWidth || document.body.clientWidth) / 2 - (this.offsetWidth / 2) + (t = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft) + "px"'}g.removeExpression("top");g.removeExpression("left");g.setExpression("top",c);g.setExpression("left",e)}}})},focus:function(a){var b=this;a=a&&d.inArray(a,["first","last"])!==-1?a:"first";var c=d(":input:enabled:visible:"+a,b.d.wrap);setTimeout(function(){c.length>0?c.focus():b.d.wrap.focus()},
10)},getDimensions:function(){var a=d(window);return[d.browser.opera&&d.browser.version>"9.5"&&d.fn.jquery<"1.3"||d.browser.opera&&d.browser.version<"9.5"&&d.fn.jquery>"1.2.6"?a[0].innerHeight:a.height(),a.width()]},getVal:function(a,b){return a?typeof a==="number"?a:a==="auto"?0:a.indexOf("%")>0?parseInt(a.replace(/%/,""))/100*(b==="h"?f[0]:f[1]):parseInt(a.replace(/px/,"")):null},update:function(a,b){var c=this;if(!c.d.data)return false;c.d.origHeight=c.getVal(a,"h");c.d.origWidth=c.getVal(b,"w");
c.d.data.hide();a&&c.d.container.css("height",a);b&&c.d.container.css("width",b);c.setContainerDimensions();c.d.data.show();c.o.focus&&c.focus();c.unbindEvents();c.bindEvents()},setContainerDimensions:function(){var a=this,b=a.d.origHeight?a.d.origHeight:d.browser.opera?a.d.container.height():a.getVal(a.d.container.css("height"),"h"),c=a.d.origWidth?a.d.origWidth:d.browser.opera?a.d.container.width():a.getVal(a.d.container.css("width"),"w"),h=a.d.data.outerHeight(true),g=a.d.data.outerWidth(true);
a.d.origHeight=a.d.origHeight||b;a.d.origWidth=a.d.origWidth||c;var e=a.o.maxHeight?a.getVal(a.o.maxHeight,"h"):null,i=a.o.maxWidth?a.getVal(a.o.maxWidth,"w"):null;e=e&&ee?e:b:h?h>e?e:a.o.minHeight&&j!=="auto"&&hi?i:c:g?g>i?i:a.o.minWidth&&e!=="auto"&&g
b||g>c?"auto":"visible"});a.o.autoPosition&&a.setPosition()},setPosition:function(){var a=this,b,c;b=f[0]/2-a.d.container.outerHeight(true)/2;c=f[1]/2-a.d.container.outerWidth(true)/2;if(a.o.position&&Object.prototype.toString.call(a.o.position)==="[object Array]"){b=a.o.position[0]||b;c=a.o.position[1]||c}else{b=b;c=c}a.d.container.css({left:c,top:b})},watchTab:function(a){var b=this;if(d(a.target).parents(".simplemodal-container").length>0){b.inputs=d(":input:enabled:visible:first, :input:enabled:visible:last",
b.d.data[0]);if(!a.shiftKey&&a.target===b.inputs[b.inputs.length-1]||a.shiftKey&&a.target===b.inputs[0]||b.inputs.length===0){a.preventDefault();b.focus(a.shiftKey?"last":"first")}}else{a.preventDefault();b.focus()}},open:function(){var a=this;a.d.iframe&&a.d.iframe.show();if(d.isFunction(a.o.onOpen))a.o.onOpen.apply(a,[a.d]);else{a.d.overlay.show();a.d.container.show();a.d.data.show()}a.o.focus&&a.focus();a.bindEvents()},close:function(){var a=this;if(!a.d.data)return false;a.unbindEvents();if(d.isFunction(a.o.onClose)&&
!a.occb){a.occb=true;a.o.onClose.apply(a,[a.d])}else{if(a.d.placeholder){var b=d("#simplemodal-placeholder");if(a.o.persist)b.replaceWith(a.d.data.removeClass("simplemodal-data").css("display",a.display));else{a.d.data.hide().remove();b.replaceWith(a.d.orig)}}else a.d.data.hide().remove();a.d.container.hide().remove();a.d.overlay.hide();a.d.iframe&&a.d.iframe.hide().remove();setTimeout(function(){a.d.overlay.remove();a.d={}},10)}}}})(jQuery);
jQuery.cookie=function(B,I,L){if(typeof I!="undefined"){L=L||{};if(I===null){I="";L.expires=-1}var E="";if(L.expires&&(typeof L.expires=="number"||L.expires.toUTCString)){var F;if(typeof L.expires=="number"){F=new Date();F.setTime(F.getTime()+(L.expires*24*60*60*1000))}else{F=L.expires}E="; expires="+F.toUTCString()}var K=L.path?"; path="+(L.path):"";var G=L.domain?"; domain="+(L.domain):"";var A=L.secure?"; secure":"";document.cookie=[B,"=",encodeURIComponent(I),E,K,G,A].join("")}else{var D=null;if(document.cookie&&document.cookie!=""){var J=document.cookie.split(";");for(var H=0;H35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(6($){$.1g.1w=6(o){o=$.1f({r:n,x:n,N:n,17:q,J:n,L:1a,16:n,y:q,u:12,H:3,B:0,k:1,K:n,I:n},o||{});8 G.R(6(){p b=q,A=o.y?"15":"w",P=o.y?"t":"s";p c=$(G),9=$("9",c),E=$("10",9),W=E.Y(),v=o.H;7(o.u){9.1h(E.D(W-v-1+1).V()).1d(E.D(0,v).V());o.B+=v}p f=$("10",9),l=f.Y(),4=o.B;c.5("1c","H");f.5({U:"T",1b:o.y?"S":"w"});9.5({19:"0",18:"0",Q:"13","1v-1s-1r":"S","z-14":"1"});c.5({U:"T",Q:"13","z-14":"2",w:"1q"});p g=o.y?t(f):s(f);p h=g*l;p j=g*v;f.5({s:f.s(),t:f.t()});9.5(P,h+"C").5(A,-(4*g));c.5(P,j+"C");7(o.r)$(o.r).O(6(){8 m(4-o.k)});7(o.x)$(o.x).O(6(){8 m(4+o.k)});7(o.N)$.R(o.N,6(i,a){$(a).O(6(){8 m(o.u?o.H+i:i)})});7(o.17&&c.11)c.11(6(e,d){8 d>0?m(4-o.k):m(4+o.k)});7(o.J)1p(6(){m(4+o.k)},o.J+o.L);6 M(){8 f.D(4).D(0,v)};6 m(a){7(!b){7(o.K)o.K.Z(G,M());7(o.u){7(a<=o.B-v-1){9.5(A,-((l-(v*2))*g)+"C");4=a==o.B-v-1?l-(v*2)-1:l-(v*2)-o.k}F 7(a>=l-v+1){9.5(A,-((v)*g)+"C");4=a==l-v+1?v+1:v+o.k}F 4=a}F{7(a<0||a>l-v)8;F 4=a}b=12;9.1o(A=="w"?{w:-(4*g)}:{15:-(4*g)},o.L,o.16,6(){7(o.I)o.I.Z(G,M());b=q});7(!o.u){$(o.r+","+o.x).1n("X");$((4-o.k<0&&o.r)||(4+o.k>l-v&&o.x)||[]).1m("X")}}8 q}})};6 5(a,b){8 1l($.5(a[0],b))||0};6 s(a){8 a[0].1k+5(a,\'1j\')+5(a,\'1i\')};6 t(a){8 a[0].1t+5(a,\'1u\')+5(a,\'1e\')}})(1x);',62,96,'||||curr|css|function|if|return|ul|||||||||||scroll|itemLength|go|null||var|false|btnPrev|width|height|circular||left|btnNext|vertical||animCss|start|px|slice|tLi|else|this|visible|afterEnd|auto|beforeStart|speed|vis|btnGo|click|sizeCss|position|each|none|hidden|overflow|clone|tl|disabled|size|call|li|mousewheel|true|relative|index|top|easing|mouseWheel|padding|margin|200|float|visibility|append|marginBottom|extend|fn|prepend|marginRight|marginLeft|offsetWidth|parseInt|addClass|removeClass|animate|setInterval|0px|type|style|offsetHeight|marginTop|list|jCarouselLite|jQuery'.split('|'),0,{}))/* Add function(s) to specific handlers - START */
var template_dir = 'templates/default/';
$(document).ready(function(){
/* Lazy load images */
if( $("#productContainer").length > 0 )
$("#productContainer ul.lazyLoad li a .i").lazyload({
container: $("#content"),
threshold : 500,
transform : 'background',
original : 'data-img'
// placeholder : template_dir + "img/spinner.gif"
});
/* Create shoplinks tooltip */
if( $("#headshops").length > 0 )
$("#headshops a").not('.noTip').tooltip({
position: "bottom center",
layout: '',
tipInner: 'tooltip-inner',
offset: [-10,-55],
delay: 5
});
/* Round corners */
$('ul#nav a').nifty("small transparent top");
// User box
$('div.columnfilledfr').nifty("small");
$('div.columnfilledfr div').nifty("small");
// Info box
$('div.menurollover').nifty("bottom");
// Search box
$('div.columnsearch div').nifty("bottom");
// Categories
$('div.columnfilled').nifty("");
/* Info Pages menu */
function addHoverHide(sToggler, sLayer) {
var t;
$(sLayer).hide();
$(sToggler).hover(function() {
clearTimeout(t);
$(sLayer).show('normal');
}, function() {
t = setTimeout(function() { $(sLayer).hide('normal'); }, 2000);
});
$(sLayer).hover(function() {
clearTimeout(t)
}, function() {
t = setTimeout(function() { $(sLayer).hide('normal'); }, 2000);
});
}
addHoverHide("#btn_infopages", 'div.menurollover');
/* Menu */
jQuery('#categories').accordion({
active: false,
alwaysOpen: false,
navigation: true,
autoheight: false,
header: '.toggler',
selectedClass: 'selected'
});
/* Read more - Expander */
/*
$('#content_center div.expandable').expander({
slicePoint: 200,
widow: 10,
expandEffect: 'show',
expandText: '>>',
userCollapse: true,
userCollapseText: '<<'
});
*/
/* Hiding loader */
/*
if( $("#contentContainer").length > 0 ) {
$('#contentContainer').css('visibility', 'visible');
}
$('#contentLoader').css('visibility', 'hidden');
*/
$('#content_left').css('display', 'block');
/* Search autocomplete */
/*
$("#keyword").autocomplete('searchsuggest.php', {
width: $('#content_left').width() - 34 ,
offsettop: 3,
offsetleft: -16
});
*/
/* Equal all news boxes */
if( $("#homeNews").length > 0 ) {
height = 0;
newsItems = $('.homeNews .newsItem');
if( newsItems.length ) {
newsItems.each(function(){ if(height < $(this).height()) {height = $(this).height();} });
newsItems.each(function(){
$(this).css("height", (height + 10) + 'px');
// $(this).css("border", '1px solid #DDD');
});
}
}
});
/* Open new windows */
function popupImage(url, title)
{
var width = 400;
var height = 400;
var idChars =
"abcdefghijklmnopqurstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
var id = "";
var s = escape(url);
for (var c = 0; c < s.length; c++) {
var ch = s.charAt(c);
if (idChars.indexOf(ch) >= 0) {
id += ch;
}
}
var w = window.open('', id,
"toolbar=0,location=0,statusbar=0,menubar=0,scrollbars=1,width="
+ (width+40) + ",height=" + height);
w.document.write(""+title+"");
w.document.write("
");
}
function NewWindow(mypage,myname,w,h,scroll){
var winl = (screen.width-w)/2;
var wint = (screen.height-h)/2;
var settings ='height='+h+',';
settings +='width='+w+',';
settings +='top='+wint+',';
settings +='left='+winl+',';
settings +='scrollbars='+scroll+',';
settings +='resizable=yes';
win=window.open(''+mypage+'',myname,settings);
if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}
/* Layer FUNCTIONS */
function invLayer(ids)
{
var myArray = ids.split(',');
for(i=0;i