// productdesc.js

function ProductDesc(sku, product_name, category, room, price, sale_price, price_table, discount, variations, description, ia, ib, ic, availibilty, L, W, H, lbs, sizes, colors, info,  tab_menu, other_products) {
 this.sku = sku
 this.product_name = product_name
 this.category = category 
 this.room = room
 this.price = price
 this.sale_price = sale_price
 this.price_table = price_table
 this.discount = discount
 this.variations = variations
 this.description = description
 this.ia = ia
 this.ib = ib
 this.ic = ic
 this.availibilty = availibilty
 this.L = L
 this.W = W
 this.H = H
 this.lbs = lbs
 this.sizes = sizes
 this.colors = colors
 this.info = info
 this.tab_menu = tab_menu
 this.other_products = other_products
 this.displayProductInfo = ProductDesc_displayProductInfo
}

function ProductDesc_displayProductInfo() {

document.writeln("	<div id='right_sidebar'><div id='categories'><div id='categories_header'><h2>My Cart</h2></div><p style='text-align: center;'><script>Print_cart_summary(' item',' items',' at a cost of ');</script> &nbsp; <br><a href=shoppingcart.htm>View Cart</a></div>")
document.writeln(""+this.other_products+"")
 document.writeln("</div>")
document.writeln("<div id='main_content_listproduct'>")
document.writeln("")
document.writeln("<table style='text-align: left; width: 795px;' border='0' cellpadding='2' cellspacing='2'>")
document.writeln("<tr>")
document.writeln("<td style='width: 783px;' colspan='2' rowspan='1'><font size='-1'><a href='index.htm'>GiMasters</a> -"+this.category+" - "+this.room+"</font></td>")
document.writeln("</tr>")
document.writeln("<tr><td style='width: 300px; text-align: center; vertical-align: top;'><div style='background-image: url("+this.ib+")repeat-x 0px 0px;' id='loadarea2'><img src='"+this.ib+"'></div></td>")
document.writeln("<td style='width: 475px; text-align: center; vertical-align: top;'>")
document.writeln("<table style='text-align: left; width: 100%;' border='0' cellpadding='2' cellspacing='2'>")
document.writeln("<tr>")
document.writeln("<td colspan='2' rowspan='1'><font size='+1'><b>"+this.product_name+"</b></font></td>")
document.writeln("</tr>")
document.writeln("<tr>")
document.writeln("<td><font size='+0'>Price: "+this.price+"</font></font></td>")
document.writeln("<td><b>SKU:</b>"+this.sku+"</td>")
document.writeln("</tr>")
document.writeln("<tr>")
document.writeln("<td colspan='2' rowspan='1'><form action='shoppingcart.htm' onsubmit='return AddToCart(this)'>"+this.variations+"<br><input  type='image'  src='images/target-add.gif'></td>")
 document.writeln("<input type='hidden' _ID='"+this.sku+"' _NAME='"+this.product_name+"' _PRICE='"+this.sale_price+"' _WEIGHT='"+this.lbs+"' _LENGTH='"+this.L+"' _WIDTH='"+this.W+"' _HEIGHT='"+this.H+"'></form>")
document.writeln("</tr>")
document.writeln("<tr>")
document.writeln("<td colspan='2' rowspan='1'>"+this.info+"</td>")
document.writeln("</tr>")
document.writeln("<tr>")
document.writeln("<td colspan='2' rowspan='1'>"+this.description+"</td>")
document.writeln("</tr>")
document.writeln("<tr>")
document.writeln("<td colspan='2' rowspan='1'><br><br></td>")
document.writeln("</tr>")
document.writeln("</table>")
document.writeln("</td>")
document.writeln("</tr>")
document.writeln("<tr><td style='width: 783px;' colspan='2' rowspan='1'>"+this.tab_menu+"</td>")
document.writeln("</tr>")
document.writeln("</table>")
document.writeln("")
 document.writeln("</div>")
}

function listProduct(n) {
 setCookie("listproduct",n)
 window.location.href = "listproduct.htm"
}
