/**
* 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(c){var d=this;var e=(c.timeOut!=undefined)?c.timeOut:4000;var f=null;var g=null;var h=true;var j=false;var k=$("#"+d[0].id+"Content ."+d[0].id+"Image");var l=$("#"+d[0].id+"Content ."+d[0].id+"Image span");k.each(function(i){$(k[i]).mouseover(function(){j=true});$(k[i]).mouseout(function(){j=false;m(true)})});var m=function(a){var b=(a)?(e/2):e;b=(h)?10:b;if(k.length>0){g=setTimeout(n,b)}else{console.log("Poof..")}};var n=function(){f=(f!=null)?f:k[(k.length-1)];var a=jQuery.inArray(f,k)+1;a=(a==k.length)?0:(a-1);var b=$(d).width()*a;if(h==true){if(!j){$(k[a]).fadeIn((e/6),function(){if($(l[a]).css('bottom')==0){$(l[a]).slideUp((e/6),function(){h=false;f=k[a];if(!j){m(false)}})}else{$(l[a]).slideDown((e/6),function(){h=false;f=k[a];if(!j){m(false)}})}})}}else{if(!j){if($(l[a]).css('bottom')==0){$(l[a]).slideDown((e/6),function(){$(k[a]).fadeOut((e/6),function(){h=true;f=k[(a+1)];if(!j){m(false)}})})}else{$(l[a]).slideUp((e/6),function(){$(k[a]).fadeOut((e/6),function(){h=true;f=k[(a+1)];if(!j){m(false)}})})}}}};n()}})(jQuery);
