jQuery(document).ready(function() {
		// redefine Cycle's updateActivePagerLink function
		
		jQuery.fn.cycle.updateActivePagerLink = function(pager, currSlideIndex) { 
		    $(pager).find('li').removeClass('activeLI') 
		        .filter('li:eq('+currSlideIndex+')').addClass('activeLI'); 
		};
		
		/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
		jQuery('#slideshow').cycle({
			timeout: 6000,
		    speed:  2000,
		    pager: '#nav',
		    before: onAfter0,
			after: onAfter0,
			pause: 1,
			pagerEvent: 'mouseover', 
			pauseOnPagerHover: true,
			allowPagerClickBubble: true,
		    pagerAnchorBuilder: function(idx, slide) { 
		        return '<li><a href="' + slide.name + '"><img style="border: 0" src="' + slide.src + '" width="93" height="55" /></a></li>'; 
		    } 
		});
	 	jQuery('#slideshow img').click(function (){
		     document.location.href = jQuery(this).attr('name');
		}).css('cursor', 'pointer');
	 	/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
	 	
	 	 
	 	/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
	 	jQuery('#slideshow_bunga1').cycle({
			timeout: 6000,
		    speed:  2000,
		    pager: '#nav_bunga1',
		    before: onAfter1,
			after: onAfter1,
			pause: 1,
			pagerEvent: 'mouseover', 
			pauseOnPagerHover: true,
			allowPagerClickBubble: true,
		    pagerAnchorBuilder: function(idx, slide) { 
		        return '<li><a href="' + slide.name + '"><img style="border: 0" src="' + slide.src + '" width="93" height="55" /></a></li>'; 
		    } 
		});
	 	jQuery('#slideshow_bunga1 img').click(function (){
		     document.location.href = jQuery(this).attr('name');
		}).css('cursor', 'pointer');
	 	/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
	 	
	 	
	 	/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
	 	jQuery('#slideshow_bunga2').cycle({
			timeout: 6000,
		    speed:  2000,
		    pager: '#nav_bunga2',
		    before: onAfter2,
			after: onAfter2,
			pause: 1,
			pagerEvent: 'mouseover', 
			pauseOnPagerHover: true,
			allowPagerClickBubble: true,
		    pagerAnchorBuilder: function(idx, slide) { 
		        return '<li><a href="' + slide.name + '"><img style="border: 0" src="' + slide.src + '" width="93" height="55" /></a></li>'; 
		    } 
		});
	 	jQuery('#slideshow_bunga2 img').click(function (){
		     document.location.href = jQuery(this).attr('name');
		}).css('cursor', 'pointer');
	 	/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
	 	
	 	
	 	/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
	 	jQuery('#slideshow_bunga3').cycle({
			timeout: 6000,
		    speed:  2000,
		    pager: '#nav_bunga3',
		    before: onAfter3,
			after: onAfter3,
			pause: 1,
			pagerEvent: 'mouseover', 
			pauseOnPagerHover: true,
			allowPagerClickBubble: true,
		    pagerAnchorBuilder: function(idx, slide) { 
		        return '<li><a href="' + slide.name + '"><img style="border: 0" src="' + slide.src + '" width="93" height="55" /></a></li>'; 
		    } 
		});
	 	jQuery('#slideshow_bunga3 img').click(function (){
		     document.location.href = jQuery(this).attr('name');
		}).css('cursor', 'pointer');
	 	/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
	 	
	 	/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
	 	jQuery('#slideshow_bunga4').cycle({
			timeout: 6000,
		    speed:  2000,
		    pager: '#nav_bunga4',
		    before: onAfter4,
			after: onAfter4,
			pause: 1,
			pagerEvent: 'mouseover', 
			pauseOnPagerHover: true,
			allowPagerClickBubble: true,
		    pagerAnchorBuilder: function(idx, slide) { 
		        return '<li><a href="' + slide.name + '"><img style="border: 0" src="' + slide.src + '" width="93" height="55" /></a></li>'; 
		    } 
		});
	 	jQuery('#slideshow_bunga4 img').click(function (){
		     document.location.href = jQuery(this).attr('name');
		}).css('cursor', 'pointer');
	 	/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
	 	
	 	/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
	 	jQuery('#slideshow_bunga5').cycle({
			timeout: 6000,
		    speed:  2000,
		    pager: '#nav_bunga5',
		    before: onAfter5,
			after: onAfter5,
			pause: 1,
			pagerEvent: 'mouseover', 
			pauseOnPagerHover: true,
			allowPagerClickBubble: true,
		    pagerAnchorBuilder: function(idx, slide) { 
		        return '<li><a href="' + slide.name + '"><img style="border: 0" src="' + slide.src + '" width="93" height="55" /></a></li>'; 
		    } 
		});
	 	jQuery('#slideshow_bunga5 img').click(function (){
		     document.location.href = jQuery(this).attr('name');
		}).css('cursor', 'pointer');
	 	/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
	 	
	 	/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
	 	jQuery('#slideshow_bunga6').cycle({
			timeout: 6000,
		    speed:  2000,
		    pager: '#nav_bunga6',
		    before: onAfter6,
			after: onAfter6,
			pause: 1,
			pagerEvent: 'mouseover', 
			pauseOnPagerHover: true,
			allowPagerClickBubble: true,
		    pagerAnchorBuilder: function(idx, slide) { 
		        return '<li><a href="' + slide.name + '"><img style="border: 0" src="' + slide.src + '" width="93" height="55" /></a></li>'; 
		    } 
		});
	 	jQuery('#slideshow_bunga6 img').click(function (){
		     document.location.href = jQuery(this).attr('name');
		}).css('cursor', 'pointer');
	 	/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
	 	
	 	
	 	/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
	 	jQuery('#slideshow_bungapaisa').cycle({
			timeout: 6000,
		    speed:  2000,
		    pager: '#nav_bungapaisa',
		    before: onAfterpaisa,
			after: onAfterpaisa,
			pause: 1,
			pagerEvent: 'mouseover', 
			pauseOnPagerHover: true,
			allowPagerClickBubble: true,
		    pagerAnchorBuilder: function(idx, slide) { 
		        return '<li><a href="' + slide.name + '"><img style="border: 0" src="' + slide.src + '" width="93" height="55" /></a></li>'; 
		    } 
		});
	 	jQuery('#slideshow_bungapaisa img').click(function (){
		     document.location.href = jQuery(this).attr('name');
		}).css('cursor', 'pointer');
	 	/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
	 	
	});
	
	function onAfter0() { 
		jQuery('#output').html("").append('<h3 class="output">' + this.alt + '</h3>'); 
	}
	
	function onAfter1() { 
		jQuery('#output1').html("").append('<h3 class="output1">' + this.alt + '</h3>'); 
	}
	
	function onAfter2() { 
		jQuery('#output2').html("").append('<h3 class="output2">' + this.alt + '</h3>'); 
	}
	
	function onAfter3() { 
		jQuery('#output3').html("").append('<h3 class="output3">' + this.alt + '</h3>'); 
	}
	
	function onAfter4() { 
		jQuery('#output4').html("").append('<h3 class="output4">' + this.alt + '</h3>'); 
	}
	
	function onAfter5() { 
		jQuery('#output5').html("").append('<h3 class="output5">' + this.alt + '</h3>'); 
	}
	
	function onAfter6() { 
		jQuery('#output6').html("").append('<h3 class="output6">' + this.alt + '</h3>'); 
	}
	
	function onAfterpaisa() { 
		jQuery('#outputpaisa').html("").append('<h3 class="outputpaisa">' + this.alt + '</h3>'); 
	}
	

