/* 
 * author : Roger D. Hosto Jr.
 * copyright 2004 X10.COM
 */
function x10Catalog() {
	
	//Publisher ID set by the Publisher
	this.AffiliateID=null;
	
	//This is a flag set so the error messages doesn't repeat
	this.ERROR=null;
	
	//This is for decaching the tracking image
	this.decache = new Date();
	
	//This is the campaign tracking id set by X10
	this.CAMPAIGN="bGNqYnV5bm93LmRhd";
	
	//This is the tracking pixel set by X10
	this.TRACKPixel="Z2NqanN0cmsuZGF0=";
	
	//X10 Item Number
	this.x10ItemNumber="34903";
	
	// The default order button graphic
	this.ButtonImg = "http://graphics.x10.com/images_buttons/order5.gif";

	// The default more information button
	this.InfoButtonImg = "http://graphics.x10.com/images_buttons/button_moreinfo_blue_sm.gif";

	// The Url to the location of the more information pages
	this.MoreInfoUrl = "http://www.x10.com/affiliate_pages/x10indie/";

	// The refer a friend default graphic
	this.ReferFriendImage = "http://graphics.x10.com/images_buttons/button2_sendfriend_rh.gif";
	
	// The X10 Catalog Array
	this.Catalog = new Array();
	this.Catalog[0] = new Array("AK11A2-GC20","MP3 Anywhere with $20 Gift Certificate","79.99","32191","http://graphics.x10.com/images_minipics/ak11a.gif","Listen to the MP3s on your computer on your favorite stereo","wirelessmp3_c_ak11a2_gc20.html");
	this.Catalog[1] = new Array("AM14A-HA","2-way Appliance Module (2-pin, Polarized)","32.99","33744","http://graphics.x10.com/images_minipics/am14a.gif","","accessories_c_automation.html");
	this.Catalog[2] = new Array("AM466-HA","Appliance Module (3-pin, Grounded)","13.99","33745","http://graphics.x10.com/images_minipics/am466.gif","","accessories_c_automation.html");
	this.Catalog[3] = new Array("AM486","Appliance Module (2-pin, Polarized)","12.99","1805","http://graphics.x10.com/images_minipics/am486.gif","","accessories_c_automation.html");
	this.Catalog[4] = new Array("CK11A-HA","ActiveHome 6 Piece Home Automation Kit","49.99","33747","http://graphics.x10.com/images_minipics/ck11a.gif","","");
	this.Catalog[5] = new Array("CK11A-MAC","ActiveHome 6pc Home Automation Kit with MouseHouse Software (Mac)","69.99","1811","http://graphics.x10.com/images_minipics/ck11a.gif","","");
	this.Catalog[6] = new Array("CK12AS","ActiveHome 6pc Home Automation Kit","49.99","36898","http://graphics.x10.com/images_minipics/ck11a.gif","","");
	this.Catalog[7] = new Array("CK18A-HA","FireCracker Lighting Control 4 Piece Kit","39.99","33748","http://graphics.x10.com/images_minipics/ck18a.gif","Control your lights and appliances directly from your PC or wireless remote -- anywhere in your house!","lightingcontrol_c_ck18a_ha.html");
	this.Catalog[8] = new Array("CM15A-SD-KMP-PS131","ActiveHome Professional 9-Piece Home Automation Starter Kit with Lamp Module, EagleEye Motion Sensor, Appliance Module and Palm Pad Remote, Keychain Remote, Slimline Switch and Socket Rocket","99.99","74508","http://graphics.x10.com/images_minipics/cm15a-sp-is50.gif","Everything you need to start your own home automation system","homeautomation_c_cm15a_sp_kmp_ps131.html");
	this.Catalog[9] = new Array("CM15A-SP-IS50","ActiveHome Professional Home Automation Starter Kit with USB Computer Interface and Software","49.99","73694","http://graphics.x10.com/images_minipics/cm15a-sd-kmp-ps131.gif","Control lights and appliances with your PC, by remote and more","homeautomationsystem_c_cm15a_sp_i550.html");
	this.Catalog[10] = new Array("CM17A","FireCracker Serial Computer Interface","26.99","33497","http://graphics.x10.com/images_minipics/cm17a.gif","","");
	this.Catalog[11] = new Array("CM19A","PC Transceiver (USB), USB","49.99","32322","http://graphics.x10.com/images_minipics/cm19a.gif","","accessories_c_software.html");
	this.Catalog[12] = new Array("CR12A","ScanPad Remote Control","29.99","33498","http://graphics.x10.com/images_minipics/cr12a.gif","","accessories_c_cameras.html");
	this.Catalog[13] = new Array("CR13A","ScanPower Director Multi-Camera Remote Control","49.99","14372","http://graphics.x10.com/images_minipics/cr13a.gif","","accessories_c_cameras.html");
	this.Catalog[14] = new Array("CR14A","Pan & Tilt ScanPad Remote Control","49.99","32309","http://graphics.x10.com/images_minipics/cr14a.gif","","accessories_c_cameras.html");
	this.Catalog[15] = new Array("DC8700","Monitor Plus Home Security System","99.99","1833","http://graphics.x10.com/images_minipics/dc8700.gif","All the features of a professional system for under $1","homesecuritymonitoring_c_dc8700.html");
	this.Catalog[16] = new Array("DM10A","Outdoor Motion Detector","29.99","1839","http://graphics.x10.com/images_minipics/dm10a.gif","","accessories_c_security.html");
	this.Catalog[17] = new Array("DS10A","Door & Window Sensor","19.99","1840","http://graphics.x10.com/images_minipics/ds10a.gif","","accessories_c_security.html");
	this.Catalog[18] = new Array("DS7000","Protector Plus Dial-Up Home Security System","99.99","1841","http://graphics.x10.com/images_minipics/ds7000.gif","Protect Your home and loved ones with 	this.wireless system","wirelesshomesecurity_c_ds7000.html");
	this.Catalog[19] = new Array("HD243-HA","Heavy Duty Module (15 Amp)","29.99","33754","http://graphics.x10.com/images_minipics/hd243.gif","","accessories_c_automation.html");
	this.Catalog[20] = new Array("HD245-HA","Heavy Duty Module (20 Amp)","29.99","33755","http://graphics.x10.com/images_minipics/hd245.gif","","accessories_c_automation.html");
	this.Catalog[21] = new Array("HK10A-SR2-HA","SuperRemote Lighting Control Kit","29.99","37096","http://graphics.x10.com/images_minipics/hk10a.gif","Control lights in your home by remote control","remotecontrollighting_c_hk10a_sr2_ha.html");
	this.Catalog[22] = new Array("HP564","Heart Shaped Personal Assistance Pendant","19.99","1848","http://graphics.x10.com/images_minipics/hp564.gif","","accessories_c_security.html");
	this.Catalog[23] = new Array("HR12A-HA","PalmPad Hand Held Remote Control","19.99","33757","http://graphics.x10.com/images_minipics/hr12a.gif","","accessories_c_automation.html");
	this.Catalog[24] = new Array("IR543-HA","Infrared to Powerline Transceiver","22.86","33758","http://graphics.x10.com/images_minipics/ir543.gif","","accessories_c_entertainment.html");
	this.Catalog[25] = new Array("KR10A","Security Keychain Remote","19.99","1856","http://graphics.x10.com/images_minipics/kr10a.gif","","accessories_c_security.html");
	this.Catalog[26] = new Array("KR15A","Emergency Panic Button","19.99","1857","http://graphics.x10.com/images_minipics/kr15a.gif","","accessories_c_security.html");
	this.Catalog[27] = new Array("KR19A-HA","SlimFire Keychain Remote","19.99","33761","http://graphics.x10.com/images_minipics/kr19a.gif","","accessories_c_automation.html");
	this.Catalog[28] = new Array("KR22A-HA","4-channel Keychain Controller","19.99","33762","http://graphics.x10.com/images_minipics/kr22a.gif","","accessories_c_automation.html");
	this.Catalog[29] = new Array("LM14A-HA","Lamp Module (2-way)","32.99","33763","http://graphics.x10.com/images_minipics/lm14a.gif","","accessories_c_automation.html");
	this.Catalog[30] = new Array("LM15A-HA","Socket Rocket Screw-in Lamp Module","19.99","33764","http://graphics.x10.com/images_minipics/lm15a.gif","","accessories_c_security.html");
	this.Catalog[31] = new Array("LM465-HA","Lamp Module (Dimmable)","12.99","33765","http://graphics.x10.com/images_minipics/lm465.gif","","accessories_c_security.html");
	this.Catalog[32] = new Array("LOLA1","Lola Wireless Music System (Direct Connect Version)","49.99","35067","http://graphics.x10.com/images_minipics/mk10a.gif","View your music on TV and hear it through your sound system","wirelessmusic_c_lola1.html");
	this.Catalog[33] = new Array("LOLA2","Lola Wireless Music System (TV-Video Version)","69.99","35068","http://graphics.x10.com/images_minipics/mk11a.gif","The wireless version of our popular music system","wirelessmusic_c_lola2.html");
	this.Catalog[34] = new Array("LOLA3","Lola Wireless Music System (VGA Version)","99.99","35069","http://graphics.x10.com/images_minipics/mk12a.gif","Our popular music system for computers with a VGA port","wirelessmusic_c_lola3.html");
	this.Catalog[35] = new Array("MC460-HA","Mini Controller Console (4 button)","12.99","33766","http://graphics.x10.com/images_minipics/mc460.gif","","accessories_c_automation.html");
	this.Catalog[36] = new Array("MK19A","MouseRemote Control Kit (with Receiver and Software)","49.99","1864","http://graphics.x10.com/images_minipics/mk19a.gif","","");
	this.Catalog[37] = new Array("MK-CBL-PAK","Lola Direct Cable Pack","19.99","35063","http://graphics.x10.com/images_minipics/mk-cbl-pak.gif","","accessories_c_entertainment.html");
	this.Catalog[38] = new Array("MR26A","PC Receiver (Serial)","29.99","15112","http://graphics.x10.com/images_minipics/mr26a.gif","","accessories_c_software.html");
	this.Catalog[39] = new Array("MS10A","Security Motion Detector","49.99","1865","http://graphics.x10.com/images_minipics/ms10a.gif","","accessories_c_security.html");
	this.Catalog[40] = new Array("MS14A-HA","EagleEye Motion Sensor","24.99","33768","http://graphics.x10.com/images_minipics/ms14a.gif","","accessories_c_automation.html");
	this.Catalog[41] = new Array("MS16A-HA","ActiveEye Motion Sensor","29.99","33770","http://graphics.x10.com/images_minipics/ms16a.gif","","accessories_c_automation.html");
	this.Catalog[42] = new Array("MT10A-HA","Mini-timer with & Home Automation Console","29.99","33771","http://graphics.x10.com/images_minipics/mt10a.gif","","accessories_c_automation.html");
	this.Catalog[43] = new Array("NTL6","NightVision Sport DX Scope with FREE Case","239.99","32959","http://graphics.x10.com/images_minipics/ntl5.gif","See in total darkness with 	this.high-quality monocular system","surveillancequipment_c_ntl6.html");
	this.Catalog[44] = new Array("PA5800","Personal Assistance System (Dial-up)","49.99","274987","http://graphics.x10.com/images_minipics/pa5800.gif","Keep your independence with just a push of a button","personalalarm_c_pa5800.html");
	this.Catalog[45] = new Array("PA9200","Personal Assistance System (Monitored)","49.99","1877","http://graphics.x10.com/images_minipics/pa9200.gif","Pres a button and instantly coneect with professional help","personalsecurity_c_pa9200.html");
	this.Catalog[46] = new Array("PF284","Powerflash Interface","29.99","1957","http://graphics.x10.com/images_minipics/pf284.gif","","accessories_c_security.html");
	this.Catalog[47] = new Array("PH508","PowerHorn Siren","39.99","1880","http://graphics.x10.com/images_minipics/ph508.gif","","accessories_c_security.html");
	this.Catalog[48] = new Array("PK9000","Robo-Dog Home Alarm System with Barking Dog Sound","59.99","1888","http://graphics.x10.com/images_minipics/pk9000.gif","Scare away intruders with the ferocious Robo-Dog","homesecuritydevice_c_pk9000.html");
	this.Catalog[49] = new Array("PL513-HA","Powerline Interface","19.99","33777","http://graphics.x10.com/images_minipics/pl513.gif","","accessories_c_automation.html");
	this.Catalog[50] = new Array("PM5900","RemoteSender System","39.99","1892","http://graphics.x10.com/images_minipics/pm5900.gif","","accessories_c_entertainment.html");
	this.Catalog[51] = new Array("PR511-HA","Outdoor Motion Monitor with Floodlight","49.99","33778","http://graphics.x10.com/images_minipics/pr511.gif","","accessories_c_automation.html");
	this.Catalog[52] = new Array("RC5000","PalmPad Remote Control System","39.99","1896","http://graphics.x10.com/images_minipics/rc5000.gif","Brighten and dim lights with the touch of a button","x10remote_c_rc5000.html");
	this.Catalog[53] = new Array("RC6500-HA","Keychain Remote Control System","24.99","33779","http://graphics.x10.com/images_minipics/rc6500.gif","Turn on lights in your home from the safety of your car","x10module_c_rc6500_ha.html");
	this.Catalog[54] = new Array("RX569","RemoteSender IR-Blaster Cable","12.99","1906","http://graphics.x10.com/images_minipics/rx569.gif","","accessories_c_entertainment.html");
	this.Catalog[55] = new Array("SC15A2-W","XCam Wired Color Camera (White) with 15ft Cable","59.99","35586","http://graphics.x10.com/images_minipics/rx569.gif","Surveillance that blends in with your home décor","xcam-wired-white.html");
	this.Catalog[56] = new Array("SC16A","XCam Wired Color Camera (Charcoal) with 15ft Cable","49.99","32337","http://graphics.x10.com/images_minipics/sc16a.gif","Start your system with 	this.discreet and powerful camera","xcam2-wired-charcoal.html");
	this.Catalog[57] = new Array("SC18A","Xcam Anaconda Wired Color Camera with 60ft Cable","49.99","8440","http://graphics.x10.com/images_minipics/sc18a.gif","Rugged, affordable, discreet and secure surveillance camera","mini-camera-anaconda.html");
	this.Catalog[58] = new Array("SC23A","XCam NightWatch2 Wired Low Light B/W Camera with 60ft Cable","69.99","32904","http://graphics.x10.com/images_minipics/sc21a.gif","Secure low-light camera that \"sees\" is 3X less light","minicamera-nightwatch2.html");
	this.Catalog[59] = new Array("SC503-HA","Maxi Controller Console","24.99","33782","http://graphics.x10.com/images_minipics/sc503.gif","","accessories_c_automation.html");
	this.Catalog[60] = new Array("SC546A-HA","Remote Chime","24.99","33783","http://graphics.x10.com/images_minipics/sc546.gif","","accessories_c_automation.html");
	this.Catalog[61] = new Array("SD533-HA","Sundowner Console","19.99","33784","http://graphics.x10.com/images_minipics/sd533.gif","","accessories_c_automation.html");
	this.Catalog[62] = new Array("SH10A","PowerHorn Siren (105db)","31.99","1915","http://graphics.x10.com/images_minipics/sh10a.gif","","accessories_c_security.html");
	this.Catalog[63] = new Array("SH624","Security Hand Held Remote Control","26.99","1916","http://graphics.x10.com/images_minipics/sh624.gif","","accessories_c_security.html");
	this.Catalog[64] = new Array("SK10A-DEALS4","3-Cam XCam2 Wireless Color Camera System","169.99","32151","http://graphics.x10.com/images_minipics/vk49a.gif","Watch over your entire home - without wires!","/homesecuritysystem_c_sk10a-deals4.html");
	this.Catalog[65] = new Array("SK16A","XCam2 X10 Addressable Power Supply","19.99","5735","http://graphics.x10.com/images_minipics/pt30a.gif","","accessories_c_cameras.html");
	this.Catalog[66] = new Array("SK20A-3C-FB19","3-Cam XCam2 Nightwatch Low Light B/W Camera System","199.99","37125","http://graphics.x10.com/images_minipics/vk49a.gif","The complete low-light surveillance system","securitycameras_c_sk20a_3c_fb19.html");
	this.Catalog[67] = new Array("SL575","Lamp Module (Screw-in, Dimmable)","15.99","1919","http://graphics.x10.com/images_minipics/sl575.gif","","accessories_c_security.html");
	this.Catalog[68] = new Array("SR227-HA","X10 Controllable Wall Outlet","15.99","33787","http://graphics.x10.com/images_minipics/sr227.gif","","accessories_c_automation.html");
	this.Catalog[69] = new Array("SR731-HA","X10 RF Repeater/Extender","64.99","33788","http://graphics.x10.com/images_minipics/sr731.gif","","accessories_c_automation.html");
	this.Catalog[70] = new Array("SS13A-HA","Slimline Wireless Wall Switch (White)","19.99","33789","http://graphics.x10.com/images_minipics/ss13a.gif","","accessories_c_automation.html");
	this.Catalog[71] = new Array("SS15A-HA","Slimline Wireless Wall Switch (Gold)","24.99","33790","http://graphics.x10.com/images_minipics/ss15a.gif","","accessories_c_automation.html");
	this.Catalog[72] = new Array("SW10A","Macro Recorder Software (For Firecracker)","19.99","3679","http://graphics.x10.com/images_minipics/sw10a.gif","Run an unlimited number of commands with the push of a button","homeautomationsoftware_c_sw10a.html");
	this.Catalog[73] = new Array("SW11A","Fuse Timer Software (For Firecracker)","19.99","3681","http://graphics.x10.com/images_minipics/sw11a.gif","Program and schedule commands for your lights and appliances","homeautomationtimersoftware_c_sw11a.html");
	this.Catalog[74] = new Array("SW17A","Commander Software","0","33515","http://graphics.x10.com/images_minipics/sw17a.gif","","");
	this.Catalog[75] = new Array("SW18A","XRay Vision Streaming (Beta), Download Only","19.95","12230","http://graphics.x10.com/images_minipics/sw15a.gif","View live color video from your X1 camera over the Internet","webcamsecuritysoftware_c_sw18a.html");
	this.Catalog[76] = new Array("SW19A","MultiView Camera Software (1.0)","99.99","15098","http://graphics.x10.com/images_minipics/sw19a.gif","View up to four X1 camera images at the same time on one PC","videosurveillancesoftware_c_sw19a.html");
	this.Catalog[77] = new Array("SW20A-UPG","WebView Camera Software (requires MultiView 1.0)","79.99","31664","http://graphics.x10.com/images_minipics/sw20a.gif","Add Internet power to MultiView with 	this.powerful software","webcamsurveillancesoftware_c_sw20a_upg.html");
	this.Catalog[78] = new Array("SW21A","PanTilt Pro Control Software (Required Pan & Tilt Camera Base)","49.99","32321","http://graphics.x10.com/images_minipics/sw21a.gif","Monitor and control X1 cameras attached to Pan & Tilt bases","remotesurveillancesoftware_c_sw21a.html");
	this.Catalog[79] = new Array("SW25A","Lola Music System Software","99.99","35061","http://graphics.x10.com/images_minipics/sw25a.gif","The software behind our popular music system","musicwirelesstv_c_sw25a.html");
	this.Catalog[80] = new Array("SW26A-PAK","Vanguard Camera Control Center Software Pack","99.99","35024","http://graphics.x10.com/images_minipics/sw26a.gif","View video from your Vanguard on your PC or over the Internet","cameranetworksoftwaresurveillance_c_sw26a_pak.html");
	this.Catalog[81] = new Array("SW32A-SD-2M-PS49","Smart Macro Software Module for Active Home with two Eagle","49.99","85686","http://graphics.x10.com/images_minipics/sw32a-sd-2m-ps49.gif","The conditional macro plug-in for ActiveHome","homecontrol_c_smartmacro.html");
	this.Catalog[82] = new Array("TH2807-HA","Thermostat Set-Back Controller","19.99","33791","http://graphics.x10.com/images_minipics/th2807.gif","","accessories_c_automation.html");
	this.Catalog[83] = new Array("TM751-HA","X10 Powerline Transceiver Module","12.99","33792","http://graphics.x10.com/images_minipics/tm751.gif","Allows remote control of all X1 devices","lightcontrol_c_tm751_ha.html");
	this.Catalog[84] = new Array("TR1600","Touch Tone Controller 5pc Kit","69.99","5595","http://graphics.x10.com/images_minipics/tr16a.gif","Use your phone to control your entire home from anywhere","remotecontrollight_c_tr1600.html");
	this.Catalog[85] = new Array("TR16A-HA","Touch Tone Controller Console","39.99","33793","http://graphics.x10.com/images_minipics/tr16a.gif","","accessories_c_automation.html");
	this.Catalog[86] = new Array("TW523-HA","2-Way Powerline Interface","29.99","33794","http://graphics.x10.com/images_minipics/tw523.gif","","accessories_c_automation.html");
	this.Catalog[87] = new Array("UM506-HA","Universal Module","18.99","33795","http://graphics.x10.com/images_minipics/um506.gif","","accessories_c_automation.html");
	this.Catalog[88] = new Array("UR73A","Platinum 5-in-1 Universal Remote Control","39.99","32479","http://graphics.x10.com/images_minipics/ur73a.gif","","accessories_c_automation.html");
	this.Catalog[89] = new Array("UR74A","Universal 5-in-1 Learning Remote","49.99","32531","http://graphics.x10.com/images_minipics/ur74a.gif","","accessories_c_automation.html");
	this.Catalog[90] = new Array("UR89A","Lola Music System Remote Control","69.99","35062","http://graphics.x10.com/images_minipics/ur89a.gif","","accessories_c_entertainment.html");
	this.Catalog[91] = new Array("UX21A-KIT","VCR Commander Kit with Motion Sensor","49.99","13320","http://graphics.x10.com/images_minipics/ux21a.gif","","");
	this.Catalog[92] = new Array("UX23A","VCR Commander II","49.99","32112","http://graphics.x10.com/images_minipics/ux23a.gif","","accessories_c_cameras.html");
	this.Catalog[93] = new Array("VA11A","Video Capture Adapter (USB)","69.99","33526","http://graphics.x10.com/images_minipics/va11a.gif","","");
	this.Catalog[94] = new Array("VA11A-KIT","Video Capture Adapter with Drivers (Download)","69.99","20831","http://graphics.x10.com/images_minipics/va11a.gif","","accessories_c_software.html");
	this.Catalog[95] = new Array("VK30A-GC20","VideoSENDER with $20 Gift Certificate","49.99","207494","http://graphics.x10.com/images_minipics/vk30a.gif","Wirelessly send the signal from one TV in your home to another","wirelessvideosender_c_vk30a_gc20.html");
	this.Catalog[96] = new Array("VK49AS4-C","XCam2 Wireless Color Video Camera system","79.99","36074","http://graphics.x10.com/images_minipics/vk49a.gif","Broadcast color video right to your TV or VCR!","securitycamera_c_vk45a.html");
	this.Catalog[97] = new Array("VK49AS4-XR1","XCam2 Video Camera with Xray Vision Internet Kit","139.98","32222","http://graphics.x10.com/images_minipics/vk49a.gif","","");
	this.Catalog[98] = new Array("VK50A-GC15","XRay Vision Software with $15 Gift Certificate","69.99","8438","http://graphics.x10.com/images_minipics/sw15a.gif","View what your X1 cameras see on your PC and over the Internet","webcamsoftware_c_vk50a_gc15.html");
	this.Catalog[99] = new Array("VK53A2-GC20","DVD Anywhere system with $20 Gift Certificate","69.99","32319","http://graphics.x10.com/images_minipics/vk54a.gif","Play DVDs on your PC and watch them on your big screen TV","wirelessdvdplayer_c_vk53a2_gc20.html");
	this.Catalog[100] = new Array("VK54A-GC20","Entertainment Anywhere System with $20 Gift Certificate)","79.99","32327","http://graphics.x10.com/images_minipics/vk54a.gif","Play DVDs, streaming videos and music on any TV or stereo","");
	this.Catalog[101] = new Array("VK58AS4-C","XCam2 WideEye Color Video Camera system","99.99","36075","http://graphics.x10.com/images_minipics/vk58a.gif","Get 2X more viewing area with amazing 12ˇ wide-angle lens","surveillancecamera_c_vk58as4.html");
	this.Catalog[102] = new Array("VK57A2-GC20","Entertainment Anywhere with Software","69.99","32318","http://graphics.x10.com/images_minipics/vk57a.gif","Play DVDs, streaming videos and music on any TV or stereo","wirelessstereo_c_vk57a_c.html");
	this.Catalog[103] = new Array("VK59A","SoundPower Wireless Speaker Jack System with Amp","129.99","15070","http://graphics.x10.com/images_minipics/vk59a.gif","Send music from your stereo and more to speakers in your home","wirelessspeaker_c_vk59a.html");
	this.Catalog[104] = new Array("VK61A","MultiView Software with USB Video Capture Adapter","89.99","15099","http://graphics.x10.com/images_minipics/sw17a.gif","The MultiView Software Kit for PCs with USB ports","remotesoftwaresurveillancevideo_c_vk61a.html");
	this.Catalog[105] = new Array("VK69AS4-C","XCam2 InstantON Color Video Camera System","119.99","36076","http://graphics.x10.com/images_minipics/vk49a.gif","Camera system with no warm-up period when switching view","securitycam_c_vk69as4.html");
	this.Catalog[106] = new Array("VK70AS4-C","XCam2 InstantON WideEye color Video Camera System","129.99","36077","http://graphics.x10.com/images_minipics/vk58a.gif","Wireless camera with 12° wide-angle lens with no warm-up period","homesecurity_c_vk70as4.html");
	this.Catalog[107] = new Array("VK73A-FT1","Showtime with Free Tripod (VGA Version)","99.99","33725","http://graphics.x10.com/images_minipics/vk73a.gif","Create digital slide shows to play on your big screen TV","c_vk73a_ft1.html");
	this.Catalog[108] = new Array("VK74A-DEAL","Pan 'n Tilt Robotic Camera Base, Remote","99.99","32306","http://graphics.x10.com/images_minipics/vk74a.gif","","accessories_c_cameras.html");
	this.Catalog[109] = new Array("VK75A-KIT","XCam2 Color Camera System with Pan 'n Tilt Base, Remote, Receiver","169.99","32308","http://graphics.x10.com/images_minipics/vk75a.gif","Move your XCam2 video camera left, right, up and down by remote","surveillancecam_c_vk75a-kit.html");
	this.Catalog[110] = new Array("VK77A","Vanguard 44X Zoom Video Camera System","799.99","34250","http://graphics.x10.com/images_minipics/xc21a.gif","","");
	this.Catalog[111] = new Array("VK77A1","Vanguard Video Camera System","499.99","34455","http://graphics.x10.com/images_minipics/xc21a.gif","The professional-quality camera system with a 44X zoom lens","surveillance_c_vk77a1.html");
	this.Catalog[112] = new Array("VK77A1-2CAM-425","2-Cam Vanguard Color Camera System with Internet Control Center Software","1099.97","35179","http://graphics.x10.com/images_minipics/xc21a.gif","Professional-quality surveillance with Internet access","homesurveillancesystem_c_vk77a1_2cam_425.html");
	this.Catalog[113] = new Array("VK77A1-3CAM-425","3-Cam Vanguard Color Camera System with Internet Control Center Software","1599.96","35178","http://graphics.x10.com/images_minipics/xc21a.gif","Complete Internet surveillance for your home or business","surveillancecameras_c_vk77a1_3cam_425.html");
	this.Catalog[114] = new Array("VK78A-FT1","ShowTime Wireless Photo/Video Broadcast System with Free Tripod (TV/Video Version)","69.99","33724","http://graphics.x10.com/images_minipics/vk73a.gif","Showtime for PCs with S-Video or composite video outputs","c_vk78a_ft1.html");
	this.Catalog[115] = new Array("VK80A","XCam2 NightWatch Wireless Low-Light B/W Camera System","99.99","37123","http://graphics.x10.com/images_minipics/vk49a.gif","This camera \"sees\" in 3X less light than the standard XCam2","spycam_c_vk80a.html");
	this.Catalog[116] = new Array("VR30A","Audio/Video 2.4GHz Receiver (Stereo)","49.99","32226","http://graphics.x10.com/images_minipics/vr30a.gif","","accessories_c_entertainment.html");
	this.Catalog[117] = new Array("VR31A","Audio/Video 2.4GHz Receiver (Mono)","49.99","32163","http://graphics.x10.com/images_minipics/vr31a.gif","","accessories_c_cameras.html");
	this.Catalog[118] = new Array("VR36A","Mini Video 2.4GHz Receiver (Video Only)","39.99","32046","http://graphics.x10.com/images_minipics/vr36a.gif","","accessories_c_cameras.html");
	this.Catalog[119] = new Array("VR38A","Lola Music System Video Receiver","49.99","35065","http://graphics.x10.com/images_minipics/vr38a.gif","","accessories_c_entertainment.html");
	this.Catalog[120] = new Array("VT37A","Wireless VGA Sender","99.99","35066","http://graphics.x10.com/images_minipics/vt37a.gif","","accessories_c_entertainment.html");
	this.Catalog[121] = new Array("VT38A","Outdoor FloodCam with Floodlight (Color)","79.99","32467","http://graphics.x10.com/images_minipics/vt38a.gif","Powerful motion-activated floodlights with color video camera","security-cams-flood.html");
	this.Catalog[122] = new Array("VT42A","Lola Music System Video Transmitter","79.99","35064","http://graphics.x10.com/images_minipics/vt42a.gif","","accessories_c_entertainment.html");
	this.Catalog[123] = new Array("WS12A-HA","Decorator Dimmer Switch","19.99","33800","http://graphics.x10.com/images_minipics/ws12a.gif","","accessories_c_automation.html");
	this.Catalog[124] = new Array("WS14A-HA","Decorator Companion Switch","9.99","33801","http://graphics.x10.com/images_minipics/ws12a.gif","","accessories_c_automation.html");
	this.Catalog[125] = new Array("WS467-HA","Wall Switch Module","12.99","33802","http://graphics.x10.com/images_minipics/ws467.gif","","accessories_c_automation.html");
	this.Catalog[126] = new Array("WS4777-HA","Wall Switch Module (3-way)","15.99","33803","http://graphics.x10.com/images_minipics/ws4777.gif","","accessories_c_automation.html");
	this.Catalog[127] = new Array("XX11A","XCam2 Color Video Camera with ScanPower Adapter","69.99","32258","http://graphics.x10.com/images_minipics/xx11a.gif","","accessories_c_cameras.html");
	this.Catalog[128] = new Array("XX13A","XCam2 WideEye Color Video Camera with ScanPower Adapter","89.99","32259","http://graphics.x10.com/images_minipics/xx13a.gif","","accessories_c_cameras.html");
	this.Catalog[129] = new Array("XX16A","XCam2 InstantON Color Video Camera with ScanPower Adapter","109.99","27595","http://graphics.x10.com/images_minipics/xx16a.gif","","accessories_c_cameras.html");
	this.Catalog[130] = new Array("XX17A","XCam2 WideEye InstantON Video Camera with ScanPower Adapter","119.99","27596","http://graphics.x10.com/images_minipics/xx17a.gif","","accessories_c_cameras.html");
	this.Catalog[131] = new Array("XX20A","XCam2 NightWatch Wireless Low-Light B/W Camera with ScanPower Adapter","89.99","37122","http://graphics.x10.com/images_minipics/xx20a.gif","","accessories_c_cameras.html");
	this.Catalog[132] = new Array("ZB10A","XCam2 Battery Pack","19.99","5721","http://graphics.x10.com/images_minipics/zb11a.gif","","accessories_c_cameras.html");
	this.Catalog[133] = new Array("ZT10A","XCam2 Compact Camera Tripod","16.95","5850","http://graphics.x10.com/images_minipics/zt10a.gif","","accessories_c_cameras.html");
	this.Catalog[134] = new Array("ZT11A","DaVinci Compact TriPod","19.99","28230","http://graphics.x10.com/images_minipics/zt11a.gif","","accessories_c_cameras.html");
	this.Catalog[135] = new Array("XX11A-S-KV-PS64","XCam2 Camera with VCR Recording Kit ","119.99","38571","http://graphics.x10.com/images_affiliates/graphics_ms/products/xcam2_vcr_sm.jpg","","xcam2_vcr_sm.jpg");
	this.Catalog[136] = new Array("XX11A-S-3CKV-PS157","XCam2 Wireless Color 3-Camera System with VCR Motion Recording Kit ","209.99","39126","http://graphics.x10.com/images_affiliates/graphics_ms/products/nightwatch3_sm.jpg","","nightwatch3_sm.jpg");
	this.Catalog[137] = new Array("SC23A-S-3CK-PS82","NightWatch2 Low-Light 3 Camera Wired System","169.99","38943","http://graphics.x10.com/images_affiliates/graphics_ms/products/nightwatch3.jpg","","nightwatch3.jpg");
	this.Catalog[138] = new Array("SC18A-S-3CK-PS62","3 XCam Anaconda Wired COLOR Video Cameras","129.99","38942","http://graphics.x10.com/images_affiliates/graphics_ms/products/anaconda3.jpg","","anaconda3.jpg");
	this.Catalog[139] = new Array("SC15A-S-3CK-PS72","XCam 3 Camera System (White)","149.99","38940","http://graphics.x10.com/images_affiliates/graphics_ms/products/xcam_decor3_sm.jpg","","xcam_decor3_sm.jpg");
	this.Catalog[140] = new Array("SC16A-S-3CK-PS62","Xcam 3 Camera System 15ft Cord","129.99","38941","http://graphics.x10.com/images_affiliates/graphics_ms/products/xcam3.jpg","","xcam3.jpg");
	this.Catalog[141] = new Array("SW32A","Smart Macros ","49.99","85685","http://graphics.x10.com/images_affiliates/graphics_ms/products/smartmacrose_thumb.gif","","smartmacrose_thumb.gif");
	this.Catalog[142] = new Array("MK10A2-SD-WMP-FB19","Cruise Control ","49.99","39210","http://www.x10.com/images_affiliates/graphics_ms/products/cruise_control.gif","","cruise_control.gif");
	this.Catalog[143] = new Array("CM15A-SP-4L2A-PS195","ActiveHome Pro 16","149.99","85693","http://www.x10.com/images_affiliates/graphics_ms/products/active_16piece_thumb.gif","","active_16piece_thumb.gif");
	this.Catalog[144] = new Array("AK11A-S-PS39","MP3 Anywhere","79.99","39349","http://www.x10.com/images_affiliates/graphics_ms/products/mp3_anywhere_2000.jpg","","mp3_anywhere_2000.jpg");
	this.Catalog[145] = new Array("VK57A-S-PS49","DVD Anywhere","69.99","39347","http://www.x10.com/images_affiliates/graphics_ms/products/video_dvd_anywhere.jpg","","video_dvd_anywhere.jpg");
	this.Catalog[146] = new Array("HR12A-S-TR-PS4","Palm Pad Home Control Kit","39.99","38811","http://graphics.x10.com/images_automation/hr12a_s_tr_ps4.jpg","","automation/hr12a_s_tr_ps4.jpg");
	this.Catalog[147] = new Array("MM024","Home Security Window Decal","9.99","38870","http://graphics.x10.com/images_security/mm024_s.jpg","","security/mm024_s.jpg");
	this.Catalog[148] = new Array("MM023","Home Security Yard Sign","19.99","38869","http://graphics.x10.com/images13/mm023.gif","","13/mm023.gif");
	this.Catalog[149] = new Array("VK77A-S-2CK-PS99","Vanguard Professional 2-Camera System","979.99","39299","http://graphics.x10.com/images_affiliates/graphics_ms/products/vanguard_sm.jpg","","");
	this.Catalog[150] = new Array("VK77A-S-3CK-PS139","Vanguard Professional 3-Camera System ","1459.99","38945","http://graphics.x10.com/images_affiliates/graphics_ms/products/vanguard3_sm.jpg","","");
	this.Catalog[151] = new Array("XX11A-S-2CK-PS72","2 Camera Xcam2 Deal","149.99","137233","http://www.x10.com/images_affiliates/graphics_ms/products/2room_large.gif","","products/2room_large.gif");
	this.Catalog[152] = new Array("XX11A-S-4CK-PS152","4  XCam2 Wireless Video Camera","209.99","137234","http://www.x10.com/images_affiliates/graphics_ms/products/4room_large.gif","","products/4room_large.gif");
	this.Catalog[153] = new Array("CM15A-SP-PIWNM-FB179","ActiveHome Pro Home Automation Starter Kit with iWitness Camera Monitoring Software Module and USB Video Capture Adapter plus Free Bonus: Ninja Pan and Tilt Base and ActiveEye Motion Sensor","99.99","139411","","","");
	this.Catalog[154] = new Array("CM15A-SP-PIWCNK-PS379","ActiveHome Pro Home Automation Starter Kit iwth iWitness Camera Monitoring Software Module, USB Video Capture Adapter and XCam2 Wireless Video Camera Kit, Ninja Pan and Tilt Base and ActiveEye Motion Sensor","229.99","139410","","","");
	this.Catalog[155] = new Array("DS7000-S-10PC-PS129","Protector Plus Voice Dialer 10-Piece Security System","129.99","38924","http://graphics.x10.com/images_minipics/ds7000.gif","Protect Your home and loved ones with this 10 pc wireless system","");	

	this.Warranty = new Array();
	this.Warranty[0] = new Array("5.99","39871");
	this.Warranty[1] = new Array("8.99","39967");
	this.Warranty[2] = new Array("11.99","40063");
	this.Warranty[3] = new Array("9.99","39807");
	this.Warranty[4] = new Array("14.99","39903");
	this.Warranty[5] = new Array("19.99","39999");
	this.Warranty[6] = new Array("19.99","39831");
	this.Warranty[7] = new Array("29.99","39927");
	this.Warranty[8] = new Array("39.99","40023");
	this.Warranty[9] = new Array("29.99","39847");
	this.Warranty[10] = new Array("44.99","39943");
	this.Warranty[11] = new Array("59.99","40039");
	this.Warranty[12] = new Array("39.99","39859");
	this.Warranty[13] = new Array("59.99","39955");
	this.Warranty[14] = new Array("79.99","40051");
	this.Warranty[15] = new Array("49.99","39875");
	this.Warranty[16] = new Array("74.99","39971");
	this.Warranty[17] = new Array("99.99","40067");
	this.Warranty[18] = new Array("74.99","39891");
	this.Warranty[19] = new Array("112.49","39987");
	this.Warranty[20] = new Array("149.99","40083");
	this.Warranty[21] = new Array("99.99","39811");
	this.Warranty[22] = new Array("149.99","39907");
	this.Warranty[23] = new Array("199.99","40003");
	this.Warranty[24] = new Array("124.99","39819");
	this.Warranty[25] = new Array("187.49","39915");
	this.Warranty[26] = new Array("249.99","40011");
	this.Warranty[27] = new Array("149.99","39823");
	this.Warranty[28] = new Array("224.99","39919");
	this.Warranty[29] = new Array("299.99","40015");
	this.Warranty[30] = new Array("174.99","39827");
	this.Warranty[31] = new Array("262.49","39923");
	this.Warranty[32] = new Array("349.99","40019");
	
}// x10Catalog()
// This Function is for checking the affiliates AffiliateID	
x10Catalog.prototype.checkInfo = function () {
	
	if( ( ! x10Cat.AffiliateID ) && ( ! x10Cat.ERROR ) ) {
		
		//Alert the Affiliate that they have and error	
		alert( "X10 Affiliates Network Error: Affiliate ID not included.\n\nPlease contact X10 Affiliates Network at (888)590-2763 or affiliates@x10.com\nto resolve this problem immediately.\n" );
		
		// Set error flag so this message doesn't repeat
		x10Cat.ERROR = 1;
		
	}
	
	return 1;
	
}// checkInfo()
//This displays a supportbutton
x10Catalog.prototype.getSupportButton = function () {
		
	document.write('<script type="text/javascript" lanuage="javascript" src="http://ads.x10.com/scripts/xcsupportbutton.js"></scr'+''+'ipt>');
		
}
// Place the 800 Number on the Page with the AffiliateID
x10Catalog.prototype.getPhoneNumber = function () {
		
	document.write('Order online or call anytime 888-570-4964<BR> Don\'t forget to mention the promotion code: <B>'+this.AffiliateID+'</B>');
		
}
// This Function show the description for the sku paramater that is passed in
x10Catalog.prototype.getDescription = function ( sku, linked ) {
	
	var sku = sku.toUpperCase();
	
	for( var x=0; x<this.Catalog.length; x++ ) {

		var tmpArray = this.Catalog[x];
		
		if( tmpArray[0] == sku ) {
						
			if( linked ) {
				
				if( this.AffiliateID != null ) {

					document.write('<a href="'+this.MoreInfoUrl+tmpArray[6]+'?AffiliateID='+this.AffiliateID+'">'+tmpArray[1]+'</a>');
					
				} else {
					
					// show error message
					x10cat.checkInfo();
					
					document.write('<a href="'+this.MoreInfoUrl+tmpArray[6]+'">'+tmpArray[1]+'</a>');
					
				}
				
			} else {
			
				document.writeln( tmpArray[1] );
				
			}
			
		}
		
	}
	
	return 1;
	
}// getDescription()
// This Function show the description for the sku paramater that is passed in
x10Catalog.prototype.getLongDescription = function ( sku, linked ) {
	
	var sku = sku.toUpperCase();
	
	var tmp = "";
	
	for( var x=0; x<this.Catalog.length; x++ ) {

		var tmpArray = this.Catalog[x];

		if( tmpArray[0] == sku ) {
	
			tmp = tmpArray[5];
	
			tmp = tmp.toUpperCase();
	
			if( tmp && ( tmp != "#N/A" ) ) {
		
				if( linked ) {
				
					if( this.AffiliateID != null ) {

						document.write('<a href="'+this.MoreInfoUrl+tmpArray[6]+'?AffiliateID='+this.AffiliateID+'">'+tmpArray[5]+'</a>');
					
					} else {
					
						// show error message
						x10cat.checkInfo();
					
						document.write('<a href="'+this.MoreInfoUrl+tmpArray[6]+'">'+tmpArray[5]+'</a>');
					
					}
				
				} else {
			
					document.writeln( tmpArray[5] );
				
				}
	
			}
		}
		
	}
	
	return 1;
	
}// getLongDescription()
// This Function shows the price for the sku paramater that is passed in
x10Catalog.prototype.getPrice = function ( sku ) {
	
	var sku = sku.toUpperCase();
	
	for(var x=0;x<this.Catalog.length;x++) {
		
		var tmpArray = this.Catalog[x];
		
		if(tmpArray[0] == sku) {
		
			document.writeln("$"+tmpArray[2]);
		
		}
	
	}

	return 1;
	
}// getPrice()
// This Function shows the order button for the shu that is passed, you may 
x10Catalog.prototype.getOrderButton = function ( sku, img ) {
	
	var sku = sku.toUpperCase();
	
	var graphic = "";

	// if the image is null we will go ahead and use the default graphic
	if( img != null ) {
		
		graphic = img;
		
	} else {
		
		graphic = this.ButtonImg;
		
	}
	
	for( var x=0; x<this.Catalog.length; x++ ) {
		
		var tmpArray = this.Catalog[x];
		
		if( tmpArray[0] == sku ) {
			
			ItemNumber = tmpArray[3];

			// Check to make sure that the sku actually exist
			if( ItemNumber ) {
				
				// Check to make sure they have an AID and PID
				// if not show the error message and use default
				if( this.AffiliateID != null ) {
					
					//Affiliate Link
					document.write('<a href="http://affiliates.x10.com/?property=affiliates&aposition=buynow&lineid=xtentest1&affid='+this.AffiliateID+'&type=href&item='+ItemNumber+'">');
					
					//Button graphic
					document.write('<img src="'+graphic+'"  alt="Click Here To Order" border="0"></a>');
					
					//Tracking Pixel
					//document.write('<img src="http://ads.x10.com/?'+this.TRACKPixel+'='+this.decache.getTime()+'|'+this.AffiliateID+'" width=1 height=1>');
					
				} else {
					
					// show error message
					x10Cat.checkInfo();
					
					document.write('<a href="javascript:x10Cat.submitOrder('+ItemNumber+',0);"><img src="'+graphic+'" alt="Click Here To Order" border=0></a><img src="http://affiliates.x10.com/?'+this.TRACKPixel+'='+this.decache.getTime()+'|'+this.AffiliateID+'" width=1 height=1>');
					
				}
				
			} else {
				
				// the sku doesn't exist
				document.write("Not Availiable");
				
			}
			
		}
		
	}
	
	return 1;
	
}// getOrderButton();
// This Function shows the order button for the shu that is passed, you may 
x10Catalog.prototype.getOrderButtonWarranty = function ( sku, img ) {
	
	var sku = sku.toUpperCase();
	
	var graphic = "";

	var html = "";
	
	var rand = Math.random();
	
	// if the image is null we will go ahead and use the default graphic
	if( img != null ) {
		
		graphic = img;
		
	} else {
		
		graphic = this.ButtonImg;
		
	}
	
	for( var x=0; x<this.Catalog.length; x++ ) {
		
		var tmpArray = this.Catalog[x];
		
		if( tmpArray[0] == sku ) {
			
			ItemNumber = tmpArray[3];
			
			ItemPrice = tmpArray[2];
			
			WarrNum = this.getWarrantyArray( ItemPrice );
			
			// Check to make sure that the sku actually exist
			if( ItemNumber ) {
				
				// Check to make sure they have an AID and PID
				// if not show the error message and use default
				if( this.AffiliateID == null ) {
					
					this.checkInfo();
					
				}
				
				html += '<BR>$'+ItemPrice+'<BR>';
				html += '<form name="form'+rand+'" action="javascript:x10Cat.OrderWarr(\'form'+rand+'\');" style="margin-bottom:0;margin-top:0;">\n';
				html += '<input type="hidden" name="itemnum" value="'+ItemNumber+'">\n';
				html += '<select name="warranty">\n';
				html += '<option selected="selected" value="'+this.Warranty[WarrNum][1]+'">2 Year Extended WarrantyPlus Plan +$'+this.Warranty[WarrNum][0]+'</option>\n';
				html += '<option value="'+this.Warranty[WarrNum+1][1]+'">3 Year Extended WarrantyPlus Plan +$'+this.Warranty[WarrNum+1][0]+'</option>\n';
				html += '<option value="'+this.Warranty[WarrNum+2][1]+'">5 Year Extended WarrantyPlus Plan +$'+this.Warranty[WarrNum+2][0]+'</option>\n';
				html += '<option value="">1 year limited warranty (included)</option>\n';
				html += '</select><BR>\n';
				html += '<input type="image" src="'+graphic+'" alt="Click Here To Order">\n';
				html += '</form>\n';
				
				document.write( html );
				
			} else {
				
				// the sku doesn't exist
				document.write("Not Availiable");
				
			}
			
		}
		
	}
	
	return 1;
	
}// getOrderButtonWarranty();
x10Catalog.prototype.OrderWarr = function( form ) {

	var itemnum = document[form].itemnum.value;
	var warrnum = document[form].warranty[document[form].warranty.selectedIndex].value;
	
	if( warrnum != "" ) {
	
		url = "http://affiliates.x10.com/?property=affiliates&aposition=buynow&lineid=xtentest1&affid="+this.AffiliateID+"&type=href&item="+itemnum+","+warrnum;
		
	} else {
	
		url = "http://affiliates.x10.com/?property=affiliates&aposition=buynow&lineid=xtentest1&affid="+this.AffiliateID+"&type=href&item="+itemnum;

	}
		
	location.href = url;
	
}
x10Catalog.prototype.getWarrantyArray = function ( price ) {
	
	if( parseFloat(price) > 0 && parseFloat(price) <= 49.99) {
		
		return 0;
		
	} else if ( parseFloat(price) > 49.99 && parseFloat(price) <= 99.99) {
		
		return 3;
		
	} else if ( parseFloat(price) > 99.99 && parseFloat(price) <= 199.99) {
		
		return 6;
		
	} else if ( parseFloat(price) > 199.99 && parseFloat(price) <= 299.99) {
		
		return 9;
		
	}  else if ( parseFloat(price) > 299.99 && parseFloat(price) <= 399.99) {
		
		return 12;
		
	}  else if ( parseFloat(price) > 399.99 && parseFloat(price) <= 499.99) {
		
		return 15;
		
	}  else if ( parseFloat(price) > 499.99 && parseFloat(price) <= 749.99) {
		
		return 18;
		
	}  else if ( parseFloat(price) > 749.99 && parseFloat(price) <= 999.99) {
		
		return 21;
		
	}  else if ( parseFloat(price) > 999.99 && parseFloat(price) <= 1249.99) {
		
		return 24;
		
	}  else if ( parseFloat(price) > 1249.99 && parseFloat(price) <= 1499.99) {
		
		return 27;
		
	}  else if ( parseFloat(price) > 1499.99 && parseFloat(price) <= 1749.99) {
		
		return 30;
		
	} else {
		
		return 0;
		
	}
	
}//getWarrantyArray
// This function displays the graphic for the sku that is passed in
x10Catalog.prototype.getImage = function ( sku ) {
	
	var sku = sku.toUpperCase();
	
	for( var x=0; x<this.Catalog.length; x++ ) {
		
		var tmpArray = this.Catalog[x];
		
		if( tmpArray[0] == sku ) {
			
			document.write('<img src="'+tmpArray[4]+'">');
			
		}
		
	}
	
	return 1;
	
}// getImage();
// This function is for the default order button
x10Catalog.prototype.submitOrder = function ( szItem, iHref ) {
	
	if ( iHref == 1 ) {
		
		window.location = "http://affiliates.x10.com/?"+this.CAMPAIGN+"="+this.decache.getTime()+"|href:"+szItem;
		
	} else if ( ( document.cookie != "" ) && ( this.CAMPAIGN != "" ) ) {
		
		window.location = "http://affiliates.x10.com/?"+this.CAMPAIGN+"="+this.decache.getTime()+"|item:"+szItem;
		
	} else {
		
		window.location = "http://store.x10.com/cgi-bin/sb/order.cgi?storeid=x10merchant&dbname=products&itemnum="+szItem+"&function=add";
		
	}
	
	return 1;
	
}// submitOrder();
x10Catalog.prototype.getMoreInfoButton = function ( sku, img ) {

	var sku = sku.toUpperCase();
	
	var tmp = "";
	
	for( var x=0; x<this.Catalog.length; x++ ) {

		var tmpArray = this.Catalog[x];

		if( tmpArray[0] == sku ) {
			
			var page = tmpArray[6];
			
		}
		
	}
	
	tmp = page;
	
	
	
	if( tmp && ( tmp != "#N/A" ) ) {
	
		tmp = tmp.toUpperCase();
		
		if( ! img ) {
		
			img = this.InfoButtonImg;
		
		}

		if( this.AffiliateID != null ) {
						
			document.write('<a href="'+this.MoreInfoUrl+page+'?AffiliateID='+this.AffiliateID+'"><img src="'+img+'" border="0"></a>');
					
		} else {
					
			// show error message
			x10cat.checkInfo();
					
			document.write('<a href="'+this.MoreInfoUrl+page+'"><img src="'+this.MoreInfoUrl+img+'" border="0"></a>');
					
		}
		
	}

}
x10Catalog.prototype.getMoreInfoText = function ( sku, title ) {

	var sku = sku.toUpperCase();
	
	var tmp = "";
	
	for( var x=0; x<this.Catalog.length; x++ ) {

		var tmpArray = this.Catalog[x];

		if( tmpArray[0] == sku ) {
			
			var page = tmpArray[6];
			
		}
		
	}
	
	tmp = page;
	
	if( tmp && ( tmp != "#N/A" ) ) {
		
		tmp = tmp.toUpperCase();
		
		if( ! title ) {
		
			title = "More Info.";

		}

		if( this.AffiliateID != null ) {


			document.write('<a href="'+this.MoreInfoUrl+page+'?AffiliateID='+this.AffiliateID+'">'+title+'</a>');
					
		} else {
					
			// show error message
			x10cat.checkInfo();
					
			document.write('<a href="'+this.MoreInfoUrl+page+'">'+title+'</a>');
					
		}
	
	}

}
x10Catalog.prototype.ReferFriendButton = function ( img ) {
	
	if( ! img ) {
		
		img = this.ReferFriendImage;
		
	}
	
	document.write("<a href=\"javascript:x10Cat.ReferFriend();\"><img src=\""+img+"\" border=\"0\"></a>");
	
}//ReferFriendButton()
x10Catalog.prototype.ReferFriend = function () {

	var url = location.href;
	var html = "";
	var win = "";
	
	html += "<html>\n";
	html += "<title>Refer A Friend</title>\n";
	html += "<head>\n";
	html += "<script type=\"text/javascript\" language=\"JavaScript\">\n";
	html += "function addItemToList(){";
	html += "	var list = document.form1.list;";
	html += "	var len = list.options.length;";
	html += "	var newValue = \"\";";
	html += "	var newOption = \"\";";
	html += "	var newOptions = \"\";";
	html += "	if( len < 0 ){";
	html += "		len = 0;";
	html += "	}";
	html += "	if(document.form1.friend.value) {";
	html += "		newOption = document.form1.friend.value;";
	html += "		newValue = document.form1.friend.value;";
	html += "	}";
	html += "	newOptions = new Option(newOption,newValue);";
	html += "	list.options[len] = newOptions;";
	html += "	for( x = 1 ; x < list.options.length ; x++ ) {";
	html += "		list.options[x].selected = 1;";
	html += "	}";
	html += "	document.form1.friend.value = \"\";";
	html += "}";
	html += "function removeItemFromList(){";
	html += " 	var list = document.form1.list;";
	html += "	var num = list.selectedIndex;";
	html += "	var item = \"\";";
	html += "	var itemop = \"\";";
	html += "	var tempArray = new Array();";
	html += "	if( num != -1 ) {";
	html += "		item = list.options[num].value;";
	html += "		itemop = list.options[num].text;";
	html += "		list.options[num].value = \"\";";
	html += "		list.options[num].text = \"\";";
	html += "		for(var i = 0; i < list.options.length; i++) {";
	html += "			if(list.options[i].value){";
	html += "				tempArray.push(list.options[i].value);";
	html += "				}";
	html += "		}";
	html += "		if(tempArray){";
	html += "			list.options.length = 0;";
	html += "			for(var i = 0; i < tempArray.length; i++){";
	html += "				var newValue = tempArray[i];";
	html += "				var newOption = tempArray[i];";
	html += "				var newOptions = new Option(newOption,newValue);";
	html += "				list.options[i] = newOptions;";
	html += "			}";
	html += "		} else {";
	html += "			list.options.length = 0;";
	html += "			for( x = 1 ; x < list.options.length ; x++ ) {";
	html += "				list.options[x].selected = 1;";
	html += "			}";
	html += "		}";
	html += "	} else {";
	html += "		alert( \"Please select an address to remove\" );";
	html += "	}";
	html += "}";
	html += "</scr"+"ipt>";
	html += "</head>\n";
	html += "<body>\n";
	html += "<center>\n";
	html += "<form name=\"form1\" action=\"http://web01.x10.com/cgi-bin/affiliates/affrefer.cgi\" method=\"get\">\n";
	html += "<input type=\"hidden\" name=\"affiliate\" value=\""+this.AffiliateID+"\">\n";
	html += "<input type=\"hidden\" name=\"site\" value=\""+url+"\">\n";
	html += "<table cellpadding=\"5\" cellspacing=\"0\" border=\"0\" width=\"100%\">\n";
	html += "<tr><td>";
	html += "<B>Your Name :</B>";
	html += "</td><td>";
	html += "<input type=\"text\" name=\"sender_name\" value=\"\">\n";
	html += "</td></tr><tr><td>";
	html += "<B>Your Email :</B>";
	html += "</td><td>";
	html += "<input type=\"text\" name=\"sender_email\" value=\"\">\n";
	html += "</td></tr><tr><td>";
	html += "<B>Messages ( 80 characters) :</B>";
	html += "</td><td>";
	html += "<input type=\"text\" name=\"sender_messages\" value=\"\" maxlength=\"80\">\n<BR>";
	html += "</td></tr><tr><td>";
	html += "<B>Friend's Email(s) :</B>";
	html += "</td><td>";
	html += "<input type=\"text\" name=\"friend\"><BR>";
	html += "</td></tr><tr><td colspan=\"2\" align=\"center\">";
	html += "<input type=\"button\" value=\"Add Email\" onclick=\"addItemToList();\"><input type=\"button\" value=\"Remove Email\" onclick=\"removeItemFromList();\"><BR>"; 
	html += "</td></tr><tr><td colspan=\"2\" align=\"center\">";
	html += "<select name=\"list\" MULTIPLE size=\"5\">";
	html += "<option value=\"1\">Email Address(es)</option>";
	html += "</select>";
	html += "</td></tr>";
	html += "<tr><td colspan=\"2\" align=\"right\">\n";
	html += "<input type=\"submit\" value=\"send\">\n";
	html += "</td></tr>\n";
	html += "</table>\n";
	html += "</form>\n";
	html += "</center>\n";
	html += "</body>\n";
	html += "</html>\n";
	
	win = window.open("","NewWindow","width=400,height=450,");
	win.document.open();
	win.document.write( html );
	win.document.close();
	
}
x10Catalog.prototype.getTextLinkHref = function (text,href,style) {

        if(href) {
		
		href = escape(href);

                document.write('<a style="'+style+'" href="http://affiliates.x10.com/?property=affiliates&aposition=buynow&lineid=xtentest1&affid='+this.AffiliateID+'&type=href&href='+href+'">'+text+'</a>');

        } else {

                document.write("Not Availiable");

        }

}
x10Catalog.prototype.getTextLink = function (text,style){

	if(this.x10ItemNumber) {	

		document.write('<a style="'+style+'" href="http://affiliates.x10.com/?property=affiliates&aposition=buynow&lineid=xtentest1&affid='+this.AffiliateID+'&type=href&item='+this.x10ItemNumber+'">'+text+'</a>');

	} else {

		document.write("Not Availiable");

	}

}
x10Catalog.prototype.TechQuestion = function( type ) {

	var url = location.href;
	var html = "";
	var win = "";
	
	html += "<form name=\"form1\" action=\"http://www.x10.com/cgi-bin/affiliates/email.cgi\" method=\"get\">\n";
	html += "<input type=\"hidden\" name=\"affiliate\" value=\""+this.AffiliateID+"\">\n";
	html += "<input type=\"hidden\" name=\"subject\" value=\"Technical Question\">\n";
		
	if( type == 1 ) {
		
		html += "<input type=\"hidden\" name=\"site\" value=\""+url+"\">\n";
		
	}
	
	html += "<table cellpadding=\"5\" cellspacing=\"0\" border=\"0\" width=\"100%\">\n";
	html += "<tr><td>";
	html += "<B>Your Name :</B>";
	html += "</td><td>";
	html += "<input type=\"text\" name=\"sender_name\" value=\"\">\n";
	html += "</td></tr><tr><td>";
	html += "<B>Your Email :</B>";
	html += "</td><td>";
	html += "<input type=\"text\" name=\"sender_email\" value=\"\">\n";
	html += "</td></tr><tr><td>";
	html += "<B>Your Phone :</B>";
	html += "</td><td>";
	html += "<input type=\"text\" name=\"sender_phone\" value=\"\">\n";
	html += "</td></tr><tr><td>";
	html += "<B>Question :</B>";
	html += "</td><td>";
	html += "<textarea name=\"sender_messages\" rows=\"15\" cols=\"45\"></textarea>\n<BR>";
	html += "</td></tr>";
	html += "<tr><td colspan=\"2\" align=\"right\">\n";
	html += "<input type=\"submit\" value=\"send\">\n";
	html += "</td></tr>\n";
	html += "</table>\n";
	html += "</form>\n";
	
	if( type == 1 ) {
	
		document.write( html );
		
	} else {
	
		html = "<html><title>Technical Question</title><head></head><body><center>\n" + html + "</center></body></html>\n";
	
		win = window.open("","TechQuestion","width=640,height=480");
		win.document.open();
		win.document.write( html );
		win.document.close();
	
	}
	
}
x10Catalog.prototype.BeanAffiliate = function ( type ) {

	var url = location.href;
	var html = "";
	var win = "";
	
	html += "<form name=\"form1\" action=\"http://www.x10.com/cgi-bin/affiliates/email.cgi\" method=\"get\">\n";
	html += "<input type=\"hidden\" name=\"affiliate\" value=\""+this.AffiliateID+"\">\n";
	html += "<input type=\"hidden\" name=\"subject\" value=\"Become an Affiliate\">\n";
		
	if( type == 1 ) {
		
		html += "<input type=\"hidden\" name=\"site\" value=\""+url+"\">\n";
		
	}
	
	html += "<table cellpadding=\"5\" cellspacing=\"0\" border=\"0\" width=\"100%\">\n";
	html += "<tr><td>";
	html += "<B>Your Name :</B>";
	html += "</td><td>";
	html += "<input type=\"text\" name=\"sender_name\" value=\"\">\n";
	html += "</td></tr><tr><td>";
	html += "<B>Your Email :</B>";
	html += "</td><td>";
	html += "<input type=\"text\" name=\"sender_email\" value=\"\">\n";
	html += "</td></tr><tr><td>";
	html += "<B>Your Phone :</B>";
	html += "</td><td>";
	html += "<input type=\"text\" name=\"sender_phone\" value=\"\">\n";
	html += "</td></tr>";
	html += "<tr><td colspan=\"2\" align=\"right\">\n";
	html += "<input type=\"submit\" value=\"send\">\n";
	html += "</td></tr>\n";
	html += "</table>\n";
	html += "</form>\n";
	
	if( type == 1 ){
	
		document.write( html );
		
	} else {
	
		html = "<html><title>Become an Affiliate</title><head></head><body><center>\n"+html+"</center></body></html>\n";
		
		win = window.open("","BeanAffiliate","width=400,height=200");
		win.document.open();
		win.document.write( html );
		win.document.close();
		
	}
	
}
x10Catalog.prototype.SuggestionBox = function ( type ) {

	var url = location.href;
	var html = "";
	var win = "";
	
	html += "<center>\n";
	html += "<form name=\"form1\" action=\"http://www.x10.com/cgi-bin/affiliates/email.cgi\" method=\"get\">\n";
	html += "<input type=\"hidden\" name=\"affiliate\" value=\""+this.AffiliateID+"\">\n";
	html += "<input type=\"hidden\" name=\"subject\" value=\"Suggestion Box\">\n";
	
	if( type == 1 ) {
		
		html += "<input type=\"hidden\" name=\"site\" value=\""+url+"\">\n";
		
	}
	
	html += "<table cellpadding=\"5\" cellspacing=\"0\" border=\"0\">\n";
	html += "<tr><td>";
	html += "<B>Your Email : </B>";
	html += "</td><td>";
	html += "<input type=\"text\" name=\"sender_email\" value=\"\">\n";
	html += "</td></tr>";
	html += "<tr><td colspan=\"2\">";
	html += "<B> Suggestion : </B>";
	html += "</td></tr>";
	html += "<tr><td colspan=\"2\">";
	html += "<textarea name=\"suggestion\" rows=\"5\" cols=\"27\"></textarea>\n";
	html += "</td></tr>";
	html += "<tr><td colspan=\"2\" align=\"right\">\n";
	html += "<input type=\"submit\" value=\"send\">\n";
	html += "</td></tr>\n";
	html += "</table>\n";
	html += "</form>\n";
	html += "</center>\n";
	
	if( type == 1 ) {
	
		document.write( html );
	
	} else {

		html = "<html><title>SuggestionBox</title><head></head><body><center>\n"+html+"</center></body></html>\n";
	
		win = window.open("","SuggestionBox","width=400,height=200");
		win.document.open();
		win.document.write( html );
		win.document.close();
	
	}
	
}
x10Catalog.prototype.EmailBox = function( type ) {

	var url = location.href;
	var html = "";
	var win = "";
	
	html += "<center>\n";
	html += "<form name=\"form1\" action=\"http://www.x10.com/cgi-bin/affiliates/email.cgi\" method=\"get\">\n";
	html += "<input type=\"hidden\" name=\"affiliate\" value=\""+this.AffiliateID+"\">\n";
	html += "<input type=\"hidden\" name=\"subject\" value=\"Email List\">\n";
	
	if( type == 1 ) {
		
		html += "<input type=\"hidden\" name=\"site\" value=\""+url+"\">\n";
		
	}
	
	html += "<table cellpadding=\"5\" cellspacing=\"0\" border=\"0\">\n";
	html += "<tr><td>";
	html += "<B>Your Email : </B>";
	html += "</td><td>";
	html += "<input type=\"text\" name=\"sender_email\" value=\"\">\n";
	html += "</td></tr>";
	html += "<tr><td colspan=\"2\" align=\"right\">\n";
	html += "<input type=\"submit\" value=\"send\">\n";
	html += "</td></tr>\n";
	html += "</table>\n";
	html += "</form>\n";
	html += "</center>\n";
	
	if( type == 1 ) {
	
		document.write( html );
	
	} else {

		html = "<html><title>Email Sign-up</title><head></head><body><center>\n"+html+"</center></body></html>\n";
	
		win = window.open("","EmailBox","width=400,height=200");
		win.document.open();
		win.document.write( html );
		win.document.close();
	
	}

}
// Load x10Catalog object
var x10Cat = new x10Catalog();


