/*
 This set of source codes is protected by international copyright laws...
 No copying is allowed. 
 http://www.mp34store.com
 Copyright (C) 2007. All Rights Reserved.
 Version: NE 0.90a
*/

Products=new Array("MP3","MP4","Accessories","Flash-memory Drive","SD Card","Card Reader","USB Hubs","Speakers","Speaker Stands / Mounting Kits","Audio/Video Cables");
var sBrands=new Array("Apple","AudioVox","Coby","Exigo","iRiver","Jwin","Luxpro","Philips","Philips/Nike","Rio","Samsung","SanDisk","Sony","Creative","RCA","OEM/others","Microsoft",
"LogiTech","Altec Lansing","Magnavox","Compaq","Naxa","Supersonic","Kingston","JVC","Espidi","Jensen","Orbitor Electonic","Cbyer Acoustics","Kng America","Lexar","Lenmax","Kingsington","Keyspan","Emerge Tech","Toshiba","Memorex","No brand","Trek","Imation","Vina","ILuv","iPone","Belkin","Griffins","IOGears","Macally","Mizco","Targus","Ricco","Edge Tech","PNY","HomeTech","Hi-Fi Works","Impact Acoustics","Impact Research","Alantic","Premier Mounts","Sanus","Dell","SDat","Protron","DreamGear","ArtDio","Maxell");

//var szaBargain=new Array("10030700","10260510","10070100","10070300","10413020",/*"10413150"*/"10413110",/*"10413120"*/"10384000",/*"10042010"*/"10042040");
//var szaBestBuy=new Array("10260510","10070300","10413110","10413020","10121020","10042040","10387140","10384000","10035510","10255010","10226010","10036420","10036510","10236610");
//var szaRecommendedBuys=new Array("10070300","10070100","10260510","10413020","10435510","10387120","10387212","10388100",/*"10413150"*/"10413110",/*"10413120"*/"10384000",/*"10042010"*/"10042040","10042050");
//var szaRecommendedMP34=new Array("10070300","10070100","10260510");
//var szaRecommendedOP=new Array("10413020","10435510","10387120","10387212","10388100",/*"10413150"*/"10413110",/*"10413120"*/"10384000",/*"10042010"*/"10042040","10042050");
//var szaRecommendedIPA=new Array("10388100","10384000","10435510");

//var szaRecommendedIPA=new Array("10388100","10384000","10435510");

var nBrandsCode=new Array(10010000,10020000,10030000,10040000,10050000,10060000,10070000,10080000,10090000,10100000,10110000,10120000,10130000,10140000,10150000,10160000,10170000,10180000,10190000,10200000,10210000,10220000,10230000,10240000,10250000,10260000,10270000,10280000,10290000,10300000,10310000,10320000,10330000,10340000,10350000,10360000,10370000,10380000,10390000,10400000,10410000,10420000,10430000,10440000,10450000,10460000,10470000,10480000,10490000,10500000,10510000,10520000,10530000,10540000,10550000,10560000,10570000,10580000,10590000,10600000,10610000,10620000,10630000,10640000,10650000);
var nBrands3DCode=new Array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50);
var	Column=new Array(
                      "pics/newshuffle1gb.JPG","Apple Ipod Shuffle (2nd Gen) 1GB MP3 Player","10010110","MP3","1 GB","89.99","14.99","-","-","-","-","12 hrs","Flash","-","-","-","descs/NEWSHUFFLE1GB.htm","pics_large/newshuffle1gb.JPG","a) Most popular MP3 brand in USA.<br>b) Good software integration.","119.99","1","","sah/sah1.htm","-","14.99","","","","907"
                      //,"pics/00008a.JPG","Apple iPod Shuffle (1st Gen) 1GB MP3 Player - White","10010100","MP3","1 GB","99.99","14.99","-","-","-","-","12 hrs","Flash","Y","-","-","descs/Shuffle_1gb_White.htm","pics_large/00008a.JPG","a) Most popular MP3 brand in USA.<br>b) Sleek & slim.<br>c) Direct-USB interface.","199.99","4","","sah/sah1.htm","-","14.99","","","","@"
                      ,"pics/2gbnanoblack.JPG","Apple Ipod Nano 1GB MP3 Player - Black (R)","10010200","MP3","1 GB","114.99","14.99","-","-","-","-","14 hrs","Flash","-","-","Color LCD","descs/Ipodn_1g_b_r.htm","pics_large/ma352.JPG","a) Most popular MP3 brand in USA.<br>b) Good software integration.<br>c) Many accessories for purchase.","249.99","2","","sah/sah1.htm","-","14.99","","","","1360"
                      //,"pics/2gbnanowhite.JPG","Apple Ipod Nano 2GB MP3 Player - White","10010300","MP3","2 GB","184.99","14.99","-","-","-","-","14 hrs","Flash","-","-","Color LCD","descs/Ipodn_2g_w.htm","pics_large/2gbnanowhite.JPG","a) Most popular MP3 brand in USA.<br>b) Good software integration.<br>c) Many accessories for purchase.","279.99","4","","sah/sah1.htm","-","14.99","","","","1360"
                      ,"pics/2gbnanosilver.JPG","Apple 2gb Ipod Nano (silver) MP3 Player","10010310","MP3","2 GB","169.99","14.99","-","-","-","-","14 hrs","Flash","-","-","Color LCD","descs/2GBNANOSILVER.htm","pics_large/2gbnanosilver.JPG","a) Most popular MP3 brand in USA.<br>b) Good software integration.<br>c) Many accessories for purchase.","249.99","1","","sah/sah1.htm","-","14.99","","","","1360"
											,"pics/2gbnanoblack.JPG","Apple Ipod Nano 4GB MP3 Player - Black (R)","10010400","MP3","4 GB","174.99","14.99","-","-","-","-","14 hrs","Flash","-","-","Color LCD","descs/Ipodn_4g_b_r.htm","pics_large/ma107lla.JPG","a) Most popular MP3 brand in USA.<br>b) Good software integration.<br>c) Many accessories for purchase.","299.99","2","","sah/sah1.htm","-","14.99","","","","1360"
											,"pics/8gbnano.JPG","Apple Ipod Nano 8GB MP3 Player - Black ","10010500","MP3","8 GB","274.99","14.99","-","-","-","-","24 hrs","Flash","-","-","1.5in Color LCD","descs/Ipodn_8g_b.htm","pics_large/8gbnano.JPG","a) Most popular MP3 brand in USA.<br>b) Good software integration.<br>c) Many accessories for purchase.","399.99","4","","sah/sah1.htm","-","14.99","","","","@"
                      ,"pics/30gbipod.JPG","Apple Ipod 30GB MP4 Player - Black","10010650","MP4","30GB","279.99","19.99","-","-","-","-","20 hrs","Hard Disk","-","-","Color Display","descs/Apple_ipod_30GB_Black.htm","pics_large/30gbipod.JPG","a) Most popular MP3 brand in USA.<br>b) Large capacity hard-drive.<br>c) Direct playing back of videos.","359.99","3","","sah/sah1.htm","-","14.99","","","1","907"															
                      ,"pics/30gbwhiteipod.JPG","Apple Ipod 30GB MP4 Player - White","10010660","MP4","30GB","279.99","19.99","-","-","-","-","20 hrs","Hard Disk","-","-","Color Display","descs/Apple_ipod_30GB_White.htm","pics_large/30gbwhiteipod.JPG","a) Most popular MP3 brand in USA.<br>b) Large capacity hard-drive.<br>c) Direct playing back of videos.","359.99","4","","sah/sah1.htm","-","14.99","","1","1","907"															
                      ,"pics/ipod80gb.JPG","Apple Ipod 80GB MP4 Player - Black","10010600","MP4","80GB","379.99","19.99","-","-","-","-","20 hrs","Hard Disk","-","-","Color Display","descs/Apple_ipod_80GB_Black.htm","pics_large/ipod80gb.JPG","a) Most popular MP3 brand in USA.<br>b) Largest capacity hard-drive.<br>c) Direct playing back of videos.","599.99","1","","sah/sah1.htm","-","14.99","","","1","1360"															
                      ,"pics/ipod80gbwhite.JPG","Apple Ipod 80GB MP4 Player - White","10010610","MP4","80GB","379.99","19.99","-","-","-","-","20 hrs","Hard Disk","-","-","Color Display","descs/Apple_ipod_80GB_White.htm","pics_large/ipod80gbwhite.JPG","a) Most popular MP3 brand in USA.<br>b) Largest capacity hard-drive.<br>c) Direct playing back of videos.","599.99","1","","sah/sah1.htm","-","14.99","","","1","1360"															
                      ,"pics/DBMP-6610FM.jpg","AudioVox MP-6610FM 1GB MP3 Player with FM Tuner","10020000","MP3","1 GB","74.99","12.99","-","FM","-","-","Lithium-ion","Flash","-","-","OLED","descs/AudioVox_1GB.htm","pics_large/DBMP-6610FM.jpg","a) Unique cool-looking design.<br>b) OLED Display with Lyrics support.","149.99","1","","sah/sah1.htm","-","14.99","","","","273"																							
                      ,"pics/34787.jpg","Coby MPC838 128MB MP3 Player","10030100","MP3","0128MB","29.99","14.99","-","-","Voice","-","-","Flash","Y","-","Backlit LCD","descs/MPC838.htm","pics_large/DBMPC-838.jpg","a) Low-price.<br>b) Direct-USB interface.","39.99","3","","sah/sah1.htm","-","14.99","","","","1360"																			
                      ,"pics/DBMPC-848.jpg","Coby MPC848 256MB MP3 Player","10030200","MP3","0256MB","34.99","14.99","-","-","Voice","-","-","Flash","Y","-","Backlit LCD","descs/MPC848.htm","pics_large/DBMPC-848.jpg","a) Low-price.<br>b) Direct-USB interface.","49.99","2","","sah/sah1.htm","-","14.99","","","","1360"               
                      ,"pics/34863.jpg","Coby MPC841 256MB MP3 Player","10030300","MP3","0256MB","34.99","14.99","-","-","Voice","-","-","Flash","Y","-","Backlit LCD","descs/MPC841.htm","pics_large/DBMPC-841.jpg","a) Low-price.<br>b) Direct-USB interface.","49.99","2","","sah/sah1.htm","-","14.99","","","","1360"
                      ,"pics/MPC543.JPG","Coby MPC543 256MB Sports MP3 Player","10030700","MP3","0256MB","39.99","14.99","Sports","-","Voice","-","-","Flash","-","-","Backlit LCD","descs/MPC543.htm","pics_large/DHMPC543.jpg","a) Sports design.","99.99","4","","sah/sah1.htm","-","14.99","","","","1360"
                      ,"pics/mpc544.JPG","Coby MPC544 256MB HEADSET MP3 Player","10030400","MP3","0256MB","44.99","14.99","-","-","-","-","-","Flash","-","-","-","descs/MPC544.htm","pics_large/mpc544.JPG","a) Hands-free design.<br>b) Large built-in headphones.","99.99","4","","sah/sah1.htm","-","14.99","","","","1360"
                      ,"pics/mpc741.JPG","Coby MPC741 256MB MP3 Player","10030500","MP3","0256MB","44.99","14.99","-","FM","Voice","SD/MMC","-","Flash","-","-","Backlit LCD","descs/MPC741.htm","pics_large/DBMPC-741.jpg","a) Long playback of up to 30 hrs.<br>b) SD/MMC expansion slot.","109.99","1","","sah/sah1.htm","-","14.99","","","","1360"																		
                      ,"pics/coby651.JPG","Coby MPC651 512MB MP3 Player","10030600","MP3","0512MB","44.99","14.99","-","-","Voice","SD/MMC","-","Flash","-","-","Backlit LCD","descs/MPC651.htm","pics_large/coby651.JPG","a) Long playback of up to 30 hrs.<br>b) SD/MMC expansion slot.","109.99","1","-","sah/sah1.htm","-","14.99","","","","1360"																							                
                      ,"pics/mpc756.JPG","Coby MPC756 512MB MP3/MP4 Player","10030800","MP4","0512MB","69.99","14.99","-","Digital FM","Voice","-","Lithium-ion","Flash","-","-","65000 Full Color Display","descs/MPC756.htm","pics_large/DHMPC756.jpg","a) Video playback capabilities.<br>b) Cool look.<br>c) Recharable.","199.99","1","","sah/sah1.htm","-","14.99","","","","1360"
                      //,"pics/CreativeMuvo_white.JPG","Creative Muvo 1GB MP3 Player (White)","10140100","MP3","1 GB","59.99","14.99","-","Digital FM","Voice/FM","-","-","Flash","","-","Backlid LCD","descs/Creative_Muvo_white.htm","pics_large/Creative_Muvo_White.JPG","","59.99","1","","sah/sah1.htm","-","14.99","","","","@" 																																				                																																	
                      ,"pics/Creative_Zen_V_Plus_OrangeBlack.JPG","Creative Zen V Plus 1GB MP4 Player (Orange/Black)","10140505","MP4","1 GB","84.99","14.99","-","Digital FM","Voice","-","15 hrs","Flash","Y","-","1.5in OLED","descs/Creative_Zen_V_plus_black_orange_1gb.htm","pics_large/Creative_Zen_V_Plus_OrangeBlack.JPG","a) Compact & practical.<br>b) Includes Line-in recording.<br>c) Good battery-lifespan.","99.99","4","","sah/sah1.htm","-","14.99","","","1","500" 																																				                																																	
                      ,"pics/Creative_Zen_V_Plus_Pink.JPG","Creative Zen V Plus 2GB MP4 Player (Pink)","10140550","MP4","2 GB","99.99","14.99","-","Digital FM","Voice","-","15 hrs","Flash","Y","-","1.5in OLED","descs/Creative_Zen_V_plus_pink_2gb.htm","pics_large/Creative_Zen_V_Pink.jpg","","119.99","1","a) Comprehensive features<br>b) Line-in recording<br>c) Good battery-lifespan.","sah/sah1.htm","-","14.99","","","1","500" 																																				                																																	
                      ,"pics/Creative_Zen_V_BlackBlue.JPG","Creative Zen V Plus 2GB MP4 Player (Black/Blue)","10140552","MP4","2 GB","99.99","14.99","-","Digital FM","Voice","-","15 hrs","Flash","Y","-","1.5in OLED","descs/Creative_Zen_V_plus_black_blue_2gb.htm","pics_large/Creative_Zen_V_BlackBlue.JPG","a) Comprehensive features<br>b) Line-in recording<br>c) Good battery-lifespan.","119.99","4","","sah/sah1.htm","-","14.99","","","1","500" 																																				                																																	
                      ,"pics/Creative_Zen_V_BlackGreen.jpg","Creative Zen V Plus 2GB MP4 Player (Black/Green)","10140553","MP4","2 GB","99.99","14.99","-","Digital FM","Voice","-","15 hrs","Flash","Y","-","1.5in OLED","descs/Creative_Zen_V_plus_black_green_2gb.htm","pics_large/Creative_Zen_V_BlackGreen.jpg","a) Comprehensive features<br>b) Line-in recording<br>c) Good battery-lifespan.","119.99","1","","sah/sah1.htm","-","14.99","","","1","500" 																																				                																																	
                      ,"pics/Creative_Zen_V.JPG","Creative Zen V Plus 2GB MP4 Player (While/Green)","10140551","MP4","2 GB","99.99","14.99","-","Digital FM","Voice","-","15 hrs","Flash","Y","-","1.5in OLED","descs/Creative_Zen_V_plus_white_green_2gb.htm","pics_large/Creative_Zen_V.JPG","","119.99","1","a) Comprehensive features<br>b) Line-in recording<br>c) Good battery-lifespan.","sah/sah1.htm","-","14.99","","","1","500" 																																				                																																	
                      ,"pics/Creative_Zen_V_BlackBlue.JPG","Creative Zen V 4GB MP4 Player (Black/Blue)","10140562","MP4","4 GB","134.99","14.99","-","Digital FM","Voice","-","15 hrs","Flash","Y","-","1.5in OLED","descs/Creative_Zen_V_plus_black_blue_4gb.htm","pics_large/Creative_Zen_V_BlackBlue.JPG","a) Comprehensive features<br>b) Line-in recording<br>c) Good battery-lifespan.","159.99","1","","sah/sah1.htm","-","14.99","","","1","500" 																																				                																																	
                      ,"pics/Creative_Zen_V_BlackBlue.JPG","Creative Zen V 8GB MP4 Player (Black/Blue)","10140572","MP4","8 GB","209.99","14.99","-","Digital FM","Voice","-","15 hrs","Flash","Y","-","1.5in OLED","descs/Creative_Zen_V_plus_black_blue_8gb.htm","pics_large/Creative_Zen_V_BlackBlue.JPG","a) Comprehensive features<br>b) Line-in recording<br>c) Good battery-lifespan.","219.99","4","","sah/sah1.htm","-","14.99","","","1","500" 																																				                																																	
                      ,"pics/Espidi168F_1gb_Silver.JPG","Espidi 168F (Silver) 1GB MP3 Player","10260510","MP3","1 GB","29.99","12.99","-","raDigital FM","Voice/FM","-","-","Flash","Y","-","Backlid LCD","descs/Espidi_1gb_silver.htm","pics_large/Espidi168F_1gb_Silver.JPG","a) Good value for money.<br>b) Very practical design.<br> c) Direct-USB interface.","49.99","1","","sah/sah2.htm","-","14.99","1","1","1","250" 																																				                																																	
                      ,"pics/Espidi168F_1gb_Black.JPG","Espidi 168F (Black) 1GB MP3 Player","10260511","MP3","1 GB","34.99","12.99","-","Digital FM","Voice/FM","-","-","Flash","Y","-","Backlid LCD","descs/Espidi_1gb_black.htm","pics_large/Espidi168F_1gb_Black.JPG","a) Good value for money.<br>b) Very practical design.<br> c) Direct-USB interface.","49.99","2","","sah/sah2.htm","-","14.99","","","","250" 																																				                																																	
                      ,"pics/Espidi168F_1gb_Blue.JPG","Espidi 168F (Blue) 1GB MP3 Player","10260512","MP3","1 GB","34.99","12.99","-","Digital FM","Voice/FM","-","-","Flash","Y","-","Backlid LCD","descs/Espidi_1gb_blue.htm","pics_large/Espidi168F_1gb_Blue.JPG","a) Good value for money.<br>b) Very practical design.<br> c) Direct-USB interface.","49.99","2","","sah/sah2.htm","-","14.99","","","","250" 																																				                																																	
                      ,"pics/Espidi168F_1gb_Red.JPG","Espidi 168F (Red) 1GB MP3 Player","10260513","MP3","1 GB","34.99","12.99","-","Digital FM","Voice/FM","-","-","Flash","Y","-","Backlid LCD","descs/Espidi_1gb_red.htm","pics_large/Espidi168F_1gb_Red.JPG","a) Good value for money.<br>b) Very practical design.<br> c) Direct-USB interface.","49.99","2","","sah/sah2.htm","-","14.99","","","","250" 																																				                																																	
                      ,"pics/Exigo181_Red.jpg","Exigo-181 128MB MP3 Player (Red)","10040050","MP3","0128MB","19.99","12.99","-","20 Digital Presets","Voice","-","-","Flash","Y","Y","Backlit LCD","descs/Exigo181_128MB_Red.htm","pics_large//Exigo181_Red.jpg","a) Best-Buy non-recharable Model.<br>b) Very practical design.<br> c) Direct-USB interface+Encrypted Drive.","39.99","2","","sah/sah2.htm","-","14.99","1","","","300"																										
                      ,"pics/Exigo181_Blue.jpg","Exigo-181 128MB MP3 Player (Blue)","10040055","MP3","0128MB","19.99","12.99","-","20 Digital Presets","Voice","-","-","Flash","Y","Y","Backlit LCD","descs/Exigo181_128MB_Blue.htm","pics_large//exigo181_blue.JPG","a) Best-Buy non-recharable Model.<br>b) Very practical design.<br> c) Direct-USB interface+Encrypted Drive.","39.99","2","","sah/sah2.htm","-","14.99","1","","","300"																										
                      ,"pics/Exigo181_Red.jpg","Exigo-181 256MB MP3 Player (Red)","10040100","MP3","0256MB","24.99","12.99","-","20 Digital Presets","Voice","-","-","Flash","Y","Y","Backlit LCD","descs/Exigo181_256MB_Red.htm","pics_large/Exigo181_Red.JPG","a) Best-Buy non-recharable Model.<br>b) Very practical design.<br> c) Direct-USB interface+Encrypted Drive.","49.99","2","","sah/sah2.htm","-","14.99","","","","300"																										
                      ,"pics/Exigo181_Blue.jpg","Exigo-181 512MB MP3 Player (Blue)","10040200","MP3","0512MB","29.99","12.99","-","20 Digital Presets","Voice","-","-","Flash","Y","Y","Backlit LCD","descs/Exigo181_512MB_Blue.htm","pics_large/exigo181_blue.JPG","a) Best-Buy non-recharable Model.<br>b) Very practical design.<br> c) Direct-USB interface+Encrypted Drive.","59.99","2","","sah/sah2.htm","-","14.99","","","","300"																									
                      ,"pics/Exigo181_Red.jpg","Exigo-181 512MB MP3 Player (Red)","10040250","MP3","0512MB","29.99","12.99","-","20 Digital Presets","Voice","-","-","Flash","Y","Y","Backlit LCD","descs/Exigo181_512MB_Red.htm","pics_large/Exigo181_Red.JPG","a) Best-Buy non-recharable Model.<br>b) Very practical design.<br> c) Direct-USB interface+Encrypted Drive.","59.99","2","","sah/sah2.htm","-","14.99","","","","300"
                      ,"pics/Exigo181_Red.jpg","Exigo-181 1GB MP3 Player (Red)","10040300","MP3","1 GB","39.99","12.99","-","20 Digital Presets","Voice","-","-","Flash","Y","Y","Backlit LCD","descs/Exigo181_1GB_Red.htm","pics_large/Exigo181_Red.JPG","a) Best-Buy non-recharable Model.<br>b) Very practical design.<br> c) Direct-USB interface+Encrypted Drive.","69.99","2","","sah/sah2.htm","-","14.99","","","","300"
                      ,"pics/1573_1.jpg","iRiverT10 512MB Sports MP3 Player","10050100","MP3","0512MB","69.99","14.99","Sports","FM","Voice/FM","-","-","Hard Drive","-","-","Color Display","descs/ir_t10.htm","pics_large/iRiver_T10.jpg","a) Sports design<br>b) Long playback of up to 45 hrs.<br>c) Comprehensive features.","149.99","4","","sah/sah1.htm","-","14.99","","","","1360"
											,"pics/jxmp256fm.JPG","Jwin jx-mp256 256MB Sports MP3 Player","10060200","MP3","0256MB","64.99","14.99","System Time","20 presets","Voice","-","-","Flash","-","-","Backlit LCD","descs/jx-mp256.htm","pics_large/jxmp256fm.JPG","a) Can be worn on the wrist.","99.99","4","","sah/sah1.htm","-","14.99","","","","1360"
                      ,"pics/EZ_Tangent_W1b.jpg","Luxpro ez-Tangent 1GB MP3 PLAYER (White)","10070100","MP3","1 GB","49.99","14.99","-","10 Digital Presets","Voice/FM","-","08 hrs","Flash","Y","-","OLED","descs/LP_EZTANGENT_1GB.htm","pics_large/EZTangent-W2_WO_Logo.Jpg","a) Very clear FM reception & recording.<br>b) Slim & sleek(especially OLED screen).<br>c) Direct-USB interface.","89.99","1","","sah/sah2.htm","-","14.99","1","1","1","300"
										  ,"pics/iOta_mirror_black.JPG","Luxpro iOta 1GB MP3/MP4 Player with SD/MMC Slot (Black-Mirror)","10070300","MP4","1 GB","59.99","14.99","-","20 Digital Presets","Voice/FM","SD/MMC","10 hrs","Flash","-","-","1.5in Full Color","descs/LP_IOTA_1GB.htm","pics_large/iOta_mirror_black_400.JPG","a) High fidelity sound(both Bass&Treble).<br>b) Highly scratch-resistent metal case.<br>c) Most slim MP4 player+SD/MMC slot.","99.99","1","","sah/sah2.htm","-","14.99","1","1","1","350"																					
										  ,"pics/iOta_O_wol.JPG","Luxpro iOta 1GB MP3/MP4 Player with SD/MMC Slot (Orange)","10070200","MP4","1 GB","59.99","14.99","-","20 Digital Presets","Voice/FM","SD/MMC","10 hrs","Flash","-","-","1.5in Full Color","descs/LP_IOTA_1GB_O.htm","pics_large/iOta_O_wol.JPG","a) High fidelity sound(both Bass&Treble).<br>b) Highly scratch-resistent metal case.<br>c) Most slim MP4 player+SD/MMC slot.","99.99","2","","sah/sah2.htm","-","14.99","1","1","1","350"																					
										  ,"pics/iOta_O_wol_w_sdc3.JPG","Luxpro iOta 1GB MP3/MP4 Player with SD/MMC Slot (Orange) + free pouch + free 1GB SD Card","10070210","MP4","1 GB","69.99","14.99","-","20 Digital Presets","Voice/FM","SD/MMC","10 hrs","Flash","-","-","1.5in Full Color","descs/LP_IOTA_1GB_O_free_gifts.htm","pics_large/iOta_O_wol_w_sdc3.JPG","a) High fidelity sound(both Bass&Treble).<br>b) Highly scratch-resistent metal case.<br>c) Most slim MP4 player+SD/MMC slot.","124.99","2","","sah/sah2.htm","-","14.99","1","1","1","400"																					
                      ,"pics/mmp8570.JPG","Memorex Mmp8570 512MB MP3 Player","10370100","MP3","0512MB","64.99","14.99","-","FM","-","-","-","Flash","Y","-","Backlid LCD","descs/MMMP8570.htm","pics_large/mmp8570.JPG","a) Unconventional looks.<br>b) Decent Sound-to-Noise ratio of 90dB.","119.99","1","","sah/sah1.htm","-","14.99","","","","1360" 																																				                																																																							
                      ,"pics/philips-key006.jpg","Philips KEY006(R) 128MB Keychain MP3 Player","10080100","MP3","0128MB","44.99","14.99","-","-","-","-","06.5hrs","Flash","-","-","-","descs/KEY006.htm","pics_large/philips-key006.jpg","a) Slim & compact keychain design.<br>b) Highly-scratch resistent metal case.","99.99","2","","sah/sah1.htm","-","14.99","","","","1360"
                      ,"pics/DBSA261.jpg","Philips SA261(R) 512MB MP3 Player","10080200","MP3","0512MB","59.99","14.99","-","FM","Voice/FM","MiniSD","10 hrs","Flash","-","-","Backlit LCD","descs/sa261r.htm","pics_large/DBSA261.jpg","a) Most complete recording features.<br>b) MiniSD expansion slot.<br>c) Comprehensive features.","149.99","4","","sah/sah1.htm","-","14.99","","","","1360"																																
                      ,"pics/psa242.JPG","Philips PSA232 Sports 512MB MP3 Player","10080250","MP3","0512MB","54.99","14.99","Talking Stopwatch","10 presets","-","MiniSD","-","Flash","-","-","LCD 96x64","descs/PSA232.htm","pics_large/psa242.JPG","a) Sports design with talking stopwatch.<br>b) MiniSD Slot.<br>c) Arm-band included.","149.99","1","","sah/sah1.htm","-","14.99","","","","1360"
                      ,"pics/psa242.JPG","Philips PSA242 Sports 1GB MP3 Player","10080300","MP3","1 GB","94.99","14.99","Talking Stopwatch","10 presets","-","MiniSD","-","Flash","-","-","LCD 96x64","descs/PSA242.htm","pics_large/psa242.JPG","a) Sports design with talking stopwatch.<br>b) MiniSD Slot.<br>c) Arm-band included.","249.99","1","","sah/sah1.htm","-","14.99","","","","1360"
                      ,"pics/psa260.JPG","Philips/Nike SA260 256 Mb Sports Mp3 Player","10090100","MP3","0256MB","159.99","14.99","Speed / Distance / Time Audio Feedback","FM","-","-","10 hrs","Flash","-","-","Backlit LCD","descs/PSA260.htm","pics_large/psa260.JPG","a) Best Sports-design MP3 player.<br>b) Comprehensive sports features.","389.99","4","","sah/sah1.htm","-","14.99","","","","1360"																							
                      ,"pics/rd2212.JPG","RCA RD2212 256MB Sports Mp3 Player","10150100","MP3","0256MB","44.99","14.99","Stopwatch / Purse-rate","FM","FM","-","-","Flash","-","-","3-LINE DOT MATRIX LCD","descs/RCA_RD2212.htm","pics_large/rd2212.JPG","a) Sports design with stop-watch.<br>b) Long playback time of __hrs.","79.99","1","","sah/sah1.htm","-","14.99","","","","1360"																															
                      ,"pics/2031_1.jpg","Rio CE510 512MB Sports MP3 Player (Refurbished)","10100100","MP3","0512MB","64.99","14.99","Stopwatch / Lap Timer","-","-","-","08 hrs","Flash","-","-","Monochrome LCD Display","descs/RIO_SE510.htm","pics_large/se510.jpg","a) Sports design with stop-watch.<br>b) Groove for coiling earphone cords.","104","1","","sah/sah1.htm","-","14.99","","","","1360"														
                      ,"pics/2030_1.jpg","Rio CE2100R 2.5GB MP3 Player","10100200","MP3","2.5GB","74.99","14.99","-","-","Voice","-","20 hrs","Flash","-","-","Monochrome LCD Display","descs/RIO_CE2100.htm","pics_large/rio_ce2100.jpg","a) Best-price 2-4GB MP3 Player.<br>b) Slim & compact design.","129.99","1","","sah/sah1.htm","-","14.99","","","","1360"               
                      ,"pics/DHYPT7JX.jpg","Samsung DHYPT7JX 512MB MP3 Player","10110100","MP3","0512MB","89.99","14.99","-","FM","Voice","-","10 hrs","Hard Drive","-","-","1.2in TFT Color LCD","descs/SS_DHYPT7JX.htm","pics_large/DHYPT7JX.jpg","a) Recharable.<br>b) Can view Jpeg pictures.","119.99","4","","sah/sah1.htm","-","14.99","","","","1360"
                      ,"pics/DBSDMX3SPD-1024-A40.jpg","SanDisk Sansa M230 1GB MP3 Player with Speaker Dock","10120230","MP3","1 GB","129.99","14.99","-","20 presets","Voice/FM","-","-","Flash","-","-","64000 Color Screen","descs/SD_C140.htm","pics_large/DBSDMX3SPD-1024-A40.jpg","a) Comprehensive features.<br>b) Good value for money.","169.95","2","","sah/sah3.htm","-","14.99","","","","500"
                      ,"pics/DBSDMX5-1024-A18.jpg","SanDisk Sansa C140 1GB MP3 Player","10120100","MP3","1 GB","74.99","14.99","-","20 presets","Voice/FM","-","-","Flash","-","-","64000 Color Screen","descs/SD_C140.htm","pics_large/sd_c140.jpg","a) Comprehensive features.<br>b) Good value for money.","119.95","4","","sah/sah3.htm","-","14.99","","","","500"																																																									
                      ,"pics/DBSDMX5-2048-A18.jpg","SanDisk Sansa C150 2GB MP3 Player","10120300","MP3","2 GB","109.99","14.99","-","20 presets","Voice/FM","-","-","Flash","-","-","64000 Color Screen","descs/SD_c150.htm","pics_large/sd_c150.jpg","a) Good value for money.","139.95","4","","sah/sah3.htm","-","14.99","","","","500"
                      ,"pics/DBSDMX4-2048-A70.jpg","SanDisk Sansa E250 2GB MP3/MP4 Player with MicroSD Slot","10120200","MP4","2 GB","99.99","14.99","-","FM","Voice/FM","MicroSD","20 hrs","Flash","-","-","1.8in TFT Color LCD","descs/SD_E250.htm","pics_large/sd_e250.jpg","a) Highly scratch-resistent metal case.<br>b) Video playback capability.<br>c) MicroSD memory expansion slot.","139.95","1","","sah/sah3.htm","-","14.99","","1","1","500"																							
                      ,"pics/DBSDMX4-4096-A70.jpg","SanDisk Sansa E260 4GB MP3/MP4 Player with MicroSD Slot","10120400","MP4","4 GB","119.99","14.99","-","FM","Voice/FM","MicroSD","20 hrs","Flash","-","-","1.8in TFT Color LCD","descs/SD_E260.htm","pics_large/sd_e260.jpg","a) Highly scratch-resistent metal case.<br>b) Video playback capability.<br>c) MicroSD memory expansion slot.","179.99","1","","sah/sah3.htm","-","14.99","","1","1","500"																							
                      ,"pics/DBSDMX4-6144-A70.jpg","SanDisk Sansa E270 6GB MP3/MP4 Player with MicroSD Slot","10120600","MP4","6 GB","159.99","14.99","-","FM","Voice/FM","MicroSD","20hrs","Flash","-","-","1.8in TFT Color LCD","descs/SD_E270.htm","pics_large/sd_e270.jpg","a) Highly scratch-resistent metal case.<br>b) Video playback capability.<br>c) MicroSD memory expansion slot.","249.95","4","","sah/sah3.htm","-","14.99","","","1","500"
                      ,"pics/DBSDMX4-8192-A70.jpg","SanDisk Sansa E280 8GB MP3/MP4 Player with MicroSD Slot","10120800","MP4","8 GB","189.99","14.99","-","FM","Voice/FM","MicroSD","20hrs","Flash","-","-","1.8in TFT Color LCD","descs/SD_E280.htm","pics_large/sd_e280.jpg","a) Highly scratch-resistent metal case.<br>b) Video playback capability.<br>c) MicroSD memory expansion slot.","299.95","1","","sah/sah3.htm","-","14.99","","1","1","500"											
                      ,"pics/nwe305.JPG","Sony NW-E305(R) Bean 512MB Sports MP3 Player","10130100","MP3","0512MB","69.99","14.99","Sports","FM","-","-","50 hrs","Flash","Y","-","Organic Electro-Luminescence Display","descs/SONY_NWE305R.htm","pics_large/nwe305.jpg","a) High 50-hrs playback.<br>b) 3-min quick-charge Li-ion battery.<br>c) Direct-USB interface.","149.99","1","","sah/sah1.htm","-","14.99","","","","1360"												
                      ,"pics/nwe105.JPG","Sony NW-E105 512MB MP3 Player","10130200","MP3","0512MB","64.99","14.99","-","-","-","-","70 hrs","Flash","-","-","Backlit LCD","descs/SONY_NWE105.htm","pics_large/nwe105.jpg","a) High 70-hrs playback.<br> Built-in recharable battery.","179.99","1","","sah/sah1.htm","-","14.99","","","","1360"																							
                      ,"pics/nwe307.JPG","Sony NW-E307(R) Bean 1GB Sports MP3 Player","10130300","MP3","1 GB","84.99","14.99","Sports","30 presets","-","-","50 hrs","Flash","Y","-","Organic Electro-Luminescence Display","descs/SONY_NWE307R.htm","pics_large/nwe307.jpg","a) High 50-hrs playback.<br>b) 3-min quick-charge Li-ion battery.<br>c) Direct-USB interface.","199.99","1","","sah/sah1.htm","-","14.99","","","","1360"
                      ,"pics/nws203.JPG","Sony NW-S203(R) 1GB Sports MP3 Player","10130500","MP3","1 GB","99.99","14.99","Sports","FM","-","-","28 hrs","Flash","Y","-","OEL","descs/SONY_NWS203R.htm","pics_large/nws203.JPG","a) Sports features.<br>b) Water resistant.<br>c) 3 minutes quick charge.","179.99","1","","sah/sah1.htm","-","14.99","","","","1360"																							 																																				                																						
                      ,"pics/nwe005.JPG","Sony NW-E005(R) 2GB MP3 Player","10130400","MP3","2 GB","119.99","14.99","-","FM","-","-","28 hrs","Flash","Y","-","OEL","descs/SONY_NWE005R.htm","pics_large/nwe005.jpg","a) High 28-hrs playback.<br>b) 3-min quick-charge Li-ion battery.<br>c) Direct-USB interface.","199.99","1","","sah/sah1.htm","-","14.99","","","","1360"																							 																																				                																						
                      ,"pics/nws205.JPG","Sony NW-S205(R) 2GB Sports MP3 Player","10130600","MP3","2 GB","119.99","14.99","Sports","FM","-","-","28 hrs","Flash","Y","-","OEL","descs/SONY_NWS205R.htm","pics_large/nws205.JPG","a) Sports features.<br>b) Water resistant.<br>c) Armdband included.","179.99","1","","sah/sah1.htm","-","14.99","","","","1360"																							 																																				                																						
											);
									
//
//  These are real Javascript global variables but it is advisble not
//  to use them directly from embedded javascripts for reasons why
//  OO was introducted.
//
var aRecords = new Array;
var gnCurIndex=0;
var nCurIndex=0;
var gbUpdated=0;
var gbFrame=0;	 //<--------


var nCount=0;
var nTest=3;



//
//
//
function GetnTest()
{
 return nTest;
}
function GetCurRecord() {return gnCurIndex;}


function abd(){
				 document.write(nCount+" "+Products[1]);
}
function ViewArray(){
				 document.write("<u>"+"Products Array Contents"+"</u>"+"<br>");
				 for (var i=0;i<Products.length;i++){
				 								 document.write(i+" "+Products[i]+"<br>");
				 }
}

	  function IncrementCounter() {if ((nCount+1)<Products.length) ++nCount;}

function IncrementCounter() {if (nCount) --nCount;}

      function convert(sValue, sDataType) {
          switch(sDataType) {
              case "int":
                  return parseInt(sValue);
              case "float":
                  return parseFloat(sValue);
              case "date":
                  return new Date(Date.parse(sValue));
              default:
                  return sValue.toString();                
          }
      }

      function generateCompareTRs(iCol, sDataType) {
          return  function compareTRs(oTR1, oTR2) {
                      var vValue1, vValue2;
  
                      if (oTR1.cells[iCol].getAttribute("value")) {
                          vValue1 = convert(oTR1.cells[iCol].getAttribute("value"),
                                        sDataType);
                          vValue2 = convert(oTR2.cells[iCol].getAttribute("value"),
                                        sDataType);
                      } else {
                          vValue1 = convert(oTR1.cells[iCol].firstChild.nodeValue,
                                        sDataType);
                          vValue2 = convert(oTR2.cells[iCol].firstChild.nodeValue,
                                        sDataType);
                      }
  
                      if (vValue1 < vValue2) {
                          return -1;
                      } else if (vValue1 > vValue2) {
                          return 1;
                      } else {
                          return 0;
                      }
                  };
      }
						
function Get3DBrandName(nBrandCode)
{
		 var sFoundBrand;
		 var i,nArrayLen,nCurValue;
		 var nTemp;
		 																											 
		 sFoundBrand="[UNKNOWN]";
		 nArrayLen=sBrands.length;

		 for (i=0;i<nArrayLen;i++){
				 if (nBrands3DCode[i]==nBrandCode)
				 {
				     nTemp=nBrands3DCode[i]-1;
				 	   sFoundBrand=sBrands[nTemp];						 
						 break;
				 }
		 }								 

		 return sFoundBrand; 
}
  			
function GetBrandName(nBrandCode)
{
		 var sFoundBrand;
		 var i,nArrayLen,nCurValue;
		 																											 
		 sFoundBrand="[UNKNOWN]";
		 nArrayLen=sBrands.length;
		 
		 for (i=0;i<nArrayLen;i++){
		 		 nCurrentValue=nBrandsCode[i];
				 
				 if ((nBrandCode>>4)==(nCurrentValue>>4))
				 {
				 	   sFoundBrand=sBrands[i];
						 break;
				 }
		 }								 
		 return sFoundBrand; 
}
  						
function RetrivePicFullPathname(sOriginal)
{
    var sTemp;
		
		sTemp=sOriginal;
		return sTemp;
}

function CheckIfArrayLoaded()
{
		 if (gbUpdated)
		     return 1;
		 else 
		     return 0;
}

						


function RecordSystem()
{										
			// Local attributes
			nDEBUG=1;
			bWeb=0;
			
			if (bWeb==0)
     			BasePicDir="";
			else
			    BasePicDir="http://www.mp34store.com/";
		
			nRecordSize=25+3+1;
			nNoRecords=Column.length/nRecordSize;
			//alert(Column.length);
			//document.write(nNoRecords);
			//nNoRecords=5;  // <---------------temp
			
			if (bWeb)
			{
			 	 for (s=0;s<Column.length;s++)
				 {
				     if ((s%25)==0) Column[s]=BasePicDir+Column[s];
				     if ((s%25)==22) Column[s]=BasePicDir+Column[s];
				     if ((s%25)==16) Column[s]=BasePicDir+Column[s];
				     if ((s%25)==17) Column[s]=BasePicDir+Column[s];
//document.write(Column[s]+"@");
				 }
			} 
			
			nCurRecIndex=0;	
																																																			 
		  bInitialized=0;
			bDisplay=1;
			
			gbUpdated=true;
}


RecordSystem.prototype.GetNoOfRecords=function()
{
 			return nNoRecords;
}

RecordSystem.prototype.DisplayRecords=function()
{	
		  var Fields=new Array(nRecordSize);
			var picstring;
															
			if (bDisplay){
				 document.write("<br>"+"No of records: "+nNoRecords+"<br>");
				 for (nCount=0;nCount<nNoRecords;nCount++)
				 {
					 document.write("<img height=100 src="+BasePicDir+Column[(nCount*nRecordSize)]+">");												 
						 for (i=0;i<nRecordSize;i++)
						 {
						 		 document.write(Column[i+(nCount*nRecordSize)]+"|");
						 }
						 //document.write("<br>");					 
				 }
		  }						
}
RecordSystem.prototype.GetDesc=function(nIndex)
{
 return Column[16+(nIndex*nRecordSize)];
}

RecordSystem.prototype.GetSAH=function(nIndex)
{
 return Column[22+(nIndex*nRecordSize)];
}

RecordSystem.prototype.SetCurrentIndex=function(nIndex)
{
   if ((nIndex>=nNoRecords)||(nIndex<0)) 
	 		return -1;
	 nCurRecIndex=nIndex;
	 return (nIndex);
}

RecordSystem.prototype.GetNextForwardIndex=function()
{
	 var nTemp;
	 nTemp=nCurRecIndex;
	 nTemp++;
	 
   if ((nTemp)>=(nNoRecords)) 
	 		return -1;
	 return (++nCurRecIndex);
}

RecordSystem.prototype.PeekNextForwardIndex=function()
{
	 var nTemp;
	 nTemp=nCurRecIndex;
	 nTemp++;
//document.write(nTemp+" + "+nNoRecords+"@<br>");	
	 
   if ((nTemp)>=(nNoRecords)) 
	 		return -1;

	 return (nTemp);
}


RecordSystem.prototype.GetNextReverseIndex=function()
{
   if ((nCurRecIndex)==0) return -1;
	 return (--nCurRecIndex);
}

RecordSystem.prototype.PeekNextReverseIndex=function()
{
   if ((nCurRecIndex)==0) return -1;
	 
	 var nTemp;
	 nTemp=nCurRecIndex-1;		
	 return (nTemp);	 
}
			
        RecordSystem.prototype.PeekNextBrandReverseIndex=function()
        {
        	 var nTemp;
        	 var nCurBrand;
        	 var nNewBrand;
        	
					 nCurBrand=Column[(nCurRecIndex*nRecordSize)+2].substr(1,3);
        	 nTemp=nCurRecIndex;
        	 do
        	 {
        	   // 
             if (nTemp==0)	return -1;        					
             //		
						 nTemp--;
						 //
        		 nNewBrand=Column[(nTemp*nRecordSize)+2].substr(1,3);
        		 
        		 // Determine if same brand
        		 if (nNewBrand!=nCurBrand) return (nTemp);         		 			
				        		 
        	 } while (1==1) // infinite loop 
        }
						
        RecordSystem.prototype.GetNextBrandReverseIndex=function()
        {
        	 var nTemp;
        	 var nCurBrand;
        	 var nNewBrand;
        	
					 nCurBrand=Column[(nCurRecIndex*nRecordSize)+2].substr(1,3);
        	 nTemp=nCurRecIndex;

        	 do
        	 {
        	   // 
             if (nTemp==0)	return -1;        					
             //		
						 nTemp--;
						 //
        		 nNewBrand=Column[(nTemp*nRecordSize)+2].substr(1,3);
        		 
        		 // Determine if same brand
        		 if (nNewBrand!=nCurBrand) {
						     nCurRecIndex=nTemp;
						     return (nTemp);
						 }         		 			
				        		 
        	 } while (1==1) // infinite loop 
        }
				RecordSystem.prototype.PeekNextMarkedReverseIndex=function()
				{
				 		var nCurLoc,nTemp;
						
						nTemp=nCurRecIndex; nTemp--;						
						if (nTemp<0) return -1;
																						
						nCurLoc=nTemp;
						while (nCurLoc>=0)
						{
						 			if (gnMarked[nCurLoc]==1) return nCurLoc;									
									nCurLoc--;
						}
						return -1;
				}				
				RecordSystem.prototype.GetNextMarkedReverseIndex=function()
				{
				 		var nCurLoc,nTemp;
						
						nTemp=nCurRecIndex; nTemp--;						
						if (nTemp<0) return -1;
																						
						nCurLoc=nTemp;
						while (nCurLoc>=0)
						{
						 			if (gnMarked[nCurLoc]==1)
								  {
									   nCurRecIndex=nCurLoc; 
										 return nCurLoc;
									}									
									nCurLoc--;
						}
						return -1;
				}							
				RecordSystem.prototype.PeekNextMarkedForwardIndex=function()
				{
				 		var nCurLoc,nTemp;
						
						nTemp=nCurRecIndex; nTemp++;
						
						if ((nTemp)>=gnNoOfRecords) return -1;
						
						nCurLoc=nTemp;
						while (nCurLoc<gnNoOfRecords)
						{
						 			if (gnMarked[nCurLoc]==1) return nCurLoc;									
									nCurLoc++;
						}
						return -1;
				}
				RecordSystem.prototype.GetNextMarkedForwardIndex=function(nIndex)
				{
				 		var nCurLoc,nTemp;
						
						nTemp=nCurRecIndex; nTemp++;
						
						if ((nTemp)>=gnNoOfRecords) return -1;
						
						nCurLoc=nTemp;
						while (nCurLoc<gnNoOfRecords)
						{
						 			if (gnMarked[nCurLoc]==1)
									{ 
									   nCurRecIndex=nCurLoc;
										 return nCurLoc;
									}									
									nCurLoc++;
						}
						return -1;
				}													

				
				
        RecordSystem.prototype.PeekNextBrandForwardIndex=function()
        {
        	 var nTemp;
        	 var nCurBrand;
        	 var nNewBrand;
        	
					 nCurBrand=Column[(nCurRecIndex*nRecordSize)+2].substr(1,3);
        	 nTemp=nCurRecIndex;
        	 nTemp++; // increment to next record

        	 do
        	 {
        	   // 
             if ((nTemp)>=(nNoRecords))	return -1;        					
             //		
        		 nNewBrand=Column[(nTemp*nRecordSize)+2].substr(1,3);
        		 
        		 // Determine if same brand
        		 if (nNewBrand!=nCurBrand) return (nTemp);						         		 			
             // up nTemp					
        	 	 nTemp++;
        		 
        	 } while (1==1) // infinite loop 
        }
				
        RecordSystem.prototype.GetNextBrandForwardIndex=function()
        {
        	 var nTemp;
        	 var nCurBrand;
        	 var nNewBrand;
           var nCurIndex2;
					        	
					 nCurBrand=Column[(nCurRecIndex*nRecordSize)+2].substr(1,3);
        	 nTemp=nCurRecIndex;
        	 nTemp++; // increment to next record

        	 do
        	 {
        	   // 
             if ((nTemp)>=(nNoRecords))	return -1;        					
             //		
        		 nNewBrand=Column[(nTemp*nRecordSize)+2].substr(1,3);
        		 
        		 // Determine if same brand
        		 if (nNewBrand!=nCurBrand) {
						    nCurIndex2=nTemp;
						 		return (nCurIndex2);
						 }						         		 			
             // up nTemp					
        	 	 nTemp++;        		 
        	 } while (1==1) // infinite loop 
        }								
 						
											
RecordSystem.prototype.InitRecords=function()
{						
			document.write(bInitialized+"<br>");																				 
      if (bInitialized==0)
      {
          document.write("Initializing..."+"<br>");
         	bInitialized=1;														
      }
      else
      {
        document.write("Already initialized..."+"<br>");
      }
}

						function Record()
						{
						 		 bUpdated=false;
								 nNoFields=nRecordSize;
								 Field=new Array(nNoFields);
						}
						Record.prototype.UpdateField=function(field0,field1,field2,field3,field4,field5,field6,field7,field8,field9,field10,field11,field12,field13,field14,field15,field16,field17,field18,field19,field20,field21,field22,field23,field24)
						{
						   Field[0]=field0;
						   Field[1]=field1;
						   Field[2]=field2;								   
							 Field[3]=field3;
							 Field[4]=field4;
							 Field[5]=field5;
							 Field[6]=field6;
							 Field[7]=field7;
							 Field[8]=field8;
							 Field[9]=field9;
							 Field[10]=field10;
							 Field[11]=field11;
							 Field[12]=field12;
							 Field[13]=field13;
							 Field[14]=field14;
							 Field[15]=field15;
							 Field[16]=field16;
							 Field[17]=field17;							 							 
							 Field[18]=field18;	
							 Field[19]=field19;	
							 Field[20]=field20;	
							 Field[21]=field21;	
							 Field[22]=field22;	
							 Field[23]=field23;	
							 Field[24]=field24;	
							 							 							 					
						   bUpdated=true;
						}		
						Record.prototype.GetAllFields=function()
						{
						 return Field;
						}						
								
						Record.prototype.DisplayRecordData=function()
						{								 																						 
								 if (bDisplay){
								 		document.write("No of fields: "+nNoFields+"<br>"+"----------------------"+"<br>");											 
								    for (var i=0;i<nNoFields;i++)
										{
								 		   document.write(Field[i]+"<br>");															 
										}
								 		document.write("----------------------"+"<br>");											 												
								 }
						}

/*						
function GetCurrentPicFileName()
{
    return aRecords[gnCurIndex].cells[0].getAttribute("value"); 
}	
*/

				function GetStatusDescription(nStatusValue)
				{
				 				 switch(nStatusValue) 
								 {
								 	case '0':
											 return "Unknown status";																		
											 break;
									case '1':
											 return "Stock Available";
											 break;
								 	case '2':
											 return "Low Stock";									
											 break;
								 	case '3':
											 return "Temp unavailable";									
											 break;
								 	case '4':
											 return "Discontinued";									
											 break;
									default:		
											 return "ERROR";																																				 											 											 											 											 
								 }
				}
				
				function GetStatusDescription2(nStatusValue)
				{
				 				 switch(nStatusValue) 
								 {
								 	case '0':
											 return "Unknown status";																		
											 break;
									case '1':
											 return "";
											 break;
								 	case '2':
											 return "Low Stock";									
											 break;
								 	case '3':
											 return "Temp unavailable";									
											 break;
								 	case '4':
											 return "Discontinued";									
											 break;
									default:		
											 return "ERROR";																																				 											 											 											 											 
								 }
				}
        function SearchMP34ByItemCode(szItemCode)
        {
              for (rr=0;rr<mp3records.GetNoOfRecords();rr++)
              {
                    if (Column[(rr*nRecordSize)+2]==szItemCode)
                    {
                  		 return rr;
                    }	 
              }
              return -1;
        }						
  		function IsMP3FromSingapore(ifsIndex)
  		{
          if (Column[(ifsIndex*nRecordSize)+22]=="sah/sah2.htm")
          {
        		 return 1;
          }	 
  				else
  				{
  				   return 0;
  				}
  		}
     				
  		function IsMP3_Mgr_Choice(ifsIndex)
  		{
          if (Column[(ifsIndex*nRecordSize)+27]=="1")
          {
        		 return 1;
          }	 
  				else
  				{
  				   return 0;
  				}
  		}				
     				
  		function IsMP3OnSales(ifsIndex)
  		{
          if (Column[(ifsIndex*nRecordSize)+25]=="1")
          {
        		 return 1;
          }	 
  				else
  				{
  				   return 0;
  				}
  		}			
				function GetCurMP34IndexFromCmdLine(szCmdLine) 
				{
				     var cChar;
		 				 if (szCmdLine=='') return -1;

						 if (szCmdLine.substr(1,1)=='A')
						 { 
						 	  if (szCmdLine.length!=10) return -2;
						 		//return -3;
    						 for (tttt=2;tttt<10;tttt++)
    						 {
    						    cChar=szCmdLine.substr(tttt,1);
    						    if (!((cChar>='0')&&(cChar<='9')))
    								{
    								   //alert(cChar);
    								 	 return -1;
    								}
    						 }
    						 
    						 return SearchMP34ByItemCode(szCmdLine.substr(2,8));								
						 }
						 else
						 {
								 //alert('first');						 
    						 for (tttt=1;tttt<(szCmdLine.length-1);tttt++)
    						 {
    						    cChar=szCmdLine.substr(tttt,1);
    						    if (!((cChar>='0')&&(cChar<='9')))
    								{
    								   //alert(cChar);
    								 	 return -1;
    								}
    						 }
								 //alert('next');
								 if (szCmdLine.substr(1,8).valueOf()>=mp3records.GetNoOfRecords()) return 0;

								 return (szCmdLine.substr(1,8).valueOf());
								 
						 }						 
				}			
		function DisplayMP34NAccPicLinks(szSearch,szTitle,nNewTable,nSize)
		{		     
				//szSearch="10010600";
				//alert(nSize);
				if (nSize==null) nSize=100;				

				if ((nReturnVal=SearchMP34ByItemCode(szSearch))>=0)
				{
				    if (nNewTable) document.write("<table style='cellspacing:0px;border-width:0px;padding:0px'><tr>");
						if (szTitle=="") szTitle=Column[(nReturnVal*nRecordSize)+1];

						document.write("<td valign=bottom align=center style=';font-size:14px'>"+szTitle+"<br>");					
						document.write("<a target='_top' href="+"Desc_frame.htm?A"+szSearch+">");
						document.write('<img height='+nSize+' src="'+ Column[(nReturnVal*nRecordSize)+0]+'"><br>');
						document.write('</a>');
						document.write('US$'+Column[(nReturnVal*nRecordSize)+5]);
						document.write('</td>');
				    if (nNewTable) document.write("</tr></table>");								
				}
				else
				{
				    if (nNewTable) document.write("<table style='cellspacing:0px;border-width:0px;padding:0px'><tr>");
						
												
    				if ((nReturnVal=SearchOPByItemCode(szSearch))>=0)
    				{
						 	  if (szTitle=="") szTitle=aFMD[(nReturnVal*aRecordSize)+0];
						    document.write("<td valign=bottom align=center style=';font-size:14px'><span style='color:black'>"+szTitle+"</span><br>");								
								document.write('<a target="_top" href="frame_fmd.htm?A'+szSearch+'">');
								document.write('<img  height='+nSize+' src="'+aFMD[(nReturnVal*aRecordSize)+5]+'"><br>');
								document.write('</a>');
						    document.write('US$'+aFMD[(nReturnVal*aRecordSize)+1]);								
										
    				}
						else
						{
						    document.write("<td valign=bottom align=center style=';font-size:14px'><span style='color:black'>"+szTitle+"</span><br>");
								document.write('<img height='+nSize+' src="'+'pic_others/NotAvailable.JPG'+'">');
						}
						document.write('</td>');						
				    if (nNewTable) document.write("</tr></table>");																			
				}					
		}

		function DisplayMP34NAccPicLinks2(szSearch,szTitle,nNewTable,nSize)
		{		     
				//szSearch="10010600";
				//alert(nSize);
				if (nSize==null) nSize=100;				
				if ((nReturnVal=SearchMP34ByItemCode(szSearch))>=0)
				{
				    if (nNewTable) document.write("<table style='cellspacing:0px;border-width:0px;padding:0px'><tr>");
						if (szTitle=="") szTitle=Column[(nReturnVal*nRecordSize)+1];
						
						document.write("<td valign=bottom align=center style=';font-size:14px'>"+szTitle+"<br>");
						document.write("<a target='_top' href="+"..//Desc_frame.htm?A"+szSearch+">");
						document.write('<img height='+nSize+' src="'+'../'+Column[(nReturnVal*nRecordSize)+0]+'"><br>');
						document.write('</a>');
						document.write('US$'+Column[(nReturnVal*nRecordSize)+5]);
						document.write('</td>');
				    if (nNewTable) document.write("</tr></table>");								
				}
				else
				{
				
    				if ((nReturnVal=SearchOPByItemCode(szSearch))>=0)
    				{
				        if (nNewTable) document.write("<table style='cellspacing:0px;border-width:0px;padding:0px'><tr>");
						    if (szTitle=="") szTitle=aFMD[(nReturnVal*aRecordSize)+0];
						    document.write("<td valign=bottom align=center style=';font-size:14px'><span style='color:black'>"+szTitle+"</span><br>");												
										
								document.write('<a target="_top" href="..//frame_fmd.htm?A'+szSearch+'">');
								document.write('<img height='+nSize+' src="'+'..//'+aFMD[(nReturnVal*aRecordSize)+5]+'"><br>');
								document.write('</a>');
						    document.write('US$'+aFMD[(nReturnVal*aRecordSize)+1]);																		
    				}
						else
						{
								document.write('<img height='+nSize+' src="'+'../pic_others/NotAvailable.JPG'+'">');
						}
						document.write('</td>');						
				    if (nNewTable) document.write("</tr></table>");																			
				}					
		}
		function DisplayMP34NAccPicLinks3(szSearch,szTitle,nNewTable,nSize)
		{		     
				//szSearch="10010600";
				//alert(nSize);
				var nDiff,nPrice,nMSRP,nFlag;
				

				
				if (nSize==null) nSize=100;				

				if ((nReturnVal=SearchMP34ByItemCode(szSearch))>=0)
				{
				    if (nNewTable) document.write("<table style='cellspacing:0px;border-width:0px;padding:0px'><tr>");
						if (szTitle=="") szTitle=Column[(nReturnVal*nRecordSize)+1];

						document.write("<td valign=bottom align=center style=';font-size:14px;color:black'><b>"+szTitle+"</b><br>");					
						document.write("<a target='_top' href="+"Desc_frame.htm?A"+szSearch+">");
						document.write('<img height='+nSize+' src="'+ Column[(nReturnVal*nRecordSize)+0]+'"><br>');
						document.write('</a>');
						
    				nMSRP=Column[(nReturnVal*nRecordSize)+19];
    				nPrice=Column[(nReturnVal*nRecordSize)+5];
						nFlag=Column[(nReturnVal*nRecordSize)+26].valueOf();				
    				nDiff=(nMSRP-nPrice);
    				nDiff=nDiff/nMSRP;
    				nDiff*=100;
    
    				nDiff=nDiff.toFixed(0);

				//alert(nDiff);	
				//alert(nPrice);						+'('+nDiff.toFixed(2)+'% off)'
						document.write('<span style="font-size:20px;color:red">'+'US$'+nPrice+'</span><br>');
						document.write('<span style="font-size:12px;color:green"><b>'+'<strike style="color:red"><span style="color:black">'+'US$'+nMSRP+'</span></strike> '+'<span style="color:blue">'+nDiff+'% off'+'</span>'+'</b></span>');
						if (nFlag)
						   document.write('<br><span style="font-size:14px;color:darkgreen"><b>'+'Recommended'+'</b></span>');
					  else
						   document.write('<br><span style="font-size:14px;color:green"><b>'+'-'+'</span>');												
						document.write('</td>');
				    if (nNewTable) document.write("</tr></table>");								
				}
				else
				{
				    if (nNewTable) document.write("<table style='cellspacing:0px;border-width:0px;padding:0px'><tr>");
						
												
    				if ((nReturnVal=SearchOPByItemCode(szSearch))>=0)
    				{
						 	  if (szTitle=="") szTitle=aFMD[(nReturnVal*aRecordSize)+0];
								
        				nMSRP=aFMD[(nReturnVal*aRecordSize)+3];
        				nPrice=aFMD[(nReturnVal*aRecordSize)+1];			
        				nDiff=(nMSRP-nPrice);
								nFlag=aFMD[(nReturnVal*aRecordSize)+13].valueOf();	
        				nDiff=nDiff/nMSRP;
        				nDiff*=100;
        
        				nDiff=nDiff.toFixed(0);
						
														
						    document.write("<td valign=bottom align=center style=';font-size:14px'><span style='color:black'><b>"+szTitle+"</b></span><br>");								
								document.write('<a target="_top" href="frame_fmd.htm?A'+szSearch+'">');
								document.write('<img  height='+nSize+' src="'+aFMD[(nReturnVal*aRecordSize)+5]+'"><br>');
						    document.write('</a><span style="font-size:20px;color:red">'+'US$'+nPrice+'</span><br>');
								document.write('<span style="font-size:12px;color:green"><b>'+'<strike style="color:red"><span style="color:black">'+'US$'+nMSRP+'</span></strike> '+'<span style="color:blue">'+nDiff+'% off'+'</span>'+'</b></span>');
								if (nFlag)
								   document.write('<br><span style="font-size:14px;color:darkgreen"><b>'+'Recommended'+'</b></span>');
							  else
								   document.write('<br><span style="font-size:14px;color:green"><b>'+'-'+'</span>');
														
								

						    //document.write('US$'+aFMD[(nReturnVal*aRecordSize)+1]);								
										
    				}
						else
						{
						    document.write("<td valign=bottom align=center style=';font-size:14px'><span style='color:black'>"+szTitle+"</span><br>");
								document.write('<img height='+nSize+' src="'+'pic_others/NotAvailable.JPG'+'">');
						}
						document.write('</td>');						
				    if (nNewTable) document.write("</tr></table>");																			
				}					
		}


		function DisplayBottomTable()
		{
		   //var szaBestBuyMP34=new Array("","","","");
			 //szaBestBuy
				var szaBestBuyMP34=new Array("10260510","10070100","10070300","10010600");
			 var bMP34,szSearch,nMP3MP4Index;
			 var naSP=new Array(0,0,0,0);
			 var nSavings=new Array(0,0,0,0);
			 
		   document.write('<table width=100% style="background-color:yellow;border-color:black;border-style:solid;border-width:0px;padding:0">');
			 document.write('<tr width=100%><td colspan="5" align=right style="background-color:red;color:white;font-size:24px">'+"Best-Buy iPods, MP3 Players & MP4 Players"+'</td></tr>');
			 document.write('<tr width=100%>');
			 document.write('<td><center style="font-size:12px"><a target="_top" href="http://www.mp34store.com/frame2_Low_Price_MP3_Player.htm" alt="Low Price MP3 Players: Find all our MP3 players priced under US$45 here.">Low-Price MP3 Players</a><br><a target="_top" href="http://www.mp34store.com/frame2_Sports_MP3_Player.htm">Sports MP3 Players</center></a></td><td align=center>Non-recharable<br>MP3 Player</td><td align=center>Recharable<br>MP3 Player</td><td align=center>MP4 Player<br>(Flash-Memory Based)</td><td align=center>2.5" LCD<br>MP4 Player</td></tr>');
			 document.write('<td  align=center >');
			 document.write('<img src="awards/Logo_mp34store4C2.GIF" width=150>');
			 document.write('</td>');
	 
			 			 
			 for (hh=0;hh<4;hh++)
			 {
			     // ---------------------------------		 
  				szSearch=szaBestBuyMP34[hh];
  				if ((nReturnVal=SearchMP34ByItemCode(szSearch))>=0)
  				{
							bMP34=1;			
  				}
  				else
  				{
         				if ((nReturnVal=SearchOPByItemCode(szSearch))>=0)
        				{
        				 	 	//document.write("OP:Record found: <u style='color:blue'>"+szSearch+"</u> ["+aFMD[(nReturnVal*aRecordSize)+0]+"]"+"<br>");
        						bMP34=1;		
        				}
        				else
        				{
								    alert('NOt found');
        						//document.write("OP:Record not found: <u style='color:red'>"+szSearch+"</u><br>");		
        				}
  				}  			 			 
			     // ---------------------------------
    			 if (bMP34)
    			 {
					 	    nMP3MP4Index=nReturnVal;
						    nListPrice=Column[(nMP3MP4Index*nRecordSize)+19];
						    nSalesPrice=Column[(nMP3MP4Index*nRecordSize)+5];
						    nDifference=nListPrice-nSalesPrice;
								nPercent=(nDifference/nListPrice)*100;
								szDescription=Column[(nMP3MP4Index*nRecordSize)+1];
								szPicPath=Column[(nMP3MP4Index*nRecordSize)+0];
							  naSP[hh]=nSalesPrice;
			          nSavings[hh]=nPercent;    			 
    			 }
    			 else
    			 {
    			 }
					 
					 // ---------------------------------
			     document.write('<td  align=center >');
					 document.write('<a href="'+""+'"></a>');
					 
  				 document.write('<a target="_top" href="'+"Desc_frame.htm?A"+szSearch+'">');					 					 
			     document.write('<img src="'+szPicPath+'" width=150></a>');
			     document.write('</td>');					 
					  
			 }
 	     document.write('</tr><tr>');
			 document.write('<td><center><form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post"><input type="hidden" name="cmd" value="_cart"><input type="hidden" name="business" value="sales@mp34store.com"><input type="image" src="https://www.paypal.com/en_US/i/btn/view_cart.gif" border="0" name="submit" alt="Make payments with PayPal - it is fast, free and secure!"><input type="hidden" name="display" value="1"></form></center></td>');


			 for (hh=0;hh<4;hh++)
			 {
				   document.write('<td align=center style="color:blue">Current Price: <u>'+'US$'+naSP[hh]+'</u><br>');
					 document.write('<b style="color:red">(save '+nSavings[hh].toFixed(0)+'%)</b></td>');			 
			 }		 
	 
			 
 	     document.write('</tr>');	 			 
			 document.write('</table>');			 			 			 			 			 			 
		}
		
		function Display_Honor_Products(nMode)
		{				
		    if (nMode==0)
				{
					document.write("<table style='border-color:blue;border-width:5px;border-style:solid'>");
					document.write("<tr><td style='color:white;background-color:red'><center>Best-Buy MP3/MP4 Players</center></td></tr>");
					document.write("<tr><td>");
    					document.write("<div style='color:black'>");
      				DisplayMP34NAccPicLinks3("10260510","Best-Buy Low-Price MP3 Player",1,118);	
      				DisplayMP34NAccPicLinks3("10070100","Best-Buy Rechargeable MP3 Player",1,118);						
      				DisplayMP34NAccPicLinks3("10070300","Best-Buy MP4 Player(EQ 1GB)",1,118);
      				DisplayMP34NAccPicLinks3("10120200","Best-Buy MP4 Player(GE 2GB)",1,118);						
      				DisplayMP34NAccPicLinks3("10010600","Best-Buy 2.5in MP4 Player",1,118);
    					document.write("</div>");
					document.write("</td></tr></table>");																		
				}			
				else if (nMode==1)
				{
					document.write("<table style='border-color:blue;border-width:5px;border-style:solid'>");
					document.write("<tr><td style='color:white;background-color:red'><center>Recommended Accessories</center></td></tr>");
					document.write("<tr><td>");
					document.write("<div style='color:black'>");
				DisplayMP34NAccPicLinks3("10413020","4-Port USB Hub<br>(retractable cables)",1,118);
      				DisplayMP34NAccPicLinks3("10505600","Ricco 12watts Portable Speakers",1,118);		
              DisplayMP34NAccPicLinks3("10435510","iPone Sports Stereo Earphones",1,118);	
      				DisplayMP34NAccPicLinks3("10388100","iPod USB Car Charger",1,118);						
      				DisplayMP34NAccPicLinks3("10384900","iPod/Mp3 Armband",1,118);
      				DisplayMP34NAccPicLinks3("10384000","iPod/MP3/MP4 Pouch",1,118);					      				
    					document.write("</div>");
					document.write("</td></tr></table>");								
				}				
				else
				{
					document.write("<table style='border-color:blue;border-width:5px;border-style:solid'>");
					document.write("<tr><td style='color:white;background-color:red'><center>Recommended SD Products</center></td></tr>");
					document.write("<tr><td>");
					 	  document.write("<div style='color:black'>");
							DisplayMP34NAccPicLinks3("10042040","Exigo SD Card (1GB)",1,118);
      				DisplayMP34NAccPicLinks3("10042050","Exigo SD Card (2GB)",1,118);		
      				DisplayMP34NAccPicLinks3("10122240","SanDisk miniSD Card (1GB)",1,118);			
              DisplayMP34NAccPicLinks3("10122340","SanDisk microSD Card (1GB)",1,118);					
      				DisplayMP34NAccPicLinks3("10413150","USB 2.0 microSD Card Reader",1,118);
      				DisplayMP34NAccPicLinks3("10123130","SanDisk ImageMate 5-in-1 Card Reader/Writer",1,118);					      				
    					document.write("</div>");
					document.write("</td></tr></table>");								
				}
										
				 				 
		}				
		
		function Display_Honor_Products(nMode)
		{				
		    if (nMode==0)
				{
					document.write("<table style='border-color:blue;border-width:5px;border-style:solid'>");
					document.write("<tr><td style='color:white;background-color:red'><center>Best-Buy MP3/MP4 Players</center></td></tr>");
					document.write("<tr><td>");
    					document.write("<div style='color:black'>");
      				DisplayMP34NAccPicLinks3("10260510","Best-Buy Low-Price MP3 Player",1,118);	
      				DisplayMP34NAccPicLinks3("10070100","Best-Buy Rechargeable MP3 Player",1,118);						
      				DisplayMP34NAccPicLinks3("10070300","Best-Buy MP4 Player(EQ 1GB)",1,118);
      				DisplayMP34NAccPicLinks3("10120200","Best-Buy MP4 Player(GE 2GB)",1,118);						
      				DisplayMP34NAccPicLinks3("10010600","Best-Buy 2.5in MP4 Player",1,118);
    					document.write("</div>");
					document.write("</td></tr></table>");																		
				}			
				else if (nMode==1)
				{
					document.write("<table style='border-color:blue;border-width:5px;border-style:solid'>");
					document.write("<tr><td style='color:white;background-color:red'><center>Recommended Accessories</center></td></tr>");
					document.write("<tr><td>");
					document.write("<div style='color:black'>");
				DisplayMP34NAccPicLinks3("10413020","4-Port USB Hub<br>(retractable cables)",1,118);
      				DisplayMP34NAccPicLinks3("10505600","Ricco 12watts Portable Speakers",1,118);		
                                DisplayMP34NAccPicLinks3("10435510","iPone Sports Stereo Earphones",1,118);	
      				DisplayMP34NAccPicLinks3("10388100","iPod USB Car Charger",1,118);						
      				DisplayMP34NAccPicLinks3("10384900","iPod/MP3 Armband",1,118);
      				DisplayMP34NAccPicLinks3("10384000","iPod/MP3/MP4 Pouch",1,118);					      				
    					document.write("</div>");
					document.write("</td></tr></table>");								
				}				
				else
				{
					document.write("<table style='border-color:blue;border-width:5px;border-style:solid'>");
					document.write("<tr><td style='color:white;background-color:red'><center>Recommended SD Products</center></td></tr>");
					document.write("<tr><td>");
					 	  document.write("<div style='color:black'>");
							DisplayMP34NAccPicLinks3("10042040","Exigo SD Card (1GB)",1,118);
      				DisplayMP34NAccPicLinks3("10042050","Exigo SD Card (2GB)",1,118);		
      				DisplayMP34NAccPicLinks3("10122240","SanDisk miniSD Card (1GB)",1,118);			
                                DisplayMP34NAccPicLinks3("10122340","SanDisk microSD Card (1GB)",1,118);					
      				DisplayMP34NAccPicLinks3("10413150","USB 2.0 microSD Card Reader",1,118);
      				DisplayMP34NAccPicLinks3("10123130","SanDisk ImageMate 5-in-1 Card Reader/Writer",1,118);					      				
    					document.write("</div>");
					document.write("</td></tr></table>");								
				}
										
				 				 
		}							
		
		function GetProductDesc(szItemCode)
      {
		     var nReturnValue;
				 
				 nReturnValue=SearchOPByItemCode(szItemCode);
		     if (nReturnValue>=0)
				 {
						     return  aFMD[(nReturnValue*aRecordSize)+0];						 
				 }
				 else
				 {
				     nReturnValue=SearchMP34ByItemCode(szItemCode);
				     if (nReturnValue>=0)
						 {
						     return  Column[(nReturnValue*nRecordSize)+1];
						 }
						 else
						 {
						     return null;
						 }
				 }
      }			
									
/*
 This set of source codes is protected by international copyright laws...
 No copying is allowed. 
 http://www.mp34store.com
 Copyright (C) 2007. All Rights Reserved.
*/


				
