$(function() {
	$('#thumbnailpage').cycle({
        fx: 'turnDown',
		speed: 800,
		timeout: 0,
        pager: '#thumbnailnav',
        pagerAnchorBuilder: function(idx, slide) {
         // return sel string for existing anchor
        return '#thumbnailnav li:eq(' + (idx) + ') a';}
    });
});

$(function() {
	$('#caption').cycle({
		speed: 1,
		timeout: 0,
		cleartype: 1,
        pager: '#thumbnailpage',
        pagerAnchorBuilder: function(idx, slide) {
         // return sel string for existing anchor
        return '#thumbnailpage li:eq(' + (idx) + ') a';}
    });
});

// -------------------------- General 08 -------------------------- //

$(function() {
    var $ss = $('#general');
    
    // add slides to slideshow (images 2-8)
    for (var i = 2; i < 47; i++)
        $ss.append('<img src="../images/pics/general/large/'+i+'.jpg" />');
});

$(function() {
    var stack = [];

    // preload images into an array
    for (var i = 2; i < 47; i++) {
        var img = new Image;
        img.src = '../images/pics/general/large/' + i + '.jpg';
        stack.push(img);
    } 

      $("#general").cycle({
		  fx: 'fade',
		  speed: 600,
          timeout: 0,
          pager: '#thumbnailpage',
          before: onBefore,
		  pagerAnchorBuilder: function(idx, slide) {
           // return sel string for existing anchor
		  return '#thumbnailpage li:eq(' + (idx) + ') a';}
      });
      
    // add images to slideshow
    function onBefore(curr, next, opts) {
        if (opts.addSlide) // <-- important!
            while(stack.length)
                opts.addSlide(stack.shift()); 
    };
});

// -------------------------- AC Expo 08 -------------------------- //

$(function() {
    var $ss = $('#acexpo08');
    
    // add slides to slideshow (images 2-8)
    for (var i = 2; i < 47; i++)
        $ss.append('<img src="../images/pics/acexpo08/large/'+i+'.jpg" />');
});

$(function() {
    var stack = [];

    // preload images into an array
    for (var i = 2; i < 47; i++) {
        var img = new Image;
        img.src = '../images/pics/acexpo08/large/' + i + '.jpg';
        stack.push(img);
    } 

      $("#acexpo08").cycle({
		  fx: 'fade',
		  speed: 600,
          timeout: 0,
          pager: '#thumbnailpage',
          before: onBefore,
		  pagerAnchorBuilder: function(idx, slide) {
           // return sel string for existing anchor
		  return '#thumbnailpage li:eq(' + (idx) + ') a';}
      });
      
    // add images to slideshow
    function onBefore(curr, next, opts) {
        if (opts.addSlide) // <-- important!
            while(stack.length)
                opts.addSlide(stack.shift()); 
    };
});

// -------------------------- KissFM Boat Ride 08 -------------------------- //

$(function() {
    var $ss = $('#boatride08');
    
    // add slides to slideshow (images 2-8)
    for (var i = 2; i < 47; i++)
        $ss.append('<img src="../images/pics/boatride08/large/'+i+'.jpg" />');
});

$(function() {
    var stack = [];

    // preload images into an array
    for (var i = 2; i < 47; i++) {
        var img = new Image;
        img.src = '../images/pics/boatride08/large/' + i + '.jpg';
        stack.push(img);
    } 

      $("#boatride08").cycle({
		  fx: 'fade',
		  speed: 600,
          timeout: 0,
          pager: '#thumbnailpage',
          before: onBefore,
		  pagerAnchorBuilder: function(idx, slide) {
           // return sel string for existing anchor
		  return '#thumbnailpage li:eq(' + (idx) + ') a';}
      });
      
    // add images to slideshow
    function onBefore(curr, next, opts) {
        if (opts.addSlide) // <-- important!
            while(stack.length)
                opts.addSlide(stack.shift()); 
    };
});

// -------------------------- Celebrities 08 -------------------------- //

$(function() {
    var $ss = $('#celebrities');
    
    // add slides to slideshow (images 2-8)
    for (var i = 2; i < 47; i++)
        $ss.append('<img src="../images/pics/celebrities/large/'+i+'.jpg" />');
});

$(function() {
    var stack = [];

    // preload images into an array
    for (var i = 2; i < 47; i++) {
        var img = new Image;
        img.src = '../images/pics/celebrities/large/' + i + '.jpg';
        stack.push(img);
    } 

      $("#celebrities").cycle({
		  fx: 'fade',
		  speed: 600,
          timeout: 0,
          pager: '#thumbnailpage',
          before: onBefore,
		  pagerAnchorBuilder: function(idx, slide) {
           // return sel string for existing anchor
		  return '#thumbnailpage li:eq(' + (idx) + ') a';}
      });
      
    // add images to slideshow
    function onBefore(curr, next, opts) {
        if (opts.addSlide) // <-- important!
            while(stack.length)
                opts.addSlide(stack.shift()); 
    };
});

$(function() {
    $('#bioslide').cycle({
        fx: 'fade',
		speed: 600,
		timeout: 7500,
        pager: '#thumbnailpage',
		cleartype: 1,
        pagerAnchorBuilder: function(idx, slide) {
         // return sel string for existing anchor
        return '#thumbnailpage li:eq(' + (idx) + ') a';}
    });
});

// -------------------------- H-Bomb B-Day 08 -------------------------- //

$(function() {
    var $ss = $('#hbombbday08');
    
    // add slides to slideshow (images 2-8)
    for (var i = 2; i < 47; i++)
        $ss.append('<img src="../images/pics/hbombbday08/large/'+i+'.jpg" />');
});

$(function() {
    var stack = [];

    // preload images into an array
    for (var i = 2; i < 47; i++) {
        var img = new Image;
        img.src = '../images/pics/hbombbday08/large/' + i + '.jpg';
        stack.push(img);
    } 

      $("#hbombbday08").cycle({
		  fx: 'fade',
		  speed: 600,
          timeout: 0,
          pager: '#thumbnailpage',
          before: onBefore,
		  pagerAnchorBuilder: function(idx, slide) {
           // return sel string for existing anchor
		  return '#thumbnailpage li:eq(' + (idx) + ') a';}
      });
      
    // add images to slideshow
    function onBefore(curr, next, opts) {
        if (opts.addSlide) // <-- important!
            while(stack.length)
                opts.addSlide(stack.shift()); 
    };
});

$(function() {
    $('#bioslide').cycle({
        fx: 'fade',
		speed: 600,
		timeout: 7500,
        pager: '#thumbnailpage',
		cleartype: 1,
        pagerAnchorBuilder: function(idx, slide) {
         // return sel string for existing anchor
        return '#thumbnailpage li:eq(' + (idx) + ') a';}
    });
});

// -------------------------- KissFM Land Shark Party 08 -------------------------- //

$(function() {
    var $ss = $('#landshark08');
    
    // add slides to slideshow (images 2-8)
    for (var i = 2; i < 47; i++)
        $ss.append('<img src="../images/pics/landshark08/large/'+i+'.jpg" />');
});

$(function() {
    var stack = [];

    // preload images into an array
    for (var i = 2; i < 47; i++) {
        var img = new Image;
        img.src = '../images/pics/landshark08/large/' + i + '.jpg';
        stack.push(img);
    } 

      $("#landshark08").cycle({
		  fx: 'fade',
		  speed: 600,
          timeout: 0,
          pager: '#thumbnailpage',
          before: onBefore,
		  pagerAnchorBuilder: function(idx, slide) {
           // return sel string for existing anchor
		  return '#thumbnailpage li:eq(' + (idx) + ') a';}
      });
      
    // add images to slideshow
    function onBefore(curr, next, opts) {
        if (opts.addSlide) // <-- important!
            while(stack.length)
                opts.addSlide(stack.shift()); 
    };
});

$(function() {
    $('#bioslide').cycle({
        fx: 'fade',
		speed: 600,
		timeout: 7500,
        pager: '#thumbnailpage',
		cleartype: 1,
        pagerAnchorBuilder: function(idx, slide) {
         // return sel string for existing anchor
        return '#thumbnailpage li:eq(' + (idx) + ') a';}
    });
});

// -------------------------- Halloween Party 08 -------------------------- //

$(function() {
    var $ss = $('#halloween08');
    
    // add slides to slideshow (images 2-8)
    for (var i = 2; i < 47; i++)
        $ss.append('<img src="../images/pics/halloween08/large/'+i+'.jpg" />');
});

$(function() {
    var stack = [];

    // preload images into an array
    for (var i = 2; i < 47; i++) {
        var img = new Image;
        img.src = '../images/pics/halloween08/large/' + i + '.jpg';
        stack.push(img);
    } 

      $("#halloween08").cycle({
		  fx: 'fade',
		  speed: 600,
          timeout: 0,
          pager: '#thumbnailpage',
          before: onBefore,
		  pagerAnchorBuilder: function(idx, slide) {
           // return sel string for existing anchor
		  return '#thumbnailpage li:eq(' + (idx) + ') a';}
      });
      
    // add images to slideshow
    function onBefore(curr, next, opts) {
        if (opts.addSlide) // <-- important!
            while(stack.length)
                opts.addSlide(stack.shift()); 
    };
});

$(function() {
    $('#bioslide').cycle({
        fx: 'fade',
		speed: 600,
		timeout: 7500,
        pager: '#thumbnailpage',
		cleartype: 1,
        pagerAnchorBuilder: function(idx, slide) {
         // return sel string for existing anchor
        return '#thumbnailpage li:eq(' + (idx) + ') a';}
    });
});