function holidayMessage(sku)
{
	// I need to figure out how long it is going to take to get a product to a
	// customer
	// time to get to the customer is going to be set to 4 days initially

	var shippingTime = sku.shipping_time;

	var isAltrecShipper = sku.sku_alt_warehouse;

	var warningLocation = document.getElementById('popshipMessage');
	if (!warningLocation)
	{
		// alert("this code thinks there is no ");
		return;
	}

	warningLocation.innerHTML = "";

	// alert('this function has been called');

	// todays date
	var todayDate = new Date();

	// alert("today is: " + todayDate.toString())

	// groundShipDate
	var groundShipDate = new Date();
	groundShipDate.setUTCFullYear(todayDate.getUTCFullYear() - 0);
	groundShipDate.setUTCMonth(todayDate.getUTCMonth() - 0);
	groundShipDate.setUTCDate((todayDate.getUTCDate() - 0) + (shippingTime - 0)
	        + 4);

	// threeDayShipDate
	var threeDayShipDate = new Date();
	threeDayShipDate.setUTCFullYear(todayDate.getUTCFullYear() - 0);
	threeDayShipDate.setUTCMonth(todayDate.getUTCMonth());
	threeDayShipDate.setUTCDate((todayDate.getUTCDate() - 0)
	        + (shippingTime - 0) + 3);

	// twoDayShipDate
	var twoDayShipDate = new Date();
	twoDayShipDate.setUTCFullYear(todayDate.getUTCFullYear() - 0);
	twoDayShipDate.setUTCMonth(todayDate.getUTCMonth() - 0);
	twoDayShipDate.setUTCDate((todayDate.getUTCDate() - 0) + (shippingTime - 0)
	        + 2);

	// overnightShipDate
	var overnightShipDate = new Date();
	overnightShipDate.setUTCFullYear(todayDate.getUTCFullYear() - 0);
	overnightShipDate.setUTCMonth(todayDate.getUTCMonth() - 0);
	overnightShipDate.setUTCDate((todayDate.getUTCDate() - 0)
	        + (shippingTime - 0) + 1);

	// holiday date
	var holidayDate = new Date();

	// set the holiday for December 25th, 2008
	holidayDate.setUTCFullYear(todayDate.getUTCFullYear());
	holidayDate.setUTCMonth(11);
	holidayDate.setUTCDate(24);

	// discern which shipping method will get the product there by christmas
	if (groundShipDate < holidayDate)
	{
		// alert("ground ship");
		if (isAltrecShipper == "true")
		{
			// put up guaranteed by christmas message
			var newImage = document.createElement("img");
			newImage
			        .setAttribute("src",
			                "http://mirror.altrec.com/images/shop/detail/popship.guaranteed.png");
			warningLocation.appendChild(newImage);
		}
	}
	else if (threeDayShipDate < holidayDate)
	{
		// alert("3d ship");
		if (isAltrecShipper == "true")
		{
			// this product needs three day shipping to arrive on time
			// alert('3 day shipping');
			var newImage = document.createElement("img");
			var newImageLink = document.createElement("a");
			newImageLink.setAttribute("href", "/shop/giftcertificate/");
			newImageLink.appendChild(newImage);
			newImage
			        .setAttribute("src",
			                "http://mirror.altrec.com/images/shop/detail/popship.2day.altrec.png");
			warningLocation.appendChild(newImageLink);
		}
		else
		{
			// this product needs three day shipping to arrive on time
			// alert('3 day shipping');
			var newImage = document.createElement("img");
			var newImageLink = document.createElement("a");
			newImageLink.setAttribute("href", "/shop/giftcertificate/");
			newImageLink.appendChild(newImage);
			newImage
			        .setAttribute("src",
			                "http://mirror.altrec.com/images/shop/detail/popship.2day.png");
			warningLocation.appendChild(newImageLink);
		}
	}
	else if (twoDayShipDate < holidayDate)
	{
		// alert("2d ship");
		if (isAltrecShipper == "true")
		{
			// this product needs three day shipping to arrive on time
			// alert('3 day shipping');
			var newImage = document.createElement("img");
			var newImageLink = document.createElement("a");
			newImageLink.setAttribute("href", "/shop/giftcertificate/");
			newImageLink.appendChild(newImage);
			newImage
			        .setAttribute("src",
			                "http://mirror.altrec.com/images/shop/detail/popship.2day.altrec.png");
			warningLocation.appendChild(newImageLink);
		}
		else
		{
			// this product needs two day shipping to arrive on time
			var newImage = document.createElement("img");
			var newImageLink = document.createElement("a");
			newImageLink.setAttribute("href", "/shop/giftcertificate/");
			newImageLink.appendChild(newImage);
			newImage
			        .setAttribute("src",
			                "http://mirror.altrec.com/images/shop/detail/popship.2day.png");
			warningLocation.appendChild(newImageLink);
		}
	}
	else if (overnightShipDate < holidayDate)
	{
		// alert("ovrngt ship");
		if (isAltrecShipper == "true")
		{
			// this product needs three day shipping to arrive on time
			// alert('3 day shipping');
			var newImage = document.createElement("img");
			var newImageLink = document.createElement("a");
			newImageLink.setAttribute("href", "/shop/giftcertificate/");
			newImageLink.appendChild(newImage);
			newImage
			        .setAttribute("src",
			                "http://mirror.altrec.com/images/shop/detail/popship.overnight.altrec.png");
			warningLocation.appendChild(newImageLink);
		}
		else
		{
			// this product needs overnight shipping to arrive on time
			var newImage = document.createElement("img");
			var newImageLink = document.createElement("a");
			newImageLink.setAttribute("href", "/shop/giftcertificate/");
			newImageLink.appendChild(newImage);
			newImage
			        .setAttribute("src",
			                "http://mirror.altrec.com/images/shop/detail/popship.overnight.png");
			warningLocation.appendChild(newImageLink);
		}
	}
	else
	{
		// alert("wont make it");
		var newImage = document.createElement("img");
		var newImageLink = document.createElement("a");
		newImageLink.setAttribute("href", "/shop/giftcertificate/");
		newImageLink.appendChild(newImage);
		newImage
		        .setAttribute("src",
		                "http://mirror.altrec.com/images/shop/detail/popship.toolate.png");
		warningLocation.appendChild(newImageLink);
	}
}

function InitSukSelector()
{
	if (gup('showoos') == 'true')
	{
		for ( var i = 0; i < sku_list.product[0].sku_data_oos.length; i++)
		{
			sku_list.product[0].sku_data
			        .push(sku_list.product[0].sku_data_oos[i]);
		}
	}

	var containerToDraw = 'buyNowBox';
	var addToCart = new AddToCartArea({
        containerToDraw :containerToDraw,
        DrawOutOfStock : function()
        {
            var buyNowBtn = GetElement('buyNowBtn');
            buyNowBtn.style.cursor = 'pointer';
            buyNowBtn.style.backgroundPosition = '0px -90px';
        }
    });
	var SkuSelectorObj = new ProductSelectorMediator( {
	    id :'inStockSkus',
	    containerToDraw :containerToDraw,
	    product :sku_list.product[0],
	    addToCartArea :addToCart,
	    AddToCart : function(sku)
	    {
			GetElement('buyNowBtnA').setAttribute('href',"http://www.altrec.com" + mp_id + "/shop/cart/?SKU=" + sku.sid + "&quantity=1&action=Add")
	    }
		,DrawOOSMessage : function(message, sku)
        {
            var oosMsg = GetElement(this.defaults.OOSMessageElementId);
            if (oosMsg)
            {
                oosMsg.innerHTML = message.replace("<br />Please click below to be notified<br /> when in stock", "");
                oosMsg.style.display = 'block';
            }
        }
	    ,OnOutOfStock : function(sku)
	    {
			//alert('oos');
			//GetElement('buyNowBtn').style.cursor = 'pointer';
			//GetElement('buyNowBtn').style.backgroundPosition = '0px -90px';
	    }
	    
	});

	SkuSelectorObj
	        .init( function initItemItr(id, skuItem, product, skuMetaData)
	        {
		        if (product.default_sku && product.default_sku == skuItem.sid)
			        InstanceContainer.GetInstance(id).defaultSkuItem = skuItem;

		        if (skuItem.color_id == '8')
			        skuItem.color = '';

		        if (skuItem.sku_price < skuItem.sku_retail)
		        {

			        if (ProtoLite.Array.IndexOf(skuMetaData.salePrices,
			                skuItem.sku_price) == -1)
			        {
				        skuMetaData.salePrices.push(skuItem.sku_price);
			        }

			        if (skuItem.sk_discontinued_flag
			                && skuItem.sk_discontinued_flag == '1')
			        {
				        skuMetaData.discountinuedTotal += 1;
			        }
			        skuItem.saleGroup = 'yes';

			        if (skuItem.sku_retail > skuMetaData.regularPriceToDisplay)
				        skuMetaData.regularPriceToDisplay = skuItem.sku_retail;
		        }
		        else
		        {
			        if (ProtoLite.Array.IndexOf(skuMetaData.regularPrices,
			                skuItem.sku_price) == -1)
			        {
				        skuMetaData.regularPrices.push(skuItem.sku_price);
			        }
			        skuItem.saleGroup = 'no';

			        if (skuItem.sku_retail < skuMetaData.lowestRegularPrice)
				        skuMetaData.lowestRegularPrice = skuItem.sku_retail;
		        }

		        skuItem.sk_options = skuItem.sk_options.trim();
		        skuItem.size = skuItem.size.trim();
		        if (skuItem.sk_options && skuItem.sk_options != "")
		        {
			        skuMetaData.hasOptions = true;
		        }

		        if (skuItem.sku_vendor_id && skuItem.sku_vendor_id != '')
		        {
			        skuMetaData.hasVendor = true;
		        }
		        if (skuItem.cs_onhand_qty && skuItem.cs_onhand_qty != '')
		        {
			        skuMetaData.hasOnHand = true;
		        }

	        });

	var pricesSubselctor = [
		{}
	];

	var skuMetaData = SkuSelectorObj.MetaData;
	if (skuMetaData.salePrices.length > 0
	        || skuMetaData.regularPrices.length > 0)
	{
		pricesSubselctor = [];
		skuMetaData.salePrices.sort(basicDescSort);
		skuMetaData.regularPrices.sort(basicDescSort);
		if (skuMetaData.salePrices.length == 0
		        && skuMetaData.regularPrices.length > 0)
		{
			skuMetaData.regularPriceToDisplay = skuMetaData.regularPrices[0];
		}

		var saleHtml =
		        "<span class='saleFont'>"
		                + formatPriceArr(skuMetaData.salePrices)
		                + "</span><span class='saleFont'> On Sale</span>";
		var regularHtml =
		        '<b>' + formatPriceArr(skuMetaData.regularPrices)
		                + ' Reg. Price'
		                + ((skuMetaData.regularPrices.length == 1) ? '' : 's')
		                + '</b>';

		if (skuMetaData.regularPrices.length == 1
		        && skuMetaData.salePrices.length == 0)
		{
			regularHtml = null;
		}
		if (skuMetaData.salePrices.length == 1
		        && skuMetaData.regularPrices.length == 0)
		{
			saleHtml = null;
		}

		pricesSubselctor.push( {
		    property :'saleGroup',
		    value :'no',
		    displayText :regularHtml
		});
		pricesSubselctor.push( {
		    property :'saleGroup',
		    value :'yes',
		    displayText :saleHtml
		});
	}

	if (skuMetaData.hasVendor)
		SkuSelectorObj.functionAddSelector('sku_vendor_id', 'Shipper', {
			hideSelector :false
		});
	if (skuMetaData.hasOnHand)
		SkuSelectorObj.functionAddSelector('cs_onhand_qty', 'Stock On Hand', {
			hideSelector :false
		});

	var colorSelector = SkuSelectorObj.functionAddSelector('color', 'Color', {
	    itemClass :'selectItemImage',
	    selectedItemClass :'selectedItemImage',
	    innerHTMLProp :'imgHtml',
	    equalWidth :false,
	    secondaryValue :'color_id',
	    subSelectors :pricesSubselctor
	});

	var sizeOptionArg =
	        {
	            secondaryValue :'size_id',
	            onAppendElementToItems : function(element)
	            {
		            if (sizingChartFlag)
		            {
			            var imageChart = document.createElement('div');
			            imageChart.style.styleFloat = 'left';
			            imageChart.style.cssFloat = 'left';
			            imageChart.style.marginLeft = '8px';
			            imageChart.style.marginTop = '3px';

			            imageChart.innerHTML =
			                    "<a onclick=\"showOne('tab3');\" href=\"#middleTabs\"><img src='http://mirror.altrec.com/images/shop/detail/icon.sizing2.gif' /></a>";
			            element.appendChild(imageChart);
		            }
	            }
	        };

	if (colorSelector.selectorContainer.style.display == 'none')
	{
		sizeOptionArg.subSelectors = pricesSubselctor;
	}

	var sizeSelector =
	        SkuSelectorObj.functionAddSelector('size', 'Size', sizeOptionArg);

	if (skuMetaData.hasOptions)
	{
		var optionsArg = {
		    removeSingle :false,
		    titleFormater : function(optionText)
		    {
			    return "Select an Option: ";
		    }
		};

		if (colorSelector.selectorContainer.style.display == 'none'
		        && sizeSelector.selectorContainer.style.display == 'none')
		{
			optionsArg.subSelectors = pricesSubselctor;
		}

		SkuSelectorObj.functionAddSelector('sk_options', 'Option', optionsArg);
	}

	addToCart.Render();

	return SkuSelectorObj;

}

