//Price List

//Woodentubs.com row builder

function buildrow(name, description, family, pricecode, imageroot) 
{

	var buildprice = family+pricecode;
	
//Tao Agata Prices
	if (buildprice == 'taoagata001'){ price = "3770" };
	if (buildprice == 'taoagata002'){ price = "6255" };
	if (buildprice == 'taoagata003'){ price = "6335" };
	if (buildprice == 'taoagata004'){ price =  "7170"};	

//Tao Macao Prices
	if (buildprice == 'taomacao001'){ price = "1820" };
	if (buildprice == 'taomacao002'){ price = "4980" };
	if (buildprice == 'taomacao003'){ price = "5840" };
	if (buildprice == 'taomacao004'){ price =  "6035"};
	if (buildprice == 'taomacao005'){ price =  "9340"};
	if (buildprice == 'taomacao006'){ price =  "9540"};
	if (buildprice == 'taomacao007'){ price =  "9930"};
	if (buildprice == 'taomacao008'){ price =  "12945"};	
	
//Tao Tao Prices
	if (buildprice == 'taotao001'){ price = "2220" };
	if (buildprice == 'taotao002'){ price = "1905" };
	if (buildprice == 'taotao003'){ price = "1690" };
	if (buildprice == 'taotao004'){ price =  "1490"};
	if (buildprice == 'taotao005'){ price =  "4495"};
	if (buildprice == 'taotao006'){ price =  "5130"};
	if (buildprice == 'taotao007'){ price =  "5340"};
	if (buildprice == 'taotao008'){ price =  "6615"};
	if (buildprice == 'taotao009'){ price =  "6825"};	
	if (buildprice == 'taotao010'){ price =  "8105"};	
	if (buildprice == 'taotao011'){ price =  "10005"};	
	
//Tao Ruby Prices
	if (buildprice == 'taoruby001'){ price = "3770" };
	if (buildprice == 'taoruby002'){ price = "3060" };
	if (buildprice == 'taoruby003'){ price = "2890" };
	if (buildprice == 'taoruby004'){ price =  "6015"};
	if (buildprice == 'taoruby005'){ price =  "6270"};
	if (buildprice == 'taoruby006'){ price =  "8770"};
		
//Zen Kara Prices
	if (buildprice == 'zenkara001'){ price = "3160" };
	if (buildprice == 'zenkara002'){ price = "5640" };
	if (buildprice == 'zenkara003'){ price = "6095" };
	if (buildprice == 'zenkara004'){ price =  "6315"};
	if (buildprice == 'zenkara005'){ price =  "7680"};
	if (buildprice == 'zenkara006'){ price =  "7895"};
	if (buildprice == 'zenkara007'){ price =  "9025"};
	if (buildprice == 'zenkara008'){ price =  "11290"};
	
//Zen Bora Prices
	if (buildprice == 'zenbora001'){ price = "1685" };
	if (buildprice == 'zenbora002'){ price = "1910" };
	if (buildprice == 'zenbora003'){ price = "4020" };
	if (buildprice == 'zenbora004'){ price =  "4445"};
	if (buildprice == 'zenbora005'){ price =  "4655"};
	if (buildprice == 'zenbora006'){ price =  "5920"};
	if (buildprice == 'zenbora007'){ price =  "6130"};
	if (buildprice == 'zenbora008'){ price =  "7190"};
	if (buildprice == 'zenbora009'){ price = "9300" };
	
//Zen Wind Prices
	if (buildprice == 'zenwind001'){ price = "1745" };
	if (buildprice == 'zenwind002'){ price = "4125" };
	if (buildprice == 'zenwind003'){ price = "4585" };
	if (buildprice == 'zenwind004'){ price =  "4805"};
	if (buildprice == 'zenwind005'){ price =  "6165"};
	if (buildprice == 'zenwind006'){ price =  "6390"};
	if (buildprice == 'zenwind007'){ price =  "7520"};
	if (buildprice == 'zenwind008'){ price =  "9775"};
	
//Zen Rectangle Prices
	if (buildprice == 'zenrectangle001'){ price = "2245" };
	if (buildprice == 'zenrectangle002'){ price = "1910" };
	if (buildprice == 'zenrectangle003'){ price = "1685" };
	if (buildprice == 'zenrectangle004'){ price =  "1685"};
	if (buildprice == 'zenrectangle005'){ price =  "1685"};
	if (buildprice == 'zenrectangle006'){ price =  "1465"};
	if (buildprice == 'zenrectangle007'){ price =  "1470"};
	if (buildprice == 'zenrectangle008'){ price =  "4660"};
	if (buildprice == 'zenrectangle009'){ price =  "5335"};
	if (buildprice == 'zenrectangle010'){ price =  "5565"};
	if (buildprice == 'zenrectangle011'){ price =  "6920"};
	if (buildprice == 'zenrectangle012'){ price =  "7140"};
	if (buildprice == 'zenrectangle013'){ price =  "8500"};
	if (buildprice == 'zenrectangle014'){ price =  "10765"};
		
//Zen Oval Prices
	if (buildprice == 'zenoval001'){ price = "1910" };
	if (buildprice == 'zenoval002'){ price = "5845" };
	if (buildprice == 'zenoval003'){ price = "4300" };
	if (buildprice == 'zenoval004'){ price = "4760" };
	if (buildprice == 'zenoval005'){ price =  "4980"};
	if (buildprice == 'zenoval006'){ price =  "6335"};
	if (buildprice == 'zenoval007'){ price =  "6565"};
	if (buildprice == 'zenoval008'){ price =  "7695"};
	if (buildprice == 'zenoval009'){ price =  "9950"};	
	
//Zen Asia and Naya Prices
	if (buildprice == 'zenasia001'){ price = "5370" };
	if (buildprice == 'zenasia002'){ price = "5370" };
	
//Zen Saphyr and Jade Prices
	if (buildprice == 'zensaphyr001'){ price = "3285" };
	if (buildprice == 'zensaphyr002'){ price = "5025" };
	if (buildprice == 'zensaphyr003'){ price = "5415" };
	if (buildprice == 'zensaphyr004'){ price =  "5510"};
	if (buildprice == 'zensaphyr005'){ price =  "6830"};
	if (buildprice == 'zensaphyr006'){ price =  "7000"};
	if (buildprice == 'zensaphyr007'){ price =  "7400"};
	if (buildprice == 'zensaphyr008'){ price =  "8820"};
	if (buildprice == 'zenjade001'){ price =  "1940"};
	if (buildprice == 'zenjade002'){ price =  "1840"};
	if (buildprice == 'zenjade003'){ price =  "1305"};	
	
//Hinoki Rectangle Prices
	if (buildprice == 'hinrectangle001'){ price = "5280" };
	if (buildprice == 'hinrectangle002'){ price = "5700	" };
	if (buildprice == 'hinrectangle003'){ price = "6380" };
	if (buildprice == 'hinrectangle004'){ price = "7150" };
	if (buildprice == 'hinrectangle005'){ price = "1" };
	if (buildprice == 'hinrectangle006'){ price = "150" };
	if (buildprice == 'hinrectangle007'){ price = "450" };
	if (buildprice == 'hinrectangle008'){ price = "500" };
	if (buildprice == 'hinrectangle009'){ price = "550" };
	if (buildprice == 'hinrectangle010'){ price = "600" };
		
//Hinoki Circle Prices
	if (buildprice == 'hincircle001'){ price = "3350" };
	if (buildprice == 'hincircle002'){ price = "3890" };
	if (buildprice == 'hincircle003'){ price = "4850" };
	if (buildprice == 'hincircle004'){ price = "5850" };
	if (buildprice == 'hincircle005'){ price = "1" };
	if (buildprice == 'hincircle006'){ price = "600" };
	if (buildprice == 'hincircle007'){ price = "650" };
	if (buildprice == 'hincircle008'){ price = "700" };
	if (buildprice == 'hincircle009'){ price = "800" };
		
//Hinoki Ellipse Prices
	if (buildprice == 'hinellipse001'){ price = "4050" };
	if (buildprice == 'hinellipse002'){ price = "4490" };
	if (buildprice == 'hinellipse003'){ price = "5410" };
	if (buildprice == 'hinellipse004'){ price = "6650" };
	if (buildprice == 'hinellipse005'){ price = "1" };
	if (buildprice == 'hinellipse006'){ price = "600" };
	if (buildprice == 'hinellipse007'){ price = "650" };
	if (buildprice == 'hinellipse008'){ price = "700" };
	if (buildprice == 'hinellipse009'){ price = "800" };
	
//AYC Rectangle Prices
	if (buildprice == 'aycrectangle001'){ price = "4290" };
	if (buildprice == 'aycrectangle002'){ price = "4730" };
	if (buildprice == 'aycrectangle003'){ price = "5060" };
	if (buildprice == 'aycrectangle004'){ price = "5610" };
	if (buildprice == 'aycrectangle005'){ price = "1" };
	if (buildprice == 'aycrectangle006'){ price = "150" };
	if (buildprice == 'aycrectangle007'){ price = "400" };
	if (buildprice == 'aycrectangle008'){ price = "450" };
	if (buildprice == 'aycrectangle009'){ price = "500" };
	if (buildprice == 'aycrectangle010'){ price = "550" };
		
//AYC Circle Prices
	if (buildprice == 'ayccircle001'){ price = "2600" };
	if (buildprice == 'ayccircle002'){ price = "3100" };
	if (buildprice == 'ayccircle003'){ price = "3800" };
	if (buildprice == 'ayccircle004'){ price = "4500" };
	if (buildprice == 'ayccircle005'){ price = "1" };
	if (buildprice == 'ayccircle006'){ price = "500" };
	if (buildprice == 'ayccircle007'){ price = "550" };
	if (buildprice == 'ayccircle008'){ price = "650" };
	if (buildprice == 'ayccircle009'){ price = "700" };
		
//AYC Ellipse Prices
	if (buildprice == 'aycellipse001'){ price = "3100" };
	if (buildprice == 'aycellipse002'){ price = "3700" };
	if (buildprice == 'aycellipse003'){ price = "4500" };
	if (buildprice == 'aycellipse004'){ price = "5100" };
	if (buildprice == 'aycellipse005'){ price = "1" };
	if (buildprice == 'aycellipse006'){ price = "500" };
	if (buildprice == 'aycellipse007'){ price = "550" };
	if (buildprice == 'aycellipse008'){ price = "650" };
	if (buildprice == 'aycellipse009'){ price = "700" };
	
//Onsen Tokyo Prices
	if (buildprice == 'onstokyo001'){ price = "1820" };
	if (buildprice == 'onstokyo002'){ price = "4655" };
	if (buildprice == 'onstokyo003'){ price = "7405" };
	
//Onsen Nagano Prices
	if (buildprice == 'onsnagano001'){ price = "1370" };
	if (buildprice == 'onsnagano002'){ price = "2935" };
	if (buildprice == 'onsnagano003'){ price = "5535" };
	
//Onsen Osaka Prices
	if (buildprice == 'onsosaka001'){ price = "1525" };
	if (buildprice == 'onsosaka002'){ price = "4240" };
	if (buildprice == 'onsosaka003'){ price = "6890" };
	
//Ofuro Sale Prices
	if (buildprice == 'ofurosale313'){ price = "4900" };
	if (buildprice == 'ofurosale314'){ price = "2300" };
	if (buildprice == 'ofurosale315'){ price = "3500" };
	if (buildprice == 'ofurosale2316'){ price = "4340" };
	if (buildprice == 'ofurosale1317'){ price = "5100" };
	if (buildprice == 'ofurosale318'){ price = "5100" };

//Basin Prices
	if (buildprice == 'basintasani001'){ price = "725" };	
	if (buildprice == 'basintasani002'){ price = "755" };	
	
//Percentages
var percent;

if (family == 'zenkara'){ percent = ".75" };
if (family == 'zenrectangle'){ percent = ".75" };
if (family == 'zenoval'){ percent = ".75" };
if (family == 'zenasia'){ percent = ".75" };
if (family == 'zenjade'){ percent = ".75" };
if (family == 'zenbora'){ percent = ".75" };
if (family == 'zenwind'){ percent = ".75" };
if (family == 'zensaphyr'){ percent = ".75" };
if (family == 'zenjade'){ percent = ".75" };
if (family == 'onstokyo'){ percent = ".75" };
if (family == 'onsnagano'){ percent = ".75" };
if (family == 'onsosaka'){ percent = ".75" };
if (family == 'taomacao'){ percent = ".75" };
if (family == 'taotao'){ percent = ".75" };
if (family == 'taoruby'){ percent = ".75" };
if (family == 'taoagata'){ percent = ".75" };
if (family == 'hinrectangle'){ percent = "1" };
if (family == 'hincircle'){ percent = "1" };
if (family == 'hinellipse'){ percent = "1" };
if (family == 'aycrectangle'){ percent = "1" };
if (family == 'ayccircle'){ percent = "1" };
if (family == 'aycellipse'){ percent = "1" };
if (family == 'ofurosale'){ percent = ".85" };
if (family == 'ofurosale1'){ percent = ".75" };
if (family == 'ofurosale2'){ percent = ".69" };
if (family == 'basintasani'){ percent = ".75" };


//var price = buildprice.concat(number);
var ourprice = Math.round(price*percent);



//changes out any spaces for plus signs for Mals shopping cart usage

s = new String(name);
s = s.replace(/ /g,"+");
var malsname = s;

document.write(unescape('<tr bgcolor="#e8f5da"><td align="center">'));

if (imageroot != '') {
document.write(unescape('<A href="' + imageroot+'"><img src="images/pdficon_large.gif" border="0"><br>View Datasheet</a>'));
}
document.write(unescape('</td><td valign="top"><p><b>' + name + '</b></p>'));
document.write(unescape('<p>' + description + '</p></td>'));
if (family == 'hincircle') {  
document.write(unescape(''));
}
else if (family == 'hinrectangle') {  
document.write(unescape(''));
}
else if (family == 'hinellipse') {  
document.write(unescape(''));
}
else if (family == 'ayccircle') {  
document.write(unescape(''));
}
else if (family == 'aycrectangle') {  
document.write(unescape(''));
}
else if (family == 'aycellipse') {  
document.write(unescape(''));
}
else  {
document.write(unescape('<td valign="top">$' + price +'</td>'));
}
document.write(unescape('<td valign="top">'));
if (ourprice == '1') {
document.write(unescape('Call for Price'));
}
else if (imageroot == 'sold') {  
document.write(unescape('<font color=red>SOLD</font><br>'));
document.write(unescape('$' + ourprice +'<BR>'));
}
else
{
document.write(unescape('$' + ourprice +'<BR>'));

document.write(unescape('<a href="http://ww4.aitsafe.com/cf/add.cfm?userid=65133357&product='+ family + '+' + malsname +'&price=' + ourprice + '&return=www.japanesebath.com/'+family+'.html\">Buy&nbsp;Now&nbsp;&raquo;</a>'));
}
document.write(unescape('</td></tr>'));

}// JavaScript Document