$(document).ready(function() {
	var $ss = $('#slideshow');
	$ss.append('<a href="/products/view.aspx?itemid=popsi5039" title="Garetered teddy with matching panty. Avaialbe in both Red and Blue."><img src="/images/banners/440x252/2010/Popsi-5039.jpg" width="440" height="252" alt="Garetered teddy with matching panty. Avaialbe in both Red and Blue." /></a>')
	$ss.append('<a href="/catalogs/view/al2009_leather_supplement.aspx" title="Allure Leather 2009 Supplemental Catalog. Allure Leather has extended their collection of corsets and more variety to their whips and paddles."><img src="/images/banners/440x252/2010/AllureLeather-New-Leather-Corsets.jpg" width="440" height="252" alt="Allure Leather 2009 Supplemental Catalog. Allure Leather has extended their collection of corsets and more variety to their whips and paddles." /></a>')
	$ss.append('<a href="/products/view.aspx?itemid=al4-2657x" title="Studded. Adjustable straps. Side zipper opening. Lycra thong back. Detachable garters. Available in Plus Sizes."><img src="/images/banners/440x252/2010/AllureLeather-DivaCorsets.jpg" width="440" height="252" alt="Studded. Adjustable straps. Side zipper opening. Lycra thong back. Detachable garters. Available in Plus Sizes." /></a>')
	$ss.append('<a href="/products/view.aspx?itemid=al11-7041w" title="This electrifying rubber-look vinyl corset makes a maximum impact with white inserts and boning that accentuate curves and emphasize the bust. Front and back lacing make it even racier. Front zipper opening. Detachable garters."><img src="/images/banners/440x252/2010/AllureLeather_RubberLook1.jpg" width="440" height="252" alt="This electrifying rubber-look vinyl corset makes a maximum impact with white inserts and boning that accentuate curves and emphasize the bust. Front and back lacing make it even racier. Front zipper opening. Detachable garters." /></a>')
	
    $ss.cycle({
		fx: 'fade',
		pager:  '#slidePaging',
		timeout: 5000,
		delay: -4000,
		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');
	}
}
