document.write('
');
$("#shop5_slider").append('');
$("#shop5_slider").append('');
$("#shop5_slider").append('');
$("#shop5_slider").append('');
$("#shop5_slider").append('');
anim = new Array();
anim[0]='
';
anim[1]='
';
anim[2]='
';
anim[3]='
';
anim[4]='
';
anim[5]='
';
anim[6]='
';
anim[7]='
';
anim_poradi = 0;
function anim_hlavicka() {
x1 = anim_poradi;
x2 = anim_poradi+1
if (x2 > anim.length-1) x2 = 0;
f1 = anim[x1];
f2 = anim[x2];
anim_poradi++;
if (anim_poradi > anim.length-1) anim_poradi = 0;
f3 = $("#shop5_slider_anim1").html();
if (f3 == "") f3 = f1;
$("#shop5_slider_anim2").html(f3);
$("#shop5_slider_anim1").html(f2);
$("#shop5_slider_anim2").css('opacity',1);
$("#shop5_slider_anim1").css('opacity',1);
$("#shop5_slider_anim2").animate(
{opacity: 0},
500
,
function() {
var a1 = $("#shop5_slider_anim1").html();
$("#shop5_slider_anim2").html( a1 );
}
);
anim_navig();
}
function anim_navig(step) {
var por = "";
for(var i=0; i';
por += " "+(i+1)+" ";
}
else {
por += '';
por += " "+(i+1)+" ";
}
por += '';
}
$("#shop5_slider_poradi").html(por);
$('#shop5_slider_left').html('LEFT');
$('#shop5_slider_right').html('RIGHT');
}
function anim_step(step) {
if (step<0) step = anim.length-1;
clearInterval(anim_interval);
anim_interval = setInterval("anim_hlavicka();", 5000);
$("#shop5_slider_anim2").stop();
anim_poradi = step-1;
anim_hlavicka();
}
$("#shop5_slider_anim2").html(anim[0]);
$("#shop5_slider_anim1").html(anim[0]);
anim_navig();
var anim_interval = setInterval("anim_hlavicka();", 5000);