document.write('\
<div id="quickView">\
	<div id="qvName"></div>\
  <div id="qvBorder">\
  	<div id="qvImage"></div>\
  	<div id="qvProductSize"></div>\
  	<div id="qvGoToItem">\</div>\
		<table border=0 cellpadding=1 cellspacing=0 class="qvInfo">\
		 <tr>\
		  <td colspan=2>\
		   <ul class="tabNavigation">\
		    <li id="qvTab">Info</li>\
  		 </ul>\
		  </td>\
		 </tr>\
	   <tr><td style="font-weight:bold;width:90px;">Price:</td><td><font color="black">$</font><span id="qvPrice">&nbsp;</span></td></tr>\
	   <tr><td style="font-weight:bold;width:90px;" id="LabelSalePrice">&nbsp;</td><td><span id="qvSalePrice">&nbsp;</span></td></tr>\
	   <tr><td style="font-weight:bold;width:90px;">Item #:</td><td><span id="qvCode">&nbsp;</span></td></tr>\
	   <tr><td style="font-weight:bold;width:90px;">Manufacturer:</td><td><span id="qvBrand">&nbsp;</span></td></tr>\
	   <tr><td style="font-weight:bold;width:90px;">Lead Time:</td><td><div id="qvProcessingTime">&nbsp;</div></td></tr>\
	  </table>\
	</div>\
  <div class="qvClose"><a href="javascript:hideMe()"><img src="http://site.stuffedanimalbox.com/images/QV-close-x2.gif" border="0"></a></div>\
</div>\
');

function loadQuickView(itemIdx) {
	
	var localItem = pageSegment[itemIdx];	
	
	$("#quickView").show('fast');
	$("#qvName").html(localItem.name);
	$("#qvImage").html(localItem.listimg);
	$("#qvPrice").html(localItem.price);
	$("#qvCode").html(localItem.code);
	$("#qvBrand").html(localItem.brand);
	var savings;
	
	if(localItem.saleprice > 0){
		$("#LabelSalePrice").html("Sale Price:");
		$("#qvSalePrice").html(localItem.saleprice);
	} else {
		$("#LabelSalePrice").html("");
		$("#qvSalePrice").html("");
	}		
	$("#qvGoToItem").html("<a href='/" + localItem.id + ".html'><img src='http://site.stuffedanimalbox.com/images/Learn-More-1-2.gif' border=0></a>");
	$("#qvItemValue").val(localItem.id);
	$("#qvProcessingTime").html(localItem.processing);
	
	/*
	var sizeImage = "http://site.stuffedanimalbox.com/images/";

	switch(localItem.productSize.toLowerCase()) {
		case 'tiny': 
			sizeImage += 'tiny.gif';
		  break;
		case 'small':
			sizeImage += 'small.gif';
			break;
		case 'large': 
			sizeImage += 'large.gif';
		  break;
		case 'extra large':
			sizeImage += 'exlarge.gif';
		  break;
	  case 'medium': 
			sizeImage += 'medium.gif';
		  break;
		case 'jumbo':
			sizeImage += 'jumbo.gif';
		  break; 
		default:
			break;		
	}
	
	$("#qvProductSize").html('<img src="' + sizeImage + '" border=0>');
	*/
}

function hideMe() {
	//$("#qvOverlay").hide();
	$("#quickView").hide('slow');
}

