var jQueryScriptOutputted = false;

function initJQuery() {
	//if the jQuery object isn't available
	if (typeof(jQuery) == 'undefined') {
		if (! jQueryScriptOutputted) {
			//only output the script once..
			jQueryScriptOutputted = true;
			//output the script (load it from google api)
			document.write('<scr' + 'ipt type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></scr' + 'ipt>'); 
		}
		setTimeout("initJQuery()", 50);
	} else {
		$(function() {
			$('#cr8innerdiv').append('<div><img src="http://ny-image3.etsy.com/il_170x135.75128671.jpg" width="150"  /><br/><strong>Price:</strong>$6.00&nbsp;&nbsp;&nbsp; <a target="_blank" style="color:#990000;" href="http://www.etsy.com/add_to_cart.php?listing_id=26361741">Buy</a><span style="margin-top:5px; font-size:10px;line-height:11px;"><br />Vintage 1969 Simplicity Pattern 8550 Blouse Pant and Skirt...</span> <br /><a target="_blank" style="color:#990000;" href="http://www.etsy.com/view_listing.php?listing_id=26361741&ref=Cr8tivity_widget">[ more info ]</a></div> ');
$('#cr8innerdiv').append('<div><img src="http://ny-image1.etsy.com/il_170x135.76602741.jpg" width="150"  /><br/><strong>Price:</strong>$6.00&nbsp;&nbsp;&nbsp; <a target="_blank" style="color:#990000;" href="http://www.etsy.com/add_to_cart.php?listing_id=26803243">Buy</a><span style="margin-top:5px; font-size:10px;line-height:11px;"><br />Vintage 1960s McCalls Pattern 6724 Slim Dress with Smocking Bust 34...</span> <br /><a target="_blank" style="color:#990000;" href="http://www.etsy.com/view_listing.php?listing_id=26803243&ref=Cr8tivity_widget">[ more info ]</a></div> ');
$('#cr8innerdiv').append('<div><img src="http://ny-image0.etsy.com/il_170x135.76600664.jpg" width="150"  /><br/><strong>Price:</strong>$5.00&nbsp;&nbsp;&nbsp; <a target="_blank" style="color:#990000;" href="http://www.etsy.com/add_to_cart.php?listing_id=26802456">Buy</a><span style="margin-top:5px; font-size:10px;line-height:11px;"><br />Vintage 1960s McCall&#039;s Pattern 5380 Misses Blouse 3 Looks Bust 34...</span> <br /><a target="_blank" style="color:#990000;" href="http://www.etsy.com/view_listing.php?listing_id=26802456&ref=Cr8tivity_widget">[ more info ]</a></div> ');
$('#cr8innerdiv').append('<div><img src="http://ny-image1.etsy.com/il_170x135.97012373.jpg" width="150"  /><br/><strong>Price:</strong>$5.00&nbsp;&nbsp;&nbsp; <a target="_blank" style="color:#990000;" href="http://www.etsy.com/add_to_cart.php?listing_id=32885571">Buy</a><span style="margin-top:5px; font-size:10px;line-height:11px;"><br />Vintage 1960s McCalls Pattern 8395 Bias Raglan Flared Dress with Pockets Bust 34 36...</span> <br /><a target="_blank" style="color:#990000;" href="http://www.etsy.com/view_listing.php?listing_id=32885571&ref=Cr8tivity_widget">[ more info ]</a></div> ');
$('#cr8innerdiv').append('<div><img src="http://ny-image2.etsy.com/il_170x135.123719138.jpg" width="150"  /><br/><strong>Price:</strong>$7.00&nbsp;&nbsp;&nbsp; <a target="_blank" style="color:#990000;" href="http://www.etsy.com/add_to_cart.php?listing_id=40791061">Buy</a><span style="margin-top:5px; font-size:10px;line-height:11px;"><br />Vintage 1970s Vogue Pattern 8302 Evening Summer Dress with Ruffles Bust 32.5...</span> <br /><a target="_blank" style="color:#990000;" href="http://www.etsy.com/view_listing.php?listing_id=40791061&ref=Cr8tivity_widget">[ more info ]</a></div> ');
$('#cr8innerdiv').append('<div><img src="http://ny-image0.etsy.com/il_170x135.95863732.jpg" width="150"  /><br/><strong>Price:</strong>$5.00&nbsp;&nbsp;&nbsp; <a target="_blank" style="color:#990000;" href="http://www.etsy.com/add_to_cart.php?listing_id=32542810">Buy</a><span style="margin-top:5px; font-size:10px;line-height:11px;"><br />Vintage 1970s Annie Too McCalls Pattern 5978 Blouse Vest Skirt 34 Bust...</span> <br /><a target="_blank" style="color:#990000;" href="http://www.etsy.com/view_listing.php?listing_id=32542810&ref=Cr8tivity_widget">[ more info ]</a></div> ');
$('#cr8innerdiv').append('<div><img src="http://ny-image0.etsy.com/il_170x135.123458024.jpg" width="150"  /><br/><strong>Price:</strong>$10.00&nbsp;&nbsp;&nbsp; <a target="_blank" style="color:#990000;" href="http://www.etsy.com/add_to_cart.php?listing_id=40713937">Buy</a><span style="margin-top:5px; font-size:10px;line-height:11px;"><br />Vintage 1960s McCalls Pattern 6006 Swing Coat Elbow Length Sleeves Bust 38...</span> <br /><a target="_blank" style="color:#990000;" href="http://www.etsy.com/view_listing.php?listing_id=40713937&ref=Cr8tivity_widget">[ more info ]</a></div> ');
$('#cr8innerdiv').append('<div><img src="http://ny-image3.etsy.com/il_170x135.122600791.jpg" width="150"  /><br/><strong>Price:</strong>$7.00&nbsp;&nbsp;&nbsp; <a target="_blank" style="color:#990000;" href="http://www.etsy.com/add_to_cart.php?listing_id=40463899">Buy</a><span style="margin-top:5px; font-size:10px;line-height:11px;"><br />Vintage 1960s Vogue Pattern 7741 Short Sleeve or Sleeveless Dress UNUSED Bust 38...</span> <br /><a target="_blank" style="color:#990000;" href="http://www.etsy.com/view_listing.php?listing_id=40463899&ref=Cr8tivity_widget">[ more info ]</a></div> ');
$('#cr8innerdiv').append('<div><img src="http://ny-image0.etsy.com/il_170x135.94717312.jpg" width="150"  /><br/><strong>Price:</strong>$6.00&nbsp;&nbsp;&nbsp; <a target="_blank" style="color:#990000;" href="http://www.etsy.com/add_to_cart.php?listing_id=32201261">Buy</a><span style="margin-top:5px; font-size:10px;line-height:11px;"><br />Vintage 1950&#039;s Vogue Pattern 6581 Smock Bed Jacket 3 Lengths with Pockets 34-36...</span> <br /><a target="_blank" style="color:#990000;" href="http://www.etsy.com/view_listing.php?listing_id=32201261&ref=Cr8tivity_widget">[ more info ]</a></div> ');
$('#cr8innerdiv').append('<div><img src="http://ny-image0.etsy.com/il_170x135.121190456.jpg" width="150"  /><br/><strong>Price:</strong>$8.00&nbsp;&nbsp;&nbsp; <a target="_blank" style="color:#990000;" href="http://www.etsy.com/add_to_cart.php?listing_id=40048135">Buy</a><span style="margin-top:5px; font-size:10px;line-height:11px;"><br />Vintage Mid 60s Simplicity Pattern 5920 A Line Sheath Dress with Bow Bust 32...</span> <br /><a target="_blank" style="color:#990000;" href="http://www.etsy.com/view_listing.php?listing_id=40048135&ref=Cr8tivity_widget">[ more info ]</a></div> ');
$('#cr8innerdiv').append('<div><img src="http://ny-image3.etsy.com/il_170x135.121193711.jpg" width="150"  /><br/><strong>Price:</strong>$7.00&nbsp;&nbsp;&nbsp; <a target="_blank" style="color:#990000;" href="http://www.etsy.com/add_to_cart.php?listing_id=40049035">Buy</a><span style="margin-top:5px; font-size:10px;line-height:11px;"><br />Vintage 1970s McCalls Pattern 3192 High Waisted Jumpsuit Bust 36...</span> <br /><a target="_blank" style="color:#990000;" href="http://www.etsy.com/view_listing.php?listing_id=40049035&ref=Cr8tivity_widget">[ more info ]</a></div> ');
$('#cr8innerdiv').append('<div><img src="http://ny-image1.etsy.com/il_170x135.117022589.jpg" width="150"  /><br/><strong>Price:</strong>$9.00&nbsp;&nbsp;&nbsp; <a target="_blank" style="color:#990000;" href="http://www.etsy.com/add_to_cart.php?listing_id=38824577">Buy</a><span style="margin-top:5px; font-size:10px;line-height:11px;"><br />Vintage Pattern 1940s Marian Martin Mail Order 9142 Jumper Dress and Blouse Bust 34...</span> <br /><a target="_blank" style="color:#990000;" href="http://www.etsy.com/view_listing.php?listing_id=38824577&ref=Cr8tivity_widget">[ more info ]</a></div> ');
$('#cr8innerdiv').append('<div><img src="http://ny-image0.etsy.com/il_170x135.117008216.jpg" width="150"  /><br/><strong>Price:</strong>$9.00&nbsp;&nbsp;&nbsp; <a target="_blank" style="color:#990000;" href="http://www.etsy.com/add_to_cart.php?listing_id=38820316">Buy</a><span style="margin-top:5px; font-size:10px;line-height:11px;"><br />Vintage Pattern 1950s Butterick 9038 Slimliner Shirtwaist Dress Bust 35...</span> <br /><a target="_blank" style="color:#990000;" href="http://www.etsy.com/view_listing.php?listing_id=38820316&ref=Cr8tivity_widget">[ more info ]</a></div> ');
$('#cr8innerdiv').append('<div><img src="http://ny-image1.etsy.com/il_170x135.117017913.jpg" width="150"  /><br/><strong>Price:</strong>$9.00&nbsp;&nbsp;&nbsp; <a target="_blank" style="color:#990000;" href="http://www.etsy.com/add_to_cart.php?listing_id=38823271">Buy</a><span style="margin-top:5px; font-size:10px;line-height:11px;"><br />Vintage Pattern1960s Butterick 5180 One Piece Dress and Coat Bust 38...</span> <br /><a target="_blank" style="color:#990000;" href="http://www.etsy.com/view_listing.php?listing_id=38823271&ref=Cr8tivity_widget">[ more info ]</a></div> ');
$('#cr8innerdiv').append('<div><img src="http://ny-image1.etsy.com/il_170x135.115030565.jpg" width="150"  /><br/><strong>Price:</strong>$12.00&nbsp;&nbsp;&nbsp; <a target="_blank" style="color:#990000;" href="http://www.etsy.com/add_to_cart.php?listing_id=38237954">Buy</a><span style="margin-top:5px; font-size:10px;line-height:11px;"><br />Vintage Pattern 1940s Companion Butterick 2026 Drop Waist Afternoon Party Dress Bust 36...</span> <br /><a target="_blank" style="color:#990000;" href="http://www.etsy.com/view_listing.php?listing_id=38237954&ref=Cr8tivity_widget">[ more info ]</a></div> ');
$('#cr8innerdiv').append('<div><img src="http://ny-image0.etsy.com/il_170x135.114478208.jpg" width="150"  /><br/><strong>Price:</strong>$9.00&nbsp;&nbsp;&nbsp; <a target="_blank" style="color:#990000;" href="http://www.etsy.com/add_to_cart.php?listing_id=38073845">Buy</a><span style="margin-top:5px; font-size:10px;line-height:11px;"><br />Vintage Pattern 1930s Hollywood 1702 Marie Wilson One Piece Frock Dress Bust 32...</span> <br /><a target="_blank" style="color:#990000;" href="http://www.etsy.com/view_listing.php?listing_id=38073845&ref=Cr8tivity_widget">[ more info ]</a></div> ');
			$.getScript("http://Cr8tivity.com/js/jQueryCycle.js",function(){
					$('#cr8innerdiv').cycle({
						fx:     'scrollHorz',
						timeout: 6000,
						delay:  -2000,
						next:   '#cr8next', 
						prev:   '#cr8prev',
						pause:  1,
						before: onBefore
					});
				});
			
			//$('#cr8outerdiv').show('slow');
		});
	}
}
initJQuery();
function onBefore(curr, next, opts) { 
			$('#cr8outerdiv').fadeIn('slow');
}
function start_slideshow(){
	$('#cr8innerdiv').cycle({
				fx:     'scrollRight',
				timeout: 6000,
				delay:  -2000,
				pause: 1
		});
}		