<!-- Begin JavaScript -
function AssignProdInfo(number,name,url,image,title,price,size,desc,fabric,color)
{
	
	this.number = number;
	this.name = name;
	this.url = url;
	this.image = image;
	this.title = title;
	this.price = price;

	this.size = new Array;
	for (i = 0; i < size.length; i++)
	{
		this.size[i] = size[i];
	}
	this.desc = desc;
	this.fabric = fabric;
	this.color = color;
}

function AssignFabricInfo(name,smallimage,title,bigimage)
{
	this.name = name;
	this.smallimage = smallimage;
	this.title = title;
	this.bigimage = bigimage;
}


function FriendInfo(url, name, desc)
{
	this.url = url;
	this.name = name;
	this.desc = desc;
}


function OnTheRoadInfo(edate, edesc, elocation)
{
	this.edate = edate;
	this.edesc = edesc;
	this.elocation = elocation;
}

function getDisplayItems2()
{
	  var str
	  var optVal = 0;
	  str = "<table cellpadding='5' cellspacing='0' border='0'>";
	  
		for (var r = 0; r < ProdInfo.length; r++) {
			str += "<form action=https://www.paypal.com/cgi-bin/webscr method=post target=paypal>";
			str += "<input type=hidden name=cmd value=_cart>";
			str += "<input type=hidden name=add value=1>";
			str += "<input type=hidden name=undefined_quantity value=1>";
			str += "<input type=hidden name=business value=info@totrodders.com>";
			str += "<input type=hidden name=item_name value=" + ProdInfo[r].name + ">";
			str += "<input type=hidden name=amount value=" + ProdInfo[r].price + ">";
			str += "<input type=hidden name=shipping value=4.99>";
			str += "<input type=hidden name=shipping2 value=1.00>";
			str += "<input type=hidden name=return value=http://www.totrodders.com/thankyou.htm>";
			str += "<input type=hidden name=cancel_return value=http://www.totrodders.com>";
			str += "<TR VALIGN=top>";
			str += "<TD width=100>";
			str += "<a name=" + ProdInfo[r].name + " href=\"" + ProdInfo[r].url + "\" onclick=\"popupproduct('" + ProdInfo[r].image + "','" + ProdInfo[r].title + "','" + ProdInfo[r].number + "','" + ProdInfo[r].price + "','" + escape(ProdInfo[r].size) + "','" + escape(ProdInfo[r].desc) + "');\"><img src=" + ProdInfo[r].image +" width=100 height=100 border=0 ALT=" + ProdInfo[r].name + "></a>";
			str += "</TD>";
			str += "<TD width=600>";
			
				str += "<TABLE border=0>";
				str += "<TR VALIGN=TOP>";
				str += "<TD class=v align=left valign=top>";
				str += "<b>" + ProdInfo[r].title + "</b>";
				str += "</TD>";
				str += "</TR>";
				str += "<TR VALIGN=TOP>";
				str += "<TD class=v colspan=2 align=left valign=top>";
				str += ProdInfo[r].desc;
				str += "<br><br>";
				str += "Price: " + ProdInfo[r].price;
				if (ProdInfo[r].size != "")
				{
						str += "<br>";
						str += "Size: " + ProdInfo[r].size;
				}
				str += "</TD>";
				str += "</TR>";
				str += "</TABLE>";

			str += "<TD>";

				str += "<table>";
				if (ProdInfo[r].size != 0)
				{
					str += "<tr>";
					str += "<td>";
					str += "<input type=hidden name=on" + optVal + " value=Size>Size</td>";
					str += "<td>";
					str += "<select name=os" + optVal + ">";
					str += "<option value=\"Select a Size\">Select a Size</option>";
					for (var s = 0; s < ProdInfo[r].size.length; s++) {
						str += "<option value=\"" + ProdInfo[r].size[s] + "\">" + ProdInfo[r].size[s] + "</option>";
    				}
    				str += "</select></td>";
  					str += "</tr>";
					optVal++;
  				}
  				if (ProdInfo[r].color != 0)
  				{
					str += "<tr>";
					str += "<td>";
					str += "<input type=hidden name=on" + optVal + " value=Color>Color</td>";
					str += "<td>";
					str += "<select name=os" + optVal + ">";
					str += "<option value=\"Select a Color\">Select a Color</option>";
					for (var s = 0; s < ProdInfo[r].color.length; s++) {
						str += "<option value=\"" + ProdInfo[r].color[s] + "\">" + ProdInfo[r].color[s] + "</option>";
    				}
    				str += "</select></td>";
  					str += "</tr>";
  				}
				if (ProdInfo[r].fabric != 0)
				{
					str += "<tr>";
					str += "<td>";
					str += "<input type=hidden name=on" + optVal + " value=Fabric>Fabric</td>";
					str += "<td>";
					str += "<select name=os" + optVal + ">";
					str += "<option value=\"Select a Fabric\">Select a Fabric</option>";
					for (var s = 0; s < ProdInfo[r].fabric.length; s++) {
						str += "<option value=\"" + ProdInfo[r].fabric[s] + "\">" + ProdInfo[r].fabric[s] + "</option>";
    				}
    				str += "</select></td>";
  					str += "</tr>";
  				}
				optVal = 0;
  				str += "<tr>";
    			str += "<td>";
    			str += "&nbsp";
    			str += "</td>";
    			str += "<td>";
				str += "<input type=image src=http://www.paypal.com/images/x-click-but22.gif border=0 width=87 height=23 name=submit alt=Make payments with PayPal - it's fast, free and secure!>";
    			str += "</td>";
  				str += "</tr>";
				str += "</table>";


			str += "</TD>";
			str += "</TR>";

			str += "<TR VALIGN=center>";
			str += "<TD colspan=4 height=2 bgcolor=#527C94>";
			str += "</TD>";
			str += "</TR>";
		str += "</FORM>";
		}
		str += "</TABLE>";

	return document.write(str);
}

function getDisplayItems1()
{
	  var str
	  str = "<FORM id=Items name=Items>";
	  str += "<table cellpadding='5' cellspacing='0' border='0'>";
	  
		for (var r = 0; r < ProdInfo.length; r++) {
			str += "<TR VALIGN=top>";
			str += "<TD width=100>";
			str += "<a name=" + ProdInfo[r].name + " href=\"" + ProdInfo[r].url + "\" onclick=\"popupproduct('" + ProdInfo[r].image + "','" + ProdInfo[r].title + "','" + ProdInfo[r].number + "','" + ProdInfo[r].price + "','" + escape(ProdInfo[r].size) + "','" + escape(ProdInfo[r].desc) + "');\"><img src=" + ProdInfo[r].image +" width=100 height=100 border=0 ALT=" + ProdInfo[r].name + "></a>";
			str += "</TD>";
			str += "<TD width=600>";
			
			str += "<TABLE border=0>";
			str += "<TR VALIGN=TOP>";
			str += "<TD class=v align=left valign=top>";
			str += "<b>" + ProdInfo[r].title + "</b>";
			str += "</TD>";
			str += "</TR>";
			str += "<TR VALIGN=TOP>";
			str += "<TD class=v colspan=2 align=left valign=top>";
			str += ProdInfo[r].desc;
			str += "<br><br>";
			str += "Price: " + ProdInfo[r].price;
			if (ProdInfo[r].size != "")
			{
					str += "<br>";
					str += "Size: " + ProdInfo[r].size;
			}
			str += "</TD>";
			str += "</TR>";
			str += "</TABLE>";

			str += "<TD>";
			str += "<a href=\"#\" onclick=\"window.open('https://www.paypal.com/cart/add=1&business=info%40totrodders.com&item_name=" + ProdInfo[r].name +"&item_number=" + ProdInfo[r].number + "&amount=" + ProdInfo[r].price + "&shipping=4.99&shipping2=1.00&return=http%3A//www.totrodders.com/thankyou.htm&cancel_return=http%3A//www.totrodders.com','cartwin','width=600,height=400,scrollbars,location,resizable,status');\"><img src=\"http://images.paypal.com/images/sc-but-03.gif\" border=0></a>"
			str += "</TD>";
			str += "</TR>";

			str += "<TR VALIGN=center>";
			str += "<TD colspan=4 height=2 bgcolor=#527C94>";
			str += "</TD>";
			str += "</TR>";
		}
		str += "</TABLE>";
		str += "</FORM>";

	return document.write(str);
}

function popupproduct(image,title,number,price,size,dsc)
{
  var targetwin;
	targetwin = window.open("","prodwin","width=800,height=350");
	targetwin.document.write("<html>");
	targetwin.document.write("<head>");
	targetwin.document.write("<title>" + title + "</title>");
	targetwin.document.write("</head>");
	targetwin.document.write("<body bgcolor='#cccccc'>");

	targetwin.document.write("<FORM id=PopUpProduct name=PopUpProduct>");
	targetwin.document.write("<TABLE width=780 border=0>");
	targetwin.document.write("<TR VALIGN=TOP>");
	targetwin.document.write("<TD width=300><img src='" + image + "' width='300' height='300' ALT='" + name + "'></TD>");
	targetwin.document.write("<TD width=20>&nbsp;</TD>");
	targetwin.document.write("<TD valign=top>");
		targetwin.document.write("<TABLE border=0>");
		targetwin.document.write("<TR VALIGN=TOP>");
		targetwin.document.write("<TD align=left valign=top>");
		targetwin.document.write("<b>" + title + "</b>");
		targetwin.document.write("</TD>");
		targetwin.document.write("<TD align=right valign=top>");
		targetwin.document.write("<a href=javascript:window.close();><font size=1 face='verdana, arial, sans-serif'>Close Window</font></a>");
		targetwin.document.write("</TD>");
		targetwin.document.write("</TR>");
		targetwin.document.write("<TR VALIGN=TOP>");
		targetwin.document.write("<TD colspan=2 align=left valign=top>");
		targetwin.document.write("<br>");
		targetwin.document.write(unescape(dsc));
		targetwin.document.write("<br><br>");
		targetwin.document.write("Price: " + price);
		if (size != "")
		{
			targetwin.document.write("<br>");
			targetwin.document.write("Size: " + unescape(size));
		}
		targetwin.document.write("<br><br>");
		targetwin.document.write("<font size=1 face='verdana, arial, sans-serif'>To Order close window and select the \"Add to Cart\" Button.</font>");
		targetwin.document.write("</TD>");
		targetwin.document.write("</TR>");
		targetwin.document.write("</TABLE>");
	targetwin.document.write("</TD>");
	targetwin.document.write("</TR>");
	targetwin.document.write("</TABLE>");

	targetwin.document.write("</FORM>");
	targetwin.document.write("</BODY>");
	targetwin.document.write("</html>");
}


function getFabicList()
{
	  var str;
	  str = "<FORM id=Items name=Items>";
	  str += "<table cellpadding='5' cellspacing='0' border='0'>";
	  
		for (var r = 0; r < FabricInfo.length;r++) {
			if ((r % 5) == 0) {
				str += "<TR>";
			}
			str += "<TD width=100>";
			str += "<a href=\"#\" onclick=\"window.open('" + FabricInfo[r].bigimage + "','fabicwin','width=350,height=350');\"><img src=" + FabricInfo[r].smallimage +" width=100 height=100 border=0 ALT=" + FabricInfo[r].name + "></a>";
			str += "<br><font size=1>" + FabricInfo[r].title + "</font>";
			str += "</TD>";
			str += "<TD width=50>&nbsp;</TD>";
			if ((r % 5) == 4) {
				str += "</TR>";
				str += "<tr><td colspan=10>&nbsp;</td></tr>";
		    }
		}
		str += "</TABLE>";
		str += "</FORM>";

	return document.write(str);
}

function getFriendsList()
{
	  var str
	  str = "<FORM id=Items name=Items>";
	  str += "<table width='780' cellpadding='0' cellspacing='0' border='0'>";
	  str += "<TR class=links valign='top'>";
	  str += "<td width=150 valign='top'>&nbsp;</td>";
	  str += "<td valign='top'>&nbsp;</td>";
	  str += "</tr>";
	  
		for (var r = 0; r < Friends.length; r++) {
			str += "<TR class=links valign='top'>";
			str += "<td>&nbsp;</td>"
			str += "<td>"
			str += "<a href=\"" + Friends[r].url + "\">" + Friends[r].name + "</a>";
			str += "&nbsp;" + Friends[r].desc;
			str += "</TD>";
			str += "</TR>";
			str += "<tr><td colspan=2>&nbsp;</td></tr>"
		}
		str += "</TABLE>";
		str += "</FORM>";

		return document.write(str);

}

function getOnTheRoadList()
{
	  var str
	  str = "<FORM id=Items name=Items>";
	  str += "<table width='780' cellpadding='0' cellspacing='0' border='0'>";
	  str += "<TR class=links valign='top'>";
	  str += "<td width=150 valign='top'>&nbsp;</td>";
	  str += "<td valign='top'>&nbsp;</td>";
	  str += "</tr>";
	  
		for (var r = 0; r < OnTheRoad.length; r++) {
			str += "<TR class=links valign='top'>";
			str += "<td>&nbsp;</td>"
			str += "<td>"
			str += "<A name>" + OnTheRoad[r].edate + "</A>";
			str += "<BR>";
			str += OnTheRoad[r].edesc;
			str += "<BR>";
			str += OnTheRoad[r].elocation;
			str += "<BR>";
			str += "</TD>";
			str += "</TR>";
			str += "<tr><td colspan=2>&nbsp;</td></tr>"
		}
		str += "</TABLE>";
		str += "</FORM>";

		return document.write(str);

}

// - End JavaScript - -->


