function x10Deals(){
this.PID=null;
this.SID=null;
this.AID=null;
this.EXITPOP=false;

this.EXITPOPSKU=null;

this.decache = new Date();
	this.CAMPAIGN="bGNqYnV5bm93LmRhd";
	this.TRACKPixel="Z2NqanN0cmsuZGF0=";

	//STANDARD DATA
	this.x10ItemNumber="34809";
 this.x10SKU="VK66A-UX21AL-PK36-U";
	this.x10ItemProductName="XCam2 Wireless Video Camera Kit with FREE VCR Advantage Pack";
	this.x10ItemPrice="79.99";
	this.x10ItemSavings="167.95";
	this.x10ItemSeparate="247.94";
	this.x10ItemGraphic="http://graphics.x10.com/images9/ab14_camera.jpg";
	this.x10ItemRedTag="http://graphics.x10.com/images_buttons/tag_7999fs.gif";
	this.x10Items=new Array("Tiny Video Receiver (Video Only)","XCam2 Video Camera with Addressable Power Supply (no receiver)","FREE NEW EagleEye Motion Sensor","FREE X10 Wireless Transceiver Module - Remote control your home","FREE Universal 5-in-1 Learning Remote","FREE VCR Commander");
	this.x10ItemsPrices=new Array("39.99","69.99","24.99","12.99","49.99","49.99");
	this.x10FreeItems=new Array("FREE NEW EagleEye Motion Sensor","FREE X10 Wireless Transceiver Module - Remote control your home","FREE Universal 5-in-1 Learning Remote","FREE VCR Commander");
	this.x10FreeItemsPrices=new Array("24.99","12.99","49.99","49.99");
	this.ButtonImg = "http://graphics.x10.com/images_buttons/order5.gif";

	//UPSELL DATA
	this.x10UpSellItemNumber="34805";
 this.x10UpSellSKU="SK10A-DEAL2L-UX23AL-PK36-U";
	this.x10UpSellItemProductName="Ultimate 3 Camera Scan Power Deal with FREE VCR Advantage Pack";
	this.x10UpSellItemPrice="169.99";
	this.x10UpSellItemSavings="107.94";
	this.x10UpSellItemSeparate="277.93";
	this.x10UpSellItemGraphic="http://graphics.x10.com/images10/3cam_VCR_milleniumpack.jpg";
	this.x10UpSellItemRedTag="http://www.x10.com/images12/ab44_tag169.gif";
	this.x10UpSellItems=new Array("ScanPad","X10 Wireless Transceiver Module - Remote control your home","Tiny Video Receiver (Video Only)","XCam2 Video Camera with Addressable Power Supply (no receiver)","FREE NEW EagleEye Motion Sensor","FREE Universal 5-in-1 Learning Remote","FREE VCR Commander II");
	this.x10UpSellItemsPrices=new Array("29.99","12.99","39.99","69.99","24.99","49.99","49.99");
	this.x10UpSellFreeItems=new Array("FREE NEW EagleEye Motion Sensor","FREE Universal 5-in-1 Learning Remote","FREE VCR Commander II");
	this.x10UpSellFreeItemsPrices=new Array("24.99","49.99","49.99");
	this.UpSellButtonImg = "http://graphics.x10.com/images_buttons/order5.gif";
 
	//INCLUDES
	this.x10html_bonusdesc='<!--SSI html_bonusdesc.htm--><table width=100% cellpadding=5 cellspacing=0 border=0 id="Table14">	<tr>		<td valign=top>			<img src="http://graphics.x10.com/images12/vcr_kit_advantage2b.jpg" border=0>			<font face="Arial, Verdana, Geneva" size=2 color=#000000>				<p>					<font color=red><b>FREE VCR Advantage Pack! $138 Bonus!</b></font><br>					<li>VCR Commander - $50 Value</li>					<li>EagleEye Motion Sensor - $25 Value</li>					<li>5-in-1 Learning Remote - $50 Value</li>					<li>Wireless Transceiver/Module - $13 Value</li>    </font>				</p>			</font>			<br>		</td>		<td>			<font face="Arial, Verdana, Geneva" size=2 color=#000000>				<h3>Monitor & Record: 24x7</h3>				<p>Get advanced motion-activated recording with today\'s FREE bonus, the VCR Advantage Pack! Anytime there\'s movement within 30 feet of your camera, the VCR Commander will send a "RECORD" signal to your VCR. Then, after 5 minutes of no activity, the VCR Commander will send a "STOP" command to your VCR.</b>				<ul>					<li>Review 24 hours of activity in just a few minutes</li>					<li>Filter out hours of boring still-life</li>					<li>Conserve video tape</li>	      </ul>				<p>The VCR Sentry Pack also includes 1 EagleEye Motion Sensor. They supercharge any home and lifestyle by removing the need for switches and buttons. You can now make things happen as soon as you walk in a room! Great for outdoors! Weather Resistant!</p>				<h3>ACT NOW! <font color=red>FREE VCR Advantage Pack Offer Ends: <!--#include virtual="/deals/text_enddate1.htm"-->! <span style="background-color: #ffff00">ONLY HOURS LEFT!</span></font></h3>			</font>		</td>	</tr></table><!--SSI html_bonusdesc.htm Ends-->';
	this.x10html_bonusdesc='<!--SSI html_bonusdesc.htm--><table width=100% cellpadding=5 cellspacing=0 border=0 id="Table14">	<tr>		<td valign=top>			<img src="http://graphics.x10.com/images12/vcr_kit_advantage2b.jpg" border=0>			<font face="Arial, Verdana, Geneva" size=2 color=#000000>				<p>					<font color=red><b>FREE VCR Advantage Pack! $138 Bonus!</b></font><br>					<li>VCR Commander - $50 Value</li>					<li>EagleEye Motion Sensor - $25 Value</li>					<li>5-in-1 Learning Remote - $50 Value</li>					<li>Wireless Transceiver/Module - $13 Value</li>    </font>				</p>			</font>			<br>		</td>		<td>			<font face="Arial, Verdana, Geneva" size=2 color=#000000>				<h3>Monitor & Record: 24x7</h3>				<p>Get advanced motion-activated recording with today\'s FREE bonus, the VCR Advantage Pack! Anytime there\'s movement within 30 feet of your camera, the VCR Commander will send a "RECORD" signal to your VCR. Then, after 5 minutes of no activity, the VCR Commander will send a "STOP" command to your VCR.</b>				<ul>					<li>Review 24 hours of activity in just a few minutes</li>					<li>Filter out hours of boring still-life</li>					<li>Conserve video tape</li>	      </ul>				<p>The VCR Sentry Pack also includes 1 EagleEye Motion Sensor. They supercharge any home and lifestyle by removing the need for switches and buttons. You can now make things happen as soon as you walk in a room! Great for outdoors! Weather Resistant!</p>				<h3>ACT NOW! <font color=red>FREE VCR Advantage Pack Offer Ends: <!--#include virtual="/deals/text_enddate1.htm"-->! <span style="background-color: #ffff00">ONLY HOURS LEFT!</span></font></h3>			</font>		</td>	</tr></table><!--SSI html_bonusdesc.htm Ends-->';
	this.x10html_bonusimage='<!--SSI html_bonusimage.htm--><img src="http://graphics.x10.com/images11/bonus_advantagepack.gif" border=0><!--SSI html_bonusimage.htm Ends-->';
	this.x10html_bonusincluded='<!--SSI html_bonusincluded.htm--><tr>	<td><font face="Arial, Verdana, Geneva" size=2 color=#000000><font color=red><b>FREE</b></font> VCR Commander</font></td>	<td align="right"><font face="Arial, Verdana, Geneva" size=2 color=#000000><b>$49.99</b></font></td></tr><tr>	<td nowrap><font face="Arial, Verdana, Geneva" size=2 color=#000000><font color=red><b>FREE</b></font> EagleEye Motion Sensor</font></td>	<td align="right" nowrap><font face="Arial, Verdana, Geneva" size=2 color=#000000><b>$24.99</b></font></td></tr><tr>	<td><font face="Arial, Verdana, Geneva" size=2 color=#000000><font color=red><b>FREE</b></font> FedEx Shipping</font></td>	<td align="right"><font face="Arial, Verdana, Geneva" size=2 color=#000000><b><i>Always free!</i></b></font></td></tr><tr>	<td colspan=2 align=right>		<hr color=red />			<font face="Arial, Verdana, Geneva" size=2 color=#000000>				Sold Separately <strike>$184.96</strike><br>				<font color="green"><b>You Save $104.97 (57%)</b></font><br>				<span style="background-color: #ffff00"><font color="red"><big><big><b>NOW ONLY $79.99</b></big></big></font></span>			</font>	</td></tr><!--SSI html_bonusincluded.htm Ends-->';
	this.x10text_bonusincluded='';
	this.x10text_vcrbonusincluded='<!--SSI text_bonusincluded.htm--><tr>	<td><font face="Arial, Verdana, Geneva" size=2 color=#000000><font color=red><b>FREE</b></font> VCR Commander</font></td>	<td align="right"><font face="Arial, Verdana, Geneva" size=2 color=#000000><b>$49.99</b></font></td></tr><tr>	<td nowrap><font face="Arial, Verdana, Geneva" size=2 color=#000000><font color=red><b>FREE</b></font> EagleEye Motion Sensor</font></td>	<td align="right" nowrap><font face="Arial, Verdana, Geneva" size=2 color=#000000><b>$24.99</b></font></td></tr><tr>	<td><font face="Arial, Verdana, Geneva" size=2 color=#000000><font color=red><b>FREE</b></font> FedEx Shipping</font></td>	<td align="right"><font face="Arial, Verdana, Geneva" size=2 color=#000000><b><i>Always free!</i></b></font></td></tr><tr>	<td colspan=2 align=right>		<hr color=red />			<font face="Arial, Verdana, Geneva" size=2 color=#000000>				Sold Separately <strike>$184.96</strike><br>				<font color="green"><b>You Save $104.97</b></font><br>				<span style="background-color: #ffff00"><font color="red"><big><big><b>NOW ONLY $79.99</b></big></big></font></span>			</font>	</td></tr><!--SSI text_bonusincluded.htm Ends-->';
	this.x10text_vcrbonusincludedx='';
	this.x10text_vcrbonuspercent='<!-- save percent SSI --><!-- end save percent SSI -->';
	this.x10text_vcr3cambonusincluded='<!--SSI text_vcr3cambonusincluded.htm--><tr>	<td><font face="Arial, Verdana, Geneva" size=2 color=#000000><font color=red><b>FREE</b></font> VCR Commander</font></td>	<td align="right"><font face="Arial, Verdana, Geneva" size=2 color=#000000><b>$49.99</b></font></td></tr><tr>	<td nowrap><font face="Arial, Verdana, Geneva" size=2 color=#000000><font color=red><b>FREE</b></font> EagleEye Motion Sensor</font></td>	<td align="right" nowrap><font face="Arial, Verdana, Geneva" size=2 color=#000000><b>$24.99</b></font></td></tr><tr>      <td><font face="Arial, Verdana, Geneva" size=2 color=#000000><font color=red><b>FREE</b></font> Motion Sensor</font></td>      <td align="right"><font face="Arial, Verdana, Geneva" size=2 color=#000000><b>$19.99</b></font></td></tr><tr>	<td><font face="Arial, Verdana, Geneva" size=2 color=#000000><font color=red><b>FREE</b></font> FedEx Shipping</font></td>	<td align="right"><font face="Arial, Verdana, Geneva" size=2 color=#000000><b><i>Always free!</i></b></font></td></tr><tr>	<td colspan=2 align=right>		<hr color=red />			<font face="Arial, Verdana, Geneva" size=2 color=#000000>				Sold Separately <strike>$387.91</strike><br>				<font color="green"><b>You Save $217.92</b></font><br>				<span style="background-color: #ffff00"><font color="red"><big><big><b>NOW ONLY $169.99</b></big></big></font></span>			</font>	</td></tr><!--SSI text_vcr3cambonusincluded.htm Ends-->';
	this.x10text_vcr3cambonusincludedx='<!--SSI text_vcr3cambonusincludedx.htm--><tr>	<td><font face="Arial, Verdana, Geneva" size=2 color=#000000><font color=red><b>FREE</b></font> VCR Commander</font></td>	<td align="right"><font face="Arial, Verdana, Geneva" size=2 color=#000000><b>$49.99</b></font></td></tr><tr>	<td nowrap><font face="Arial, Verdana, Geneva" size=2 color=#000000><font color=red><b>FREE</b></font> EagleEye Motion Sensor</font></td>	<td align="right" nowrap><font face="Arial, Verdana, Geneva" size=2 color=#000000><b>$24.99</b></font></td></tr><tr>	<td><font face="Arial, Verdana, Geneva" size=2 color=#000000><font color=red><b>FREE</b></font> 5-in-1 Learning Remote</font></td>	<td align="right"><font face="Arial, Verdana, Geneva" size=2 color=#000000><b>$49.99</b></font></td></tr><tr>	<td><font face="Arial, Verdana, Geneva" size=2 color=#000000><font color=red><b>FREE</b></font> Camera Tripod</font></td>	<td align="right"><font face="Arial, Verdana, Geneva" size=2 color=#000000><b>$16.95</b></font></td></tr><tr>	<td><font face="Arial, Verdana, Geneva" size=2 color=#000000><font color=red><b>FREE</b></font> FedEx Shipping</font></td>	<td align="right"><font face="Arial, Verdana, Geneva" size=2 color=#000000><b><i>Always free!</i></b></font></td></tr><tr>	<td colspan=2 align=right>		<hr color=red />			<font face="Arial, Verdana, Geneva" size=2 color=#000000>				Sold Separately <strike>$434.86</strike><br>				<font color="green"><b>You Save $264.87 (61%)</b></font><br>				<span style="background-color: #ffff00"><font color="red"><big><big><b>NOW ONLY $169.99</b></big></big></font></span>			</font>	</td></tr><!--SSI text_vcr3cambonusincludedx.htm Ends-->';
	this.x10text_vcr3cambonuspercent='<!-- SSI vcr3cambonuspercent --><!-- end vcr3cambonuspercent SSI -->';
	this.x10text_vcr3cambonuspercentx='<!-- SSI vcr3cambonuspercentx -->61%<!-- end vcr3cambonuspercentx SSI -->';
	this.x10vcr_bullet1m='<!-- SSI vcr_bullet1m.htm --><font color="#FF0000" size="2" face="Arial">	<b>FREE VCR Advantage Pack! $138 Value!</b> <br>    &nbsp; - VCR Commander – $50 Value<br>    &nbsp; - Eagle Eye Motion Sensor - $25 Value<br>    &nbsp; - 5-in-1 Learning Remote - $50 Value<br>    &nbsp; - Wireless Transceiver/Module - $13 Value    </font><!-- SSI vcr_bullet1m.htm Ends-->';
	this.x10vcr_bullet1o='<!-- SSI vcr_bullet1o.htm --><font color="#FF0000" size="2" face="Arial">	<b>FREE VCR Advantage Pack! $138 Value!</b> <br>    &nbsp; - VCR Commander – $50 Value<br>    &nbsp; - Eagle Eye Motion Sensor - $25 Value<br>    &nbsp; - 5-in-1 Learning Remote - $50 Value<br>    &nbsp; - Wireless Transceiver/Module - $13 Value    </font><!-- SSI vcr_bullet1o.htm ENDS -->';
	this.x10vcr_bullet1y='<!-- SSI vcr_bullet1y.htm --><font color="#FF0000" size="2" face="Arial">	<b>FREE VCR Advantage Pack! $138 Value!</b> <br>    &nbsp; - VCR Commander – $50 Value<br>    &nbsp; - Eagle Eye Motion Sensor - $25 Value<br>    &nbsp; - 5-in-1 Learning Remote - $50 Value<br>    &nbsp; - Wireless Transceiver/Module - $13 Value    </font><!-- SSI vcr_bullet1y.htm Ends-->';
	this.x10vcr_date='<!--SSI text_enddate1.htm-->September 29, 2006<!--SSI text_enddate1.htm Ends-->';
	this.x10vcr_date1='<!--SSI text_enddate1.htm-->September 29, 2006<!--SSI text_enddate1.htm Ends-->';
	this.x10vcr_extra1='<!-- SSI vcr_extra1.htm --><font color="#000000" size="2"> <b>The VCR Advantage Pack also includes 1 Universal 5-in-1 Learning Remote & Wireless Transceiver/Module. The Universal 5-in-1 Learning Remote controls TV, VCR, Cable, and Satellite in a convenient and uncluttered design. It also includes Home Control when used in conjunction with the X10 Transceiver (or any X10 security system base receiver), allowing it to be used to switch and dim lighting in a home theater application for example. The transceiver simply processes the remote\'s signal and sends it to whatever light you want to turn on.</b></font><!-- SSI vcr_extra1.htm Ends-->';
	this.x10vcr_extra1m='<!-- SSI vcr_extra1m.htm --><font color="#000000" size="2"> <b>The VCR Advantage Pack also includes 1 Universal 5-in-1 Learning Remote & Wireless Transceiver/Module. The Universal 5-in-1 Learning Remote controls TV, VCR, Cable, and Satellite in a convenient and uncluttered design. It also includes Home Control when used in conjunction with the X10 Transceiver (or any X10 security system base receiver), allowing it to be used to switch and dim lighting in a home theater application for example. The transceiver simply processes the remote\'s signal and sends it to whatever light you want to turn on.</b></font><!-- SSI vcr_extra1m.htm Ends -->';
	this.x10vcr_extra1o='<!-- SSI vcr_extra1o.htm --><font color="#000000" size="2"> <b>The VCR Advantage Pack also includes 1 Universal 5-in-1 Learning Remote & Wireless Transceiver/Module. The Universal 5-in-1 Learning Remote controls TV, VCR, Cable, and Satellite in a convenient and uncluttered design. It also includes Home Control when used in conjunction with the X10 Transceiver (or any X10 security system base receiver), allowing it to be used to switch and dim lighting in a home theater application for example. The transceiver simply processes the remote\'s signal and sends it to whatever light you want to turn on.</b></font><!-- SSI vcr_extra1o.htm Ends -->';
	this.x10vcr_extra1y='<!-- SSI vcr_extra1y.htm --><font color="#000000" size="2"> <b>The VCR Advantage Pack also includes 1 Universal 5-in-1 Learning Remote & Wireless Transceiver/Module. The Universal 5-in-1 Learning Remote controls TV, VCR, Cable, and Satellite in a convenient and uncluttered design. It also includes Home Control when used in conjunction with the X10 Transceiver (or any X10 security system base receiver), allowing it to be used to switch and dim lighting in a home theater application for example. The transceiver simply processes the remote\'s signal and sends it to whatever light you want to turn on.</b></font><!-- SSI vcr_extra1y.htm Ends-->';
	this.x10vcr_hurry='<!--SSI vcr_hurry.htm-->	<p align="center"><strong><span style="background-color: rgb(255,255,0)"><font    face="Arial"><big>HURRY! ONLY HOURS LEFT!</big></font></span><br>    <font color="#000000" face="Arial">SPECIAL OFFER ENDS @ MIDNIGHT <!--#include virtual="/deals/text_enddate2.htm"-->!</font></strong><!--SSI vcr_hurry.htm Ends-->';
	this.x10vcr_image1_kit='<!-- SSI vcr_image1_kit.htm --><font face="Arial"><img align="right" alt="Here\'s What You\'ll Get!" border="0" src="http://graphics.x10.com/images12/vcr_kit_advantage2b.jpg" vspace="5" width="247" height="240"></font><!-- SSI vcr_image1_kit.htm Ends-->      ';
	this.x102vcr_image_kit='';
	this.x10vcr_image2_logo='<!-- SSI vcr_image1_logo.htm --><b><font color="#000000"><strong><big><img align="right" border="0" src="http://graphics.x10.com/images11/vcradvpack_mainlogo.gif"></big></strong></font></b><!-- SSI vcr_image1_logo.htm Ends -->';
	this.x10vcr_image3_3cam='<!-- SSI vcr_image3_3cam.htm --><img border="0" src="http://graphics.x10.com/images12/3cam_VCR_advantagepack.jpg" vspace="5" width="250" height="236"><!-- SSI vcr_image3_3cam.htm Ends -->';
	this.x10vcr_single_end1='<!-- SSI vcr_single_end1.htm-->ONLY HOURS LEFT! Get the XCam2 Video Camera Kit plus FREE VCR Advantage Pack for only $79.99!<!-- SSI vcr_single_end1.htm End-->';
	this.x10vcr_textcaps1='<!--SSI vcr_textcaps1.htm--><b><font face="Arial" size="4">FREE VCR ADVANTAGE PACK</b><!--SSI vcr_textcaps1.htm End-->';
	this.x10vcr_textcaps1m='<!--SSI vcr_textcaps1m.htm--><b><font face="Arial" size="4">FREE VCR ADVANTAGE PACK</b><!--SSI vcr_textcaps1m.htm Ends-->';
	this.x10vcr_textcaps1o='<!--SSI vcr_textcaps1o.htm--><b><font face="Arial" size="4">FREE VCR ADVANTAGE PACK</font></b><!--SSI vcr_textcaps1o.htm Ends-->';
	this.x10vcr_textcaps1y='<!--SSI vcr_textcaps1y.htm--><b><font face="Arial" size="4">FREE VCR ADVANTAGE PACK</font></b><!--SSI vcr_textcaps1y.htm End-->';
	this.x10vcr_topbonus1='<!--SSI vcr_topbonus1.htm--><strong><font face="Arial,sans-serif" size="3">ONLY HOURS LEFT! Order Now and get a FREE VCR ADVANTAGE PACK!</font></strong><!--SSI vcr_topbonus.htm Ends-->';
	this.x10vcr_topbr1='<!--SSI vcr_topbr1.htm--><strong><font color="#0000ff" face="Arial" size="6">HURRY! $138 BONUS DEAL!</font><br> <b><font face="Arial" size="3" color="#0000FF">*ONLY HOURS LEFT! Order Now and get a FREE VCR Advantage Pack!**</font></b></strong><!--SSI vcr_topbr1.htm Ends-->';
	this.x10vcr_toptext1='<!--SSI vcr_toptext1.htm--><b>BONUS VCR Advantage Pack</b><!--SSI vcr_toptext1.htm Ends-->';
	this.x10kg12_closeup2='<font size="2" face="Arial"><A HREF="javascript:my_win()">Click Here to see            close-ups<br>of the camera</a></font>';
	this.x10infopop_bttn='<A HREF="javascript:my_wind()"><img src="http://graphics.x10.com/images10/ab14_faqbttn.gif" width=145 height=27 border=0 alt="FAQ\'s"></a>';
	this.x10text_bonusname='<!--SSI text_bonusname.htm-->FREE VCR Advantage Pack<!--SSI text_bonusname.htm Ends-->';
	this.x10text_bonusvalue='<!--SSI text_bonusvalue.htm-->$138 BONUS<!--SSI text_bonusvalue.htm Ends-->';
	this.x10text_daysleft='<!--SSI text_daysleft.htm-->ONLY HOURS LEFT<!--SSI text_daysleft.htm Ends-->';
	this.x10text_enddate='<!--SSI text_enddate1.htm-->September 29, 2006<!--SSI text_enddate1.htm Ends-->';
	this.x10vcr_3cam_end1='<!-- SSI vcr_3cam_end1.htm-->ONLY HOURS LEFT! Get the Ultimate 3 Cam Deal plus FREE VCR Advantage Pack for only $169.99!<!-- SSI vcr_3cam_end1.htm ENDS-->';
	this.x10vcr_3cam_save='<!-- SSI vcr_3cam_save.htm -->$248<!-- SSI vcr_3cam_save.htm ENDS-->';
	this.x10vcr_3cam_save1='<!-- SSI vcr_3cam_save1.htm--><FONT COLOR="#000000" FACE="Arial"><P ALIGN="center"></FONT><FONT FACE="Arial" COLOR="#0000FF"><STRONG><BIG><BIG>ULTIMATE        3 CAMERA SUPERDEAL! SAVE $248!</FONT><!-- SSI vcr_3cam_save1.htm ENDS-->';
	this.x10vcr_3cam_value='<!-- SSI vcr_3cam_value.htm-->$418!<!-- SSI vcr_3cam_value.htm ENDS-->';
	this.x10vcr_3cambonus='<!-- SSI vcr_3cambonus.htm--><font size="2" face="Arial"><strong><font color="#000000">Bonus: </font></strong><font color="#ff0000"><b>FREE Universal 5-in-1 Learning Remote, Wireless Transceiver/Module</b></font></font><!-- SSI vcr_3cambonus.htm ENDS-->';
	this.x10vcr_3bigbonus1='<!-- SSI vcr_bigbonus1.htm --><b><font face="arial,sans-serif" size="5">&nbsp;&nbsp;**      FREE VCR ADVANTAGE PACK OFFER - ONLY HOURS LEFT! **</font></b><!-- SSI vcr_bigbonus1.htm ENDS-->';
	this.x10vcr_bigbonus1='<!-- SSI vcr_bigbonus1.htm --><b><font face="arial,sans-serif" size="5">&nbsp;&nbsp;**      FREE VCR ADVANTAGE PACK OFFER - ONLY HOURS LEFT! **</font></b><!-- SSI vcr_bigbonus1.htm ENDS-->';
	this.x10vcr_bullet_title='<!-- SSI vcr_title.htm --><font color="#FF0000" size="2" face="Arial"><b>FREE VCR Advantage Pack! $138 Value!</b> <br><!-- SSI vcr_title.htm ENDS -->';
	this.x10vcr_bullet_bonus='<!-- SSI vcr_bullet_bonus.htm --><font color="#FF0000" size="2" face="Arial">&nbsp; - Universal 5-in-1 Learning Remote - $50 Value<br>&nbsp; - Wireless Tranceiver Module - $13 Value<!-- SSI vcr_bullet_bonus.htm ENDS -->';
	this.x10vcr_bullet1='<!-- SSI vcr_bullet1.htm --><b>BONUS VCR Advantage Pack! $138 Value!</b><br>&nbsp - VCR Commander - $50 Value<br>&nbsp - Eagle Eye Motion Sensor - $25 Value<br>&nbsp - 5-in-1 Learning Remote - $50 Value<br>&nbsp - Wireless Transceiver/Module - $13 Value<br><!-- SSI vcr_bullet1.htm ENDS -->';
	this.x10vcr_bullet1g='<!-- SSI vcr_bullet1g.htm -->     <font color="#FF0000" size="2" face="Arial">	<b>FREE VCR Advantage Pack! $138 Value!</b> <br>    &nbsp; - VCR Commander – $50 Value<br>    &nbsp; - Eagle Eye Motion Sensor - $25 Value<br>    &nbsp; - 5-in-1 Learning Remote - $50 Value<br>    &nbsp; - Wireless Transceiver/Module - $13 Value    </font>  <!-- SSI vcr_bullet1g.htm Ends -->';
	this.x10infopop_text='<A HREF="javascript:my_wind()">Q&A on Wireless Cameras</a>';
//STANDARD FUNCTION
this.getName=getName;
this.getPrice=getPrice;
this.getItems=getItems;
this.getSavings=getSavings;
this.getSeparate=getSeparate;
this.getItemsTable=getItemsTable;
this.getFreeItems=getFreeItems;
this.getFreeItemsTable=getFreeItemsTable;
this.getGraphic=getGraphic;
this.getRedTag=getRedTag;
this.getTextLink=getTextLink;
this.getOrderButton=getOrderButton;

//UPSELL FUNCTION
this.getUpSellName=getUpSellName;
this.getUpSellPrice=getUpSellPrice;
this.getUpSellItems=getUpSellItems;
this.getUpSellSavings=getUpSellSavings;
this.getUpSellSeparate=getUpSellSeparate;
this.getUpSellItemsTable=getUpSellItemsTable;
this.getUpSellFreeItems=getUpSellFreeItems;
this.getUpSellFreeItemsTable=getUpSellFreeItemsTable;
this.getUpSellGraphic=getUpSellGraphic;
this.getUpSellRedTag=getUpSellRedTag;
this.getUpSellTextLink=getUpSellTextLink;
this.getUpSellOrderButton=getUpSellOrderButton;

this.getSupportButton=getSupportButton;
this.getInclude=getInclude;
this.getPhoneNumber=getPhoneNumber;
this.submitOrder=submitOrder;
this.getFlash=getFlash;
this.getExitPop=getExitPop;
this.EnableExitPop=EnableExitPop;
this.checkInfo=checkInfo;

//email a friend
this.ReferFriend=ReferFriend;
this.ReferFriendButton=ReferFriendButton;
this.ReferFriendImage= "http://graphics.x10.com/images_buttons/button2_sendfriend_rh.gif";

}
// This Function is for checking the affiliates
function checkInfo() {

	
	if( ( ( ! CJ.AID ) || ( ! CJ.PID ) ) && ( ! CJ.ERROR ) ) {
		
		//Alert the Affiliate that they have and error	
		alert( "X10 Affiliates Network Error: Affiliate ID / Publisher 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
		CJ.ERROR = 1;
		
	}
	return 1;
	
}// checkInfo()

//EXIT POP UP CODE
function getExitPop() {
	if( CJ.EXITPOP ) {

var name = "http://affiliates.x10.com/affiliates/cj_"+CJ.EXITPOPSKU.toLowerCase()+".htm?PID="+CJ.PID+"&AID="+CJ.AID+"&SID=EXITPOP_"+CJ.SID;
window.open(name,"CJEXITPOP","width=460,height=600,titlebar=1,toolbar=1,location=1,menubar=1,scrollbars=1,resizable=1,status=1");

	}


	return 1;

}
function EnableExitPop(sku) {
	
	if(sku) {
		
		this.EXITPOP=true;
		
		this.EXITPOPSKU=sku;
		
	}
	
	return 1;
	
}

//SUPPORT BUTTON FUNCTION
function getSupportButton() {
document.write('<script lanuage="javascript" src="http://affiliates.x10.com/scripts/supportbutton.js"></scr'+''+'ipt>');

	return 1;

}

//DUP VIRTUAL INCLUDES
function getInclude(desc) {

	var data = eval("this.x10"+desc);

	if(data) {

		document.write(data);

	} else {

		document.write("Not Available");

	}
	
	return 1;

}
function getPhoneNumber() {
document.write('Order online or call anytime 888-570-4964<BR> Don\'t forget to mention the promotion code: <B>'+this.PID+'</B>');

	return 1;

}
function getName(){

	if(this.x10ItemProductName) {

		document.write(this.x10ItemProductName);

	} else {

		document.write("Not Available");

	}
	
	return 1;
	
}

function getPrice(){
	
	if(this.x10ItemPrice) {
		
		document.write("$"+this.x10ItemPrice);
		
	} else {
		
		document.write("Not Available");
		
	}
	
	return 1;
	
}
function getSavings(){
	
	if(this.x10ItemSavings) {
		
		document.write("$"+this.x10ItemSavings);
		
	} else {
		
		document.write("Not Available");
		
	}
	
	return 1;
	
}
function getSeparate(){
	
	if(this.x10ItemSeparate) {
		
		document.write("$"+this.x10ItemSeparate);
		
	} else {
		
		document.write("Not Available");
		
	}
	
	return 1;
	
}
function getGraphic(){
	
	if(this.x10ItemGraphic) {
		
		this.getOrderButton(this.x10ItemGraphic);
		
	} else {
		
		document.write("Not Available");
		
	}
	
	return 1;
	
}
function getRedTag(){
	
	if(this.x10ItemRedTag) {
		
		this.getOrderButton(this.x10ItemRedTag);
		
	} else {
		
		document.write("Not Available");
		
	}
	
	return 1;
	
}
function getItems(){
	
	if(this.x10Items.length>0) {
		
		for(x=0;x<this.x10Items.length;x++){
			
			var tmp = this.x10Items[x].replace(/FREE/g,"<FONT COLOR=RED>FREE</FONT>");
			
			document.write(tmp+"<BR>");
			
		}
		
	} else {
		
		document.write("Not Available");
		
	}
	
	return 1;
	
}
function getItemsTable(){
	
	if(this.x10Items.length>0) {
		
		document.write("<table width=100% border=0 cellspacing=0>");
		
		for(x=0;x<this.x10Items.length;x++) {
			
			var tmp = this.x10Items[x].replace(/FREE/g,"<FONT COLOR=RED SIZE=2>FREE</FONT>");
			
			document.write("<tr><td><font size=2><B>"+tmp+"</B></font></td><td align=right><font size=2><B>$"+this.x10ItemsPrices[x]+"</B></font></td></tr>");
			
		}
		
		if(parseFloat(this.x10ItemPrice) >= 49.99){
			
			document.write("<tr><td><B><FONT COLOR=RED SIZE=2>FREE</FONT> <font size=2>FedEx Shipping</font></B></td><td align=right><font size=2><B><I>Always free!</I></B></font></td></tr>");
			
		}
		
		document.write("</table>");
		
	} else {
		
		document.write("Not Available");
		
	}
	
	return 1;
	
}
function getFreeItems(){
	
	if(this.x10FreeItems.length>0) {
		
		for(x=0;x<this.x10FreeItems.length;x++){
			
			var tmp = this.x10FreeItems[x].replace(/FREE/g,"<FONT COLOR=RED>FREE</FONT>");
			
			document.write("<B>"+tmp+"</B><BR>");
			
		}
		
	} else {
		
		document.write("Not Available");
		
	}
	
	return 1;
}
function getFreeItemsTable(){
	
	if(this.x10FreeItems.length>0) {
		
		document.write("<table width=100% border=0 cellspacing=0>");
		
		for(x=0;x<this.x10FreeItems.length;x++) {
			
			var tmp = this.x10FreeItems[x].replace(/FREE/g,"<FONT COLOR=RED size=2>FREE</FONT>");
			
			document.write("<tr><td><font size=2><B>"+tmp+"</B></font></td><td align=right><font size=2><B>$"+this.x10FreeItemsPrices[x]+"</font></B></td></tr>");
			
		}
		
		if(parseFloat(this.x10ItemPrice) >= 49.99){
			
			document.write("<tr><td><B><FONT COLOR=RED size=2>FREE</FONT> <font size=2>FedEx Shipping</font></B></td><td align=right><font size=2><B><I>Always free!</I></B></font></td></tr>");
			
		}
		
		document.write("</table>");
		
	} else {
		
		document.write("Not Available");
		
	}
	
	return 1;

}
function getOrderButton(img){
	
	var graphic = "";

	if(img != null) {
		graphic = img
	}
	else {
		graphic = this.ButtonImg;
	}
	
	if(this.x10ItemNumber) {

		if(this.PID != null && this.AID != null) {
			
			if(this.SID != null){
				
				if(!img) {
					
					document.write('<table border=0 cellpadding=0 cellspacing=0><tr><td>');
					
				}

				document.write('<a onclick="CJ.EXITPOP=false;" href="http://www.jdoqocy.com/click-'+this.PID+'-'+this.AID+'?sid='+this.SID+'&url=http%3A//ads.x10.com/%3F'+this.CAMPAIGN+'%3D'+this.decache.getTime()+'%7C'+this.AID+'-'+this.PID+'-'+this.SID+'%26ITEM%3Ditem%3A'+this.x10ItemNumber+'"><img src="'+graphic+'" border=0></a><img src="http://ads.x10.com/?'+this.TRACKPixel+'='+this.decache.getTime()+'|'+this.AID+'-'+this.PID+'-'+this.SID+'" width=1 height=1>');
				
				if(!img) {
					
					document.write('</td></tr><tr><td align=center>');
					document.write('<font type="Arial" size="1">');
					document.write('<a href="#" onclick="CJ.EXITPOP=false;window.open(\'http://www.x10.com/cgi-bin/cj_viewparts.cgi?sku='+this.x10SKU+'&PID='+this.PID+'&AID='+this.AID+'&SID='+this.SID+'&CAMP='+this.CAMPAIGN+'&ITEMNUM='+this.x10ItemNumber+'\',\'38065\',\'width=500,height=500,resizable=1,scrollbars=1\');">');
					document.write('What\'s Included');
					document.write('</a>');
					document.write('</font>');
					document.write('</td></tr></table>');
					
				}
				
			} else {
			
				if(!img) {
				
					document.write('<table border=0 cellpadding=0 cellspacing=0><tr><td>');
				
				}
				
				document.write('<a onclick="CJ.EXITPOP=false;" href="http://www.jdoqocy.com/click-'+this.PID+'-'+this.AID+'?sid=&url=http%3A//ads.x10.com/%3F'+this.CAMPAIGN+'%3D'+this.decache.getTime()+'%7C'+this.AID+'-'+this.PID+'-%26ITEM%3Ditem%3A'+this.x10ItemNumber+'"><img src="'+graphic+'" border=0></a><img src="http://ads.x10.com/?'+this.TRACKPixel+'='+this.decache.getTime()+'|'+this.AID+'-'+this.PID+'-'+this.SID+'" width=1 height=1>');

				if(!img) {
					
					document.write('</td></tr><tr><td align=center>');
					document.write('<font type="Arial" size="1">');
					document.write('<a href="#" onclick="CJ.EXITPOP=false;window.open(\'http://www.x10.com/cgi-bin/cj_viewparts.cgi?sku='+this.x10SKU+'&PID='+this.PID+'&AID='+this.AID+'&SID='+this.SID+'&CAMP='+this.CAMPAIGN+'&ITEMNUM='+this.x10ItemNumber+'\',\'38065\',\'width=500,height=500,resizable=1,scrollbars=1\');">');
					document.write('What\'s Included');
					document.write('</a>');
					document.write('</font>');
					document.write('</td></tr></table>');
					
				}
				
			}

		} else {
			
			CJ.checkInfo();
			
			document.write('<a onclick="CJ.EXITPOP=false;" href="javascript:X10.submitOrder('+this.x10ItemNumber+',0);"><img src="'+graphic+'" border=0></a><img src="http://ads.x10.com/?'+this.TRACKPixel+'='+this.decache.getTime()+'|'+this.AID+'-'+this.PID+'-'+this.SID+'" width=1 height=1>');
			
		}
		
	} else {
		
		document.write("Not Available");
		
	}
	
	return 1;
	
}
function getTextLink(text){
	
	if(this.x10ItemNumber) {

		if(this.PID != null && this.AID != null) {
			
			if(this.SID != null){
				
				document.write('<a onclick="CJ.EXITPOP=false;" href="http://www.jdoqocy.com/click-'+this.PID+'-'+this.AID+'?sid='+this.SID+'&url=http%3A//ads.x10.com/%3F'+this.CAMPAIGN+'%3D'+this.decache.getTime()+'%7C'+this.AID+'-'+this.PID+'-'+this.SID+'%26ITEM%3Ditem%3A'+this.x10ItemNumber+'">'+text+'</a>');
			
			} else {
				
				document.write('<a onclick="CJ.EXITPOP=false;" href="http://www.jdoqocy.com/click-'+this.PID+'-'+this.AID+'?sid=&url=http%3A//ads.x10.com/%3F'+this.CAMPAIGN+'%3D'+this.decache.getTime()+'%7C'+this.AID+'-'+this.PID+'-%26ITEM%3Ditem%3A'+this.x10ItemNumber+'">'+text+'</a>');
				
			}
			
		} 
		
		else {
			
			CJ.checkInfo();
			
			document.write('<a onclick="CJ.EXITPOP=false;" href="javascript:CJ.submitOrder('+this.x10ItemNumber+',0);">'+text+'</a>');
			
		}
		
	} else {
		
		document.write("Not Available");
		
	}
	
	return 1;
	
}
//UPSELL FUNCTION
function getUpSellName(){
	
	if(this.x10UpSellItemProductName) {
		
		document.write(this.x10UpSellItemProductName);
		
	} else {
		
		document.write("Not Available");
		
	}
	
	return 1;
	
}
function getUpSellPrice(){

	if(this.x10UpSellItemPrice) {

		document.write("$"+this.x10UpSellItemPrice);

	} else {

		document.write("Not Available");

	}

	return 1;

}
function getUpSellSavings(){
	
	if(this.x10UpSellItemSavings) {
		
		document.write("$"+this.x10UpSellItemSavings);
		
	} else {
		
		document.write("Not Available");
		
	}
	
	return 1;
	
}
function getUpSellSeparate(){
	
	if(this.x10UpSellItemSeparate) {
		
		document.write("$"+this.x10UpSellItemSeparate);
		
	} else {
		
		document.write("Not Available");
		
	}
	
	return 1;
	
}
function getUpSellGraphic(){
	
	if(this.x10UpSellItemGraphic) {
		
		this.getUpSellOrderButton(this.x10UpSellItemGraphic);

	} else {
		
		document.write("Not Available");
		
	}
	
	return 1;

}
function getUpSellRedTag(){
	
	if(this.x10UpSellItemRedTag) {
		
		this.getUpSellOrderButton(this.x10UpSellItemRedTag);
		
	} else {
		
		document.write("Not Available");
		
	}
	
	return 1;

}
function getUpSellItems(){
	
	if(this.x10UpSellItems.length>0) {
		
		for(x=0;x<this.x10UpSellItems.length;x++){
			
			var tmp = this.x10UpSellItems[x].replace(/FREE/g,"<FONT COLOR=RED>FREE</FONT>");
			
			document.write(tmp+"<BR>");
			
		}
		
	} else {
		
		document.write("Not Available");
		
	}
	
	return 1;
	
}
function getUpSellItemsTable(){
	
	if(this.x10UpSellItems.length>0) {
		
		document.write("<table width=100% border=0 cellspacing=0>");
		
		for(x=0;x<this.x10UpSellItems.length;x++) {
			
			var tmp = this.x10UpSellItems[x].replace(/FREE/g,"<FONT COLOR=RED size=2>FREE</FONT>");
			
			document.write("<tr><td><font size=2><B>"+tmp+"</B></font></td><td align=right><font size=2><B>$"+this.x10UpSellItemsPrices[x]+"</font></B></td></tr>");
			
		}
		
		if(parseFloat(this.x10UpSellItemPrice) >= 49.99){
			
			document.write("<tr><td><B><FONT COLOR=RED size=2>FREE</FONT> <font size=2>FedEx Shipping</font></B></td><td align=right><font size=2><B><I>Always free!</I></B></font></td></tr>");
			
		}
		
		document.write("</table>");
		
	} else {
		
		document.write("Not Available");
		
	}
	
	return 1;
	
}
function getUpSellFreeItems(){
	
	if(this.x10UpSellFreeItems.length>0) {
		
		for(x=0;x<this.x10UpSellFreeItems.length;x++){
			
			var tmp = this.x10UpSellFreeItems[x].replace(/FREE/g,"<FONT COLOR=RED size=2>FREE</FONT>");
			
			document.write(tmp+"<BR>");
			
		}
		
	} else {
		
		document.write("Not Available");
		
	}
	
	return 1;
	
}
function getUpSellFreeItemsTable(){
	
	if(this.x10UpSellFreeItems.length>0) {
		
		document.write("<table width=100% border=0 cellspacing=0>");
		
		for(x=0;x<this.x10UpSellFreeItems.length;x++) {
			
			var tmp = this.x10UpSellFreeItems[x].replace(/FREE/g,"<FONT COLOR=RED size=2>FREE</FONT>");
			
			document.write("<tr><td><font size=2><B>"+tmp+"</B></font></td><td align=right><font size=2><B>$"+this.x10UpSellFreeItemsPrices[x]+"</B></font></td></tr>");
			
		}
		
		if(parseFloat(this.x10UpSellItemPrice) >= 49.99){
			
			document.write("<tr><td><B><FONT COLOR=RED size=2>FREE</FONT> <font size=2>FedEx Shipping</font></B></td><td align=right><font size=2><B><I>Always free!</I></B></font></td></tr>");
			
		}
		
		document.write("</table>");
		
	} else {
		
		document.write("Not Available");
		
	}
	
	return 1;
	
}
function getUpSellOrderButton(img){
	
	var graphic = "";
	
	if(img != null) {
		
		graphic = img
		
	} else {
		
		graphic = this.UpSellButtonImg;
		
	}
	
	if(this.x10UpSellItemNumber) {
		
		if(this.PID != null && this.AID != null) {
			
			if(this.SID != null){
				
				if(!img) {
					
					document.write('<table border=0 cellpadding=0 cellspacing=0><tr><td>');
					
				}
				
				document.write('<a onclick="CJ.EXITPOP=false;" href="http://www.jdoqocy.com/click-'+this.PID+'-'+this.AID+'?sid='+this.SID+'&url=http%3A//ads.x10.com/%3F'+this.CAMPAIGN+'%3D'+this.decache.getTime()+'%7C'+this.AID+'-'+this.PID+'-'+this.SID+'%26ITEM%3Ditem%3A'+this.x10UpSellItemNumber+'"><img src="'+graphic+'" border=0></a><img src="http://ads.x10.com/?'+this.TRACKPixel+'='+this.decache.getTime()+'|'+this.AID+'-'+this.PID+'-'+this.SID+'" width=1 height=1>');

				if(!img) {
					
					document.write('</td></tr><tr><td align=center>');
					document.write('<font type="Arial" size="1">');
					document.write('<a href="#" onclick="CJ.EXITPOP=false;window.open(\'http://www.x10.com/cgi-bin/cj_viewparts.cgi?sku='+this.x10UpSellSKU+'&PID='+this.PID+'&AID='+this.AID+'&SID='+this.SID+'&CAMP='+this.CAMPAIGN+'&ITEMNUM='+this.x10UpSellItemNumber+'\',\'38065\',\'width=500,height=500,resizable=1,scrollbars=1\');">');
					document.write('What\'s Included');
					document.write('</a>');
					document.write('</font>');
					document.write('</td></tr></table>');
					
				}
	
			} else {
				
				if(!img) {
					
					document.write('<table border=0 cellpadding=0 cellspacing=0><tr><td>');
					
				}

				document.write('<a onclick="CJ.EXITPOP=false;" href="http://www.jdoqocy.com/click-'+this.PID+'-'+this.AID+'?sid=&url=http%3A//ads.x10.com/%3F'+this.CAMPAIGN+'%3D'+this.decache.getTime()+'%7C'+this.AID+'-'+this.PID+'-%26ITEM%3Ditem%3A'+this.x10UpSellItemNumber+'"><img src="'+graphic+'" border=0></a><img src="http://ads.x10.com/?'+this.TRACKPixel+'='+this.decache.getTime()+'|'+this.AID+'-'+this.PID+'-'+this.SID+'" width=1 height=1>');

				if(!img) {
					document.write('</td></tr><tr><td align=center>');
					document.write('<font type="Arial size="1">');
					document.write('<a href="#" onclick="CJ.EXITPOP=false;window.open(\'http://www.x10.com/cgi-bin/cj_viewparts.cgi?sku='+this.x10UpSellSKU+'&PID='+this.PID+'&AID='+this.AID+'&SID='+this.SID+'&CAMP='+this.CAMPAIGN+'&ITEMNUM='+this.x10UpSellItemNumber+'\',\'38065\',\'width=500,height=500,resizable=1,scrollbars=1\');">');
					document.write('What\'s Included');
					document.write('</a>');
					document.write('</font>');
					document.write('</td></tr></table>');
				}
			}
		}

		 else {
			
			CJ.checkInfo();
			
			document.write('<a onclick="CJ.EXITPOP=false;" href="javascript:CJ.submitOrder('+this.x10UpSellItemNumber+',0);"><img src="'+graphic+'" border=0></a><img src="http://ads.x10.com/?'+this.TRACKPixel+'='+this.decache.getTime()+'|'+this.AID+'-'+this.PID+'-'+this.SID+'" width=1 height=1>');
			
		}
		
	} else {
		
		document.write("Not Available");
		
	}
	
	return 1;
	
}
function getUpSellTextLink(text){

	if(this.x10UpSellItemNumber) {

		if(this.PID != null && this.AID != null) {
			
			if(this.SID != null){
				
				document.write('<a onclick="CJ.EXITPOP=false;" href="http://www.jdoqocy.com/click-'+this.PID+'-'+this.AID+'?sid='+this.SID+'&url=http%3A//ads.x10.com/%3F'+this.CAMPAIGN+'%3D'+this.decache.getTime()+'%7C'+this.AID+'-'+this.PID+'-'+this.SID+'%26ITEM%3Ditem%3A'+this.x10UpSellItemNumber+'">'+text+'</a>');
				
			} else {
				
				document.write('<a onclick="CJ.EXITPOP=false;" href="http://www.jdoqocy.com/click-'+this.PID+'-'+this.AID+'?sid=&url=http%3A//ads.x10.com/%3F'+this.CAMPAIGN+'%3D'+this.decache.getTime()+'%7C'+this.AID+'-'+this.PID+'-%26ITEM%3Ditem%3A'+this.x10UpSellItemNumber+'">'+text+'</a>');
				
			}
			
		}
 		else {
			
			CJ.checkInfo();
			
			document.write('<a onclick="CJ.EXITPOP=false;" href="javascript:CJ.submitOrder('+this.x10UpSellItemNumber+',0);">'+text+'</a>');

		}
	} else {

		document.write("Not Available");

	}
	
	return 1;

}
//UTILS
function submitOrder(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;

}
function getFlash() {

	document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0\" id=\"showtime_play\" width=\"428\" height=\"35\"><param name=\"_cx\" value=\"14049\"><param name=\"_cy\" value=\"7197\"><param name=\"FlashVars\" value><param name=\"Movie\" value=\"http://ads.x10.com/flash2/xcam2_countdown_cj.swf\"><param name=\"Src\" value=\"http://ads.x10.com/flash2/xcam2_countdown_cj.swf\"><param name=\"WMode\" value=\"Window\"><param name=\"Play\" value=\"-1\"><param name=\"Loop\" value=\"-1\"><param name=\"Quality\" value=\"High\"><param name=\"SAlign\" value><param name=\"Menu\" value=\"0\"><param name=\"Base\" value><param name=\"AllowScriptAccess\" value=\"always\"><param name=\"Scale\"value=\"ShowAll\"><param name=\"DeviceFont\" value=\"0\"><param name=\"EmbedMovie\" value=\"0\"><param name=\"BGColor\" value=\"FFFFFF\"><param name=\"SWRemote\" value><param name=\"MovieData\" value><embed name=\"showtime_play\" src=\"http://ads.x10.com/flash2/xcam2_countdown_cj.swf\" menu=\"false\" quality=\"high\" bgcolor=\"#000000\" width=\"428\" height=\"35\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\"></object>");

}
function ReferFriendButton( img ) {
	
	if( ! img ) {
		
		img = this.ReferFriendImage;
		
	}
	

document.write("<a href=\"javascript:CJ.ReferFriend();\"><img src=\""+img+"\" border=\"0\"></a>");
}

//ReferFriendButton()
function ReferFriend() {

	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://www.x10.com/cgi-bin/affiliates/affrefer.cgi\" method=\"get\">\n";
html += "<input type=\"hidden\" name=\"affiliate\" value=\""+this.PID+"\">\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();\">";
	html += "<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();

}
var CJ = new x10Deals();

window.onunload=getExitPop;

