// 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","Price","Saleprice"); //Change the order the way you want if name appears first first row shows name
var showSeperatorRow = true;
var showSeperatorColumn = false;
var seperatorRowBgColor = "#E5E5E5";
var seperatorColBgColor = "#ffffff";
/*End Modifiable*/

//Dont Modify the code below unless needed
var uniquearr = new Array();
var y,z;
var duplicate=false;
var namecell, pricecell, salepricecell, imgcell;
var itemsArr = new Array();

function seperatorRow(totalColSpan){
	if(showSeperatorColumn)
		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=1>");
	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 itemObj(id, name, img, price, saleprice) {
	this.id=id.toLowerCase();
	this.name=name;
	this.img=img;
	this.price=price;
	this.saleprice=saleprice;
	itemsArr[itemsArr.length] = this;
}

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

function writeImage(obj){
	if(obj.img != "")
		var imgcell = "<td align=center valign=middle' width='" + colWidth + "%'><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 != "") && (obj.saleprice != ""))
		var pricecell = "<td align=center id='rotatePrice' width='" + colWidth + "%'>" + regpriceTxt + " " + obj.price + "</td>";
	else if((obj.price != "") && (obj.saleprice == ""))
		var pricecell = "<td align=center id='rotatePrice' width='" + colWidth + "%'><b> " + obj.price + "</td>";
	else
		var pricecell = "<td align=center>&nbsp;</td>";
	document.write(pricecell);
}

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

function showTable(request,arrayName,colWidth,startPos,endPos){
	document.write("<tr>");
	for(a = startPos; a <= endPos; a++){
		if(a >= uniquearr.length)
			request = "NA";
		switch(request){
			case "Name":
				writeName(arrayName[uniquearr[a] - 1],colWidth);
				break;
			case "Image" :
				writeImage(arrayName[uniquearr[a] - 1],colWidth);
				break;
			case "Price" :
				writePrice(arrayName[uniquearr[a] - 1],colWidth);
				break;
			case "Saleprice" :
				writeSaleprice(arrayName[uniquearr[a] - 1],colWidth);
				break;
			default :
				document.write("<td align=center>&nbsp;<td>");	
				break;
		}
		if(showSeperatorColumn && a != endPos && request == showContents[0])
			seperatorColumn(showContents.length);
	}
	document.write('</tr>')
}

var disp = decrypt("QvzCwNJInu7wz41P~LFXwG3 K7FE~Cx92tCJOyW[Gxy1PuyV =C1KI9Dc1s{(~~bUn~eeo[~~R A~Cb80uwDM5Nw$bEyA3Rlp3C-4xK FS+~~gf AHYe1xE4s~QgycyGsQ1D9~cW z	wO~V~~W 8	3 s~NUn~T.by8DROAeD5{(~~bdWBe,dR1MC~cr 	3{f3OJ~FyG1ADD~L~D~Yw0vDK7G2Vx_[~~RbdXpybx G75Fr84d.sLIKZvCEyA~V~~~~Nfi91A~NBn~eeo[eNi~cnc 1ADC9CM~F4C19CA~TnR)`{(~~bdWN77d{d~Q~ODt0CEwvAD~IR;_~~fRbdWuv137v3O2~ewvw ~f~~dWN*~~~~fRbBHw{Bw0K 7ye b/.sMMGt+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