
(function(a)
{
a.fn.s3Slider=function(h)
{
var j=this,
g=h.timeOut!=undefined?h.timeOut:4e3,
n=h.timeShow!=undefined?h.timeShow:g,
k=h.timeTextSlide!=undefined?h.timeTextSlide:g/6,
c=null,
m=null,
e=true,
d=false,
b=a("#"+j[0].id+"Content ."+j[0].id+"Image"),
f=a("#"+j[0].id+"Content ."+j[0].id+"Image div"),
i=function(c)
{
var a=c?g/2:n;
a=e?10:a;
if(b.length>0)
m=setTimeout(l,a);
else
console.log("Poof..")
},
l=function()
{
c=c!=null?c:b[b.length-1];
var h=jQuery.inArray(c,b)+1;
h=h==b.length?0:h-1;
var l=a(j).width()*h;
if(e==true)
!d&&
a(b[h]).fadeIn(g/6,function()
{
if(a(f[h]).css("bottom")==0)
a(f[h]).slideUp(k,function()
{
e=false;
c=b[h];
!d&&
i(false)
});
else
a(f[h]).slideDown(k,function()
{
e=false;
c=b[h];
!d&&
i(false)
})
});
else
if(!d)
if(a(f[h]).css("bottom")==0)
a(f[h]).slideDown(k,function()
{
a(b[h]).fadeOut(g/6,function()
{
e=true;
c=b[h+1];
!d&&
i(false)
})
});
else
a(f[h]).slideUp(k,function()
{
a(b[h]).fadeOut(g/6,function()
{
e=true;
c=b[h+1];
!d&&
i(false)
})
})
};
l();
b.each(function(c)
{
a(b[c]).mouseover(function()
{
d=true
});
a(b[c]).mouseout(function()
{
d=false;
i(true)
})
})
}
})(jQuery)
