/*  BMT 216A myshop class file *  Copyright (C) 2001-2002 Preben S¿gaard, Denmark *  Only for use on the 'BMT 216A The James Bond Vehicle Library' web page. *	Any other use prohibited without written consent from the webmaster *	Contact: information"@"bmt216a.dk     (address anti-Spammed - remove ") */PICTUREPATH_SHOP	= "http://www.bmt216a.dk/Shop/Items/Pictures/";THUMBPATH_SHOP		= "http://www.bmt216a.dk/Shop/Items/Thumbs/";IMAGEPATH			= "http://www.bmt216a.dk/Shop/System/Images/";// translationsinStockTxt 			= new Array ("In&nbsp;stock",	"Lagervare"					);outOfStockTxt 		= new Array ("Currently&nbsp;not&nbsp;in&nbsp;stock",	"Ikke&nbsp;p&aring;&nbsp;lager"	);orderTxt			= new Array ("Pre-order",		"Bestilling");itemNoTxt 			= new Array ("Item#",		"Varenr."					);itemTxt				= new Array ("Item",		"Vare"						);qtyTxt				= new Array ("Number",		"Antal"						);priceTxt			= new Array ("Price",		"Pris"						);lenTxt 				= new Array ("Length",		"L&aelig;ngde"				);detailTxt 			= new Array ("Details",		"Detaljer"					);weightTxt			= new Array ("Shipping&nbsp;weight",		"Forsendelses&nbsp;v&aelig;gt"	);currencyTxt			= new Array ("Euro",		"DKK"						);colourTxt			= new Array ("Colour",		"Farve"						);scaleTxt			= new Array	("Scale",		"Skala"						);listPriceTxt		= new Array ("List&nbsp;Price",	"Vejl.pris"					);specialOfferTxt		= new Array ("Special&nbsp;offer","Special&nbsp;tilbud"	);normPriceTxt		= new Array ("70,75",		"525,00"					);addToBasketTxt		= new Array ("Adding&nbsp;to&nbsp;basket","L&aelig;gges&nbsp;i&nbsp;kurven"		);withPlasticTxt		= new Array ("&nbsp;with&nbsp;plastic&nbsp;parts","&nbsp;med&nbsp;plastik&nbsp;dele"	);salePriceTxt		= new Array ("Standard&nbsp;price",	"Normalpris"			);partsTxt			= new Array ("Pieces",		"Dele"						);skillTxt			= new Array ("Skill",		"Sv&aelig;rhedsgrad"			);categoryTxt			= new Array ("Select a category",	"V&aelig;lg en varegruppe"	);//manufactor			= new Array ("?", "Corgi", "AutoArt", "MiniChamps", "MiniCraft", "Airfix"		);modelTypeTxt		= new Array ("All (6)", "Die-Cast (4)", "Plastic kit (2)"	);if (document.images) {	basket			= new Image;	basketBlue		= new Image;	basket.src		= IMAGEPATH + "b_basket.gif";	basketBlue.src	= IMAGEPATH + "b_basket_b.gif";	}// CLASS DEFINITION:function ShopItem() {	this.itemCategory			= null;	this.recordKey				= null;	this.itemID					= null;	this.subItem				= null;		this.initializeFromString	= initializeFromStringItem;	this.generateHTML			= generateItemHTML;	this.generateAcceptText		= generateItemAcceptText;	this.getTitle				= getItemTitle;	this.getKey					= getItemKey;	this.getID					= getItemID;	this.getPrice				= getItemPrice;	this.getListPrice			= getItemListPrice;	this.getWeight				= getItemWeight;	this.getCategory			= getItemCategory;	this.getPictures			= getItemPictures;}// initialize an item from the stringfunction initializeFromStringItem(itemData) {	mainInfo			= itemData.split("*");	this.itemCategory	= mainInfo[0];	this.recordKey		= mainInfo[1];	this.itemID			= mainInfo[2];	this.subItem		= getSubItemByID(mainInfo[0]);	tmpArray			= itemData.split("*");	tmpArray			= tmpArray.slice(1);	subInfo				= tmpArray.join("*");	this.subItem.initializeFromString(subInfo);}function generateItemHTML(type, currency) {	var HTMLStr	= "";	HTMLStr = HTMLStr + this.subItem.generateHTML(type, currency);	return HTMLStr;}function generateItemAcceptText(language) {	return this.subItem.generateAcceptText(language);}function getItemKey() {	return this.recordKey;}function getItemID() {	return this.itemID;}function getItemTitle() {	return this.subItem.getTitle();}function getItemPrice(currency) {	return this.subItem.getPrice(currency);}function getItemListPrice(currency) {	return this.subItem.getListPrice(currency);}function getItemWeight() {	return this.subItem.getWeight();}function getItemCategory() {	return this.subItem.getCategory();}function getItemPictures() {	return this.subItem.getPictures();}//   --------------------// subItem FACTORYfunction getSubItemByID(subItemID){	var rc		= null;	switch (subItemID) {		case "0":			rc	= new SubItemBook();			break;		case "1":			rc	= new SubItemModel();			break;		case "2":			rc	= new SubItemModelSet();			break;		case "3":			rc	= new SubItemKit();			break;	}	return rc;}//   --------------------function SubItemBase() {	this.generateHTML			= generateHTMLSubItemBase;	this.generateAcceptText		= generateAcceptTextSubItemBase;	this.initializeFromString	= null;	this.getTitle				= getTitleSubItemBase;	this.getKey					= getKeySubItemBase;	this.getID					= getIDSubItemBase;	this.getPrice				= getPriceSubItemBase;	this.getListPrice			= getListPriceSubItemBase;	this.getWeight				= getWeightSubItemBase;	this.getCategory			= getCategorySubItemBase;	this.getPictures			= getPicturesSubItemBase;}function generateHTMLSubItemBase(type, currency) {	alert("Forgot to implement generateHTML(type, currency)");}function generateAcceptTextSubItemBase(language) {	alert("Forgot to implement generateAcceptText()");}function getTitleSubItemBase() {	alert("Forgot to implement getTitle()");}function getKeySubItemBase() {	alert("Forgot to implement getKey()");}function getIDSubItemBase() {	alert("Forgot to implement getID()");}function getPriceSubItemBase(currency) {	alert("Forgot to implement getPrice(currency)");}function getListPriceSubItemBase(currency) {	alert("Forgot to implement getListPrice(currency)");}function getWeightSubItemBase() {	alert("Forgot to implement getWeight()");}function getCategorySubItemBase() {	alert("Forgot to implement getCategory()");}function getPicturesSubItemBase() {	alert("forgot to implement getPictures()");}//   --------------------// subClass Bookfunction SubItemBook() {	this.generateHTML			= generateBookHTML;	this.initializeFromString	= initializeFromStringBook;}SubItemBook.prototype	= new SubItemBase;function generateBookHTML(data, currency) {	var rc		= "";		rc	= this.temp;	return rc;}function initializeFromStringBook(data) {	this.temp	= data;}//   --------------------// subClass Modelfunction SubItemModel() {	this.generateHTML			= generateModelHTML;	this.generateAcceptText		= generateModelAcceptText;	this.initializeFromString	= initializeFromStringModel;	this.getTitle				= getModelTitle;	this.getKey					= getModelKey;	this.getID					= getModelID;	this.getPrice				= getModelPrice;	this.getListPrice			= getModelListPrice;	this.getWeight				= getModelWeight;	this.getCategory			= getModelCategory;	this.getPictures			= getModelPictures;}SubItemModel.prototype	= new SubItemBase();function initializeFromStringModel(data) {	itemdata					= data.split("*");	this.recordKey				= itemdata[0];	this.itemID					= itemdata[1];	this.priceEUR				= itemdata[2];	this.priceDKK				= itemdata[3];	this.listPriceEUR			= itemdata[4];	this.listPriceDKK			= itemdata[5];	this.modelWeight			= itemdata[6];	this.pictureIDs				= itemdata[7].split(" ");	this.producer				= itemdata[8];	this.modelType				= itemdata[9];	this.features				= itemdata[10];	this.vehicleID				= itemdata[11];	if (this.vehicleID != "") {		this.vehicle = new Vehicle;		this.vehicle.initializeFromString( bondVehicle[this.vehicleID] );	}	this.length					= itemdata[12];	this.colour					= itemdata[13];	this.stock					= itemdata[14];	this.scale					= itemdata[15];}function getModelTitle() {	return this.vehicle.getModel();}function getModelKey() {	return this.recordKey;}function getModelID() {	return this.itemID;}function getModelWeight() {	return this.modelWeight;}function getModelCategory() {	return this.modelType;//	return this.itemCategory;}function getModelPrice(currency) {	var rc = "";	switch (currency) {	case 0:		return this.priceEUR.replace(',','.') + "&nbsp;";		break;				case 1:		return this.priceDKK + "&nbsp;";		break;				case 2:		return this.priceEUR.replace(',','');		break;				case 3:		return this.priceDKK.replace(',','');		break;				}	return rc;}function getModelListPrice(currency) {	var rc = "";	switch (currency) {	case 0:		return this.listPriceEUR.replace(',','.');		break;				case 1:		return this.listPriceDKK;		break;				case 2:		return this.listPriceEUR.replace(',','');		break;				case 3:		return this.listPriceDKK.replace(',','');		break;				}	return rc;}function getModelPictures() {	var rc	= new Array();	for (i in this.pictureIDs) {		rc[i] =	PICTUREPATH_SHOP + this.pictureIDs[i] + ".jpg"	}	return rc;}function generateModelAcceptText(language) {	var rc = "One item added in the basket :\n";	rc += "\n" + this.vehicle.getModel() + ", 1:" + this.scale;	rc += "\n" + manufactor[this.producer];	if (language == LANGUAGE_UK) {		rc += "\nPrice (euro) : " + this.priceEUR.replace(',','.');		} else {		rc += "\nPris (DKK) : " + this.priceDKK;	}	return rc;}function generateModelHTML(type, currency) {	var rc			= "";	modelTypeTxt	= new Array ("?", "Die-Cast", "Plastic kit");	switch (type) {		case 0:			rc	= "<td class='box' width='*'>";			rc	+= this.vehicle.getModel();			rc	+= ", 1:" +this.scale;			rc	+= ", <i>" + modelTypeTxt[this.modelType] + "</i>";			rc	+= "</td><td class='box' width='10%' align='right'>";			rc	+= this.getPrice(currency);					rc	+= "</td>";			return rc;			break;		case 1:			// Thumbnail image for added to basket			rc = "<td class='box' valign='center' align='center' width='10%'><img src='";			rc += THUMBPATH_SHOP + this.pictureIDs[0] + ".jpg' border='0' width='120' height='60'>";			rc += "</td>";			return rc;			break;		case 2:			// Thumbnail image for catalogue list			rc = "<td class='box' valign='center' align='center' width='10%'><img src='";			rc += THUMBPATH_SHOP + this.pictureIDs[0] + ".jpg' border='0' width='120' height='60'>";			rc += "<br /><a href='Items/" + this.itemID + ".html'>" + detailTxt[currency] + "</a>";			rc += "</td>";			return rc;			break;		case 3:		case 4:			// Item details for added to basket & catalogue list			rc = "<td class='box' width='75%'>";			if (type == 4) {				rc += "<b class='blue'>"+ this.vehicle.getModel() + "</b>,&nbsp;";			}			rc += "<b>1:" + this.scale + "</b>";			rc += "<br /><b>" + manufactor[this.producer] + "</b>, ";			rc += modelTypeTxt[this.modelType];			rc += "<br />" + lenTxt[currency] + " : " + this.length + " mm.";			rc += "<br />" + itemNoTxt[currency] + " : " + this.itemID + "</td>";			break;		case 5:			// Price for catalogue list			rc = "<table width='100%' summary=''>";			rc += "<tr><td width='67%' align='right'><b>";			rc += this.getPrice(currency);			rc += "</b></td><td width='33%'><a href='javascript:addItemToBasket(" + this.recordKey + ")'";			rc += " onmouseover='document.item" + this.recordKey + ".src=basketBlue.src'";			rc += " onmouseout='document.item" + this.recordKey + ".src=basket.src'>";			rc += "<img src='System/Images/b_basket.gif'";			rc += " name='item" + this.recordKey + "'";			rc += " height='16'";			rc += " width='19'";			rc += " border='0'></A></td></tr></table>";			break;		case 6:			// Image, price and details for item page 			rc =  "<tr><td class='box' width='340' align='center' rowspan='3'>";			rc += "<img src='"+ PICTUREPATH_SHOP + this.pictureIDs[0] + ".jpg' border='0' width='320' height='160'><br />";			rc += "<img src='"+ PICTUREPATH_SHOP + this.pictureIDs[1] + ".jpg' border='0' width='320' height='160' name='curSlide'></td>";			rc += "<td class='box' width='95%' valign='top'><h3>" + priceTxt[currency] + "</h3>";			rc += "<center>";			rc += "<p><b>" + this.getPrice(currency) + "&nbsp;" + currencyTxt[currency] + "&nbsp;";			rc += "<a href='javascript:addItemToBasket(" + this.recordKey + ")' onmouseover='document.item" + this.recordKey + ".src=basketBlue.src' onmouseout='document.item" + this.recordKey + ".src=basket.src'>";			rc += "<img src='../System/Images/b_basket.gif' name='item" + this.recordKey + "' height='16' width='19' border='0'>";			rc += "</a></b></p></center></td></tr><tr><td class='box' valign='top'><h3>";			rc += detailTxt[currency] + "</h3><table><tr><td class='box' width='50%' align='center' colspan='2'><b>Die-Cast";			rc += withPlasticTxt[currency] + "</b></td></tr>";			rc += "<tr><td class='box' width='50%' align='right'>" + scaleTxt[currency] + "</td><td class='box' width='50%'><b>1&nbsp;:&nbsp;" + this.scale + "</b></td></tr>";			rc += "<tr><td class='box' width='50%' align='right'>" + lenTxt[currency] + "</td><td class='box' width='50%'><b>" + this.length + " mm.</b></td></tr>";			rc += "<tr><td class='box' width='50%' align='right'>" + weightTxt[currency] + "</td><td class='box' width='50%'><b>" + this.modelWeight + " gr.</b></td></tr>";			rc += "<tr><td class='box' width='50%' align='right'>" + colourTxt[currency] + "</td><td class='box' width='50%'><b>" + this.colour + "</b></td></tr>";			rc += "<tr><td class='box' width='50%' align='right'>" + itemNoTxt[currency] + "</td><td class='box' width='50%'>" + this.itemID + "</td></tr></table></td></tr>";			rc += "<tr><td class='box' align='center'><b class='blue'>" + inStockTxt[currency] + "</b></td></tr>";	}	return rc;}//   --------------------// subClass ModelSetfunction SubItemModelSet() {	this.generateHTML			= generateModelSetHTML;	this.generateAcceptText		= generateModelSetAcceptText;	this.initializeFromString	= initializeFromStringModelSet;	this.getTitle				= getModelSetTitle;	this.getKey					= getModelSetKey;	this.getID					= getModelSetID;	this.getPrice				= getModelSetPrice;	this.getListPrice			= getModelSetListPrice;	this.getWeight				= getModelSetWeight;	this.getCategory			= getModelSetCategory;}SubItemModelSet.prototype	= new SubItemBase();function initializeFromStringModelSet(data) {	itemdata					= data.split("*");	this.recordKey				= itemdata[0];	this.itemID					= itemdata[1];	this.priceEUR				= itemdata[2];	this.priceDKK				= itemdata[3];	this.listPriceEUR			= itemdata[4];	this.listPriceDKK			= itemdata[5];	this.modelSetWeight			= itemdata[6];	this.pictureIDs				= itemdata[7].split(" ");	this.producer				= itemdata[8];	this.modelType				= itemdata[9];	this.scale					= itemdata[10];	this.setTitle				= itemdata[11];}function getModelSetTitle() {	return this.setTitle;}function getModelSetKey() {	return this.recordKey;}function getModelSetID() {	return this.itemID;}function getModelSetWeight() {	return this.modelSetWeight;}function getModelSetCategory() {//	return this.itemCategory;	return this.modelType;}function getModelSetPrice(currency) {	var rc = "";	switch (currency) {	case 0:		return this.priceEUR.replace(',','.') + "&nbsp;";		break;				case 1:		return this.priceDKK + "&nbsp;";		break;				case 2:		return this.priceEUR.replace(',','');		break;				case 3:		return this.priceDKK.replace(',','');		break;				}	return rc;}function getModelSetListPrice(currency) {	var rc = "";	switch (currency) {	case 0:		return this.listPriceEUR.replace(',','.');		break;				case 1:		return this.listPriceDKK;		break;				case 2:		return this.listPriceEUR.replace(',','');		break;				case 3:		return this.listPriceDKK.replace(',','');		break;				}	return rc;}function generateModelSetAcceptText(language) {	var rc = "One item added in the basket :\n";	rc += "\n" + this.setTitle();	rc += "\n" + manufactor[this.producer];	if (language == LANGUAGE_UK) {		rc += "\nPrice (euro) : " + this.priceEUR.replace(',','.');		} else {		rc += "\nPris (DKK) : " + this.priceDKK;	}	return rc;}function generateModelSetHTML(type, currency) {	var rc			= "";	modelTypeTxt	= new Array ("?", "Die-Cast", "Plastic kit");	switch (type) {		case 0:			rc	= "<td class='box' width='*'>";			rc	+= this.setTitle;			rc	+= "</td><td class='box' width='10%' align='right'>";			rc	+= this.getPrice(currency);					rc	+= "</td>";			return rc;			break;		case 1:			// Thumbnail image for added to basket			rc = "<td class='box' valign='center' align='center' width='10%'><img src='";			rc += THUMBPATH_SHOP + this.pictureIDs[0] + ".jpg' border='0' width='120' height='60'>";			rc += "</td>";			return rc;			break;		case 2:			// Thumbnail image for catalogue list			rc = "<td class='box' valign='center' align='center' width='10%'><img src='";			rc += THUMBPATH_SHOP + this.pictureIDs[0] + ".jpg' border='0' width='120' height='60'>";			rc += "</td>";			return rc;			break;		case 3:		case 4:			// Item details for added to basket & catalogue list			rc = "<td class='box' width='75%'>";			if (type == 4) {				rc += "<b class='blue'>"+ this.setTitle + "</b>,&nbsp;<b>1:"+this.scale+"</b>";			}			rc += "<br /><b>" + manufactor[this.producer] + "</b>, ";			rc += modelTypeTxt[this.modelType];			rc += "<br />Aston Martin V12 Vanquish, Jaguar XKR convertible & Ford Thunderbird.";			rc += "<br />" + itemNoTxt[currency] + " : " + this.itemID + "</td>";			break;		case 5:			// Price for catalogue list			rc = "<table width='100%' summary=''>";			rc += "<tr><td width='67%' align='right'><b>";			rc += this.getPrice(currency);			rc += "</b></td><td width='33%'><a href='javascript:addItemToBasket(" + this.recordKey + ")'";			rc += " onmouseover='document.item" + this.recordKey + ".src=basketBlue.src'";			rc += " onmouseout='document.item" + this.recordKey + ".src=basket.src'>";			rc += "<img src='System/Images/b_basket.gif'";			rc += " name='item" + this.recordKey + "'";			rc += " height='16'";			rc += " width='19'";			rc += " border='0'></A></td></tr></table>";			break;	}	return rc;}//   --------------------// subClass Kitfunction SubItemKit() {	this.generateHTML			= generateKitHTML;	this.generateAcceptText		= generateKitAcceptText;	this.initializeFromString	= initializeFromStringKit;	this.getTitle				= getKitTitle;	this.getKey					= getKitKey;	this.getID					= getKitID;	this.getPrice				= getKitPrice;	this.getListPrice			= getKitListPrice;	this.getWeight				= getKitWeight;	this.getCategory			= getKitCategory;}SubItemKit.prototype	= new SubItemBase();function initializeFromStringKit(data) {	itemdata					= data.split("*");	this.recordKey				= itemdata[0];	this.itemID					= itemdata[1];	this.priceEUR				= itemdata[2];	this.priceDKK				= itemdata[3];	this.listPriceEUR			= itemdata[4];	this.listPriceDKK			= itemdata[5];	this.modelWeight			= itemdata[6];	this.pictureIDs				= itemdata[7].split(" ");	this.producer				= itemdata[8];	this.modelType				= itemdata[9];	this.vehicleID				= itemdata[10];	if (this.vehicleID != "") {		this.vehicle = new Vehicle;		this.vehicle.initializeFromString( bondVehicle[this.vehicleID] );	}	this.length					= itemdata[11];	this.stock					= itemdata[12];	this.scale					= itemdata[13];	this.skill					= itemdata[14];	this.parts					= itemdata[15];}function getKitTitle() {	return this.vehicle.getModel();}function getKitKey() {	return this.recordKey;}function getKitID() {	return this.itemID;}function getKitWeight() {	return this.modelWeight;}function getKitCategory() {//	return this.itemCategory;	return this.modelType;}function getKitPrice(currency) {	var rc = "";	switch (currency) {	case 0:		return this.priceEUR.replace(',','.') + "&nbsp;";		break;				case 1:		return this.priceDKK + "&nbsp;";		break;				case 2:		return this.priceEUR.replace(',','');		break;				case 3:		return this.priceDKK.replace(',','');		break;				}	return rc;}function getKitListPrice(currency) {	var rc = "";	switch (currency) {	case 0:		return this.listPriceEUR.replace(',','.');		break;				case 1:		return this.listPriceDKK;		break;				case 2:		return this.listPriceEUR.replace(',','');		break;				case 3:		return this.listPriceDKK.replace(',','');		break;				}	return rc;}function generateKitAcceptText(language) {	var rc = "One item added in the basket :\n";	rc += "\n" + this.vehicle.getModel() + ", 1:" + this.scale;	rc += "\n" + manufactor[this.producer];	if (language == LANGUAGE_UK) {		rc += "\nPrice (euro) : " + this.priceEUR.replace(',','.');		} else {		rc += "\nPris (DKK) : " + this.priceDKK;	}	return rc;}function generateKitHTML(type, currency) {	var rc			= "";	modelTypeTxt	= new Array ("?", "Die-Cast", "Plastic kit");	switch (type) {		case 0:			rc	= "<td class='box' width='*'>";			rc	+= this.vehicle.getModel();			rc	+= ", 1:" +this.scale;			rc	+= ", <i>" + modelTypeTxt[this.modelType] + "</i>";			rc	+= "</td><td class='box' width='10%' align='right'>";			rc	+= this.getPrice(currency);					rc	+= "</td>";			return rc;			break;		case 1:			// Thumbnail image for added to basket			rc = "<td class='box' valign='center' align='center' width='10%'><img src='";			rc += THUMBPATH_SHOP + this.pictureIDs[0] + ".jpg' border='0' width='120' height='60'>";			rc += "</td>";			return rc;			break;		case 2:			// Thumbnail image for catalogue list			rc = "<td class='box' valign='center' align='center' width='10%'><img src='";			rc += THUMBPATH_SHOP + this.pictureIDs[0] + ".jpg' border='0' width='120' height='60'>";			rc += "<br /><a href='Items/" + this.itemID + ".html'>" + detailTxt[currency] + "</a>";			rc += "</td>";			return rc;			break;		case 3:		case 4:			// Item details for added to basket & catalogue list			rc = "<td class='box' width='75%'>";			if (type == 4) {				rc += "<b class='blue'>"+ this.vehicle.getModel() + "</b>,&nbsp;";			}			rc += "<b>1:" + this.scale + "</b>";			rc += "<br /><b>" + manufactor[this.producer] + "</b>, ";			rc += modelTypeTxt[this.modelType];			rc += "<br />" + lenTxt[currency] + " : " + this.length + " mm.";			rc += "<br />" + itemNoTxt[currency] + " : " + this.itemID + "</td>";			break;		case 5:			// Price for catalogue list			rc = "<table width='100%' summary=''>";			rc += "<tr><td width='67%' align='right'><b>";			rc += this.getPrice(currency);			rc += "</b></td><td width='33%'><a href='javascript:addItemToBasket(" + this.recordKey + ")'";			rc += " onmouseover='document.item" + this.recordKey + ".src=basketBlue.src'";			rc += " onmouseout='document.item" + this.recordKey + ".src=basket.src'>";			rc += "<img src='System/Images/b_basket.gif'";			rc += " name='item" + this.recordKey + "'";			rc += " height='16'";			rc += " width='19'";			rc += " border='0'></A>";			rc += "</td></tr></table>";			if (this.stock == 0 ) {				rc += "<center><b class='blue'>" + outOfStockTxt[currency] + "</b></center>";			}			break;		case 6:			// Image, price and details for item page			rc =  "<tr><td class='box' width='340' align='center' rowspan='3'>";			for (i in this.pictureIDs) {				rc += "<img src='"+ PICTUREPATH_SHOP + this.pictureIDs[i] + ".jpg' border='0' width='320' height='160'><br />";//				rc += "<img src='"+ PICTUREPATH_SHOP + this.pictureIDs[1] + ".jpg' border='0' width='320' height='160'></td>";			}/*			rc += "</td><td class='box' width='95%' valign='top'>";			rc += "<h3>" + priceTxt[currency] + "</h3>";			rc += "<center>";			rc += "<p><b>" + this.getPrice(currency) + "&nbsp;" + currencyTxt[currency] + "&nbsp;";			rc += "<a href='javascript:addItemToBasket(" + this.recordKey + ")' onmouseover='document.item" + this.recordKey + ".src=basketBlue.src' onmouseout='document.item" + this.recordKey + ".src=basket.src'>";			rc += "<img src='Shop/System/Images/b_basket.gif' name='item" + this.recordKey + "' height='16' width='19' border='0'>";			rc += "</a></b></p></center></td></tr><tr>";*/			rc += "<td class='box' valign='top' width='95%'><h3>";			rc += detailTxt[currency] + "</h3><table summary=''><tr><td class='box' width='50%' align='center' colspan='2'><b>";			rc += modelTypeTxt[this.modelType] + "</b></td></tr>";			rc += "<tr><td class='box' width='50%' align='right'>" + scaleTxt[currency] + "</td><td class='box' width='50%'><b>1&nbsp;:&nbsp;" + this.scale + "</b></td></tr>";			rc += "<tr><td class='box' width='50%' align='right'>" + lenTxt[currency] + "</td><td class='box' width='50%'><b>" + this.length + " mm.</b></td></tr>";			rc += "<tr><td class='box' width='50%' align='right'>" + partsTxt[currency] + "</td><td class='box' width='50%'><b>" + this.parts + "</b></td></tr>";			rc += "<tr><td class='box' width='50%' align='right'>" + skillTxt[currency] + "</td><td class='box' width='50%'><b>" + this.skill + "</b></td></tr>";			rc += "<tr><td class='box' width='50%' align='right'>" + weightTxt[currency] + "</td><td class='box' width='50%'><b>" + this.modelWeight + " gr.</b></td></tr>";			rc += "</table></td></tr>";						rc += "<tr><td class='box' align='center'><b class='blue'>";			if (this.stock != 0) {				rc += inStockTxt[currency]; 			} else {				rc += outOfStockTxt[currency]; 			}			rc += "</b>";			rc += "<table summary=''><tr><td class='box' width='50%' align='right'>" + itemNoTxt[currency] + "</td><td class='box' width='50%'>" + this.itemID + "</td></tr>";			rc += "</table></td></tr>";			rc += "<td class='box' width='95%' valign='top'>";			rc += "<h3>" + priceTxt[currency] + "</h3>";			rc += "<center>";			rc += "<p><b>" + this.getPrice(currency) + "&nbsp;" + currencyTxt[currency] + "&nbsp;";			rc += "<a href='javascript:addItemToBasket(" + this.recordKey + ")' onmouseover='document.item" + this.recordKey + ".src=basketBlue.src' onmouseout='document.item" + this.recordKey + ".src=basket.src'>";			rc += "<img src='../System/Images/b_basket.gif' name='item" + this.recordKey + "' height='16' width='19' border='0'>";			rc += "</a>";			if (this.stock == 0) {				rc += "<br /></b><b class='blue'>" + orderTxt[currency] + "&nbsp;(" + outOfStockTxt[currency] + ")"; 			}			rc += "</b></p></center></td></tr>";	}	return rc;}//   --------------------// END OF CLASS DEFINITIONS//   --------------------