$(document).ready(function() {

	var $ss = $('#slideshow');
	
	
	$ss.append('<a  href="/Sexy_Shoes_s/142.htm" title="Shoes"><img src="http://www.5000styles.net/images/slideshow/categories/shoes_001.jpg" alt="Shoes" height="365" width="700" /></a>');
	
$ss.append('<a  href="/Sexy_Lingerie_s/30.htm" title="Lingerie"><img src="http://www.5000styles.net/images/slideshow/categories/lingerie_001.jpg" alt="Lingerie" height="365" width="700" /></a>');

$ss.append('<a  href="/Corsets_Corset_Tops_s/43.htm" title="Corsets"><img src="http://www.5000styles.net/images/slideshow/categories/corsets_001.jpg" alt="Corsets" height="365" width="700" /></a>');

$ss.append('<a  href="/Hosiery_s/28.htm" title="Hosiery"><img src="http://www.5000styles.net/images/slideshow/categories/stockings_001.jpg" alt="Hosiery" height="365" width="700" /></a>');
	
$ss.append('<a href="/Party_Costumes_s/35.htm" title="Party Costumes"><img src="http://www.5000styles.net/images/slideshow/categories/costumes_001.jpg" alt="Party Costumes" height="365" width="700" /></a>');


	
    $ss.cycle({
		fx: 'fade',
		pager:  '#slidePaging',
		timeout: 5000,
		delay: -2000,
		pagerClick:    togglePlay
	});
	
	 
});

function togglePlay(zeroBasedSlideIndex, slideElement) {
	toggleSlidePlay(1);
}
function toggleSlidePlay(pause) {
	if (pause==1) {
	    $('#pauseButton').hide();
		$('#playButton').show();
		$('#slideshow').cycle('pause');
	} else {
		$('#pauseButton').show();
		$('#playButton').hide();
		$('#slideshow').cycle('resume');
	}

}
