/** Email Signup Stuff **/
focname = 0;focname2 = 0;
function email_signup(){
	var emailStuff = "";

	if (user_email == "") {
		emailStuff += "<form name=\"surveynew\" method=\"POST\" action=\"shopper_new.asp\">";
		emailStuff += "<input type=\"hidden\" name=shopper_country value=\"USA\">";
		emailStuff += "<input type=\"hidden\" name=\"Validate\" value=\"1\">";
	} else {
		var AUTO_email = user_email.substring(0,user_email.lastIndexOf("_"));
		if (AUTO_email=="AUTO"){
			emailStuff += "<form name=\"surveynew\" method=\"POST\" action=\"shopper_new.asp\">";
			emailStuff += "<input type=\"hidden\" name=shopper_country value=\"USA\">";
			emailStuff += "<input type=\"hidden\" name=\"Validate\" value=\"1\">";
		}else{
			emailStuff += "<form name=\"surveynew\" method=\"POST\" action=\"shopper_unsubscribe.asp\">";
		}
	}
	emailStuff += "<input type=\"hidden\" name=target value=\"text_4.asp\">";
	emailStuff += "<input type=\"hidden\" name=s_id value=\"0\">";
	emailStuff += "<input type=\"hidden\" name=\"shopper_pref_1\" value=\"YES\">";
	emailStuff += "<input type=\"text\" id=\"shopper_email\" name=\"shopper_email\" size=\"14\" value=\"Email address\" target=\"1\" onblur=\"if (!this.value) { this.value=''; focname=0; }\" onfocus=\"if (focname == 0) { this.value=''; focname=1; }\"/>";
	emailStuff += "<br/><br/><input type=image src=\"assets/images/btnjoin.jpg\" alt=\"join\" NAME=email > ";
	emailStuff += "</form>";
	return emailStuff;
}

/* JAT 10/25/07 - this displays all the right column stuff. In the manager the right column width should be 160 and center aligned */
function displayRightCol(){
	var rightcol = "";
	rightcol += '<div id="rightCol">';
	rightcol += '	<!-- follow me basket -->';
	rightcol += '	<div class="grayBody">';
	rightcol += '		<br/>';
	rightcol += '		<div class="grayInfo">';
	rightcol += '			<a class="headerCart" onclick="return(visitargs(\'basket.asp\',\'\',\'URL\'));" href="basket.asp"><img src="assets/images/btncheckout.gif" border="0" alt="checkout"/></a><br/>';
	
							/* JAT 10/25/07 - begin follow me cart code here */
							// display any items in basket (follow-me basket)
							for (var atn=0;atn< shopping_basket.items.length ;atn++){
								// display product image
								//rightcol += "<a href=\"#\" onClick=\"return(visitargs('product.asp','dept_id=" +shopping_basket.items[atn].dept_id+ "&pf_id=" + shopping_basket.items[atn].pf_id+ "',''))\"><img border=0 src='assets/product_images/" +shopping_basket.items[atn].image+ "' class=\"followmeThumbImg\"></a><br/>";
								// display 'view product' link
								//rightcol += "<br/><a href=\"#\" onClick=\"return(visitargs('product.asp','dept_id=" +shopping_basket.items[atn].dept_id+ "&pf_id=" + shopping_basket.items[atn].pf_id+ "',''))\" class='followBasketLink'>" + shopping_basket.items[atn].name + "</a><br/>";
							}
							
							// display total num of items in basket
							var numItems = 0;
							for(var i =0; i<shopping_basket.items.length;i++){
								numItems += Number(shopping_basket.items[i].quantity);
							}
							rightcol += numItems + "  Item(s)";	// display total num
							
							// display total price
							rightcol += '<br/>$' + OKStrOfPenny(shopping_basket.sub_total) + '<br/>';
							
							// display shopping bag icon
							rightcol += '<br/><a class="headerCart" onclick="return(visitargs(\'basket.asp\',\'\',\'URL\'));" href="basket.asp"><br/>View Cart</a>';
							
							
							/* end follow me cart code */

	rightcol += '			<br/><br/><img src="assets/images/rightcol_basket_logo.gif" alt="houston rockets logo"/>';
	rightcol += '		</div>';
	rightcol += '		<div class="grayFooter"></div>';
	rightcol += '	</div>';
	rightcol += '	<br/>';
	
	// gift card stuff
	rightcol += '	<!-- rockets gift card stuff -->';
	rightcol += '	<div class="whiteBody">';
	rightcol += '		<img src="assets/images/rightcol_header_bg.gif"/><br/>';
	rightcol += '		<div class="whiteInfo">';
	rightcol += '		<a onclick="return(visitargs(\'dept.asp\',\'dept_id=3039\',\'URL\'));" href="dept.asp?dept_id=3039">';
	rightcol += '			<img src="assets/images/giftcards.jpg" alt="rockets gift cards"/></a><br/>';
	rightcol +=	'			<div style="padding: 0px 10px; text-align: left;">Shopping for your Houston Rockets fan is easy with RocketsShop Gift Cards. These gift cards (available for $25 or $50) can be used to purchase Rockets merchandise in the Rockets Team Shop, at Arena merchandise souvenir stands and on rocketsshop.com.  Click <a href="dept.asp?dept%5Fid=3039" class="whiteBodyLink">here </a>to purchase</div>';
	rightcol += '		</div>';
	rightcol += '		<div class="whiteFooter"></div>';
	rightcol += '	</div>';
	rightcol += '</div><br/><br/>';
	
	// mailing list stuff
	rightcol += '	<!-- mailing list stuff -->';
	rightcol += '	<div class="grayBody">';
	rightcol += '		<img src="assets/images/rightcol_gray_header_bg.gif"/><br/>';
	rightcol += '		<div class="grayInfo">';
	rightcol += '			<!-- FEATURE BEGIN: 832 - Email List Builders - One-Click Email Opt-in, status:standard, created:10.SEPT.2007 -->';
	rightcol += '				<span class="EmailSignupText">Join our mailing list<br/>for weekly specials<br/>and discounts!</span><br/><br/>';
	rightcol += 				email_signup();
	rightcol += '			<!-- FEATURE END: 832 - Email List Builders - One-Click Email Opt-in -->';
	rightcol += '		</div>';
	rightcol += '		<div class="grayFooter"></div>';
	rightcol += '	</div>';
	rightcol += '	<br/><br/>';
	
	document.write(rightcol);
}
