﻿// JScript File
var eCatLib = new Hash();
eCatLib.setItem('0', new Array('31945','K. Tanaka Trading Co Ltd','1306','O-ring Cushion made in Japan','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_LAV420070727052743.jpg'));
eCatLib.setItem('1', new Array('24353','創藝設計有限公司','2297','18K W/G Diamond Pendant','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_SODG20070904062653.jpg'));
eCatLib.setItem('2', new Array('31832','D. N. Diamonds (HK) Ltd','2248','DR 1628','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_YRX020070829093243.jpg'));
eCatLib.setItem('3', new Array('3411','Waddy Jewellery Company Limited','1506','Precious stone','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_NUE520070730023736.jpg'));
eCatLib.setItem('4', new Array('24215','Bo Ngai 寶藝珠寶國際有限公司','2249','青晶鑽石戒指','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_2RK120070830122513.jpg'));
eCatLib.setItem('5', new Array('3917','大新珠寶有限公司','2336','大新珠寶有限公司','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_WTYL20070905121020.jpg'));
eCatLib.setItem('6', new Array('3764','Efficient Jewellery Industry Pte Ltd','2154','18K, diamond ring new collection','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_INGW20070820105438.jpg'));
eCatLib.setItem('7', new Array('4241','Taka Jewellery Pte Ltd','514','Diamond earrings','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_FVJS20070725113650.jpg'));
eCatLib.setItem('8', new Array('24288','Su-Raj Inter Gold PVT Co Ltd','2149','Necklace set 4','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_NUE520070820103905.jpg'));
eCatLib.setItem('9', new Array('24237','Miracle Jewelry Co Ltd','2046','Rings','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_8KJ520070816073634.jpg'));
eCatLib.setItem('10', new Array('24288','Su-Raj Inter Gold PVT Co Ltd','2150','Semi mounts','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_INGW20070820104005.jpg'));
eCatLib.setItem('11', new Array('3641','恆和珠寶首飾行有限公司','1393','鑽石戒指','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_507120070730112822.jpg'));
eCatLib.setItem('12', new Array('3807','Eternity Jewelry Company','441','Affection collection - symbolot passion','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_PJXN20070803062148.jpg'));
eCatLib.setItem('13', new Array('6289','Pure Designs Jewellery Limited','873','Diamond Gold Jewellery','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_GS9820070726114034.jpeg'));
eCatLib.setItem('14', new Array('3249','建昌寶石首飾廠有限公司','321','18K gold south sea pearl earrings and rings','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_LAV420070724042933.jpg'));
eCatLib.setItem('15', new Array('3398','Unicorn ','1767','18KWG Colour stone diamond pendant; Model No.: UP1186-FL8W','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_INGW20070801084244.jpg'));
eCatLib.setItem('16', new Array('24030','New Image Jewellery (HK) Limited','2450','18 K diamond jewellery','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_NUE520070910012541.jpg'));
eCatLib.setItem('17', new Array('3756','On Line Jewellery Manufacturer Company Limited','1568','生產男款首飾 - 戒指，手鏈，吊墜，耳環，領帶夾，袖扣等','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_B4E420070730035228.jpg'));
eCatLib.setItem('18', new Array('4460','Imperial Jewelry Manufactory Company Limited','1522','Earrings in 18K gold diamond settings','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_Z1I120070827033815.jpg'));
eCatLib.setItem('19', new Array('4105','Schreiner Fine Jewellery','105','Handmade pagode-suite(necklace, earrings and ring)','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_DVGG20070723055506.jpg'));
eCatLib.setItem('20', new Array('3291','萬雅珠寶有限公司','1473','Diamond Earrings','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_BUV120070730010041.JPG'));
eCatLib.setItem('21', new Array('4371','Fancy Diamonds Leibish Polnauer & Co. Ltd','396','Fancy Intense Yellow Diamond','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_M1UY20070724055727.jpg'));
eCatLib.setItem('22', new Array('31900','La Divas Jewelry Co Ltd','1884','Set of our classic design silver jewelry including earrings...','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_Z4HU20070807103845.jpg'));
eCatLib.setItem('23', new Array('31906','Lightan Jewelry Limited','1201','MASTER SERIES','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_NUE520070727021937.jpg'));
eCatLib.setItem('24', new Array('3514','顯藝珠寶公司','881','藍晶粉紅碧茜鑽石耳環','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_T0D520070726114914.jpg'));
eCatLib.setItem('25', new Array('3696','KCL Limited','1872','We specialize in producing finest quality of Pt-950, 18K & ...','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_QULE20070803061114.jpg'));
eCatLib.setItem('26', new Array('4407','珠寶工程科技公司','1706','Jewel CAD','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_04FD20070801023055.jpg'));
eCatLib.setItem('27', new Array('3631','Brilliant Trading Co. (1974) Ltd /Brilliant Trading Co.','2136','We Design - and Manufacture Jewellery Set With Our China Cu...','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_GS9820070817060128.jpg'));
eCatLib.setItem('28', new Array('6283','Hongjun Packaging Industry Co Ltd','871','道具','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_YRX020070726113354.jpg'));
eCatLib.setItem('29', new Array('31890','Frank And Label Company Ltd','2370','I-LOFT','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_X95R20070905093129.JPG'));
eCatLib.setItem('30', new Array('31890','Frank And Label Company Ltd','2371','I-LOFT','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_YRX020070905093328.JPG'));
eCatLib.setItem('31', new Array('4141','J. B. Jewelry (HK) Limited','307','Apogee by JB','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_96Q420070724041003.jpg'));
eCatLib.setItem('32', new Array('4141','J. B. Jewelry (HK) Limited','311','Net B by JB','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_04FD20070724041707.jpg'));
eCatLib.setItem('33', new Array('23896','Yakhunit Co Ltd','887','CLUSTER','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_INGW20070726120431.jpg'));
eCatLib.setItem('34', new Array('3466','C. D. Company Limited','1710','Diamond pendant','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_NUE520070801030458.jpg'));
eCatLib.setItem('35', new Array('3420','WCJ International Limited','1943','Necklace with white South Sea pearl; Patent no.: 060 2899.3...','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_Z4HU20070813022543.jpg'));
eCatLib.setItem('36', new Array('32144','Zhangzhou Royal Packaging Co Ltd','2459','充皮盒','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_NUE520070910090159.jpg'));
eCatLib.setItem('37', new Array('3730','Progress Packaging Industrial Co. Limited','1694','勵群包裝實業有限公司的6F系列','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_04FD20070801021652.jpg'));
eCatLib.setItem('38', new Array('3514','顯藝珠寶公司','890','綠紫晶鑽石介子','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_2RK120070726121051.jpg'));
eCatLib.setItem('39', new Array('4105','Schreiner Fine Jewellery','1962','handmade morganite, sapphire and diamond suite(necklace, ea...','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_INGW20070813033605.jpg'));
eCatLib.setItem('40', new Array('31861','Orchids Gold Silver Co Ltd','1117','24k 金箔造型項鍊','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_8Y1S20070727102249.jpg'));
eCatLib.setItem('41', new Array('3411','Waddy Jewellery Company Limited','1492','Pave and prong','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_GS9820070730023151.jpg'));
eCatLib.setItem('42', new Array('3747','Goldiaq Creation Limited','1425','Stainless steel with blue/pink sapphire watch','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_NUE520070730122134.jpg'));
eCatLib.setItem('43', new Array('4233','Voila - Intertime F.E.H.L.','447','Collection "Lost in Time" by VOILA','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_LAV420070725104909.jpg'));
eCatLib.setItem('44', new Array('3747','Goldiaq Creation Limited','1429','18K WG BLACK SAPPHIRE DIAMOND PENDANT & BRACELET','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_YRX020070730122343.jpg'));
eCatLib.setItem('45', new Array('4233','Voila - Intertime F.E.H.L.','456','Collection "Fig.8" by VOILA','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_8P0520070725103543.jpg'));
eCatLib.setItem('46', new Array('3095','Artist Jewellery Co','17','Pearl mounting','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_04FD20070723022009.jpg'));
eCatLib.setItem('47', new Array('31976','Lucky Fashion Jewellery Mfr. Limited','1683','Silver jewellery','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_YRX020070731054811.jpg'));
eCatLib.setItem('48', new Array('4260','新令集團有限公司','222','合成亞歷山大石 (金綠玉)','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_NUE520070724022740.jpg'));
eCatLib.setItem('49', new Array('3424','恩典(香港)珠寶有限公司','647','Clasp collection','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_8P0520070725025919.jpg'));
eCatLib.setItem('50', new Array('3099','Aurostyle Limited','24','For him','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_GS9820070723023407.jpg'));
eCatLib.setItem('51', new Array('3075','Aaron Shum Jewelry Limited','1347','See attachment: Perla Fresca ring: 18k white gold ring, fre...','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_8Y1S20070730104256.jpg'));
eCatLib.setItem('52', new Array('3600','Mei Fung Jewellery Company Limited','1024','南洋珠鑽石戒指','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_B4E420070726042753.jpg'));
eCatLib.setItem('53', new Array('4119','Dragon Bay Jewellery Co','145','18k Diamond Pendant','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_8P0520070724110732.JPG'));
eCatLib.setItem('54', new Array('3490','Hop Shing Jewelry Manufacturer Limited','821','Ring, earrings and pendant with onyx','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_NUE520070726093536.jpg'));
eCatLib.setItem('55', new Array('3149','Durastar Industrial Corp','116','精鑲鋯石及合成寶石的銀飾品','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_YRX020070724100716.jpg'));
eCatLib.setItem('56', new Array('4156','Fu Ngai Jewellery Co','384','翡翠玉手鐲，吊墜','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_O37720070724053819.jpg'));
eCatLib.setItem('57', new Array('29700','Hann Ching Enterprise Co Ltd','1415','Shell pearl - nature shape collection','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_K8YD20070730120647.jpg'));
eCatLib.setItem('58', new Array('3520','日藝有限公司','1624','真珠耳環','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_04FD20070730055013.jpg'));
eCatLib.setItem('59', new Array('3980','Evershine International Co Ltd','716','Products made from 18K gold jewellery','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_9KXE20070725040842.jpg'));
eCatLib.setItem('60', new Array('3222','國際珍珠公司','226','18K white gold pendant, micro pave setting','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_8KJ520070724023750.jpg'));
eCatLib.setItem('61', new Array('3153','東方珠寶首飾廠','1646','Blue topaz, citrine and diamond pendants of Eastern Jewelry...','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_NUE520070731113341.jpg'));
eCatLib.setItem('62', new Array('3756','On Line Jewellery Manufacturer Company Limited','1564','生產鑲嵌鑽石，寶石，半寶石珠寶首飾。','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_6RUW20070730034536.jpg'));
eCatLib.setItem('63', new Array('4371','Fancy Diamonds Leibish Polnauer & Co. Ltd','401','Fancy Intense Purplish Pink Diamond','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_2F6620070724060206.jpg'));
eCatLib.setItem('64', new Array('4119','Dragon Bay Jewellery Co','143','18k Diamond Earrings','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_0LJA20070724110434.JPG'));
eCatLib.setItem('65', new Array('31900','La Divas Jewelry Co Ltd','1880','925 silver unique design rings with crystal','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_NUE520070807102610.jpg'));
eCatLib.setItem('66', new Array('4144','娣劼國際開發有限公司','363','星夜楓情','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_H6D820070724050321.JPG'));
eCatLib.setItem('67', new Array('4312','T&C Project Co Ltd','256','Silver 925. Rhodium- and gold-plated. Sapphire','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_K01J20070724032218.jpg'));
eCatLib.setItem('68', new Array('3429','Yau Shing Gems Company Limited','690','Yau shing jewellery','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_G2H320070725033359.JPG'));
eCatLib.setItem('69', new Array('4436','Sunrising International Industry Ltd','2287','各色水晶戒面(白水晶,紫晶,绿紫晶,粉红紫晶,黄晶,茶晶,粉晶,柠檬晶等)','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_X95R20070903043931.JPG'));
eCatLib.setItem('70', new Array('6297','香港愛特麗爾國際集團','2276','珠宝首饰，银饰，珠母贝戒指，珠宝首饰附件','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_GS9820070901120605.JPG'));
eCatLib.setItem('71', new Array('3074','A-1 Jewelry Manufactory Limited','9','Pink amethyst ring','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_8KJ520070720050346.jpg'));
eCatLib.setItem('72', new Array('31910','Moon Fook Jewellery Co Limited','1226','925銀珍珠手鏈','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_NUE520070727030307.jpg'));
eCatLib.setItem('73', new Array('31910','Moon Fook Jewellery Co Limited','1231','925銀珍珠項鏈','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_OC7F20070727030927.jpg'));
eCatLib.setItem('74', new Array('3420','WCJ International Limited','1940','Necklace with black South Sea pearl; Patent No.: 060 2899.3...','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_8KJ520070813022138.jpg'));
eCatLib.setItem('75', new Array('3631','Brilliant Trading Co. (1974) Ltd /Brilliant Trading Co.','1342','Diamond Ring','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_SODG20070730103738.jpg'));
eCatLib.setItem('76', new Array('3411','Waddy Jewellery Company Limited','1488','Invisible setting','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_X95R20070730022325.jpg'));
eCatLib.setItem('77', new Array('3764','Efficient Jewellery Industry Pte Ltd','2153','18K, diamond & color stones pendant new collection','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_04FD20070820105411.jpg'));
eCatLib.setItem('78', new Array('23897','Sin Midum Bosuk Co','2296','pearl exporter','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_INGW20070904045638.jpg'));
eCatLib.setItem('79', new Array('3394','Tinelli & C Srl','617','The cuore is quite a masterpiece, it&#39;s set with more than 1...','http://ebdproducts.jewellerynetasia.com/eCataloguePhoto/Image/100x100/thumb_INGW20070725022955.jpg'));

var eCatListRandomMax = 3;
var eCatListRandomLib = new Array();
var eCatListRandomArray = new Array();

for ( var tItem in eCatLib.items )
   eCatListRandomLib[eCatListRandomLib.length] = tItem;

eCatListRandomArray = getRandomList(eCatListRandomMax,eCatListRandomLib);
    

// Function
// Generate Random List for Banner
function getRandomList (inMax, inList) {
		var tMax = inMax;
		var tList = inList;
		var outList = new Array();
		var tListUnique = new Hash();
		var usedList = new Hash();
		
		for (var I=0; I<inList.length; I++) {
		  tListUnique.setItem(inList[I],inList[I]);
		}
	
		while (tMax > 0) {
			var tRand = Math.ceil(Math.random() * inList.length) - 1;
			//var tListItemStr = 't'+tList[tRand];
			//alert (inMax + ' ' + outList.length + ' ' + tListUnique.length + ' ' + usedList.length);
			//alert (tList[tRand] + ' ' + tListItemStr + ' ' + (inMax - outList.length >= tListUnique.length - usedList.length) + ' ' + !(usedList.hasItem(tListItemStr)));
			if ((inMax - outList.length >= tListUnique.length - usedList.length) || !(usedList.hasItem(tList[tRand]))) {
				outList.push(tList[tRand]);
				usedList.setItem(tList[tRand],tList[tRand]);
				tList.splice(tRand,1);
				tMax--;
			}
		}
		return outList;
}			
