/*
 * 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 = '<dl class="item"><dt><a href="/#storeName#/#seoName#-#productId#-p.html"><img bo'
+'rder="0" src="/_staticProxy#thumbnailPictureUrl#" /></a></dt><dd><div '
+'class="infoA"><h1><a href="/#storeName#/#seoName#-#productId#-p.html">#productNa'
+'me# (#sku#)</a></h1><h2>#shortDescription#</h2></div><div class="infoB'
+'"><h5>#freeShippingMessage#</h5><h5 id="show_CallPrice" #mystyle#="#sho'
+'wCallPrice#">#callPricingMessage#</h5></div><div class="infoB"><h'
+'3 id="show_ListPrice" #mystyle#="#showListPrice#"><span>List Price: </spa'
+'n>#listPrice#</h3><div id="show_Price" #mystyle#="#showPrice#"><div'
+' id="show_SalePrice" #mystyle#="#showSalePrice#"><h3><span>Our Price: <'
+'/span>#regularPrice#</h3><h4><span>On Sale:</span>#sale'
+'sPrice#&nbsp;	</h4></div><h3 id="show_RegularPrice" #mystyle#="#'
+'showRegularPrice#"><span>Our Price: </span>#regularPrice#</h3><h3 i'
+'d="show_SavedAmount" #mystyle#="#showSavedAmount#"><span>You save:</span>'
+'#yourSave#(#yourSavePercent#)</h3></div></div></dd><dd class='
+'"clearBoth">&nbsp;</dd></dl>';

var tdGridFragment = '<dl class="item rowFive"><dt class="img"><a href="/#storeName#/#seoName#-#prod'
+'uctId#-p.html"><img border="0" src="/_staticProxy#thumbnailPictureUrl#" /></'
+'a></dt><dd><h1><a href="/#storeName#/#seoName#-#productId#-p.html">#productNam'
+'e# (#sku#)</a></h1><div id="show_Price" #myst'
+'yle#="#showPrice#"><div id="show_SalePrice" #mystyle#="#showSalePrice#">'
+'<h3><span>Our Price: </span>#regularPrice#</h3><h4><span>'
+'On Sale:</span>#salesPrice#&nbsp;</h4></div><h3 id="show_R'
+'egularPrice" #mystyle#="#showRegularPrice#"><span>Our Price: </span>#re'
+'gularPrice#</h3><h2 id="show_SavedAmount" #mystyle#="#showSavedAmount#"'
+'><span>You save:</span>#yourSave#(#yourSavePercent#)</h2></div>'
+'</dd></dl>';

var trTextFragment = '<ul class="item"><li><h1><a href="/#storeName#/#seoName#-#productId#-p.html">#pr'
+'oductName# (#sku#)</a></h1></li><li><h2>#shortDescription#</h2></li><li>'
+'<span class="listPrice"><b>List Price: </b> #listPrice#</span><span id='
+'"show_Price" #mystyle#="#showPrice#"><a id="show_SalePrice" #mystyle#="#s'
+'howSalePrice#"><span class="ourPrice"><b>Our Price:</b> #regularPrice#</s'
+'pan><span class="onPrice"><b>Sales Price:</b> #salesPrice#</span>'
+'</a><span class="ourPrice" #mystyle#="#showRegularPrice#"><b>Our Price:<'
+'/b> #regularPrice#</span><span class="savePrice" #mystyle#="#showSavedAmo'
+'unt#"><b>You save:</b> #yourSave# (#yourSavePercent#) </span></span><sp'
+'an #mystyle#="#showCallPrice#"><b>#callPricingMessage#</b></span></li'
+'><li><b>#freeShippingMessage#</b></li></ul>';

var categoryFragment = "<li #li_class#=\"#select#\"><a id=\"#categoryId#\" href=\"#storeServer#\/#storeName#\/#seoName#-#categoryId#-c.html\"><span>#categoryName#<\/span><\/a><\/li>";
var moreCatFragment = "<li #li_class#=\"#select#\"><a id=\"#categoryId#\" href=\"#storeServer#\/#storeName#\/#seoName#-#categoryId#-c.html\">#categoryName#<\/a><\/li>";
	        