$(document).ready(createPicGallery_slide_show_1);
var currentPic_slide_show_1;
var delay_slide_show_1;
var loadNextId_slide_show_1;
var totalPics_slide_show_1;
var activeBullet = new Image_slide_show_1();
 var passiveBullet = new Image_slide_show_1();
function Image_slide_show_1(src) { 
this.src = src;
}

function createPicGallery_slide_show_1() {
var i = 0;
$('#slide_show_1').append('<img width="700" height="400" id="img_0_slide_show_1" src="/1756/img/slide_img01.jpg" />');

$('#slide_show_1').css('z-index', '0');
$('#img_0_slide_show_1').addClass('active');

totalPics_slide_show_1 = 1;
currentPic_slide_show_1 = 0;
delay_slide_show_1 = 2000;

loadNextId_slide_show_1 = window.setTimeout(loadNextPic_slide_show_1, delay_slide_show_1);
activeBullet.src="/1756/img/activeBullet_slide_show_1.png";
passiveBullet.src="/1756/img/passiveBullet_slide_show_1.png"; 
createBullets_slide_show_1();
}
function loadNextPic_slide_show_1() {
window.clearTimeout(loadNextId_slide_show_1);
currentPic_slide_show_1 = (currentPic_slide_show_1 + 1) % totalPics_slide_show_1; 
$('#slide_show_1 img.active').fadeOut(1000, showPic_slide_show_1);
$('#bullets_slide_show_1 img.active').attr('src', passiveBullet.src);
}
function showThisPick_slide_show_1(current){
window.clearTimeout(loadNextId_slide_show_1);
currentPic_slide_show_1 = parseInt(current);
$('#bullets_slide_show_1 img.active').attr('src', passiveBullet.src);
$('#slide_show_1 img.active').fadeOut(1000, showPic_slide_show_1);
}
function createBullets_slide_show_1(){
$('#div_slide_show_1').after("<div id='bullets_slide_show_1'></div>");
for (i = 0; i < totalPics_slide_show_1; i++) {
$('#bullets_slide_show_1').append('<img id="bull_' + i + '_slide_show_1" src=' + passiveBullet.src + ' value="' + i + '" width="15" height="15"/>');
$('#bull_' + i + '_slide_show_1').css('cursor', 'pointer');
$('#bull_' + i + '_slide_show_1').click(function(){
showThisPick_slide_show_1($(this).attr('value'));
});
}
}
function showPic_slide_show_1() { 
$('#slide_show_1 img.active').removeClass('active');
$('#img_' + currentPic_slide_show_1 + '_slide_show_1').addClass('active');
$('#bullets_slide_show_1 img.active').removeClass('active');
$('#bull_' + currentPic_slide_show_1 + '_slide_show_1').addClass('active').attr('src', activeBullet.src);
$('#img_' + currentPic_slide_show_1 + '_slide_show_1').fadeIn(1000, function() { loadNextId_slide_show_1 = window.setTimeout(loadNextPic_slide_show_1, delay_slide_show_1); });
}

