$(document).ready(function() {

	var $ss = $('#slideshow');
	
	$ss.append('<a href="c-1412-animal-print-dresses.aspx" title="Shop Animal Dresses"><img src="http://cdn.flirtcatalog.com/images/frontpage/10_04_08/SLIDE-2.jpg" alt="Shop Animal Dresses" width="720" height="380"></a>');
	
	$ss.append('<a href="p-92710-ultra-soft-long-racerback-tank-with-sequin-stripes.aspx" title="Ultra Soft Long Racerback Tank with Sequin Stripes"><img src="http://cdn.flirtcatalog.com/images/frontpage/10_04_08/SLIDE-3-A.jpg" alt="Ultra Soft Long Racerback Tank with Sequin Stripes" width="720" height="380"></a>');
	
	$ss.append('<a href="nsearch.aspx?keywords=naughty+people" title="Shop Naughty People"><img src="http://cdn.flirtcatalog.com/images/frontpage/10_04_08/SLIDE-4-A.jpg" alt="Shop Naughty People" width="720" height="380"></a>');
	
	$ss.append('<a href="p-92460-snakeskin-ruched-mini-dress.aspx" title="Snakeskin Ruched Mini Dress"><img src="http://cdn.flirtcatalog.com/images/frontpage/10_04_08/SLIDE-5.jpg" alt="" width="720" height="380" border="0" usemap="#slide5Map"><map name="slide5Map" id="slide5Map"><area shape="rect" coords="383,291,713,375" href="c-1408-sexy-party-dresses.aspx" alt="Shop Club Dresses" title="Shop Club Dresses" /><area shape="poly" coords="5,5,716,3,714,290,380,289,380,377,3,376" href="p-92460-snakeskin-ruched-mini-dress.aspx" alt="Snakeskin Ruched Mini Dress" title="Snakeskin Ruched Mini Dress" /></map></a>');
	
	$ss.append('<a href="c-1279-swimwear-sexy-metallics-collection.aspx" title="Shop Metallic Swimwear"><img src="http://cdn.flirtcatalog.com/images/frontpage/10_04_08/SLIDE-6A.jpg" alt="Shop Metallic Swimwear" width="720" height="380"></a>');
	
	$ss.append('<a href="c-1254-swimwear-sexy-monokinis.aspx" title="Shop Monokinis"><img src="http://cdn.flirtcatalog.com/images/frontpage/10_04_08/SLIDE-7.jpg" alt="Shop Monokinis" width="720" height="380"></a>');
	
	$ss.append('<a href="c-1246-swimwear-sexy-cover-ups.aspx" title="Shop Cover Ups"><img src="http://cdn.flirtcatalog.com/images/frontpage/10_04_08/SLIDE-8.jpg" alt="Shop Cover Ups" width="720" height="380"></a>');

$ss.append('<a href="c-875-sexy-lingerie.aspx?sortby=newest" title="Shop Spring Lingerie"><img src="http://cdn.flirtcatalog.com/images/frontpage/10_04_08/SLIDE-9.jpg" alt="Shop Spring Lingerie" width="720" height="380"></a>');

$ss.append('<a href="c-1073-lingerie-sexy-pantyhose.aspx" title="Shop Hosiery"><img src="http://cdn.flirtcatalog.com/images/frontpage/lingerie/hosiery.jpg" alt="Shop Hosiery" width="720" height="380" border="0" usemap="#hoseMap"><map name="hoseMap" id="hoseMap"><area shape="rect" coords="364,263,715,373" href="c-948-lingerie-sexy-bodystockings.aspx" alt="Shop Bodystockings" title="Shop Bodystockings" /><area shape="rect" coords="364,224,714,264" href="c-1073-lingerie-sexy-pantyhose.aspx" alt="Shop Pantyhose" title="Shop Pantyhose" /><area shape="rect" coords="359,3,714,223" href="c-945-lingerie-sexy-stockings.aspx" alt="Shop Stockings" title="Shop Stockings" /><area shape="rect" coords="5,4,358,376" href="p-89868-net-pantyhose-with-boy-short-top.aspx" alt="Net Hose With Boy Shorts" title="Net Hose With Boy Shorts" /></map></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');
	}

}

