/*
 * type: submit, reset, button
 * value: String
 * event: onclick
 */
function UI_button(id,type,value,event){
	var text="";
	var eventText="";
	if(event){
		if (event["onclick"]){
			eventText += " onclick=" + event["onclick"];
		}
	}

	text="<div class=\"btn_layer\">" +
	        "<table class=\"btn_checkout\">" +
	        "<tr>" +
	        "<td class=\"left\">&nbsp;</td>" +
	        "<td class=\"middle\" valign=\"top\">" +
	        "<button id='"+id+"' type='" + type + "'" + eventText + ">"+value+"</button></td>" +
	        "<td class=\"right\">&nbsp;</td>" +
	        "</tr>" +
	        "</table></div>";
	document.write(text);
}

function UI_button2(id,type,value,event){
	var text="";
	var eventText="";
	if(event){
		if (event["onclick"]){
			eventText += " onclick=" + event["onclick"];
		}
	}

	text="<table class=\"button\">" +
		"<tr><td class=\"left\">&nbsp;</td><td class=\"middle\">" +
		"<button id='"+id+"' type='" + type + "'" + eventText + ">"+value+"</button>" +
		"</td><td class=\"right\">&nbsp;</td></tr></table>"
	document.write(text);
}

var trListFragment = "<tr>"
+"<td><div class=\"list\">"
+"<div class=\"img\"><a href=\"\/#storeName#\/prod-#productId#.html\"><img border=\"0\" src=\"\/_staticProxy#thumbnailPictureUrl#\" \/><\/a><\/div>"
+"<div class=\"infoA\">"
+"<h1><a href=\"\/#storeName#\/prod-#productId#.html\">#productName# (#sku#)<\/a><\/h1>"
+"<h2>#shortDescription#<\/h2>"
+"<\/div>"
+"<div class=\"infoB\">"
+"<h2 id=\"show_ListPrice\" #mystyle#=\"#showListPrice#\">"
+"<span>List Price: <\/span>"
+"#listPrice#"
+"<\/h2>"
+"<div id=\"show_Price\" #mystyle#=\"#showPrice#\">"
+"<div id=\"show_SalePrice\" #mystyle#=\"#showSalePrice#\">"
+"<h2>"
+"<span>Our Price: <\/span>"
+"#regularPrice#"
+"<\/h2>"
+"<h3>"
+"<span>On Sale:<\/span>"
+"#salesPrice#&nbsp;"
+"<\/h3>"
+"<\/div>"
+"<h3 id=\"show_RegularPrice\" #mystyle#=\"#showRegularPrice#\">"
+"<span>Our Price: <\/span>"
+"#regularPrice#"
+"<\/h3>"
+"<h2 id=\"show_SavedAmount\" #mystyle#=\"#showSavedAmount#\">"
+"<span>You save:<\/span>"
+"#yourSave#(#yourSavePercent#)"
+"<\/h2>"
+"<\/div>"
+"<h3 id=\"show_CallPrice\" #mystyle#=\"#showCallPrice#\">"
+"#callPricingMessage#"
+"<\/h3>"
+"<\/div>"
+"<div class=\"infoB\">"
+"<h4>#freeShippingMessage#<\/h4>"
+"<\/div><\/div><\/td><\/tr>";

var tdGridFragment = "<td><div class=\"list\">"
+"<div class=\"img\"><a href=\"\/#storeName#\/prod-#productId#.html\"><img border=\"0\" src=\"/_staticProxy#thumbnailPictureUrl#\" \/><\/a><\/div>"
+"<h1><a href=\"\/#storeName#\/prod-#productId#.html\">#productName# (#sku#)<\/a><\/h1>"
+"<h2>#shortDescription#<\/h2>"
+"<h2 id=\"show_ListPrice\" #mystyle#=\"#showListPrice#\">"
+"<span>List Price: <\/span>"
+"#listPrice#"
+"<\/h2>"
+"<div id=\"show_Price\" #mystyle#=\"#showPrice#\">"
+"<div id=\"show_SalePrice\" #mystyle#=\"#showSalePrice#\">"
+"<h2>"
+"<span>Our Price: <\/span>"
+"#regularPrice#"
+"<\/h2>"
+"<h3>"
+"<span>On Sale:<\/span>"
+"#salesPrice#&nbsp;"
+"<\/h3>"
+"<\/div>"
+"<h3 id=\"show_RegularPrice\" #mystyle#=\"#showRegularPrice#\">"
+"<span>Our Price: <\/span>"
+"#regularPrice#"
+"<\/h3>"
+"<h2 id=\"show_SavedAmount\" #mystyle#=\"#showSavedAmount#\">"
+"<span>You save:<\/span>"
+"#yourSave#(#yourSavePercent#)"
+"<\/h2>"
+"<\/div>"
+"<h3 id=\"show_CallPrice\" #mystyle#=\"#showCallPrice#\">#callPricingMessage#<\/h3>"
+"<h4>#freeShippingMessage#<\/h4>"
+"<\/div><\/td>";

var trTextFragment = "<tr>"
+"<td><div class=\"list\">"
+"<div class=\"infoA\">"
+"<h1><a href=\"\/#storeName#\/prod-#productId#.html\">#productName# (#sku#)<\/a><\/h1>"
+"<h2>#shortDescription#<\/h2>"
+"<\/div>"
+"<div class=\"infoB\">"
+"<h2 id=\"show_ListPrice\" #mystyle#=\"#showListPrice#\">"
+"<span>List Price: <\/span>"
+"#listPrice#"
+"<\/h2>"
+"<div id=\"show_Price\" #mystyle#=\"#showPrice#\">"
+"<div id=\"show_SalePrice\" #mystyle#=\"#showSalePrice#\">"
+"<h2>"
+"<span>Our Price: <\/span>"
+"#regularPrice#"
+"<\/h2>"
+"<h3>"
+"<span>On Sale:<\/span>"
+"#salesPrice#&nbsp;	"
+"<\/h3>"
+"<\/div>"
+"<h3 id=\"show_RegularPrice\" #mystyle#=\"#showRegularPrice#\">"
+"<span>Our Price: <\/span>"
+"#regularPrice#"
+"<\/h3>"
+"<h2 id=\"show_SavedAmount\" #mystyle#=\"#showSavedAmount#\">"
+"<span>You save:<\/span>"
+"#yourSave#"
+"(#yourSavePercent#)"
+"<\/h2>"
+"<\/div>"
+"<h3 id=\"show_CallPrice\" #mystyle#=\"#showCallPrice#\">"
+"#callPricingMessage#"
+"<\/h3>"
+"<\/div>"
+"<div class=\"infoB\">"
+"<h4>#freeShippingMessage#<\/h4>"
+"<\/div><\/div><\/td><\/tr>";

var categoryFragment = "<li #li_class#=\"#select#\"><a id=\"#categoryId#\" href=\"\/#storeName#\/cat-#categoryId#.html\"><span>#categoryName#<\/span><\/a><\/li>";
var moreCatFragment = "<li #li_class#=\"#select#\"><a id=\"#categoryId#\" href=\"\/#storeName#\/cat-#categoryId#.html\">#categoryName#<\/a><\/li>";