//Price List

//Woodentubs.com row builder

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

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

//Tao Macao Prices
	if (buildprice == 'taomacao001'){ price = "1915" };
	if (buildprice == 'taomacao002'){ price = "5330" };
	if (buildprice == 'taomacao003'){ price = "6235" };
	if (buildprice == 'taomacao004'){ price =  "6440"};
	if (buildprice == 'taomacao005'){ price =  "9910"};
	if (buildprice == 'taomacao006'){ price =  "10120"};
	if (buildprice == 'taomacao007'){ price =  "10530"};
	if (buildprice == 'taomacao008'){ price =  "13695"};	
	
//Tao Tao Prices
	if (buildprice == 'taotao001'){ price = "2335" };
	if (buildprice == 'taotao002'){ price = "2005" };
	if (buildprice == 'taotao003'){ price = "1775" };
	if (buildprice == 'taotao004'){ price =  "1565"};
	if (buildprice == 'taotao005'){ price =  "4820"};
	if (buildprice == 'taotao006'){ price =  "5490"};
	if (buildprice == 'taotao007'){ price =  "5710"};
	if (buildprice == 'taotao008'){ price =  "7050"};
	if (buildprice == 'taotao009'){ price =  "7270"};	
	if (buildprice == 'taotao010'){ price =  "8615"};	
	if (buildprice == 'taotao011'){ price =  "10610"};	
	
//Tao Ruby Prices
	if (buildprice == 'taoruby001'){ price = "3960" };
	if (buildprice == 'taoruby002'){ price = "3215" };
	if (buildprice == 'taoruby003'){ price = "3035" };
	if (buildprice == 'taoruby004'){ price =  "6420"};
	if (buildprice == 'taoruby005'){ price =  "6685"};
	if (buildprice == 'taoruby006'){ price =  "9310"};
		
//Zen Kara Prices
	if (buildprice == 'zenkara001'){ price = "3320" };
	if (buildprice == 'zenkara002'){ price = "5795" };
	if (buildprice == 'zenkara003'){ price = "6270" };
	if (buildprice == 'zenkara004'){ price =  "6500"};
	if (buildprice == 'zenkara005'){ price =  "7935"};
	if (buildprice == 'zenkara006'){ price =  "8160"};
	if (buildprice == 'zenkara007'){ price =  "9350"};
	if (buildprice == 'zenkara008'){ price =  "11725"};
	
//Zen Bora Prices
	if (buildprice == 'zenbora001'){ price = "1770" };
	if (buildprice == 'zenbora002'){ price = "2010" };
	if (buildprice == 'zenbora003'){ price = "4325" };
	if (buildprice == 'zenbora004'){ price =  "4770"};
	if (buildprice == 'zenbora005'){ price =  "4990"};
	if (buildprice == 'zenbora006'){ price =  "6320"};
	if (buildprice == 'zenbora007'){ price =  "6540"};
	if (buildprice == 'zenbora008'){ price =  "7650"};
	if (buildprice == 'zenbora009'){ price = "9865" };
	
//Zen Wind Prices
	if (buildprice == 'zenwind001'){ price = "1835" };
	if (buildprice == 'zenwind002'){ price = "4435" };
	if (buildprice == 'zenwind003'){ price = "4915" };
	if (buildprice == 'zenwind004'){ price =  "5150"};
	if (buildprice == 'zenwind005'){ price =  "6575"};
	if (buildprice == 'zenwind006'){ price =  "6810"};
	if (buildprice == 'zenwind007'){ price =  "8000"};
	if (buildprice == 'zenwind008'){ price =  "10365"};
	
//Zen Rectangle Prices
	if (buildprice == 'zenrectangle001'){ price = "2360" };
	if (buildprice == 'zenrectangle002'){ price = "2010" };
	if (buildprice == 'zenrectangle003'){ price = "1770" };
	if (buildprice == 'zenrectangle004'){ price =  "1770"};
	if (buildprice == 'zenrectangle005'){ price =  "1770"};
	if (buildprice == 'zenrectangle006'){ price =  "1545"};
	if (buildprice == 'zenrectangle007'){ price =  "1540"};
	if (buildprice == 'zenrectangle008'){ price =  "4995"};
	if (buildprice == 'zenrectangle009'){ price =  "5705"};
	if (buildprice == 'zenrectangle010'){ price =  "5945"};
	if (buildprice == 'zenrectangle011'){ price =  "7370"};
	if (buildprice == 'zenrectangle012'){ price =  "7600"};
	if (buildprice == 'zenrectangle013'){ price =  "9025"};
	if (buildprice == 'zenrectangle014'){ price =  "11405"};
		
//Zen Oval Prices
	if (buildprice == 'zenoval001'){ price = "2010" };
	if (buildprice == 'zenoval002'){ price = "4615" };
	if (buildprice == 'zenoval003'){ price = "5100" };
	if (buildprice == 'zenoval004'){ price = "5330" };
	if (buildprice == 'zenoval005'){ price =  "6755"};
	if (buildprice == 'zenoval006'){ price =  "6995"};
	if (buildprice == 'zenoval007'){ price =  "8180"};
	if (buildprice == 'zenoval008'){ price =  "10550"};
	if (buildprice == 'zenoval009'){ price =  "8410"};	
	
//Zen Asia and Naya Prices
	if (buildprice == 'zenasia001'){ price = "0" };
	if (buildprice == 'zenasia002'){ price = "0" };
	
//Zen Saphyr and Jade Prices
	if (buildprice == 'zensaphyr001'){ price = "3450" };
	if (buildprice == 'zensaphyr002'){ price = "5380" };
	if (buildprice == 'zensaphyr003'){ price = "5790" };
	if (buildprice == 'zensaphyr004'){ price =  "5890"};
	if (buildprice == 'zensaphyr005'){ price =  "7275"};
	if (buildprice == 'zensaphyr006'){ price =  "7450"};
	if (buildprice == 'zensaphyr007'){ price =  "7870"};
	if (buildprice == 'zensaphyr008'){ price =  "9365"};
	if (buildprice == 'zenjade001'){ price =  "2040"};
	if (buildprice == 'zenjade002'){ price =  "1935"};
	if (buildprice == 'zenjade003'){ price =  "1375"};	
	
//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 = "2150" };
	if (buildprice == 'onstokyo002'){ price = "5540" };
	if (buildprice == 'onstokyo003'){ price = "0" };
	
//Onsen Nagano Prices
	if (buildprice == 'onsnagano001'){ price = "1440" };
	if (buildprice == 'onsnagano002'){ price = "3185" };
	if (buildprice == 'onsnagano003'){ price = "0" };
	
//Onsen Osaka Prices
	if (buildprice == 'onsosaka001'){ price = "1605" };
	if (buildprice == 'onsosaka002'){ price = "4455" };
	if (buildprice == 'onsosaka003'){ price = "0" };
	
//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 = "4300" };
	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
