/*
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
* Copyright © 2008 George McGinley Smith
* All rights reserved.
*/
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;}});

/* ------------------------------------------------------------------------
 s3Slider	
 Developped By: Boban Karišik -> http://www.serie3.info/
		CSS Help: Mészáros Róbert -> http://www.perspectived.com/
 Version: 1.0
 Copyright: Feel free to redistribute the script/modify it, as
			 long as you leave my infos at the top.
------------------------------------------------------------------------- */
(function($){  
$.fn.s3Slider = function(vars) {       
var element     = this;
var timeOut     = (vars.timeOut != undefined) ? vars.timeOut : 4000;
var current     = null;
var timeOutFn   = null;
var faderStat   = true;
var mOver       = false;
var items       = $("#" + element[0].id + "Content ." + element[0].id + "Image");
var itemsSpan   = $("#" + element[0].id + "Content ." + element[0].id + "Image span");      
items.each(function(i) {
	 $(items[i]).mouseover(function() {
		 mOver = true; });      
	 $(items[i]).mouseout(function() {
		  mOver   = false;
		  fadeElement(true); });});      
var fadeElement = function(isMouseOut) {
	 var thisTimeOut = (isMouseOut) ? (timeOut/2) : timeOut;
	 thisTimeOut = (faderStat) ? 10 : thisTimeOut;
	 if(items.length > 0) {
		  timeOutFn = setTimeout(makeSlider, thisTimeOut);
	 } else {
		  console.log("Poof.."); }}        
var makeSlider = function() {
	 current = (current != null) ? current : items[(items.length-1)];
	 var currNo      = jQuery.inArray(current, items) + 1
	 currNo = (currNo == items.length) ? 0 : (currNo - 1);
	 var newMargin   = $(element).width() * currNo;
	 if(faderStat == true) {
		  if(!mOver) {
				$(items[currNo]).fadeIn((timeOut/6), function() {
					 if($(itemsSpan[currNo]).css('bottom') == 0) {
						  $(itemsSpan[currNo]).slideUp((timeOut/6), function() {
								faderStat = false;
								current = items[currNo];
								if(!mOver) {
									 fadeElement(false);}});
					 } else {
						  $(itemsSpan[currNo]).slideDown((timeOut/6), function() {
								faderStat = false;
								current = items[currNo];
								if(!mOver) {
									 fadeElement(false);} }); }}); }
	 } else {
		  if(!mOver) {
				if($(itemsSpan[currNo]).css('bottom') == 0) {
					 $(itemsSpan[currNo]).slideDown((timeOut/6), function() {
						  $(items[currNo]).fadeOut((timeOut/6), function() {
								faderStat = true;
								current = items[(currNo+1)];
								if(!mOver) {
									 fadeElement(false);	}}); });
				} else {
					 $(itemsSpan[currNo]).slideUp((timeOut/6), function() {
					 $(items[currNo]).fadeOut((timeOut/6), function() {
								faderStat = true;
								current = items[(currNo+1)];
								if(!mOver) {
									 fadeElement(false);	} }); });}} }}
makeSlider();}; })(jQuery); 

$(document).ready(function() {
$('#slider').s3Slider({timeOut: 5000 });});


eval(function(p,a,c,k,e,d){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--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[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}('(5($){$.J.L=5(r){8 1={d:0,A:0,b:"h",v:"N",3:4};6(r){$.D(1,r)}8 m=9;6("h"==1.b){$(1.3).p("h",5(b){8 C=0;m.t(5(){6(!$.k(9,1)&&!$.l(9,1)){$(9).z("o")}j{6(C++>1.A){g B}}});8 w=$.M(m,5(f){g!f.e});m=$(w)})}g 9.t(5(){8 2=9;$(2).c("s",$(2).c("i"));6("h"!=1.b||$.k(2,1)||$.l(2,1)){6(1.u){$(2).c("i",1.u)}j{$(2).K("i")}2.e=B}j{2.e=x}$(2).T("o",5(){6(!9.e){$("<V />").p("X",5(){$(2).Y().c("i",$(2).c("s"))[1.v](1.Z);2.e=x}).c("i",$(2).c("s"))}});6("h"!=1.b){$(2).p(1.b,5(b){6(!2.e){$(2).z("o")}})}})};$.k=5(f,1){6(1.3===E||1.3===4){8 7=$(4).F()+$(4).O()}j{8 7=$(1.3).n().G+$(1.3).F()}g 7<=$(f).n().G-1.d};$.l=5(f,1){6(1.3===E||1.3===4){8 7=$(4).I()+$(4).U()}j{8 7=$(1.3).n().q+$(1.3).I()}g 7<=$(f).n().q-1.d};$.D($.P[\':\'],{"Q-H-7":"$.k(a, {d : 0, 3: 4})","R-H-7":"!$.k(a, {d : 0, 3: 4})","S-y-7":"$.l(a, {d : 0, 3: 4})","q-y-7":"!$.l(a, {d : 0, 3: 4})"})})(W);',62,62,'|settings|self|container|window|function|if|fold|var|this||event|attr|threshold|loaded|element|return|scroll|src|else|belowthefold|rightoffold|elements|offset|appear|bind|left|options|original|each|placeholder|effect|temp|true|of|trigger|failurelimit|false|counter|extend|undefined|height|top|the|width|fn|removeAttr|lazyload|grep|show|scrollTop|expr|below|above|right|one|scrollLeft|img|jQuery|load|hide|effectspeed'.split('|'),0,{}))
$(function() {
$("dl img").lazyload({ placeholder : "img/grey.gif",effect : "fadeIn" });});