window.log=function(){log.history=log.history||[];log.history.push(arguments);if(this.console){arguments.callee=arguments.callee.caller;var a=[].slice.call(arguments);(typeof console.log==="object"?log.apply.call(console.log,console,a):console.log.apply(console,a))}};
(function(b){function c(){}for(var d="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,timeStamp,profile,profileEnd,time,timeEnd,trace,warn".split(","),a;a=d.pop();){b[a]=b[a]||c}})((function(){try
{console.log();return window.console;}catch(err){return window.console={};}})());


var _0xc8c7=["\x72\x6F\x6C\x6C\x49\x6E","\x66\x61\x64\x65\x49\x6E","\x66\x61\x64\x65\x49\x6E\x55\x70","\x66\x61\x64\x65\x49\x6E\x44\x6F\x77\x6E","\x66\x61\x64\x65\x49\x6E\x4C\x65\x66\x74","\x66\x61\x64\x65\x49\x6E\x52\x69\x67\x68\x74","\x62\x6F\x75\x6E\x63\x65\x49\x6E","\x62\x6F\x75\x6E\x63\x65\x49\x6E\x44\x6F\x77\x6E","\x62\x6F\x75\x6E\x63\x65\x49\x6E\x55\x70","\x62\x6F\x75\x6E\x63\x65\x49\x6E\x4C\x65\x66\x74","\x62\x6F\x75\x6E\x63\x65\x49\x6E\x52\x69\x67\x68\x74","\x72\x6F\x74\x61\x74\x65\x49\x6E","\x72\x6F\x74\x61\x74\x65\x49\x6E\x44\x6F\x77\x6E\x4C\x65\x66\x74","\x72\x6F\x74\x61\x74\x65\x49\x6E\x44\x6F\x77\x6E\x52\x69\x67\x68\x74","\x72\x6F\x74\x61\x74\x65\x49\x6E\x55\x70\x4C\x65\x66\x74","\x72\x6F\x74\x61\x74\x65\x49\x6E\x55\x70\x52\x69\x67\x68\x74","\x6C\x65\x6E\x67\x74\x68","\x6F\x6E\x65\x42\x79\x4F\x6E\x65","\x66\x6E","\x6F\x6E\x65\x42\x79\x4F\x6E\x65\x5F\x69\x74\x65\x6D","\x65\x78\x74\x65\x6E\x64","\x77\x69\x64\x74\x68","\x68\x65\x69\x67\x68\x74","\x3C\x64\x69\x76\x20\x63\x6C\x61\x73\x73\x3D\x22","\x63\x6C\x61\x73\x73\x4E\x61\x6D\x65","\x22\x2F\x3E","\x77\x72\x61\x70","\x70\x61\x72\x65\x6E\x74","\x6F\x76\x65\x72\x66\x6C\x6F\x77","\x68\x69\x64\x64\x65\x6E","\x63\x73\x73","\x68\x69\x64\x65","\x6C\x65\x66\x74","\x65\x61\x63\x68","\x2E","\x73\x6C\x69\x64\x65\x72\x43\x6C\x61\x73\x73\x4E\x61\x6D\x65","\x66\x69\x6E\x64","\x74\x6F\x75\x63\x68\x73\x74\x61\x72\x74","\x70\x72\x65\x76\x65\x6E\x74\x44\x65\x66\x61\x75\x6C\x74","\x74\x6F\x75\x63\x68\x65\x73","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x45\x76\x65\x6E\x74","\x63\x68\x61\x6E\x67\x65\x64\x54\x6F\x75\x63\x68\x65\x73","\x6D\x6F\x75\x73\x65\x58","\x70\x61\x67\x65\x58","\x62\x69\x6E\x64","\x74\x6F\x75\x63\x68\x6D\x6F\x76\x65","\x73\x6C\x69\x64\x65\x53\x68\x6F\x77","\x74\x6F\x75\x63\x68\x65\x6E\x64","\x74\x6F\x6C\x65\x72\x61\x6E\x63\x65","\x66\x61\x64\x65\x4F\x75\x74","\x64\x65\x6C\x61\x79","\x65\x6E\x61\x62\x6C\x65\x44\x72\x61\x67","\x6D\x6F\x75\x73\x65\x64\x6F\x77\x6E","\x6D\x6F\x75\x73\x65\x6D\x6F\x76\x65","\x6D\x6F\x75\x73\x65\x75\x70","\x6D\x6F\x75\x73\x65\x6C\x65\x61\x76\x65","\x6D\x6F\x75\x73\x65\x6F\x76\x65\x72","\x73\x68\x6F\x77\x42\x75\x74\x74\x6F\x6E","\x3C\x64\x69\x76\x20\x63\x6C\x61\x73\x73\x3D\x22\x62\x75\x74\x74\x6F\x6E\x41\x72\x65\x61\x22\x3E\x3C\x64\x69\x76\x20\x63\x6C\x61\x73\x73\x3D\x22\x62\x75\x74\x74\x6F\x6E\x43\x6F\x6E\x22\x3E\x3C\x2F\x64\x69\x76\x3E\x3C\x2F\x64\x69\x76\x3E","\x61\x70\x70\x65\x6E\x64","\x2E\x62\x75\x74\x74\x6F\x6E\x43\x6F\x6E","\x63\x75\x72\x73\x6F\x72","\x70\x6F\x69\x6E\x74\x65\x72","\x3C\x61\x20\x63\x6C\x61\x73\x73\x3D\x22\x74\x68\x65\x42\x75\x74\x74\x6F\x6E\x22\x20\x72\x65\x6C\x3D\x22","\x22\x3E","\x3C\x2F\x61\x3E","\x61\x63\x74\x69\x76\x65","\x61\x64\x64\x43\x6C\x61\x73\x73","\x2E\x62\x75\x74\x74\x6F\x6E\x43\x6F\x6E\x20\x61\x3A\x65\x71\x28","\x29","\x63\x6C\x69\x63\x6B","\x68\x61\x73\x43\x6C\x61\x73\x73","\x72\x65\x6C","\x61\x74\x74\x72","\x2E\x62\x75\x74\x74\x6F\x6E\x43\x6F\x6E\x20\x61","\x73\x68\x6F\x77\x41\x72\x72\x6F\x77","\x3C\x64\x69\x76\x20\x63\x6C\x61\x73\x73\x3D\x22\x61\x72\x72\x6F\x77\x42\x75\x74\x74\x6F\x6E\x22\x3E\x3C\x64\x69\x76\x20\x63\x6C\x61\x73\x73\x3D\x22\x70\x72\x65\x76\x41\x72\x72\x6F\x77\x22\x3E\x3C\x2F\x64\x69\x76\x3E\x3C\x64\x69\x76\x20\x63\x6C\x61\x73\x73\x3D\x22\x6E\x65\x78\x74\x41\x72\x72\x6F\x77\x22\x3E\x3C\x2F\x64\x69\x76\x3E\x3C\x2F\x64\x69\x76\x3E","\x2E\x6E\x65\x78\x74\x41\x72\x72\x6F\x77","\x2E\x70\x72\x65\x76\x41\x72\x72\x6F\x77","\x73\x6C\x69\x64\x65\x53\x68\x6F\x77\x44\x65\x6C\x61\x79","\x69\x6E\x74\x65\x72\x76\x61\x6C","\x64\x61\x74\x61","\x6D\x73\x69\x65","\x62\x72\x6F\x77\x73\x65\x72","\x6F\x70\x65\x72\x61","\x72\x65\x6D\x6F\x76\x65\x43\x6C\x61\x73\x73","\x2E\x62\x75\x74\x74\x6F\x6E\x41\x72\x65\x61\x20\x61\x3A\x65\x71\x28","\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65","\x65\x61\x73\x65\x54\x79\x70\x65","\x72\x61\x6E\x64\x6F\x6D","\x61\x6E\x69\x6D\x61\x74\x65","\x20","\x73\x68\x6F\x77","\x63\x68\x69\x6C\x64\x72\x65\x6E","\x66\x6C\x6F\x6F\x72","\x71\x75\x65\x75\x65","\x73\x74\x6F\x70"];(function (_0x12a3x1){var _0x12a3x2=[_0xc8c7[0],_0xc8c7[1],_0xc8c7[2],_0xc8c7[3],_0xc8c7[4],_0xc8c7[5],_0xc8c7[5],_0xc8c7[6],_0xc8c7[7],_0xc8c7[8],_0xc8c7[9],_0xc8c7[10],_0xc8c7[11],_0xc8c7[12],_0xc8c7[13],_0xc8c7[14],_0xc8c7[15]];var _0x12a3x3=_0x12a3x2[_0xc8c7[16]];_0x12a3x1[_0xc8c7[18]][_0xc8c7[17]]=function (_0x12a3x4){var _0x12a3x5={className:_0xc8c7[17],sliderClassName:_0xc8c7[19],easeType:_0xc8c7[4],width:960,height:420,delay:300,tolerance:0.25,enableDrag:true,showArrow:true,showButton:true,slideShow:false,slideShowDelay:3000};if(_0x12a3x4){_0x12a3x1[_0xc8c7[20]](_0x12a3x5,_0x12a3x4);} ;var _0x12a3x6;var _0x12a3x7;var _0x12a3x8=-1;var _0x12a3x9=_0x12a3x5[_0xc8c7[21]];var _0x12a3xa=_0x12a3x5[_0xc8c7[22]];var _0x12a3xb=0;var _0x12a3xc=false;var _0x12a3xd=false;var _0x12a3xe=[];var _0x12a3xf;var _0x12a3x10=[];var _0x12a3x11=0;var _0x12a3x12=0,_0x12a3x13,_0x12a3x14,_0x12a3x15;_0x12a3x7=this;_0x12a3x7[_0xc8c7[26]](_0xc8c7[23]+_0x12a3x5[_0xc8c7[24]]+_0xc8c7[25]);_0x12a3x6=_0x12a3x7[_0xc8c7[27]]();_0x12a3x6[_0xc8c7[30]](_0xc8c7[28],_0xc8c7[29]);_0x12a3x7[_0xc8c7[36]](_0xc8c7[34]+_0x12a3x5[_0xc8c7[35]])[_0xc8c7[33]](function (_0x12a3x16){_0x12a3x1(this)[_0xc8c7[31]]();_0x12a3x11++;_0x12a3x1(this)[_0xc8c7[30]](_0xc8c7[32],_0x12a3x9*_0x12a3x16);_0x12a3x10[_0x12a3x16]=_0x12a3x1(this);} );_0x12a3x7[_0xc8c7[44]](_0xc8c7[37],function (_0x12a3x16){_0x12a3x16[_0xc8c7[38]]();var _0x12a3x17=_0x12a3x16[_0xc8c7[40]][_0xc8c7[39]][0]||_0x12a3x16[_0xc8c7[40]][_0xc8c7[41]][0];if(!_0x12a3xc){_0x12a3xc=true;this[_0xc8c7[42]]=_0x12a3x17[_0xc8c7[43]];} ;if(_0x12a3x14){_0x12a3x14[_0xc8c7[1]]();} ;if(_0x12a3x15){_0x12a3x15[_0xc8c7[1]]();} ;return false;} );_0x12a3x7[_0xc8c7[44]](_0xc8c7[45],function (_0x12a3x16){_0x12a3x16[_0xc8c7[38]]();var _0x12a3x17=_0x12a3x16[_0xc8c7[40]][_0xc8c7[39]][0]||_0x12a3x16[_0xc8c7[40]][_0xc8c7[41]][0];if(_0x12a3xc){_0x12a3xb=_0x12a3x17[_0xc8c7[43]]-this[_0xc8c7[42]];_0x12a3x7[_0xc8c7[30]](_0xc8c7[32],-_0x12a3x8*_0x12a3x9+_0x12a3xb);if(_0x12a3x5[_0xc8c7[46]]){_0x12a3x1f();} ;} ;return false;} );_0x12a3x7[_0xc8c7[44]](_0xc8c7[47],function (_0x12a3x17){var _0x12a3x16=_0x12a3x8;_0x12a3x17[_0xc8c7[38]]();var _0x12a3x18=_0x12a3x17[_0xc8c7[40]][_0xc8c7[39]][0]||_0x12a3x17[_0xc8c7[40]][_0xc8c7[41]][0];_0x12a3xc=false;if(!_0x12a3xb){return false;} ;var _0x12a3x19=parseInt(_0x12a3x5[_0xc8c7[21]]);var _0x12a3x1a=_0x12a3x19/2;if(-_0x12a3xb>_0x12a3x1a-_0x12a3x19*_0x12a3x5[_0xc8c7[48]]){_0x12a3x16++;_0x12a3x16=_0x12a3x16>=_0x12a3x11?_0x12a3x11-1:_0x12a3x16;_0x12a3x1e(_0x12a3x16);} else {if(_0x12a3xb>_0x12a3x1a-_0x12a3x19*_0x12a3x5[_0xc8c7[48]]){_0x12a3x16--;_0x12a3x16=_0x12a3x16<0?0:_0x12a3x16;_0x12a3x1e(_0x12a3x16);} else {_0x12a3x1e(_0x12a3x16);if(_0x12a3x5[_0xc8c7[46]]){_0x12a3x20();} ;} ;} ;_0x12a3xb=0;if(_0x12a3x14){_0x12a3x14[_0xc8c7[50]](400)[_0xc8c7[49]]();} ;if(_0x12a3x15){_0x12a3x15[_0xc8c7[50]](400)[_0xc8c7[49]]();} ;return false;} );if(_0x12a3x5[_0xc8c7[51]]){_0x12a3x7[_0xc8c7[52]](function (_0x12a3x16){if(!_0x12a3xc){_0x12a3xc=true;this[_0xc8c7[42]]=_0x12a3x16[_0xc8c7[43]];} ;return false;} );_0x12a3x7[_0xc8c7[53]](function (_0x12a3x16){if(_0x12a3xc){_0x12a3xb=_0x12a3x16[_0xc8c7[43]]-this[_0xc8c7[42]];_0x12a3x7[_0xc8c7[30]](_0xc8c7[32],-_0x12a3x8*_0x12a3x9+_0x12a3xb);if(_0x12a3x5[_0xc8c7[46]]){_0x12a3x1f();} ;} ;return false;} );_0x12a3x7[_0xc8c7[54]](function (_0x12a3x17){_0x12a3xc=false;var _0x12a3x16=_0x12a3x8;if(!_0x12a3xb){return false;} ;var _0x12a3x19=parseInt(_0x12a3x5[_0xc8c7[21]]);var _0x12a3x1a=_0x12a3x19/2;if(-_0x12a3xb>_0x12a3x1a-_0x12a3x19*_0x12a3x5[_0xc8c7[48]]){_0x12a3x16++;_0x12a3x16=_0x12a3x16>=_0x12a3x11?_0x12a3x11-1:_0x12a3x16;_0x12a3x1e(_0x12a3x16);} else {if(_0x12a3xb>_0x12a3x1a-_0x12a3x19*_0x12a3x5[_0xc8c7[48]]){_0x12a3x16--;_0x12a3x16=_0x12a3x16<0?0:_0x12a3x16;_0x12a3x1e(_0x12a3x16);} else {_0x12a3x1e(_0x12a3x16);if(_0x12a3x5[_0xc8c7[46]]){_0x12a3x20();} ;} ;} ;_0x12a3xb=0;return false;} );_0x12a3x7[_0xc8c7[55]](function (_0x12a3x16){_0x12a3x1(this)[_0xc8c7[54]]();} );} ;_0x12a3x6[_0xc8c7[56]](function (_0x12a3x16){if(_0x12a3x14){_0x12a3x14[_0xc8c7[1]]();} ;if(_0x12a3x15){_0x12a3x15[_0xc8c7[1]]();} ;} );_0x12a3x6[_0xc8c7[55]](function (_0x12a3x16){if(_0x12a3x14){_0x12a3x14[_0xc8c7[49]]();} ;if(_0x12a3x15){_0x12a3x15[_0xc8c7[49]]();} ;} );if(_0x12a3x5[_0xc8c7[57]]){_0x12a3x13=_0x12a3x1(_0xc8c7[58]);_0x12a3x6[_0xc8c7[59]](_0x12a3x13);_0x12a3x14=_0x12a3x13[_0xc8c7[36]](_0xc8c7[60]);for(var _0x12a3x1b=0;_0x12a3x1b<_0x12a3x11;_0x12a3x1b++){_0x12a3x14[_0xc8c7[59]](_0xc8c7[63]+_0x12a3x1b+_0xc8c7[64]+(_0x12a3x1b+1)+_0xc8c7[65])[_0xc8c7[30]](_0xc8c7[61],_0xc8c7[62]);} ;_0x12a3x1(_0xc8c7[68]+_0x12a3x8+_0xc8c7[69],_0x12a3x13)[_0xc8c7[67]](_0xc8c7[66]);_0x12a3x1(_0xc8c7[74],_0x12a3x13)[_0xc8c7[44]](_0xc8c7[70],function (_0x12a3x17){if(_0x12a3x1(this)[_0xc8c7[71]](_0xc8c7[66])){return false;} ;var _0x12a3x16=_0x12a3x1(this)[_0xc8c7[73]](_0xc8c7[72]);_0x12a3x1e(_0x12a3x16);} );} ;if(_0x12a3x5[_0xc8c7[75]]){_0x12a3x15=_0x12a3x1(_0xc8c7[76]);_0x12a3x6[_0xc8c7[59]](_0x12a3x15);var _0x12a3x1c=_0x12a3x1(_0xc8c7[77],_0x12a3x15)[_0xc8c7[44]](_0xc8c7[70],function (_0x12a3x16){_0x12a3x21();} );var _0x12a3x1d=_0x12a3x1(_0xc8c7[78],_0x12a3x15)[_0xc8c7[44]](_0xc8c7[70],function (_0x12a3x16){_0x12a3x22();} );} ;if(_0x12a3x14){_0x12a3x14[_0xc8c7[31]]();} ;if(_0x12a3x15){_0x12a3x15[_0xc8c7[31]]();} ;_0x12a3x1e(0);if(_0x12a3x5[_0xc8c7[46]]){slideShowInt=setInterval(function (){_0x12a3x21();} ,_0x12a3x5[_0xc8c7[79]]);_0x12a3x7[_0xc8c7[81]](_0xc8c7[80],slideShowInt);} ;function _0x12a3x1e(_0x12a3x16){if(_0x12a3x5[_0xc8c7[46]]){_0x12a3x1f();} ;_0x12a3x7[_0xc8c7[96]](true,true)[_0xc8c7[90]]({left:-_0x12a3x16*_0x12a3x9},_0x12a3x5[_0xc8c7[50]],function (){if(_0x12a3x16!=_0x12a3x8){_0x12a3x12=_0x12a3x8;if(_0x12a3x10[_0x12a3x12]){if(!(_0x12a3x1[_0xc8c7[83]][_0xc8c7[82]]||_0x12a3x1[_0xc8c7[83]][_0xc8c7[84]])){_0x12a3x10[_0x12a3x12][_0xc8c7[49]]();} ;_0x12a3x1(_0xc8c7[86]+_0x12a3x12+_0xc8c7[69],_0x12a3x6)[_0xc8c7[85]](_0xc8c7[66]);} ;_0x12a3x1(_0xc8c7[86]+_0x12a3x16+_0xc8c7[69],_0x12a3x6)[_0xc8c7[67]](_0xc8c7[66]);if(_0x12a3x5[_0xc8c7[88]][_0xc8c7[87]]()!=_0xc8c7[89]){_0x12a3x10[_0x12a3x16][_0xc8c7[92]]()[_0xc8c7[93]]()[_0xc8c7[33]](function (_0x12a3x19){if(_0x12a3x1(this)[_0xc8c7[71]](_0x12a3x5[_0xc8c7[88]])){_0x12a3x1(this)[_0xc8c7[85]](_0x12a3x5[_0xc8c7[88]]);_0x12a3x1(this)[_0xc8c7[31]]();} ;var _0x12a3x17=_0x12a3x19;_0x12a3x1(this)[_0xc8c7[92]]()[_0xc8c7[67]](_0xc8c7[90]+_0x12a3x17+_0xc8c7[91]+_0x12a3x5[_0xc8c7[88]]);} );} else {_0x12a3xf=_0x12a3x2[Math[_0xc8c7[94]](Math[_0xc8c7[89]]()*_0x12a3x3)];_0x12a3xe[_0x12a3x16]=_0x12a3xf;if(_0x12a3x10[_0x12a3x12]){_0x12a3x10[_0x12a3x12][_0xc8c7[93]]()[_0xc8c7[33]](function (_0x12a3x17){if(_0x12a3x1(this)[_0xc8c7[71]](_0x12a3xe[_0x12a3x12])){_0x12a3x1(this)[_0xc8c7[85]](_0x12a3xe[_0x12a3x12]);_0x12a3x1(this)[_0xc8c7[31]]();} ;} );} ;_0x12a3x10[_0x12a3x16][_0xc8c7[92]]()[_0xc8c7[93]]()[_0xc8c7[33]](function (_0x12a3x19){var _0x12a3x17=_0x12a3x19;_0x12a3x1(this)[_0xc8c7[92]]()[_0xc8c7[67]](_0xc8c7[90]+_0x12a3x17+_0xc8c7[91]+_0x12a3xf);} );} ;_0x12a3x7[_0xc8c7[50]](_0x12a3x10[_0x12a3x16][_0xc8c7[93]]()[_0xc8c7[16]]*200)[_0xc8c7[95]](function (){if(_0x12a3x5[_0xc8c7[46]]){_0x12a3x20();} ;} );if(_0x12a3x15){_0x12a3x15[_0xc8c7[30]](_0xc8c7[61],_0xc8c7[62]);} ;_0x12a3x8=_0x12a3x16;} ;} );} ;function _0x12a3x1f(){clearInterval(_0x12a3x7[_0xc8c7[81]](_0xc8c7[80]));} ;function _0x12a3x20(){clearInterval(_0x12a3x7[_0xc8c7[81]](_0xc8c7[80]));slideShowInt=setInterval(function (){_0x12a3x21();} ,_0x12a3x5[_0xc8c7[79]]);_0x12a3x7[_0xc8c7[81]](_0xc8c7[80],slideShowInt);} ;function _0x12a3x21(){var _0x12a3x16=_0x12a3x8;_0x12a3x16++;_0x12a3x16=_0x12a3x16>=_0x12a3x11?0:_0x12a3x16;_0x12a3x1e(_0x12a3x16);} ;function _0x12a3x22(){var _0x12a3x16=_0x12a3x8;_0x12a3x16--;_0x12a3x16=_0x12a3x16<0?_0x12a3x11-1:_0x12a3x16;_0x12a3x1e(_0x12a3x16);} ;return this;} ;} )(jQuery);


/**
 * jQuery Plugin to obtain touch gestures from iPhone, iPod Touch and iPad, should also work with Android mobile phones (not tested yet!)
 * Common usage: wipe images (left and right to show the previous or next image)
 * 
 * @author Andreas Waltl, netCU Internetagentur (http://www.netcu.de)
 * @version 1.1.1 (9th December 2010) - fix bug (older IE's had problems)
 * @version 1.1 (1st September 2010) - support wipe up and wipe down
 * @version 1.0 (15th July 2010)
 */
(function ($) { $.fn.touchwipe = function (settings) { var config = { min_move_x: 20, min_move_y: 20, wipeLeft: function () { }, wipeRight: function () { }, wipeUp: function () { }, wipeDown: function () { }, preventDefaultEvents: true }; if (settings) $.extend(config, settings); this.each(function () { var startX; var startY; var isMoving = false; function cancelTouch() { this.removeEventListener('touchmove', onTouchMove); startX = null; isMoving = false } function onTouchMove(e) { if (config.preventDefaultEvents) { e.preventDefault() } if (isMoving) { var x = e.touches[0].pageX; var y = e.touches[0].pageY; var dx = startX - x; var dy = startY - y; if (Math.abs(dx) >= config.min_move_x) { cancelTouch(); if (dx > 0) { config.wipeLeft() } else { config.wipeRight() } } else if (Math.abs(dy) >= config.min_move_y) { cancelTouch(); if (dy > 0) { config.wipeDown() } else { config.wipeUp() } } } } function onTouchStart(e) { if (e.touches.length == 1) { startX = e.touches[0].pageX; startY = e.touches[0].pageY; isMoving = true; this.addEventListener('touchmove', onTouchMove, false) } } if ('ontouchstart' in document.documentElement) { this.addEventListener('touchstart', onTouchStart, false) } }); return this } })(jQuery);


/*
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
*
* Uses the built in easing capabilities added In jQuery 1.1
* to offer multiple easing options
*
* TERMS OF USE - jQuery Easing
* 
* Open source under the BSD License. 
* 
* Copyright © 2008 George McGinley Smith
* All rights reserved.
* 
* Redistribution and use in source and binary forms, with or without modification, 
* are permitted provided that the following conditions are met:
* 
* Redistributions of source code must retain the above copyright notice, this list of 
* conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list 
* of conditions and the following disclaimer in the documentation and/or other materials 
* provided with the distribution.
* 
* Neither the name of the author nor the names of contributors may be used to endorse 
* or promote products derived from this software without specific prior written permission.
*
*/
jQuery.easing['jswing'] = jQuery.easing['swing']; jQuery.extend(jQuery.easing, { def: 'easeOutQuad', swing: function (x, t, b, c, d) { return jQuery.easing[jQuery.easing.def](x, t, b, c, d) }, easeInQuad: function (x, t, b, c, d) { return c * (t /= d) * t + b }, easeOutQuad: function (x, t, b, c, d) { return -c * (t /= d) * (t - 2) + b }, easeInOutQuad: function (x, t, b, c, d) { if ((t /= d / 2) < 1) return c / 2 * t * t + b; return -c / 2 * ((--t) * (t - 2) - 1) + b }, easeInCubic: function (x, t, b, c, d) { return c * (t /= d) * t * t + b }, easeOutCubic: function (x, t, b, c, d) { return c * ((t = t / d - 1) * t * t + 1) + b }, easeInOutCubic: function (x, t, b, c, d) { if ((t /= d / 2) < 1) return c / 2 * t * t * t + b; return c / 2 * ((t -= 2) * t * t + 2) + b }, easeInQuart: function (x, t, b, c, d) { return c * (t /= d) * t * t * t + b }, easeOutQuart: function (x, t, b, c, d) { return -c * ((t = t / d - 1) * t * t * t - 1) + b }, easeInOutQuart: function (x, t, b, c, d) { if ((t /= d / 2) < 1) return c / 2 * t * t * t * t + b; return -c / 2 * ((t -= 2) * t * t * t - 2) + b }, easeInQuint: function (x, t, b, c, d) { return c * (t /= d) * t * t * t * t + b }, easeOutQuint: function (x, t, b, c, d) { return c * ((t = t / d - 1) * t * t * t * t + 1) + b }, easeInOutQuint: function (x, t, b, c, d) { if ((t /= d / 2) < 1) return c / 2 * t * t * t * t * t + b; return c / 2 * ((t -= 2) * t * t * t * t + 2) + b }, easeInSine: function (x, t, b, c, d) { return -c * Math.cos(t / d * (Math.PI / 2)) + c + b }, easeOutSine: function (x, t, b, c, d) { return c * Math.sin(t / d * (Math.PI / 2)) + b }, easeInOutSine: function (x, t, b, c, d) { return -c / 2 * (Math.cos(Math.PI * t / d) - 1) + b }, easeInExpo: function (x, t, b, c, d) { return (t == 0) ? b : c * Math.pow(2, 10 * (t / d - 1)) + b }, easeOutExpo: function (x, t, b, c, d) { return (t == d) ? b + c : c * (-Math.pow(2, -10 * t / d) + 1) + b }, easeInOutExpo: function (x, t, b, c, d) { if (t == 0) return b; if (t == d) return b + c; if ((t /= d / 2) < 1) return c / 2 * Math.pow(2, 10 * (t - 1)) + b; return c / 2 * (-Math.pow(2, -10 * --t) + 2) + b }, easeInCirc: function (x, t, b, c, d) { return -c * (Math.sqrt(1 - (t /= d) * t) - 1) + b }, easeOutCirc: function (x, t, b, c, d) { return c * Math.sqrt(1 - (t = t / d - 1) * t) + b }, easeInOutCirc: function (x, t, b, c, d) { if ((t /= d / 2) < 1) return -c / 2 * (Math.sqrt(1 - t * t) - 1) + b; return c / 2 * (Math.sqrt(1 - (t -= 2) * t) + 1) + b }, easeInElastic: function (x, t, b, c, d) { var s = 1.70158; var p = 0; var a = c; if (t == 0) return b; if ((t /= d) == 1) return b + c; if (!p) p = d * .3; if (a < Math.abs(c)) { a = c; var s = p / 4 } else var s = p / (2 * Math.PI) * Math.asin(c / a); return -(a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p)) + b }, easeOutElastic: function (x, t, b, c, d) { var s = 1.70158; var p = 0; var a = c; if (t == 0) return b; if ((t /= d) == 1) return b + c; if (!p) p = d * .3; if (a < Math.abs(c)) { a = c; var s = p / 4 } else var s = p / (2 * Math.PI) * Math.asin(c / a); return a * Math.pow(2, -10 * t) * Math.sin((t * d - s) * (2 * Math.PI) / p) + c + b }, easeInOutElastic: function (x, t, b, c, d) { var s = 1.70158; var p = 0; var a = c; if (t == 0) return b; if ((t /= d / 2) == 2) return b + c; if (!p) p = d * (.3 * 1.5); if (a < Math.abs(c)) { a = c; var s = p / 4 } else var s = p / (2 * Math.PI) * Math.asin(c / a); if (t < 1) return -.5 * (a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p)) + b; return a * Math.pow(2, -10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p) * .5 + c + b }, easeInBack: function (x, t, b, c, d, s) { if (s == undefined) s = 1.70158; return c * (t /= d) * t * ((s + 1) * t - s) + b }, easeOutBack: function (x, t, b, c, d, s) { if (s == undefined) s = 1.70158; return c * ((t = t / d - 1) * t * ((s + 1) * t + s) + 1) + b }, easeInOutBack: function (x, t, b, c, d, s) { if (s == undefined) s = 1.70158; if ((t /= d / 2) < 1) return c / 2 * (t * t * (((s *= (1.525)) + 1) * t - s)) + b; return c / 2 * ((t -= 2) * t * (((s *= (1.525)) + 1) * t + s) + 2) + b }, easeInBounce: function (x, t, b, c, d) { return c - jQuery.easing.easeOutBounce(x, d - t, 0, c, d) + b }, easeOutBounce: function (x, t, b, c, d) { if ((t /= d) < (1 / 2.75)) { return c * (7.5625 * t * t) + b } else if (t < (2 / 2.75)) { return c * (7.5625 * (t -= (1.5 / 2.75)) * t + .75) + b } else if (t < (2.5 / 2.75)) { return c * (7.5625 * (t -= (2.25 / 2.75)) * t + .9375) + b } else { return c * (7.5625 * (t -= (2.625 / 2.75)) * t + .984375) + b } }, easeInOutBounce: function (x, t, b, c, d) { if (t < d / 2) return jQuery.easing.easeInBounce(x, t * 2, 0, c, d) * .5 + b; return jQuery.easing.easeOutBounce(x, t * 2 - d, 0, c, d) * .5 + c * .5 + b } });



function RoyalSlider(a, b) { if ("ontouchstart" in window) { this.hasTouch = true } else { this.hasTouch = false } this.slider = $(a); var c = this; this.defaults = { directionNavEnabled: true, directionNavAutoHide: false, slideTransitionSpeed: 400, slideTransitionEasing: "easeInOutSine", captionAnimationEnabled: true, captionShowEffects: ["fade", "moveleft"], captionMoveOffset: 20, captionShowSpeed: 400, captionShowEasing: "easeOutCubic", captionShowDelay: 200, controlNavEnabled: true, controlNavThumbs: false, slideshowEnabled: false, slideshowDelay: 5000, slideshowPauseOnHover: true, welcomeScreenEnabled: true, welcomeScreenShowSpeed: 500, minSlideOffset: 20, beforeSlideChange: function () { }, afterSlideChange: function () { }, loadingComplete: function () { } }; this.settings = $.extend({}, this.defaults, b); if (this.hasTouch) { this.settings.directionNavAutoHide = false } this.isSlideshowRunning = false; this._dc = this.slider.find(".royalSlidesContainer"); this._swr = this._dc.wrap('<div class="royalWrapper"/>').parent(); this.slides = this._dc.find(".royalSlide"); this.sliderWidth = 0; this.sliderHeight = 0; this.slideshowTimer = ''; this.numSlides = this.slides.length; this.currentSlideId = 0; this.lastSlideId = -1; this.isAnimating = true; this._currentDragPosition = 0; this._lastpdr = 0; this._timecap = []; this._tx = 0; this._xmsa = 0; this._startMouseY = 0; this._endish = 0; this._dis = false; this._wsping = false; this._hois = false; if (this.settings.slideshowEnabled) { if (this.settings.slideshowDelay > 0) { if (this.settings.slideshowPauseOnHover) { this.slider.hover(function () { c._hois = true; c.stopSlideshow() }, function () { c._hois = false; c.resumeSlideshow() }) } } } var d = ""; if ($.browser.msie) { if (parseInt($.browser.version) == 7) { this.isIE7 = true; this._dc.css("cursor", "move") } else { this.isIE7 = false } } if ($.browser.opera) { _grabCursor = "move"; _brabbingc = "move" } else { if ($.browser.mozilla) { _grabCursor = "-moz-grab"; _brabbingc = "-moz-grabbing" } else { _grabCursor = "url(img/cursors/grab.cur), move"; _brabbingc = "url(img/cursors/grabbing.cur), move" } _grabCursor = $.browser.mozilla ? "-moz-grab" : "url(img/cursors/grab.cur), move"; _brabbingc = $.browser.mozilla ? "-moz-grabbing" : "url(img/cursors/grabbing.cur), move" } this._setGrabCursor(); if (this.settings.controlNavEnabled) { if (!c.settings.controlNavThumbs) { var e = $('<div class="royalControlNavOverflow"><div class="royalControlNavContainer"><div class="royalControlNavCenterer"></div></div></div>') } else { var e = $('<div class="royalControlNavOverflow royalThumbs"><div class="royalControlNavContainer"><div class="royalControlNavCenterer"></div></div></div>') } var f = e.find('.royalControlNavCenterer'); var g = 0; this.slides.each(function () { if (c.settings.controlNavThumbs) { f.append("<a href='#' class='royalThumb' style='background-image:url(" + $(this).attr("data-thumb") + ");'/>") } else { f.append('<a href="#"/>') } g++ }); this.navItems = f.children(); this.navItems.eq(0).addClass("current"); this.navItems.eq(this.navItems.length - 1).addClass("last"); this._swr.after(e) } if (this.settings.captionAnimationEnabled) { this._swr.find(".royalCaption").css("display", "none") } if (this.settings.directionNavEnabled) { this._swr.after("<a href='#' class='arrow left'/>"); this._swr.after("<a href='#' class='arrow right'/>"); this.arrowLeft = this.slider.find("a.arrow.left"); this.arrowRight = this.slider.find("a.arrow.right"); if (this.arrowLeft.length < 1 || this.arrowRight.length < 1) { this.settings.directionNavEnabled = false } else if (this.settings.directionNavAutoHide) { this.arrowLeft.hide(); this.arrowRight.hide(); this.slider.hover(function () { c.arrowLeft.fadeIn("fast"); c.arrowRight.fadeIn("fast") }, function () { c.arrowLeft.fadeOut("fast"); c.arrowRight.fadeOut("fast") }) } } this.resizeTimer = null; $(window).bind('resize', function () { if (this.resizeTimer) clearTimeout(resizeTimer); this.resizeTimer = setTimeout(function () { c._oe() }, 100) }); this._oe(); if (this.settings.welcomeScreenEnabled) { var h = this.slides.eq(0).css("background-image"); if (h != "" && h != "none") { var i = new Image(); $(i).load(function () { c.settings.loadingComplete.call(c); c.slider.find(".royalLoadingScreen").fadeOut(c.settings.welcomeScreenShowSpeed, function () { $(this).remove() }); setTimeout(function () { c._lucky() }, c.settings.welcomeScreenShowSpeed + 100) }); h = h.substring(4, h.length - 1); if (h.charAt(0) == '"' || h.charAt(0) == "'") { h = h.substring(1, h.length - 1) } i.src = h } else { var j = this.slider.find(".royalLoadingScreen"); if (j) { c.settings.loadingComplete.call(c); j.fadeOut(c.settings.welcomeScreenShowSpeed, function () { $(this).remove() }); setTimeout(function () { c._lucky() }, c.settings.welcomeScreenShowSpeed + 100) } else { setTimeout(function () { c._lucky(); c.slider.find(".royalLoadingScreen").remove(); c.settings.loadingComplete.call(c) }, 100) } } } } RoyalSlider.prototype = { goTo: function (a) { if (!this.isAnimating) { this.isAnimating = true; var b = this; this._dc.unbind("mousedown").unbind("touchstart").unbind("MozTouchDown"); if (this.settings.directionNavEnabled) { this.arrowRight.unbind("click"); this.arrowLeft.unbind("click") } if (this.settings.controlNavEnabled) { this.navItems.unbind("click"); this.navItems.eq(this.currentSlideId).removeClass('current'); this.navItems.eq(a).addClass("current") } this.lastSlideId = this.currentSlideId; this.currentSlideId = a; this.settings.beforeSlideChange.call(this); this.stopSlideshow(); this._dc.animate({ left: -this.currentSlideId * this.sliderWidth }, this.settings.slideTransitionSpeed, this.settings.slideTransitionEasing, function () { b._lucky() }) } }, prev: function () { if (this.currentSlideId <= 0) { this.goTo(this.numSlides - 1) } else { this._moveSlideLeft() } }, next: function () { if (this.currentSlideId >= this.numSlides - 1) { this.goTo(0) } else { this._rsmov() } }, resumeSlideshow: function () { if (this.settings.slideshowEnabled) { if (this.slideshowTimer == '' && !this._hois) { var a = this; this.slideshowTimer = setInterval(function () { a.next() }, this.settings.slideshowDelay); this.isSlideshowRunning = true } } }, stopSlideshow: function () { if (this.settings.slideshowEnabled) { clearInterval(this.slideshowTimer); this.slideshowTimer = ''; this.isSlideshowRunning = false } }, _setGrabCursor: function () { if (!this.isIE7) { this._dc.css("cursor", _grabCursor) } }, _setGrabbingCursor: function () { if (!this.isIE7) { this._dc.css("cursor", _brabbingc) } }, _rsmov: function () { if (this.currentSlideId < this.numSlides - 1) { this.goTo(this.currentSlideId + 1) } else { this.goTo(this.currentSlideId) } }, _moveSlideLeft: function () { if (this.currentSlideId > 0) { this.goTo(this.currentSlideId - 1) } else { this.goTo(this.currentSlideId) } }, _oe: function () { var a = parseInt(this._swr.width()); var b = parseInt(this._swr.height()); if (a != this.sliderWidth || b != this.sliderHeight) { this.sliderWidth = a; this.slides.each(function () { $(this).css({ height: b + "px", width: a + "px" }) }); this._dc.css({ "left": -this.currentSlideId * this.sliderWidth, width: this.sliderWidth * this.numSlides }) } }, _onNavItemClick: function (e) { this.goTo($(e.currentTarget).index()) }, _ondst: function (e) { if (!this._dis) { var a; if (this.hasTouch) { var b = e.originalEvent.touches; if (b && b.length > 0) { a = b[0] } else { return false } } else { a = e; e.preventDefault() } if (this.slideshowTimer != '') { this.wasSlideshowPlaying = true; this.stopSlideshow() } else { this.wasSlideshowPlaying = false } this._setGrabbingCursor(); this._dis = true; var c = this; $(document).bind("mousemove touchmove MozTouchMove", function (e) { c._ondgme(e) }); $(document).bind("mouseup touchend MozTouchRelease", function (e) { c._updd(e) }); this._tx = parseInt(this._dc.css("left")); this._xmsa = a.clientX; this._startMouseY = a.clientY; this._endish = parseInt(this._dc.css("left")) } return false }, _ondgme: function (e) { var a; if (this.hasTouch) { var b = e.originalEvent.touches; if (b.length > 1) { return false } a = b[0]; if (Math.abs(a.clientY - this._startMouseY) + 10 > Math.abs(a.clientX - this._xmsa)) { return false } e.preventDefault() } else { a = e; e.preventDefault() } this._lastpdr = this._currentDragPosition; var c = a.clientX - this._xmsa; if (this._lastpdr != c) { this._currentDragPosition = c } if (c != 0) { if (this.currentSlideId == 0) { if (c > 0) { c = Math.sqrt(c) * 5 } } else if (this.currentSlideId == (this.numSlides - 1)) { if (c < 0) { c = -Math.sqrt(-c) * 5 } } this._dc.css("left", this._tx + c) } return false }, _updd: function (e) { if (this.wasSlideshowPlaying) { this.resumeSlideshow() } if (this._dis) { this._dis = false; this._setGrabCursor(); this.endPos = parseInt(this._dc.css("left")); this.isdrag = false; $(document).unbind("mousemove").unbind("touchmove").unbind("MozTouchMove").unbind("mouseup").unbind("touchend").unbind("MozTouchRelease"); if (this.endPos == this._endish) { return } if (this._endish - this.settings.minSlideOffset > this.endPos) { if (this._lastpdr < this._currentDragPosition) { this.goTo(this.currentSlideId); return false } this._rsmov() } else if (this._endish + this.settings.minSlideOffset < this.endPos) { if (this._lastpdr > this._currentDragPosition) { this.goTo(this.currentSlideId); return false } this._moveSlideLeft() } else { this.goTo(this.currentSlideId) } } return false }, _lucky: function () { var a = this; this.resumeSlideshow(); if (this.settings.controlNavEnabled) { this.navItems.bind("click", function (e) { e.preventDefault(); a._onNavItemClick(e) }) } this._dc.bind("mousedown touchstart MozTouchDown", function (e) { a._ondst(e) }); if (this.settings.directionNavEnabled) { this.arrowRight.bind('click', function (e) { e.preventDefault(); a.next() }); this.arrowLeft.bind('click', function (e) { e.preventDefault(); a.prev() }) } if (this.settings.captionAnimationEnabled && this.lastSlideId != this.currentSlideId) { if (this.lastSlideId != -1) { this.slides.eq(this.lastSlideId).find(".royalCaption").css("display", "none") } setTimeout(function () { a._showCaption(this.currentSlideId) }, 10) } this.isAnimating = false; this.settings.afterSlideChange.call(this) }, _showCaption: function (e) { var f = this.slides.eq(this.currentSlideId).find(".royalCaption"); if (f.length) { f.css("display", "block"); var g = this; var h; var j = f.children(); var k; var l; var m; var n; var o; var p; var r; var s; var t; var u; var v; var w; if (this._timecap.length > 0) { for (var a = this._timecap.length; a > -1; a--) { clearTimeout(this._timecap.splice(a, 1)) } } for (var i = 0; i < j.length; i++) { h = $(j[i]); n = {}; k = false; l = false; o = ""; if (h.attr("data-show-effect") == undefined) { p = this.settings.captionShowEffects } else { p = h.attr("data-show-effect").split(" ") } for (var q = 0; q < p.length; q++) { if (k && l) { break } m = p[q].toLowerCase(); if (!k && m == "fade") { k = true; n['opacity'] = 1 } else if (l) { break } else if (m == "movetop") { o = "margin-top" } else if (m == "moveleft") { o = "margin-left" } else if (m == "movebottom") { o = "margin-bottom" } else if (m == "moveright") { o = "margin-right" } if (o != "") { n['moveProp'] = o; n['moveStartPos'] = parseInt(h.css(o)); l = true } } s = parseInt(h.attr("data-move-offset")); if (isNaN(s)) { s = this.settings.captionMoveOffset } t = parseInt(h.attr("data-delay")); if (isNaN(t)) { t = g.settings.captionShowDelay * i + 10 } u = parseInt(h.attr("data-speed")); if (isNaN(u)) { u = g.settings.captionShowSpeed } v = h.attr("data-easing"); if (v == undefined) { v = g.settings.captionShowEasing } r = {}; if (l) { w = n.moveProp; if (w == "margin-right") { w = "margin-left"; r[w] = n.moveStartPos + s + "px" } else if (w == "margin-bottom") { w = "margin-top"; r[w] = n.moveStartPos + s + "px" } else { r[w] = n.moveStartPos - s + "px" } } if (k) { r.opacity = 0 } h.hide().css(r); if (l) { r[w] = n.moveStartPos + "px" } if (k) { r.opacity = 1 } this._timecap.push(setTimeout((function (a, b, c, d) { return function () { a.show().animate(b, c, d) } })(h, r, u, v), t)) } } } };



/* Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net)
* Licensed under the MIT License (LICENSE.txt).
*
* Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
* Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
* Thanks to: Seamus Leahy for adding deltaX and deltaY
*
* Version: 3.0.4
*
* Requires: 1.2.2+
*/
(function (c) { var a = ["DOMMouseScroll", "mousewheel"]; c.event.special.mousewheel = { setup: function () { if (this.addEventListener) { for (var d = a.length; d; ) { this.addEventListener(a[--d], b, false) } } else { this.onmousewheel = b } }, teardown: function () { if (this.removeEventListener) { for (var d = a.length; d; ) { this.removeEventListener(a[--d], b, false) } } else { this.onmousewheel = null } } }; c.fn.extend({ mousewheel: function (d) { return d ? this.bind("mousewheel", d) : this.trigger("mousewheel") }, unmousewheel: function (d) { return this.unbind("mousewheel", d) } }); function b(i) { var g = i || window.event, f = [].slice.call(arguments, 1), j = 0, h = true, e = 0, d = 0; i = c.event.fix(g); i.type = "mousewheel"; if (i.wheelDelta) { j = i.wheelDelta / 120 } if (i.detail) { j = -i.detail / 3 } d = j; if (g.axis !== undefined && g.axis === g.HORIZONTAL_AXIS) { d = 0; e = -1 * j } if (g.wheelDeltaY !== undefined) { d = g.wheelDeltaY / 120 } if (g.wheelDeltaX !== undefined) { e = -1 * g.wheelDeltaX / 120 } f.unshift(i, j, e, d); return c.event.handle.apply(this, f) } })(jQuery);




/*
* TouchCarousel  v1.0
*
* Copyright 2011, Dmitry Semenov, http://dimsemenov.com
* 
*/
(function ($) { function TouchCarousel(g, h) { this.carouselRoot = $(g); var j = this; this._az = false; this._by = false; this._cx = ""; this._dw = ""; this._ev = ""; this._fu; this._gt; this._hs; this._ir; this._jq; this._kp = 0; this.settings = $.extend({}, $.fn.touchCarousel.defaults, h); this._lo = this.carouselRoot.find(".touchcarousel-container"); this._loStyle = this._lo[0].style; this._az1 = this._lo.wrap($('<div class="touchcarousel-wrapper" />')).parent(); var k = this._lo.find(".touchcarousel-item"); this.items = []; this.numItems = k.length; this._by1; this._cx1 = false; this._dw1 = 0; this._ev1 = 0; this._fu1 = 0; this._gt1 = false; this._hs1 = false; this._ir1 = false; if ('ontouchstart' in window) { this.hasTouch = true; this._cx = 'touchstart.rs'; this._dw = 'touchmove.rs'; this._ev = 'touchend.rs'; this._jq1 = this.settings.baseTouchFriction } else { this.hasTouch = false; this._jq1 = this.settings.baseMouseFriction; if (this.settings.dragUsingMouse) { this._cx = 'mousedown.rs'; this._dw = 'mousemove.rs'; this._ev = 'mouseup.rs'; this._kp1; this._lo1; var l = $.browser; if (l.msie || l.opera) { this._kp1 = this._lo1 = "move" } else if (l.mozilla) { this._kp1 = "-moz-grab"; this._lo1 = "-moz-grabbing" } this._mn1() } else { this._az1.addClass('auto-cursor') } } if (this.hasTouch || this.settings.useWebkit3d) { if (('WebKitCSSMatrix' in window && 'm11' in new WebKitCSSMatrix())) { this._lo.css({ '-webkit-transform-origin': '0 0', '-webkit-transform': 'translateZ(0)' }); this._ir1 = true } } if (this._ir1) { this._az2 = '-webkit-transform'; this._by2 = 'translate3d('; this._cx2 = 'px, 0, 0)' } else { this._az2 = 'left'; this._by2 = ''; this._cx2 = 'px' } if (this.hasTouch) { this.settings.directionNavAutoHide = false } if (!this.settings.directionNav) { if (this.settings.loopItems) { this._dw2 = true; this._ev2 = true } else { this._dw2 = false; this._ev2 = false } this.settings.loopItems = true } var m, jqItem, dataSRC, slideImg, currPosX = 0; k.eq(this.numItems - 1).addClass('last'); k.each(function (c) { jqItem = $(this); m = {}; m.item = jqItem; m.index = c; m.posX = currPosX; m.width = (jqItem.outerWidth(true) || j.settings.itemFallbackWidth); currPosX += m.width; if (!this.hasTouch) { jqItem.find('a').bind('click.touchcarousel', function (e) { if (j._cx1) { e.preventDefault(); return false } }) } else { var d = jqItem.find('a'); var f; d.each(function () { f = $(this); f.data('tc-href', f.attr('href')); f.data('tc-target', f.attr('target')); f.attr('href', '#'); f.bind('click', function (e) { e.preventDefault(); if (j._cx1) { return false } else { var a = $(this).data('tc-href'); var b = $(this).data('tc-target'); if (!b || b.toLowerCase() === '_fu2') { window.location.href = a } else { window.open(a) } } }) }) } jqItem.find('.non-draggable').bind(j._cx, function (e) { j._cx1 = false; e.stopImmediatePropagation() }); j.items.push(m) }); this._gt2 = this._fu = currPosX; if (this.settings.itemsPerMove > 0) { this._hs2 = this.settings.itemsPerMove } else { this._hs2 = 1 } if (this.settings.pagingNav) { this.settings.snapToItems = true; this._ir2 = true; this._jq2 = Math.ceil(this.numItems / this._hs2); this._kp2 = 0; if (this.settings.pagingNavControls) { this._lo2 = $('<div class="tc-paging-container"><div class="tc-paging-centerer"><div class="tc-paging-centerer-inside"></div></div></div>'); var n = this._lo2.find('.tc-paging-centerer-inside'); var o; for (var i = 1; i <= this._jq2; i++) { o = $('<a class="tc-paging-item" href="#">' + i + '</a>').data('tc-id', i); if (i === this._kp2 + 1) { o.addClass('current') } n.append(o) } this._mn2 = n.find(".tc-paging-item").click(function (e) { e.preventDefault(); j.goTo(($(e.currentTarget).data('tc-id') - 1) * j._hs2) }); this._az1.after(this._lo2) } } else { this._ir2 = false } this._lo.css({ width: currPosX }); if (this.settings.directionNav) { this._az1.after("<a href='#' class='arrow-holder left'><span class='arrow-icon left'></span></a> <a href='#' class='arrow-holder right'><span class='arrow-icon right'></span></a>"); this.arrowLeft = this.carouselRoot.find(".arrow-holder.left"); this.arrowRight = this.carouselRoot.find(".arrow-holder.right"); if (this.arrowLeft.length < 1 || this.arrowRight.length < 1) { this.settings.directionNav = false } else if (this.settings.directionNavAutoHide) { this.arrowLeft.hide(); this.arrowRight.hide(); this.carouselRoot.one("mousemove.arrowshover", function () { j.arrowLeft.fadeIn("fast"); j.arrowRight.fadeIn("fast") }); this.carouselRoot.hover(function () { j.arrowLeft.fadeIn("fast"); j.arrowRight.fadeIn("fast") }, function () { j.arrowLeft.fadeOut("fast"); j.arrowRight.fadeOut("fast") }) } this._by3(0); if (this.settings.directionNav) { this.arrowRight.click(function (e) { e.preventDefault(); if (j.settings.loopItems && !j._gt1 || !j._ev2) j.next() }); this.arrowLeft.click(function (e) { e.preventDefault(); if (j.settings.loopItems && !j._gt1 || !j._dw2) j.prev() }) } } this.carouselWidth; this._cx3 = 'onorientationchange' in window ? 'orientationchange.touchcarousel' : 'resize.touchcarousel'; var p; $(window).bind(this._cx3, function () { if (p) clearTimeout(p); p = setTimeout(function () { j.updateCarouselSize(false) }, 100) }); if (this.settings.scrollbar) { this._dw3 = $("<div class='scrollbar-holder'><div class='scrollbar" + (this.settings.scrollbarTheme.toLowerCase() === "light" ? " light" : " dark") + "'></div></div>"); this._dw3.appendTo(this.carouselRoot); this.scrollbarJQ = this._dw3.find('.scrollbar'); this._ev3 = ""; this._fu3 = this.scrollbarJQ[0].style; this._gt3 = 0; if (this.settings.scrollbarAutoHide) { this._hs3 = false; this.scrollbarJQ.css("opacity", 0) } else { this._hs3 = true } } else { this.settings.scrollbarAutoHide = false } this.updateCarouselSize(true); this._az1.bind(this._cx, function (e) { j._ir3(e) }); if (this.settings.autoplay && this.settings.autoplayDelay > 0) { this._jq3 = false; this.autoplayTimer = ''; this.wasAutoplayRunning = true; if (!this.hasTouch) { this.carouselRoot.hover(function () { j._jq3 = true; j._kp3() }, function () { j._jq3 = false; j._lo3() }) } this.autoplay = true; this._mn3() } else { this.autoplay = false } if (this.settings.keyboardNav) { $(document).bind("keydown.touchcarousel", function (e) { if (!j._gt1) { if (e.keyCode === 37) { j.prev() } else if (e.keyCode === 39) { j.next() } } }) } this.carouselRoot.css("overflow", "visible") } TouchCarousel.prototype = { goTo: function (a, b) { var c = this.items[a]; if (c) { if (!b && this.autoplay && this.settings.autoplayStopAtAction) { this.stopAutoplay() } this._az4(a); this.endPos = this._by4(); var d = -c.posX; if (d > 0) { d = 0 } else if (d < this.carouselWidth - this._gt2) { d = this.carouselWidth - this._gt2 } this.animateTo(d, this.settings.transitionSpeed, "easeInOutSine") } }, next: function (a) { var b = this._by4(); var c = this._cx4(b).index; if (!this._ir2) { c = c + this._hs2; if (this.settings.loopItems) { if (b <= this.carouselWidth - this._gt2) { c = 0 } } if (c > this.numItems - 1) { c = this.numItems - 1 } } else { var d = this._kp2 + 1; if (d > this._jq2 - 1) { if (this.settings.loopItems) { c = 0 } else { c = (this._jq2 - 1) * this._hs2 } } else { c = d * this._hs2 } } this.goTo(c, a) }, prev: function (a) { var b = this._by4(); var c = this._cx4(b).index; if (!this._ir2) { c = c - this._hs2; if (c < 0) { if (this.settings.loopItems) { if (b < 0) { c = 0 } else { c = this.numItems - 1 } } else { c = 0 } } } else { var d = this._kp2 - 1; if (d < 0) { if (this.settings.loopItems) { c = (this._jq2 - 1) * this._hs2 } else { c = 0 } } else { c = d * this._hs2 } } this.goTo(c, a) }, getCurrentId: function () { var a = this._cx4(this._by4()).index; return a }, setXPos: function (a, b) { if (!b) { this._loStyle[this._az2] = (this._by2 + a + this._cx2) } else { this._fu3[this._az2] = (this._by2 + a + this._cx2) } }, stopAutoplay: function () { this._kp3(); this.autoplay = false; this.wasAutoplayRunning = false }, resumeAutoplay: function () { this.autoplay = true; if (!this.wasAutoplayRunning) { this._lo3() } }, updateCarouselSize: function (a) { var b = this; this.carouselWidth = this.carouselRoot.width(); if (this.settings.scrollToLast) { var c = 0; if (this._ir2) { var d = (this.numItems % this._hs2); if (d > 0) { for (var i = this.numItems - d; i < this.numItems; i++) { c += this.items[i].width } } else { c = this.carouselWidth } } else { c = this.items[this.numItems - 1].width } this._gt2 = this._fu + this.carouselWidth - c } else { this._gt2 = this._fu } if (this.settings.scrollbar) { var e = Math.round(this._dw3.width() / (this._gt2 / this.carouselWidth)); this.scrollbarJQ.css('width', e); this._gt3 = this._dw3.width() - e } if (!this.settings.scrollToLast) { if (this.carouselWidth >= this._fu) { this._hs1 = true; if (!this.settings.loopItems) { this._ev2 = true; this.arrowRight.addClass("disabled"); this._dw2 = true; this.arrowLeft.addClass("disabled") } this.setXPos(0); return } else if (this._hs1) { this._hs1 = false; this._ev2 = false; this._dw2 = false; this.arrowRight.removeClass("disabled"); this.arrowLeft.removeClass("disabled") } } if (!a) { var f = this.endPos = this._by4(); if (f > 0) { f = 0 } else if (f < this.carouselWidth - this._gt2) { f = this.carouselWidth - this._gt2 } this.animateTo(f, 300, "easeInOutSine") } }, animateTo: function (a, b, c, d, e, f, g) { if (this.settings.onAnimStart !== null) { this.settings.onAnimStart.call(this) } if (this.autoplay && this.autoplayTimer) { this.wasAutoplayRunning = true; this._kp3() } this._dw4(); var h = this; var i = this.settings.scrollbar, prop = h._az2, pref = h._by2, suf = h._cx2, from = { containerPos: this.endPos }, to = { containerPos: a }, to2 = { containerPos: e }, e = d ? e : a, dContainer = h._loStyle; h._by = true; if (i) { var j = this._fu3; var k = h._gt2 - h.carouselWidth; if (this.settings.scrollbarAutoHide) { if (!this._hs3) { this._ev4() } } } this._by3(e); function animationComplete() { h._by = false; h._mn3(); if (h.settings.scrollbarAutoHide) { h._fu4() } if (h.settings.onAnimComplete !== null) { h.settings.onAnimComplete.call(h) } } this._by1 = $(from).animate(to, { duration: b, easing: c, step: function () { if (i) { j[prop] = (pref + Math.round((h._gt3) * (-this.containerPos / k)) + suf) } dContainer[prop] = (pref + Math.round(this.containerPos) + suf) }, complete: function () { if (d) { h._by1 = $(to).animate(to2, { duration: f, easing: g, step: function () { if (i) { j[prop] = (pref + Math.round((h._gt3) * (-this.containerPos / k)) + suf) } dContainer[prop] = (pref + Math.round(this.containerPos) + suf) }, complete: function () { if (i) { j[prop] = (pref + Math.round((h._gt3) * (-to2.containerPos / k)) + suf) } dContainer[prop] = (pref + Math.round(to2.containerPos) + suf); animationComplete() } }) } else { if (i) { j[prop] = (pref + Math.round((h._gt3) * (-to.containerPos / k)) + suf) } dContainer[prop] = (pref + Math.round(to.containerPos) + suf); animationComplete() } } }) }, destroy: function () { this.stopAutoplay(); this._az1.unbind(this._cx); $(document).unbind(this._dw).unbind(this._ev); $(window).unbind(this._cx3); if (this.settings.keyboardNav) { $(document).unbind("keydown.touchcarousel") } this.carouselRoot.remove() }, _az4: function (a) { if (this._ir2) { var b = this._gt4(a); this._kp2 = b; if (this.settings.pagingNavControls) { this._mn2.removeClass('current'); this._mn2.eq(b).addClass('current') } } }, _gt4: function (a) { var b = this._hs2; for (var i = 0; i < this._jq2; i++) { if (a >= i * b && a < i * b + b) { return i } } if (a < 0) { return 0 } else if (a >= this._jq2) { return this._jq2 - 1 } return false }, _hs4: function () { if (!this.settings.loopItems) { if (this._dw2) { this._dw2 = false; this.arrowLeft.removeClass("disabled") } else if (this._ev2) { this._ev2 = false; this.arrowRight.removeClass("disabled") } } }, _az3: function () { if (!this._dw2 && !this.settings.loopItems) { this._dw2 = true; this.arrowLeft.addClass("disabled"); if (this._ev2) { this._ev2 = false; this.arrowRight.removeClass("disabled") } } }, _ir4: function () { if (!this._ev2 && !this.settings.loopItems) { this._ev2 = true; this.arrowRight.addClass("disabled"); if (this._dw2) { this._dw2 = false; this.arrowLeft.removeClass("disabled") } } }, _cx4: function (a) { var b = this; a = -a; var c; for (var i = 0; i < b.numItems; i++) { c = b.items[i]; if (a >= c.posX && a < c.posX + c.width) { return c } } return -1 }, _mn3: function () { if (this.autoplay) { if (this.wasAutoplayRunning) { if (!this._jq3) { this._lo3() } this.wasAutoplayRunning = false } } }, _fu4: function () { var a = this; this._hs3 = false; if (this._ev3) { clearTimeout(this._ev3) } this._ev3 = setTimeout(function () { a.scrollbarJQ.animate({ opacity: 0 }, 150, "linear") }, 450) }, _ev4: function () { this._hs3 = true; if (this._ev3) { clearTimeout(this._ev3) } this.scrollbarJQ.stop().animate({ opacity: 1 }, 150, "linear") }, _dw4: function () { if (this._by1) { this._by1.stop() } }, _lo3: function () { if (this.autoplay) { var a = this; if (!this.autoplayTimer) { this.autoplayTimer = setInterval(function () { if (!a._jq4 && !a._by) { a.next(true) } }, this.settings.autoplayDelay) } } }, _kp3: function () { if (this.autoplayTimer) { clearInterval(this.autoplayTimer); this.autoplayTimer = '' } }, _by4: function (a) { var b = !a ? this._lo : this.scrollbarJQ; if (!this._ir1) { return Math.round(b.position().left) } else { var c = b.css("-webkit-transform"); var d = c.replace(/^matrix\(/i, '').split(/, |\)$/g); return parseInt(d[4], 10) } }, _ir3: function (e) { if (!this._jq4) { if (this.autoplay && this.settings.autoplayStopAtAction) { this.stopAutoplay() } this._dw4(); if (this.settings.scrollbarAutoHide) { this._ev4() } var a; if (this.hasTouch) { this._az = false; var b = e.originalEvent.touches; if (b && b.length > 0) { a = b[0] } else { return false } } else { a = e; e.preventDefault() } this._kp4(); this._jq4 = true; var c = this; if (this._ir1) { c._lo.css({ '-webkit-transition-duration': '0', '-webkit-transition-property': 'none' }) } $(document).bind(this._dw, function (e) { c._lo4(e) }); $(document).bind(this._ev, function (e) { c._mn4(e) }); this._az5 = this._by4(); this._ir = a.clientX; this._cx1 = false; this._kp = e.timeStamp || Date.now(); this._fu1 = 0; this._ev1 = this._dw1 = a.clientX; this._by5 = a.clientY } }, _lo4: function (e) { var a = (e.timeStamp || Date.now()); var b; if (this.hasTouch) { if (this._az) { return false } var c = e.originalEvent.touches; if (c.length > 1) { return false } b = c[0]; if (Math.abs(b.clientY - this._by5) > Math.abs(b.clientX - this._dw1) + 3) { if (this.settings.lockAxis) { this._az = true } return false } e.preventDefault() } else { b = e; e.preventDefault() } this._jq = b.clientX; this._cx5 = this._dw5; var d = b.clientX - this._ev1; if (this._cx5 != d) { this._dw5 = d } if (d != 0) { var f = this._az5 + this._fu1; if (f >= 0) { d = d / 4; this._az3() } else if (f <= this.carouselWidth - this._gt2) { this._ir4(); d = d / 4 } else { this._hs4() } this._fu1 += d; this.setXPos(f); if (this.settings.scrollbar) { this.setXPos((this._gt3) * (-f / (this._gt2 - this.carouselWidth)), true) } } this._ev1 = b.clientX; if (a - this._kp > 350) { this._kp = a; this._ir = b.clientX } if (this.settings.onDragStart !== null) { this.settings.onDragStart.call(this) } return false }, _mn4: function (e) { if (this._jq4) { var b = this; this._jq4 = false; this._mn1(); this.endPos = this._by4(); this.isdrag = false; $(document).unbind(this._dw).unbind(this._ev); if (this.endPos == this._az5) { this._cx1 = false; if (this.settings.scrollbarAutoHide) { this._fu4() } return } else { this._cx1 = true } var c = (this._jq - this._ir); var d = Math.max(40, (e.timeStamp || Date.now()) - this._kp); var f = 0.5, mass = 2, v0 = Math.abs(c) / d; function getCorrectXPos(a) { if (a > 0) { a = 0 } else if (a < b.carouselWidth - b._gt2) { a = b.carouselWidth - b._gt2 } return a } if (!this.settings.snapToItems) { var g = 0; if (v0 <= 2) { f = this._jq1 * 3.5; g = 0 } else if (v0 > 2 && v0 <= 3) { f = this._jq1 * 4; g = 200 } else if (v0 > 3) { g = 300; if (v0 > 4) { v0 = 4; g = 400; f = this._jq1 * 6 } f = this._jq1 * 5 } var S = (v0 * v0 * mass) / (2 * f); S = S * (c < 0 ? -1 : 1); var t = v0 * mass / f + g; if (this.endPos + S > 0) { if (this.endPos > 0) { this.animateTo(0, 800, "easeOutCubic") } else { this.animateTo((this.carouselWidth / 10) * ((g + 200) / 1000), (Math.abs(this.endPos) * 1.1) / v0, "easeOutSine", true, 0, 400, "easeOutCubic") } } else if (this.endPos + S < this.carouselWidth - this._gt2) { if (this.endPos < this.carouselWidth - this._gt2) { this.animateTo(this.carouselWidth - this._gt2, 800, "easeOutCubic") } else { this.animateTo(this.carouselWidth - this._gt2 - (this.carouselWidth / 10) * ((g + 200) / 1000), (Math.abs(this.carouselWidth - this._gt2 - this.endPos) * 1.1) / v0, "easeOutSine", true, this.carouselWidth - this._gt2, 400, "easeOutCubic") } } else { this.animateTo(this.endPos + S, t, "easeOutCubic") } } else { if (this.autoplay && this.settings.autoplayStopAtAction) { this.stopAutoplay() } var h = Boolean(this._dw1 - this._ev1 > 0); var i = getCorrectXPos(this._by4()); var j = this._cx4(i).index; if (!this._ir2) { j = j + (h ? this._hs2 : (-this._hs2 + 1)) } else { if (h) { i = Math.max(i - this.carouselWidth - 1, 1 - b._gt2); j = this._cx4(i).index; if (j === undefined) { j = this.numItems - 1 } } var k = this._gt4(j); j = k * this._hs2 } if (h) { j = Math.min(j, this.numItems - 1) } else { j = Math.max(j, 0) } var l = this.items[j]; this._az4(j); if (l) { i = getCorrectXPos(-l.posX); var m = Math.abs(this.endPos - i); var n = Math.max((m * 1.08) / v0, 150); var o = Boolean(n < 180); var p = m * 0.08; if (h) { p = p * -1 } this.animateTo(o ? (i + p) : i, Math.min(n, 400), "easeOutSine", o, i, 300, "easeOutCubic") } } if (this.settings.onDragRelease !== null) { this.settings.onDragRelease.call(this) } } return false }, _by3: function (a) { if (a === undefined) { a = this._by4() } if (!this.settings.loopItems) { if (a >= 0) { this._az3() } else if (a <= this.carouselWidth - this._gt2) { this._ir4() } else { this._hs4() } } }, _mn1: function () { if (this._kp1) { this._az1.css('cursor', this._kp1) } else { this._az1.removeClass('grabbing-cursor'); this._az1.addClass('grab-cursor') } }, _kp4: function () { if (this._lo1) { this._az1.css('cursor', this._lo1) } else { this._az1.removeClass('grab-cursor'); this._az1.addClass('grabbing-cursor') } } }; $.fn.touchCarousel = function (b) { return this.each(function () { var a = new TouchCarousel($(this), b); $(this).data("touchCarousel", a) }) }; $.fn.touchCarousel.defaults = { itemsPerMove: 1, snapToItems: false, pagingNav: false, pagingNavControls: true, autoplay: false, autoplayDelay: 3000, autoplayStopAtAction: true, scrollbar: true, scrollbarAutoHide: false, scrollbarTheme: "dark", transitionSpeed: 600, directionNav: true, directionNavAutoHide: false, loopItems: false, keyboardNav: false, dragUsingMouse: true, scrollToLast: false, itemFallbackWidth: 500, baseMouseFriction: 0.0012, baseTouchFriction: 0.0008, lockAxis: true, useWebkit3d: false, onAnimStart: null, onAnimComplete: null, onDragStart: null, onDragRelease: null }; $.fn.touchCarousel.settings = {}; $.extend(jQuery.easing, { easeInOutSine: function (x, t, b, c, d) { return -c / 2 * (Math.cos(Math.PI * t / d) - 1) + b }, easeOutSine: function (x, t, b, c, d) { return c * Math.sin(t / d * (Math.PI / 2)) + b }, easeOutCubic: function (x, t, b, c, d) { return c * ((t = t / d - 1) * t * t + 1) + b } }) })(jQuery);



/*  
*  Slider Kit v1.8 (packed) - Sliding contents with jQuery
*  http://www.kyrielles.net/sliderkit
*  
*  Copyright (c) 2010-2011 Alan Frog
*  Licensed under the GNU General Public License
*  See <license.txt> or <http://www.gnu.org/licenses/>
*  
*  Requires : jQuery v1.3+ <http://jquery.com/>
* 
*/
eval(function (p, a, c, k, e, r) { e = function (c) { return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? 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 } ('(7($){2m=7(){o n=3;3.2n=7(c,d){3.4=$.3n({},3.2o,d);3.8={1b:3.4.t+"-1b",1c:3.4.t+"-1c",y:3.4.t+"-y",B:3.4.t+"-1c-3o",N:3.4.t+"-1c-3p",13:3.4.t+"-y-3q",v:3.4.t+"-v",J:3.4.t+"-v-3r",2p:3.4.t+"-v-1d",14:3.4.t+"-v-2q",15:3.4.t+"-v-2r",F:3.4.t+"-1d-3s",1e:3.4.t+"-3t-1d",2s:3.4.t+"-1O-2q",2t:3.4.t+"-1O-2r",G:3.4.t+"-3u-1d",O:3.4.t+"-1O-1d"};3.q=$(c);3.y=$("."+3.8.1c,3.q);3.u=3.y.K();3.v=$("."+3.8.v,3.q);3.J=$("."+3.8.J,3.v);3.H=3.u>0?1:0;3.1x=3.J.K()>0?1:0;3.1P=3.q.P();3.2u=3.q.Q();6(!3.H&&!3.1x){3.R("1Q #3v",3.4.S,1)}x 6(3.1P=="16"&&!3.4.1y){3.R("1Q #3w",3.4.S,1)}3.q.z("2v","3x");3.p=0;3.1f=0;3.1g=0;3.L=r;3.1R=0;3.1h=1;3.1z=0;3.T=r;3.3y=9;3.3z=1;3.2w=9;3.2x=1i 1A;3.2y=1i 1A;3.2z=1i 1A;3.2A=1i 1A;6(3.1x){3.2B()}3.2C();6(3.H){3.1S=$("."+3.8.y,3.q);6(3.4.1B=="1C"){3.2D()}}3.1D=!3.H?1:0;6(3.4.1T){3.q.1T(7(a,b){b>0?n.1E():n.1j();w 9})}6(3.4.2E){3.q.3A(7(a){6(a.2F==37){n.1E()}x 6(a.2F==39){n.1j()}})}6(3.4.2G&&3.H){3.1S.U(7(){n.1j();w 9})}3.2H=3.4.1F>=3.u?3.u-1:3.4.1F<0?0:3.4.1F;6(3.4.2I){1U{3.3B()}1V(17){3.R(17,3.4.S,0)}}6(3.4.1W){1U{3.3C(3.4.1W)}1V(17){3.R(17,3.4.S,0)}}3.1G(3.2H,r);6(3.4.16){3.1k();3.2J()}6(3.4.1X){1U{3.3D(3.4.1X)}1V(17){3.R(17,3.4.S,0)}}w 3};3.2o={t:"1Y",1F:0,16:s,2K:3E,1H:9,1T:9,2E:9,1l:9,V:5,2L:9,2M:9,2N:9,1Z:9,2O:s,2P:"1C",20:7(){},21:7(){},I:r,2Q:3F,2R:r,1B:"22",1I:3G,23:r,2S:"1m",24:7(){},25:7(){},2T:9,2G:9,C:9,2U:9,2V:9,1y:9,2W:s,2I:9,1W:9,1X:9,S:9};3.R=7(a,b,c){6(b){3H("3I 3J 3K!\\3L = "+a+" (3M 3N 3O 3P)\\2X 2Y = "+3.q.2Z("2Y")+"\\2X 26 = "+3.q.2Z("26"))}6(c){w 9}};3.2J=7(){6(!3.1J&&!3.4.1H){3.q.30(7(){6(n.T!=r){n.1n()}},7(){n.1k()})}6(3.4.1H){3.q.3Q(7(){6(n.T==r){n.1k()}})}};3.2B=7(){3.M=$("3R",3.J);3.D=$("27",3.M);3.1K=3.D.K();6(3.H&&(3.1K!=3.u)&&3.v.K()==1){3.R("1Q #3S",3.4.S,1)}6(3.4.2V){3.4.V=3.u}x{7 1o(a){28=n.D.z(a);6(28!="16"&&a!=""&&a!="3T"){w 31(28)}x w 0}o c=3.4.C?3.v.P():3.v.Q();o d=3.D.3U(s);o e=3.D.3V(s);o f=1o("1p-W")+1o("1p-3W");o g=1o("1p-X")+1o("1p-3X");3.Y=3.4.C?e:d;3.29=3.Y*3.1K;3.1q=(3.4.V*3.Y)-(3.4.C?g:f);3.1L=3.4.C?"X":"W";o h=3.4.C?"P":"Q";o i=3.4.C?"Q":"P";3.D.z({Q:3.D.Q(),P:3.D.P()});3.M.z(h,3.29+"2a");3.J.z({Q:3.4.C?d:3.1q,P:3.4.C?3.1q:e});6(3.4.2M){3.J.z(3.1L,(c-3.1q)/2).z("1p","0")}3.u=3.1K;6(3.u>3.4.V){3.1z=s;6(3.4.I==r||3.4.I<0||3.4.I>3.u){3.4.I=3.4.V}3.1M=$("."+3.8.2p,3.v);6(3.1M.K()>0){3.32()}}}6(3.4.2L&&3.H){3.D.2b(7(){n.1G(2c(3,"27"),$(3))})}x 6(3.H||3.4.1Z){3.D.U(7(){n.1G(2c(3,"27"),$(3));w 9})}7 2c(a,b){w $(b,$(a).2d()).3Y(a)}};3.32=7(){3.33=s;3.18=$("."+3.8.14,3.v);3.1r=$("."+3.8.15,3.v);3.18.U(7(){n.14();w 9});3.1r.U(7(){n.15();w 9});6(3.4.2N){3.18.2b(7(){n.14(s)});3.1r.2b(7(){n.15(s)});3.1M.3Z(7(){n.34()})}6(!3.4.1l){3.18.40(3.8.F)}};3.2e=7(){3.19=3.4.C?3.M.2f().X:3.M.2f().W;3.Z=10.41(10.1s(3.19)/3.Y);3.11=10.42((3.29-10.1s(3.19)-3.1q)/3.Y);6(3.11<0){3.11=0}};3.2C=7(){3.G=$("."+3.8.G,3.q);3.1a=$("."+3.8.O,3.q);3.1J=3.G.K()>0?1:0;3.O=3.1a.K()>0?1:0;6(3.1J){6(3.4.16){3.G.A(3.8.1e)}3.G.U(7(){6(n.G.1N(n.8.1e)){n.2g()}x{n.35()}w 9})}6(3.O){3.2h=$("."+3.8.2s,3.q);3.2i=$("."+3.8.2t,3.q);6(3.4.2T){3.1a.1t();$("."+3.8.y,3.q).30(7(){n.1a.36()},7(){n.1a.43()})}3.2h.U(7(){n.1E($(3));w 9});3.2i.U(7(){n.1j($(3));w 9})}};3.2D=7(){3.y.44(\'<38 26="\'+3.8.13+\'"></38>\');3.13=$("."+3.8.13,3.1S);3.13.z({"2f":"45"})};3.12=7(a,b,c,d,e){6(e&&3.T!=r){6(3.1J){3.2g()}6(3.4.1H){n.1n()}}6(a){6(a.1N(3.8.F)){w 9}}o f=0;o g=$(":46",3.4.2W?3.v:3.q).K()>0?1:0;6(!g&&!3.2w){3.1f=3.p;6(c==r&&!d){3.p=b=="-="?3.p+1:3.p-1}x 6(c!=r){c=31(c);3.p=c<0?0:c>3.u-1?3.u-1:c;o h=a?a.2d().2d().1N(3.8.J)?9:s:s}6(3.O){3.1a.E(3.8.F)}6(!3.4.1l){6(3.p==-1){3.p=0;f=1}6(3.p==0&&3.O){3.2h.A(3.8.F)}6(3.p==3.u){3.p=3.u-1;f=1}6(3.p==3.u-1){6(3.4.16){3.1n()}6(3.O){3.2i.A(3.8.F)}}}x 6(!3.1z){6(3.p==3.u){3.p=0}6(3.p==-1){3.p=3.u-1}}6(3.1z&&!f){3.3a(d,b,h)}6(3.1x){3.3b(3.p)}6(!(d&&!3.4.2O)){6(3.H){3.3c(3.p,b)}}6(3.1h){3.1h=0}}};3.3a=7(a,b,c){3.2e();o d=a?s:9;o e=0;6(!a){o f=10.1s(3.p+1-3.Z);o g=3.4.V-f+1;o h=3.p==0||3.p==3.u-1?1:0;6((3.4.1Z&&(g==1||f==1))&&!3.1h&&!h){e=3.4.I-1;d=s}6(g==0||f==0){d=s}6(c){o i=10.1s(3.1f-3.p);6(i>0){e=i;d=s}}6(b==""){6(3.1f==3.p&&!h){b=3.3d=="-="?"+=":"-="}x{b=3.1f<3.p?"-=":"+="}}3.3d=b}6(d){o j=e>0?e:3.4.I;o k=b=="-="?3.11:3.Z;o l=k<j?k:j;o m=l*3.Y;3.1g=b=="-="?3.Z+l:3.Z-l+3.4.V-1;6((b=="-="&&3.1g>3.p)||(b=="+="&&3.1g<3.p)){3.p=3.1g}6(3.4.1l){6(3.Z<=0&&b=="+="){b="-=";3.p=3.u-1;m=(3.11/3.4.I)*(3.Y*3.4.I)}x 6(3.11==0&&b=="-="){b="+=";3.p=0;m=10.1s(3.19)}}3.3e(b,m)}};3.3c=7(a,b){3.L=3.y.3f(a);o c=7(){6($.1u(n.4.25)){n.4.25()}n.1v(n.2y)};6(!3.L.1N(3.8.B)){6(3.1h){3.2j=3.4.2S;o d=1}x{o e=3.4.1y&&3.4.1B=="22"?"3g":"1m";3.2j=3.4.1y?e:3.4.1B}6($.1u(n.4.24)){n.4.24()}3.1v(3.2x);3.3h[3.2j](b,d,c)}};3.3e=7(a,b){o c=7(){6(!n.4.1l&&n.33){n.1M.E(n.8.F);n.2e();6(n.Z<=0){n.18.A(n.8.F)}x 6(n.11<=0){n.1r.A(n.8.F)}}6(n.1w){47(7(){n.1w=="-="?n.14():n.15()},0)}x 6($.1u(n.4.21)){n.4.21()}n.1v(n.2A)};6($.1u(n.4.20)){n.4.20()}n.1v(n.2z);3.3i[3.4.2P](a,b,c)};3.1v=7(c){$.3j(c,7(a,b){6($.1u(b)){b()}})};3.48=7(a){a.49=0};3.3h={1m:7(a,b,c){n.y.E(n.8.B).1t();n.L.A(n.8.B).2k();c()},1C:7(a,b,c){6(a==""){a=n.1R<n.p?"-=":"+="}n.1R=n.p;o d=a=="-="?"+":"-";o e=n.4.2U?"X":"W";o f=n.4.C?n.1P:n.2u;o g=e=="X"?{X:a+f}:{W:a+f};n.3k=$("."+n.8.N,n.q);n.3l=$("."+n.8.B,n.q);n.y.z(e,"0");n.3k.E(n.8.N).1t();n.3l.E(n.8.B).A(n.8.N);n.L.A(n.8.B).z(e,d+f+"2a").2k();n.13.3m(s,s).z(e,"0").2l(g,n.4.1I,n.4.23,7(){c()})},22:7(a,b,c){6(b){n.y.1t()}x{n.L.z("2v","1m")}$("."+n.8.N,n.q).E(n.8.N);$("."+n.8.B,n.q).3m(s,s).E(n.8.B).A(n.8.N);n.L.A(n.8.B).2l({"4a":"2k"},n.4.1I,n.4.23,7(){c()})},3g:7(a,b,c){n.y.E(n.8.B).1t();n.L.36(n.4.1I,7(){c()})}};3.3i={1m:7(a,b,c){o d=a=="-="?n.19-b:n.19+b;n.M.z(n.1L,d+"2a");c()},1C:7(a,b,c){n.M.2l(n.1L=="W"?{W:a+b}:{X:a+b},n.4.2Q,n.4.2R,7(){c()})}};3.2g=7(){3.G.E(3.8.1e);3.1n()};3.35=7(){3.G.A(n.8.1e);3.1k()};3.1k=7(){o a=3;3.T=4b(7(){a.12(r,"-=",r,a.1D,r)},a.4.2K)};3.1n=7(){4c(3.T);3.T=r};3.1G=7(a,b){3.12(b,"",a,0,1)};3.1E=7(a){3.12(a,"+=",r,n.1D,1)};3.1j=7(a){3.12(a,"-=",r,n.1D,1)};3.14=7(c){6(c){n.1w="-="}3.12(3.18,"+=",r,1,1)};3.15=7(c){6(c){n.1w="+="}3.12(3.1r,"-=",r,1,1)};3.34=7(){n.1w=""};3.3b=7(a){$("."+3.8.1b,3.M).E(3.8.1b);3.D.3f(a).A(3.8.1b)}};$.4d.1Y=7(a){w 3.3j(7(){$(3).4e("1Y",1i 2m().2n(3,a))})}})(4f);', 62, 264, '|||this|options||if|function|cssNames|false|||||||||||||||var|currId|domObj|null|true|cssprefix|allItems|nav|return|else|panels|css|addClass|panelActive|verticalnav|navLI|removeClass|btnDisable|playBtn|arePanels|scroll|navClip|size|currPanel|navUL|panelOld|goBtns|height|width|_errorReport|debug|isPlaying|click|shownavitems|left|top|navLIsize|LIbefore|Math|LIafter|_change|panelsWrapper|navPrev|navNext|auto|err|navBtnPrev|navPos|gBtns|selected|panel|btn|btnPause|prevId|newId|firstTime|new|stepForward|autoScrollStart|circular|none|autoScrollStop|getLImargin|margin|navClipSize|navBtnNext|abs|hide|isFunction|_runCallBacks|scrollcontinue|isNavClip|freeheight|scrollActive|Array|panelfx|sliding|lineScrollDo|stepBackward|start|changeWithId|autostill|panelfxspeed|isPlayBtn|navLINum|cssPosAttr|navBtns|hasClass|go|domObjHeight|Error|prevPanel|panelsBag|mousewheel|try|catch|delaycaptions|timer|sliderkit|navscrollatend|navfxbefore|navfxafter|fading|panelfxeasing|panelfxbefore|panelfxafter|class|li|attrVal|navULSize|px|mouseover|getIndex|parent|_getNavPos|position|playBtnPause|goBtnPrev|goBtnNext|panelTransition|show|animate|SliderKit|_init|_settings|navBtn|prev|next|goPrev|goNext|domObjWidth|display|animating|panelAnteFns|panelPostFns|navAnteFns|navPostFns|_buildNav|_buildControls|_wrapPanels|keyboard|keyCode|panelclick|startId|counter|_autoScrollHoverStop|autospeed|navitemshover|navclipcenter|navcontinuous|navpanelautoswitch|navfx|scrollspeed|scrolleasing|panelfxfirst|panelbtnshover|verticalslide|tabs|fastchange|nElement|id|attr|hover|parseInt|_buildNavButtons|scrollBtns|navStopContinuous|playBtnStart|fadeIn||div||_setNavScroll|selectThumbnail|_animPanel|scrollWay|_animNav|eq|tabsfading|_panelTransitions|_navTransitions|each|oldPanel|activePanel|stop|extend|active|old|wrapper|clip|disable|pause|play|01|02|block|changeOngoing|currLine|keyup|Counter|DelayCaptions|Timer|4000|600|700|alert|Slider|Kit|error|nMessage|see|doc|for|details|mouseleave|ul|03|0px|outerWidth|outerHeight|right|bottom|index|mouseout|toggleClass|ceil|floor|fadeOut|wrapAll|relative|animated|setTimeout|_clearCallBacks|length|opacity|setInterval|clearTimeout|fn|data|jQuery'.split('|'), 0, {}))


//** Smooth Navigational Menu- By Dynamic Drive DHTML code library: http://www.dynamicdrive.com
//** Script Download/ instructions page: http://www.dynamicdrive.com/dynamicindex1/ddlevelsmenu/
//** Menu created: Nov 12, 2008

//** Dec 12th, 08" (v1.01): Fixed Shadow issue when multiple LIs within the same UL (level) contain sub menus: http://www.dynamicdrive.com/forums/showthread.php?t=39177&highlight=smooth

//** Feb 11th, 09" (v1.02): The currently active main menu item (LI A) now gets a CSS class of ".selected", including sub menu items.

//** May 1st, 09" (v1.3):
//** 1) Now supports vertical (side bar) menu mode- set "orientation" to 'v'
//** 2) In IE6, shadows are now always disabled

//** July 27th, 09" (v1.31): Fixed bug so shadows can be disabled if desired.
//** Feb 2nd, 10" (v1.4): Adds ability to specify delay before sub menus appear and disappear, respectively. See showhidedelay variable below

//** Dec 17th, 10" (v1.5): Updated menu shadow to use CSS3 box shadows when the browser is FF3.5+, IE9+, Opera9.5+, or Safari3+/Chrome. Only .js file changed.

var ddsmoothmenu = {

    //Specify full URL to down and right arrow images (23 is padding-right added to top level LIs with drop downs):
    arrowimages: { down: ['downarrowclass', 'down.gif', 23], right: ['rightarrowclass', 'right.gif'] },
    transition: { overtime: 300, outtime: 300 }, //duration of slide in/ out animation, in milliseconds
    shadow: { enable: false, offsetx: 5, offsety: 5 }, //enable shadow?
    showhidedelay: { showdelay: 100, hidedelay: 200 }, //set delay in milliseconds before sub menus appear and disappear, respectively

    ///////Stop configuring beyond here///////////////////////////

    detectwebkit: navigator.userAgent.toLowerCase().indexOf("applewebkit") != -1, //detect WebKit browsers (Safari, Chrome etc)
    detectie6: document.all && !window.XMLHttpRequest,
    css3support: window.msPerformance || (!document.all && document.querySelector), //detect browsers that support CSS3 box shadows (ie9+ or FF3.5+, Safari3+, Chrome etc)

    getajaxmenu: function ($, setting) { //function to fetch external page containing the panel DIVs
        var $menucontainer = $('#' + setting.contentsource[0]) //reference empty div on page that will hold menu
        $menucontainer.html("Loading Menu...")
        $.ajax({
            url: setting.contentsource[1], //path to external menu file
            async: true,
            error: function (ajaxrequest) {
                $menucontainer.html('Error fetching content. Server Response: ' + ajaxrequest.responseText)
            },
            success: function (content) {
                $menucontainer.html(content)
                ddsmoothmenu.buildmenu($, setting)
            }
        })
    },


    buildmenu: function ($, setting) {
        var smoothmenu = ddsmoothmenu
        var $mainmenu = $("#" + setting.mainmenuid + ">ul") //reference main menu UL
        $mainmenu.parent().get(0).className = setting.classname || "ddsmoothmenu"
        var $headers = $mainmenu.find("ul").parent()
        $headers.hover(
		function (e) {
		    $(this).children('a:eq(0)').addClass('selected')
		},
		function (e) {
		    $(this).children('a:eq(0)').removeClass('selected')
		}
	)
        $headers.each(function (i) { //loop through each LI header
            var $curobj = $(this).css({ zIndex: 100 - i }) //reference current LI header
            var $subul = $(this).find('ul:eq(0)').css({ display: 'block' })
            $subul.data('timers', {})
            this._dimensions = { w: this.offsetWidth, h: this.offsetHeight, subulw: $subul.outerWidth(), subulh: $subul.outerHeight() }
            this.istopheader = $curobj.parents("ul").length == 1 ? true : false //is top level header?
            $subul.css({ top: this.istopheader && setting.orientation != 'v' ? this._dimensions.h + "px" : 0 })
            $curobj.children("a:eq(0)").css(this.istopheader ? { paddingRight: smoothmenu.arrowimages.down[2]} : {}).append( //add arrow images
			'<img src="' + (this.istopheader && setting.orientation != 'v' ? smoothmenu.arrowimages.down[1] : smoothmenu.arrowimages.right[1])
			+ '" class="' + (this.istopheader && setting.orientation != 'v' ? smoothmenu.arrowimages.down[0] : smoothmenu.arrowimages.right[0])
			+ '" style="border:0;" />'
		)
            if (smoothmenu.shadow.enable && !smoothmenu.css3support) { //if shadows enabled and browser doesn't support CSS3 box shadows
                this._shadowoffset = { x: (this.istopheader ? $subul.offset().left + smoothmenu.shadow.offsetx : this._dimensions.w), y: (this.istopheader ? $subul.offset().top + smoothmenu.shadow.offsety : $curobj.position().top)} //store this shadow's offsets
                if (this.istopheader)
                    $parentshadow = $(document.body)
                else {
                    var $parentLi = $curobj.parents("li:eq(0)")
                    $parentshadow = $parentLi.get(0).$shadow
                }
                this.$shadow = $('<div class="ddshadow' + (this.istopheader ? ' toplevelshadow' : '') + '"></div>').prependTo($parentshadow).css({ left: this._shadowoffset.x + 'px', top: this._shadowoffset.y + 'px' })  //insert shadow DIV and set it to parent node for the next shadow div
            }
            $curobj.hover(
			function (e) {
			    var $targetul = $subul //reference UL to reveal
			    var header = $curobj.get(0) //reference header LI as DOM object
			    clearTimeout($targetul.data('timers').hidetimer)
			    $targetul.data('timers').showtimer = setTimeout(function () {
			        header._offsets = { left: $curobj.offset().left, top: $curobj.offset().top }
			        var menuleft = header.istopheader && setting.orientation != 'v' ? 0 : header._dimensions.w
			        menuleft = (header._offsets.left + menuleft + header._dimensions.subulw > $(window).width()) ? (header.istopheader && setting.orientation != 'v' ? -header._dimensions.subulw + header._dimensions.w : -header._dimensions.w) : menuleft //calculate this sub menu's offsets from its parent
			        if ($targetul.queue().length <= 1) { //if 1 or less queued animations
			            $targetul.css({ left: menuleft + "px", width: header._dimensions.subulw + 'px' }).animate({ height: 'show', opacity: 'show' }, ddsmoothmenu.transition.overtime)
			            if (smoothmenu.shadow.enable && !smoothmenu.css3support) {
			                var shadowleft = header.istopheader ? $targetul.offset().left + ddsmoothmenu.shadow.offsetx : menuleft
			                var shadowtop = header.istopheader ? $targetul.offset().top + smoothmenu.shadow.offsety : header._shadowoffset.y
			                if (!header.istopheader && ddsmoothmenu.detectwebkit) { //in WebKit browsers, restore shadow's opacity to full
			                    header.$shadow.css({ opacity: 1 })
			                }
			                header.$shadow.css({ overflow: '', width: header._dimensions.subulw + 'px', left: shadowleft + 'px', top: shadowtop + 'px' }).animate({ height: header._dimensions.subulh + 'px' }, ddsmoothmenu.transition.overtime)
			            }
			        }
			    }, ddsmoothmenu.showhidedelay.showdelay)
			},
			function (e) {
			    var $targetul = $subul
			    var header = $curobj.get(0)
			    clearTimeout($targetul.data('timers').showtimer)
			    $targetul.data('timers').hidetimer = setTimeout(function () {
			        $targetul.animate({ height: 'hide', opacity: 'hide' }, ddsmoothmenu.transition.outtime)
			        if (smoothmenu.shadow.enable && !smoothmenu.css3support) {
			            if (ddsmoothmenu.detectwebkit) { //in WebKit browsers, set first child shadow's opacity to 0, as "overflow:hidden" doesn't work in them
			                header.$shadow.children('div:eq(0)').css({ opacity: 0 })
			            }
			            header.$shadow.css({ overflow: 'hidden' }).animate({ height: 0 }, ddsmoothmenu.transition.outtime)
			        }
			    }, ddsmoothmenu.showhidedelay.hidedelay)
			}
		) //end hover
        }) //end $headers.each()
        if (smoothmenu.shadow.enable && smoothmenu.css3support) { //if shadows enabled and browser supports CSS3 shadows
            var $toplevelul = $('#' + setting.mainmenuid + ' ul li ul')
            var css3shadow = parseInt(smoothmenu.shadow.offsetx) + "px " + parseInt(smoothmenu.shadow.offsety) + "px 5px #aaa" //construct CSS3 box-shadow value
            var shadowprop = ["boxShadow", "MozBoxShadow", "WebkitBoxShadow", "MsBoxShadow"] //possible vendor specific CSS3 shadow properties
            for (var i = 0; i < shadowprop.length; i++) {
                $toplevelul.css(shadowprop[i], css3shadow)
            }
        }
        $mainmenu.find("ul").css({ display: 'none', visibility: 'visible' })
    },

    init: function (setting) {
        if (typeof setting.customtheme == "object" && setting.customtheme.length == 2) { //override default menu colors (default/hover) with custom set?
            var mainmenuid = '#' + setting.mainmenuid
            var mainselector = (setting.orientation == "v") ? mainmenuid : mainmenuid + ', ' + mainmenuid
            document.write('<style type="text/css">\n'
			+ mainselector + ' ul li a {background:' + setting.customtheme[0] + ';}\n'
			+ mainmenuid + ' ul li a:hover {background:' + setting.customtheme[1] + ';}\n'
		+ '</style>')
        }
        this.shadow.enable = (document.all && !window.XMLHttpRequest) ? false : this.shadow.enable //in IE6, always disable shadow
        jQuery(document).ready(function ($) { //ajax menu?
            if (typeof setting.contentsource == "object") { //if external ajax menu
                ddsmoothmenu.getajaxmenu($, setting)
            }
            else { //else if markup menu
                ddsmoothmenu.buildmenu($, setting)
            }
        })
    }

} //end ddsmoothmenu variable

