$(document).ready(function() {

	var $ss = $('#slideshow');


$ss.append('<a href="p-92463-naughty-people-plus-size-chemise.aspx" title="Naughty People Chemise"><img src="http://cdn.flirtcatalog.com/images/splashpage/slides/plussize/naughty-people.jpg" alt="Naughty People Chemise"  height="252" width="440" /></a>')

$ss.append('<a href="c-1011-plussize-sexy-sexy-costumes.aspx" title="Shop All Costumes"><img src="http://cdn.flirtcatalog.com/images/splashpage/slides/plussize/plus-size-costumes.jpg" alt="Shop All Costumes" usemap="#slide3" height="252" width="440" /><map name="slide3" id="slide3"><area shape="rect" coords="236,1,437,248" href="c-1011-plussize-sexy-sexy-costumes.aspx" alt="Shop All Costumes" title="Shop All Costumes" /><area shape="rect" coords="4,4,132,250" href="p-90666-lil-miss-red-riding-hood-plus-size-costume.aspx" alt="Sexy Red Riding Hood Costume" title="Sexy Red Riding Hood Costume" /><area shape="rect" coords="132,3,236,250" href="p-88806-sexy-gangster-plus-size-costume.aspx" alt="Sexy Gangster Costume" title="Sexy Gangster Costume" /></map></a>')

$ss.append('<a href="c-1012-plussize-sexy-dresses.aspx" title="Sexy Dresses"><img src="http://cdn.flirtcatalog.com/images/splashpage/slides/plussize/sexy-dresses.jpg" alt="Sexy Dresses"  height="252" width="440" /></a>')


$ss.append('<a href="p-90282-strapless-satin-jacquard-corset-plus-size.aspx" title="Satin Corset Set"><img src="http://cdn.flirtcatalog.com/images/splashpage/slides/plussize/satin-corset-set.jpg" alt="Satin Corset Set" width="440"  height="252" border="0" usemap="#slide5" /><map name="slide5" id="slide5"><area shape="rect" coords="192,179,436,249" href="c-1257-plussize-sexy-corsets-bustiers.aspx" title="Shop All Corsets &amp; Bustiers" alt="Shop All Corsets &amp; Bustiers" /><area shape="poly" coords="5,6,433,4,432,178,190,176,187,248,3,248" href="p-90282-strapless-satin-jacquard-corset-plus-size.aspx" title="Satin Corset Set" alt="Satin Corset Set" /></map></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');
	}

}

