// Build right column

	// Setup output var
	var UU_Output = "";
		
	// Start the div
	UU_Output += '<div class="Container-Right">';
	
		// Show blocks
		//DrawMyAccountBlock();
		//DrawMyCartBlock();
		//DrawPromotionBlock();
		//DrawMailingListBlock();
		//DrawSecuritySealBlock();
	
	// End the div
	UU_Output += '</div>';
	
	// Output HTML
	document.write(UU_Output);

function DrawMyAccountBlock(){
	
	// Show the block title
	UU_Output += '<div class="Block-Title">';
	UU_Output += '<img src="assets/images/bullsheaven/Heading_MyAccount.gif" alt="My Account" width="160" height="23" />';
	UU_Output += '</div>';
	
	// Start the block body
	UU_Output += '<div class="Block-Body">';

	// If we're logged in...
	if (user_firstname != ""){
				
		// Show shopper links
		UU_Output += '<a href="shopper_update.asp" onclick="return(visitargs(\'shopper_update.asp\', \'\', \'URL\'));">My Account</a><br />';
		UU_Output += '<a href="receipts.asp" onclick="return(visitargs(\'receipts.asp\', \'\', \'URL\'));">My Orders</a><br />';
		UU_Output += '<a href="logout.asp" onclick="return(visitargs(\'logout.asp\', \'\', \'URL\'));">Logout</a>';
				
	} else {
		
		// Show shopper links
		UU_Output += '<a href="shopper_lookup.asp" onclick="return(visitargs(\'shopper_lookup.asp\', \'\', \'URL\'));">Log in</a><br />';
		UU_Output += '<a href="shopper_new.asp" onclick="return(visitargs(\'shopper_new.asp\', \'\', \'URL\'));">Create an account</a>';
		
	} // end if
	
	// End the block
	UU_Output += '</div>';		
	
}

function DrawMyCartBlock(){
	
	// Options
	FollowMeCartEnabled = false;
	
	// Show the block title
	UU_Output += '<div class="Block-Title">';
	UU_Output += '<img src="assets/images/bullsheaven/Heading_MyCart.gif" alt="My Account" width="160" height="23" />';
	UU_Output += '</div>';
	
	// Start the block body
	UU_Output += '<div class="Block-Body">';

	// If there are items in the basket...
	if( shopping_basket.items.length > 0 ){

		// If follow-me basket is enabled...
		if( FollowMeCartEnabled ){		
		
			// Show items
			for (atn=0; atn < shopping_basket.items.length; atn++){
				UU_Output += '<img src="assets/product_images/' + shopping_basket.items[atn].image + '">';
				UU_Output += "<br><a href=\"product.asp?s_id=" + i_jscript_uu_sid + "&dept_id=" + shopping_basket.items[atn].dept_id + "&pf_id=" + shopping_basket.items[atn].pf_id + "\" onClick=\"return(visitargs('product.asp','dept_id=" + shopping_basket.items[atn].dept_id + "&pf_id=" + shopping_basket.items[atn].pf_id + "',''))\">";
				UU_Output += shopping_basket.items[atn].name + "</a>";
				UU_Output += "<br/><span class=\"FollowMeBasket-Price\">" + shopping_basket.items[atn].quantity + " @ $"+ OKStrOfPenny(shopping_basket.items[atn].item_price) + " ($" + OKStrOfPenny(shopping_basket.items[atn].item_total) + ")</span>";
				UU_Output += "<br/>";
				UU_Output += "<br/>";
			} // end for
		
		} // end if

		// Show basket links
		UU_Output += shopping_basket.no_items + ' item(s) in <a href=\"basket.asp\" onclick=\"return(visitargs(\'basket.asp\',\'\',\'SURL\'));\">my cart</a><br />';
		UU_Output += '$' + OKStrOfPenny(shopping_basket.sub_total) + ' subtotal<br />';
		
		// Show checkout button
		UU_Output += '<a href="shipping.asp" onclick="return(visitargs(\'shopper_lookup.asp\',\'target=shipping.asp\',\'SURL\'));\"><img src="assets/images/bullsheaven/Button_Checkout.gif" border="0"></a>';
		
	} else {
		
		// Show no items message
		UU_Output += "<a href=\"basket.asp\" onclick=\"return(visitargs('basket.asp','','SURL'));\">My cart</a> is empty.";
		
	} // end if

	// End the block
	UU_Output += '</div>';
}

function DrawSecuritySealBlock(){

	// Show security seal
	UU_Output += '<div class="Block-Body">';
	UU_Output += '<script src="https://siteseal.thawte.com/cgi/server/thawte_seal_generator.exe"></script>';
	UU_Output += '</div>';

}

function DrawPromotionBlock(){
	
	// Setup array
	UU_PromotionsImage = new Array();
	UU_PromotionsImageLinks = new Array();
	
	// Configure promotions
	// TIP: To add another promotion, make another copy of the next two lines and increment the numbers in []
	UU_PromotionsImage[0] = 'assets/images/bullsheaven/Promotion1.gif';
	UU_PromotionsImageLinks[0] = 'javascript:;';

	UU_PromotionsImage[1] = 'assets/images/bullsheaven/Promotion2.gif';
	UU_PromotionsImageLinks[1] = 'javascript:;';

	// For each promotion...
	for(i=1; i<=UU_PromotionsImage.length; i++){

		// Start div
		UU_Output += '<div class="Block-Body">';
		
		// Show promotion
		UU_Output += '<a href="' + UU_PromotionsImageLinks[0] + '">';
		UU_Output += '<img src="' + UU_PromotionsImage[0] + '">';
		UU_Output += '</a>';
		
		// End div
		UU_Output += '</div>';
		
	} // end for

}

function DrawMailingListBlock(){
	
	// Options
	var sid = 2;
	var target = 'text_4.asp';

	// Show the block title
	UU_Output += '<div class="Block-Title">';
	UU_Output += '<img src="assets/images/bullsheaven/Heading_MailingList.gif" alt="Mailing List" width="160" height="23" />';
	UU_Output += '</div>';
	
	// Show one click email opt-in form
	UU_Output += '<div class="Block-Body">';
	UU_Output += '<!-- BeginFeature OneClickEmailOptIn -->';
	UU_Output += 'Join our mailing list for specials and discounts!';
		
	// If we're not logged in... (?)
	if (user_email == "") {
		UU_Output += '<form name="surveynew" method="post" action="shopper_new.asp">';
		UU_Output += '<input type="hidden" name="shopper_country" value="USA">';
		UU_Output += '<input type="hidden" name="Validate" value="1">';
	} else {
		var AUTO_email = user_email.substring(0,user_email.lastIndexOf("_"));
		if (AUTO_email=="AUTO"){
			UU_Output += '<form name="surveynew" method="post" action="shopper_new.asp">';
			UU_Output += '<input type="hidden" name="shopper_country" value="USA">';
			UU_Output += '<input type="hidden" name="Validate" value="1">';
		}else{
			UU_Output += '<form name="surveynew" method="post" action="shopper_unsubscribe.asp">';
		}
	}
	UU_Output += '<input type="hidden" name="target" value="' + target + '">';
	UU_Output += '<input type="hidden" name="s_id" value="' + sid + '">';
	UU_Output += '<input type="hidden" name="shopper_pref_1" value="YES">';
	UU_Output += '<input type="hidden" name="shopper_pref_4" value="Bulls Heaven">';
	
	/* drawinput in uu_shop.js if need to modify 
	* vars in order are:  type,name,value,size (or width) ,target,iclass (set class from style sheet * here),selected) here created style class emlForm MUST BE IN QUOTES */
	UU_Output += '<div style="float: left;">';
	UU_Output += '<input type="text" size="16" name="shopper_email" value="Enter email" class="form-input" onFocus="if (focname == 0) { this.value=\'\'; focname=1; }" onBlur="if (!this.value) { this.value=\'Enter email\'; focname=0; }">';
	UU_Output += '</div>';
	UU_Output += '<div style="float: left;">';
	UU_Output += '<input type="image" src="assets/images/btngo.gif" name="email">';
	UU_Output += '</div>';
	UU_Output += '</form>';

	// Add a break div so the parent div surrounds all the content
	UU_Output += '<div class="Clear"></div>';
	
	UU_Output += '<!-- EndFeature OneClickEmailOptIn -->';

	UU_Output += '</div>';

}