
<!--

// In this section we set up the content to be placed dynamically on the page.

// Customize movie tags and non-flash content below.

// 

<!-- BEGIN FREESTYLE CONTENT -->	
//alert(thisCategory);
if (thisCategory.indexOf("Scentstories") != -1 || thisCategory.indexOf("Scentstory") != -1){
	// SCENTSTORIES
	if (hasRightVersion()){
		document.write('<div id="flashcontent" style="position:relative; width:591px; height:860px; z-index:100; left: 0px; top: 0px; visibility: visible;"></div>');
		var so = new SWFObject("/yc/images/retail/flash/scentstories.swf", "scentstoriesSwf", "591", "860", "8", "#ffffff");
		so.addParam("swliveconnect", "true");
		so.addParam("allowScriptAccess", "always");
		so.addParam("quality", "high");
		//so.addVariable("DiskData", escape(scentstoriesDisks));
		//so.addVariable("XSellData", escape(scentstoriesXSell));
		so.write("flashcontent");
	} else {
		window.location="http://www.yankeecandle.com/cgi-bin/ycbvp/listing.jsp?category=%2fRetail%2fNew+Scentstories";
	}
	
} else if (thisCategory == "Large Jars &#38; Tumblers"){
	// Large Jars & Tumblers
	if (hasRightVersion()){
		document.write('<div id="flashcontent" style="position:relative; width:591px; height:500px; z-index:100; left: 0px; top: 0px; visibility: visible;"></div>');
		var so = new SWFObject("/yc/images/retail/flash/largeJarsLanding.swf", "largeJarsSwf", "591", "500", "8", "#ffffff");
		so.addParam("swliveconnect", "true");
		so.addParam("allowScriptAccess", "always");
		so.addParam("quality", "high");
		so.write("flashcontent");
	} else {
		window.location="http://www.yankeecandle.com/cgi-bin/ycbvp/category.jsp?category=%2fRetail%2fCandles";
	}
	
} else if (thisCategory == "Jar Candles &#38; Tumblers"){
	// Jar Candles & Tumblers
	if (hasRightVersion()){
		document.write('<div id="flashcontent" style="position:relative; width:591px; height:800px; z-index:100; left: 0px; top: 0px; visibility: visible;"></div>');
		var so = new SWFObject("/yc/images/retail/flash/tumblerJarConfig.swf", "tumblerJarConfigSwf", "591", "800", "8", "#ffffff");
		so.addParam("swliveconnect", "true");
		so.addParam("allowScriptAccess", "always");
		so.addParam("quality", "high");
		so.write("flashcontent");
	} else {
		window.location="http://www.yankeecandle.com/cgi-bin/ycbvp/listing.jsp?category=%2fRetail%2fJar+Sale";
	}
	
} else if (thisCategory.indexOf("Tarts") != -1){
	// Tarts & Samps
	if (hasRightVersion()){
		document.write('<div id="flashcontent" style="position:relative; width:591px; height:367px; z-index:100; left: 0px; top: 0px; visibility: visible;"></div>');
		var so = new SWFObject("/yc/images/retail/homepage/flash/12for12/tartsAndSamps.swf", "tartsSampsSwf", "591", "367", "8", "#ffffff");
		so.addParam("allowScriptAccess", "always");
		so.addParam("quality", "high");
		//so.addVariable("giftBoxData", escape(giftBoxData));
		so.write("flashcontent");
	} else {
		window.location="http://www.yankeecandle.com/cgi-bin/ycbvp/listing.jsp?category=%2fRetail%2fTarts+%26%2338%3b+Votives";
	}

} else if (thisCategory.indexOf("Hand Sanitizer") != -1 || thisCategory.indexOf("Lip Balm") != -1){
	// AntiBalm
	if (hasRightVersion()){
		document.write('<div id="flashcontent" style="position:relative; width:591px; height:997px; z-index:100; left: 0px; top: 0px; visibility: visible;"></div>');
		var so = new SWFObject("/yc/images/retail/flash/antiBalm.swf", "antiBalmSwf", "591", "997", "8", "#ffffff");
		so.addParam("allowScriptAccess", "always");
		so.addParam("quality", "high");
		so.write("flashcontent");
	} else {
		window.location="http://www.yankeecandle.com/cgi-bin/ycbvp/listing.jsp?category=%2fRetail%2fWhats+NEW%2fNEW+Hand+Sanitizer";
	}

} else if (thisCategory.indexOf("Good Air") != -1){
	// Good Air
	if (hasRightVersion()){
		document.write('<div id="flashcontent" style="position:relative; width:591px; height:700px; z-index:100; left: 0px; top: 0px; visibility: visible;"></div>');
		var so = new SWFObject("/yc/images/retail/flash/goodAir.swf", "goodAirSwf", "591", "700", "8", "#ffffff");
		so.addParam("allowScriptAccess", "always");
		so.addParam("quality", "high");
		so.write("flashcontent");
	} else {
		window.location="http://www.yankeecandle.com/cgi-bin/ycbvp/listing.jsp?category=%2fRetail%2fWhats+NEW%2fNEW+Good+Air+Odor+Eliminator";
	}

} else if (thisCategory.indexOf("Custom Votives") != -1 || thisCategory.indexOf("Personal") != -1){
	// Custom Votives, Personalized Candles
	document.write('<div id="flashcontent" style="position:relative; width:591px; height:720px; z-index:100; left: 0px; top: 0px; visibility: visible;"><!-- If user has Flash, the content in this div is replaced with the Flash content --><table width="591" height="463" border="0" cellpadding="10" cellspacing="0"><tr><td align="center" valign="top"><br /><br /><br /><br /><span style="font-size: 8pt; font-weight: bold">You need the Adobe<sup><span style="font-size: 5pt;">®</span></sup> Flash<sup><span style="font-size: 5pt;">®</span></sup> Player in order to use the this page.</span><span style="font-size: 8pt; font-weight: bold"><p>Please <a href="http://www.adobe.com/go/getflashplayer" target="_blank">CLICK HERE</a> to download and install. It will only take a moment.</p><p><a href="http://www.adobe.com/go/getflashplayer" target="_blank"><img src="/yc/images/retail/flash/images/get_flash_player.gif" border="0" alt="Get Adobe Flash Player" align="middle"></a></p></span></td></tr></table></div>');
	var so = new SWFObject("/yc/images/retail/flash/knot/knot.swf", "knotSwf", "591", "720", "8", "#ffffff");
	so.addParam("allowScriptAccess", "always");
	so.addParam("quality", "high");
	so.write("flashcontent");

} else if (thisCategory.indexOf("Candle Expressions") != -1){
	// Candle Expressions
		document.write('<div id="flashcontent" style="position:relative; width:591px; height:920px; z-index:100; left: 0px; top: 0px; visibility: visible;"><table width="591" cellspacing="0" cellpadding="0" border="0"><tr><td align="center" colspan="3"><img src="/yc/images/retail/freestyle/custom/topTextAndBg.jpg" border="0"><br><img src="/yc/images/retail/freestyle/custom/dotsTop.gif" border="0"></td><td align="center" valign="top" rowspan="5" bgcolor="#8b8b8b"><img src="/yc/images/retail/freestyle/custom/spacer.gif" width="1" height="1" border="0"></td></tr><tr><td align="center" valign="top" colspan="3"><img src="/yc/images/retail/freestyle/custom/spacer.gif" width="277" height="10" border="0"><br><a href="freestyle.jsp?category=%2fRetail%2fCandle+Expressions%2fPhoto+Labels"><span style="font-family:verdana, arial; font-size:17px; color:#aa9d71; text-decoration:none;">Photo Label Candles</span><span style="position:relative; left:4; top:-1;"><img src="/yc/images/retail/freestyle/custom/arrowCC.gif" border="0"></span></a><br><img src="/yc/images/retail/freestyle/custom/spacer.gif" width="278" height="10" border="0"><br><div style="width:581; height:314; line-height:140%; font-family:verdana, arial; font-size:12px; color:#94785b;">Celebrate your special occasion with a fragrant keepsake from Yankee Candle.<br>You choose a fragrance and send us a photo!<br><img src="/yc/images/retail/freestyle/custom/spacer.gif" width="1" height="10" border="0"><br><a href="freestyle.jsp?category=%2fRetail%2fCandle+Expressions%2fPhoto+Labels"><img src="/yc/images/retail/freestyle/custom/imgPhotoLabelsLrg.jpg" border="0"></a></div></td></tr><tr><td align="center" valign="top" colspan="3"><img src="/yc/images/retail/freestyle/custom/dotsTop.gif" border="0"></td></tr><tr><td align="center" valign="top"><img src="/yc/images/retail/freestyle/custom/spacer.gif" width="276" height="10" border="0"><br><a href="freestyle.jsp?category=%2fRetail%2fCandle+Expressions%2fCustom+Votives"><span style="font-family:verdana, arial; font-size:17px; color:#aa9d71; text-decoration:none;">Custom Votives</span><span style="position:relative; left:4; top:-1;"><img src="/yc/images/retail/freestyle/custom/arrowCC.gif" border="0"></span></a><br><img src="/yc/images/retail/freestyle/custom/spacer.gif" width="276" height="10" border="0"><br><div style="width:246; height:314; line-height:140%; font-family:verdana, arial; font-size:12px; color:#94785b;">Add a personal touch to your big day with our Custom Votives. You choose the fragrance, label, and more!<br><img src="/yc/images/retail/freestyle/custom/spacer.gif" width="1" height="10" border="0"><br><a href="freestyle.jsp?category=%2fRetail%2fCandle+Expressions%2fCustom+Votives"><img src="/yc/images/retail/freestyle/custom/imgCustomCandles.jpg" border="0"></a></div></td><td align="center" valign="top"><img src="/yc/images/retail/freestyle/custom/dotsVerticalSm.gif" width="2" height="338" border="0"></td><td align="center" valign="top"><img src="/yc/images/retail/freestyle/custom/spacer.gif" width="276" height="10" border="0"><br><a href="listing.jsp?category=%2FRetail%2FCandle%20Accessories%2FEveryday%20Essentials%2FWedding%20Essentials"><span style="font-family:verdana, arial; font-size:17px; color:#aa9d71; text-decoration:none;">Setting the Atmosphere</span><span style="position:relative; left:4; top:-1;"><img src="/yc/images/retail/freestyle/custom/arrowCC.gif" border="0"></span></a><br><img src="/yc/images/retail/freestyle/custom/spacer.gif" width="1" height="10" border="0"><br><div style="width:246; height:314; line-height:140%; font-family:verdana, arial; font-size:12px; color:#94785b;">Wedding Day™ scented candles, unscented candles, centerpieces, favors, and gifts.<br><img src="/yc/images/retail/freestyle/custom/spacer.gif" width="1" height="10" border="0"><br><a href="listing.jsp?category=%2FRetail%2FCandle%20Accessories%2FEveryday%20Essentials%2FWedding%20Essentials"><img src="/yc/images/retail/freestyle/custom/imgWedding.jpg" border="0"></a></div></td></tr><tr><td colspan="3"><img src="/yc/images/retail/freestyle/custom/spacer.gif" width="1" height="20" border="0"></td></tr></table></div>');


} else if (thisCategory == "Photo Labels"){
	// Photo Labels
	document.write('<div id="flashcontent" style="position:relative; width:591px; height:1007px; z-index:100; left: 0px; top: 0px; visibility: visible;"><!-- If user has Flash, the content in this div is replaced with the Flash content --><table width="591" height="1007" border="0" cellpadding="0" cellspacing="0"><tr><td align="center" valign="top"><img src="/yc/images/retail/photoLabelsNoFlash.jpg" border="0" usemap="#photoLabels"><map id ="photoLabels" name="photoLabels"><area shape ="rect" coords ="29,952,228,974" href ="mailto:images@yankeecandle.com" alt="images@yankeecandle.com" /></map></td></tr></table></div>');
	var so = new SWFObject("/yc/images/retail/flash/photoLabels.swf", "photoLabelsSwf", "591", "1007", "8", "#ffffff");
	so.addParam("allowScriptAccess", "always");
	so.addParam("quality", "high");
	so.write("flashcontent");
	
} else if (thisCategory.indexOf("Beanswax") != -1){
	// Beanswax
	if (hasRightVersion()){
		document.write('<div id="flashcontent" style="position:relative; width:591px; height:993px; z-index:100; left: 0px; top: 0px; visibility: visible;"></div>');
		var so = new SWFObject("/yc/images/retail/flash/beanswax.swf", "beanswaxSwf", "591", "993", "8", "#ffffff");
		so.addParam("allowScriptAccess", "always");
		so.addParam("quality", "high");
		so.write("flashcontent");
	} else {
		window.location="http://www.yankeecandle.com/cgi-bin/ycbvp/listing.jsp?category=%2fRetail%2fNEW+Collections%2fNew+Beanswax%26%23153%3b";
	}
		
} else if (thisCategory.indexOf("Conceal") != -1){
	// Conceal Candles
	if (hasRightVersion()){
		document.write('<div id="flashcontent" style="position:relative; width:591px; height:715px; z-index:100; left: 0px; top: 0px; visibility: visible;"><a href="listing.jsp?category=%2fRetail%2fNEW+Collections%2fNew+Conceal%26reg%3b"><img src="/yc/images/retail/concealNoFlash.jpg" border="0" alt="Conceal Outdoor Mosquito Candles" align="middle"></a></div>');
		var so = new SWFObject("/yc/images/retail/flash/concealCandles.swf", "concealCandlesSwf", "591", "715", "8", "#ffffff");
		so.addParam("allowScriptAccess", "always");
		so.addParam("quality", "high");
		so.write("flashcontent");
	} else {
		window.location="http://www.yankeecandle.com/cgi-bin/ycbvp/listing.jsp?category=%2fRetail%2fCandles%2fConceal%26reg%3b";
	}

} else if (thisCategory == "Gift Giving"){
	// Gift Giving

	window.location="http://www.yankeecandle.com/cgi-bin/ycbvp/category.jsp?category=%2fRetail%2fGift+Giving";
	/*
	document.write('<div id="flashcontent" style="position:relative; width:591px; height:720px; z-index:100; left: 0px; top: 0px; visibility: visible;"><!-- If user has Flash, the content in this div is replaced with the Flash content --><table width="591" height="720" border="0" cellpadding="0" cellspacing="0"><tr><td align="center" valign="top"><img src="/yc/images/retail/giftGivingNoFlash.jpg" border="0" usemap="#giftGiving"><map id ="giftGiving" name="giftGiving"><area shape ="rect" coords ="7,407,198,579" href ="listing.jsp?category=%2fRetail%2fGift+Giving%2fGifts+Under+%26%2336%3b20" target ="_self" alt="Gifts Under $20" /><area shape ="rect" coords ="393,407,582,579" href ="listing.jsp?category=%2fRetail%2fGift+Giving%2fGifts+Over+%26%2336%3b20" target ="_self" alt="Gifts Over $20" /><area shape ="rect" coords ="201,407,391,579" href ="listing.jsp?category=%2fRetail%2fGift+Giving%2fBest+Sellers" target ="_self" alt="Best Sellers" /><area shape ="rect" coords ="170,634,245,705" href ="giftCard.jsp?category=%2fRetail%2fGift+Giving%2fGift+Cards" target ="_self" alt="Gift Cards" /><area shape ="rect" coords ="278,634,430,705" href ="listing.jsp?category=%2fRetail%2fGift+Giving%2fA+Year+of+Fragrance" target ="_self" alt="Scent By Mail Program" /></map></td></tr></table></div>');

	var so = new SWFObject("/yc/images/retail/flash/giftGiving.swf", "giftGivingSwf", "591", "720", "8", "#ffffff");
	so.addParam("allowScriptAccess", "always");
	so.addParam("quality", "high");
	so.write("flashcontent");
	*/
	
}  else if (thisCategory == "A Year of Fragrance"){
	// SBM
	document.write('<div id="flashcontent" style="position:relative; width:591px; height:360px; z-index:100; left: 0px; top: 0px; visibility: visible;"><!-- If user has Flash, the content in this div is replaced with the Flash content --><table width="591" height="360" border="0" cellpadding="0" cellspacing="0"><tr><td align="center" valign="top"><img src="/yc/images/retail/sbmNoFlash.jpg" border="0"></td></tr></table></div>');
	var so = new SWFObject("/yc/images/retail/flash/sbm.swf", "sbmSwf", "591", "360", "8", "#ffffff");
	so.addParam("allowScriptAccess", "always");
	so.addParam("quality", "high");
	so.write("flashcontent");
	
} else if (thisCategory == "Your Favorite Sale"){
	// Your Favorite Sale
	document.write('<div id="flashcontent" style="position:relative; width:591px; height:899px; z-index:100; left: 0px; top: 0px; visibility: visible;"><!-- If user has Flash, the content in this div is replaced with the Flash content --><table width="591" height="899" border="0" cellpadding="0" cellspacing="0"><tr><td align="center" valign="top"><a href="listing.jsp?category=%2fRetail%2fNEW+Collections%2fNew+Candles"><img src="/yc/images/retail/yourFavorite.jpg" border="0"></a></td></tr></table></div>');
	
} else if (thisCategory == "Support Go Red For Women"){
	// AHA
	document.write('<div id="flashcontent" style="position:relative; width:591px; height:798px; z-index:100; left: 0px; top: 0px; visibility: visible;"><table width="591" height="798" border="0" cellpadding="0" cellspacing="0"><tr><td align="center" valign="top"><img src="/yc/images/retail/ahaLanding09.gif" border="0" alt="Go Red For Women" align="middle" usemap ="#aha1"></td></tr></table><map id ="aha1" name="aha1"><area shape="rect" alt="Go Red for Women Car Jar" coords="418,568,573,696" href="product_detail.jsp?prod=1163561"><area shape="rect" alt="Go Red for Women Car Jar" coords="139,666,574,751" href="product_detail.jsp?prod=1163561"><area shape="rect" alt="Shop Collection" coords="31,612,382,652" href="listing.jsp?category=%2FRetail%2FCandles%2FSupport%20Go%20Red%20For%20Women"><area shape="rect" alt="Shop Collection" coords="31,284,345,323" href="listing.jsp?category=%2FRetail%2FCandles%2FSupport%20Go%20Red%20For%20Women"><area shape ="rect" coords ="353,770,587,797" href ="http://www.goredforwomen.org" target ="_blank" alt="Go Red for Women Website" /></map></div>');

	var so = new SWFObject("/yc/images/retail/flash/aha09.swf", "ahaSwf", "591", "798", "8", "#ffffff");
	so.addParam("allowScriptAccess", "always");
	so.addParam("quality", "high");
	so.write("flashcontent");


} else if (thisCategory == "Filled Votives"){
	// Filled Votives
	document.write('<div id="flashcontent" style="position:relative; width:591px; height:751px; z-index:100; left: 0px; top: 0px; visibility: visible;"><table width="591" height="751" border="0" cellpadding="0" cellspacing="0"><tr><td align="center" valign="top"><img src="/yc/images/retail/filledVotives.jpg" border="0" alt="" align="middle" usemap ="#staticMap"></td></tr></table><map id ="staticMap" name="staticMap"><area shape="rect" alt="3-Pack Votive Sets" coords="298,372,591,751" href="listing.jsp?category=%2fRetail%2fCandles%2fFilled+Votives%2f3+Pack"><area shape="rect" alt="Votive Variety Packs" coords="0,372,294,750" href="listing.jsp?category=%2fRetail%2fCandles%2fFilled+Votives%2fVariety+Pack"></map></div>');

} else if (thisCategory == "Reed Diffusers"){
	// Reed Diffusers
	document.write('<div id="flashcontent" style="position:relative; width:591px; height:1181px; z-index:100; left: 0px; top: 0px; visibility: visible;"><table width="591" height="1181" border="0" cellpadding="0" cellspacing="0"><tr><td align="center" valign="top"><img src="/yc/images/retail/reedsLandingPage.jpg" border="0" alt="" align="middle" usemap ="#staticMap"></td></tr></table><map id ="staticMap" name="staticMap"><area shape="rect" alt="Shop Reeds" coords="417,908,561,1170" href="listing.jsp?category=%2fRetail%2fHome+%26%2338%3b+Car+Fragrance%2fReed+Diffusers%2fReed+Sticks"><area shape="rect" alt="Shop Vases" coords="230,917,362,1168" href="listing.jsp?category=%2fRetail%2fHome+%26%2338%3b+Car+Fragrance%2fReed+Diffusers%2fReed+Vessels"><area shape="rect" alt="Shop Oils" coords="38,897,165,1167" href="listing.jsp?category=%2fRetail%2fHome+%26%2338%3b+Car+Fragrance%2fReed+Diffusers%2fReed+Oil+Refills"><area shape="rect" alt="Shop Reeds" coords="404,296,586,581" href="listing.jsp?category=%2fRetail%2fHome+%26%2338%3b+Car+Fragrance%2fReed+Diffusers%2fReed+Diffusers"></map></div>');

} else if (thisCategory.indexOf("Aromatherapy") != -1){
	// Aromatherapy Spa
	document.write('<div id="flashcontent" style="position:relative; width:591px; height:1049px; z-index:100; left: 0px; top: 0px; visibility: visible;"><table width="591" height="1049" border="0" cellpadding="0" cellspacing="0"><tr><td align="center" valign="top"><img src="/yc/images/retail/aromatherapySpaLandingPage.jpg" border="0" alt="" align="middle" usemap ="#staticMap"></td></tr></table><map id ="staticMap" name="staticMap"><area shape="rect" alt="4-Pack Filled Votive Sets" coords="0,864,589,1049" href="product_detail.jsp?prod=1161799"><area shape="rect" alt="Aromatherapy Spa" coords="0,0,590,190" href="category.jsp?category=%2fRetail%2fCandles%2fAromatherapy%26%23153%3b+Spa"><area shape="rect" alt="True Bliss" coords="398,191,591,863" href="listing.jsp?category=%2fRetail%2fCandles%2fAromatherapy%26%23153%3b+Spa%2fTrue+Bliss"><area shape="rect" alt="Stress Relief" coords="198,191,393,863" href="listing.jsp?category=%2fRetail%2fCandles%2fAromatherapy%26%23153%3b+Spa%2fStress+Relief"><area shape="rect" alt="Relax" coords="0,191,194,864" href="listing.jsp?category=%2fRetail%2fCandles%2fAromatherapy%26%23153%3b+Spa%2fRelax"></map></div>');

}



<!-- END FREESTYLE CONTENT -->

// -->