// --------- Copyright 2001, Smartshop.com, Inc --------------------
//set global variables
//default to always playing images
g_fPlayMode = 1;
g_dwTimeOutSec = 10
function updownshadow() {
if (event.srcElement.className=="popshadow") {
tempobject=event.srcElement
if (event.type=="mousedown") {
tempobject.filters[0].enabled=false
tempobject.style.left=tempobject.style.top=0
} else {
tempobject.filters[0].enabled=true
tempobject.style.left=tempobject.style.top=-5
}
}
}
//Used for search submit button
function checkArea() {
document.smartsearch.submit();
}
//Used to create transition effects
function ApplyEffect() {
if (document.all){
document.imageslider.filters.revealTrans.Transition=Math.floor(Math.random()*23)
document.imageslider.filters.revealTrans.stop()
document.imageslider.filters.revealTrans.apply()
}
}
function PlayEffect() {
if (document.all)
document.imageslider.filters.revealTrans.play()
}
//Puts the Smartchoice 1 of n in the window lower left corner
function KeepTrack() {
window.status="Smartchoice "+(x+1)+" of "+smartchoices.length
}
function Stop() {
g_fPlayMode = 0;
}
function Tick()
{
if (g_fPlayMode)
ChangeImage(true);
}
function OnImgLoad()
{
if (g_fPlayMode)
window.setTimeout("Tick()", g_dwTimeOutSec*1000);
}
//Moves through images when pushing next/back buttons. Loops in a circle
function ChangeImage(fFwd) {
if (fFwd) {
if (++x==smartchoices.length)
x=0;
} else {
if (x==0)
x=smartchoices.length;
x--;
}
ApplyEffect()
document.images.imageslider.src=smartchoices[x]
PlayEffect()
//KeepTrack()
}
//This opens a new window for the image links
function transport(){
newWindow = window.open(smartchoiceslink[x], "smartwindow");
}
var x=0
var smartchoices=new Array()
var smartchoiceslink=new Array()
if (document.all){
document.body.onmousedown=updownshadow
document.body.onmouseup=updownshadow
}
//define images. You can have as many as you want. Images MUST be of the same dimensions (for Netscape's sake)
smartchoices[0]="http://smartshop.speedera.net/www.smartshop.com/images/smartchoices/v/v01099414-2.jpg"
smartchoices[1]="http://smartshop.speedera.net/www.smartshop.com/images/smartchoices/p/p00040161.gif"
smartchoices[2]="http://smartshop.speedera.net/www.smartshop.com/images/smartchoices/p/p00038165.gif"
smartchoices[3]="http://smartshop.speedera.net/www.smartshop.com/images/smartchoices/p/p00029089.gif"
smartchoices[4]="http://smartshop.speedera.net/www.smartshop.com/images/smartchoices/b/b03873929-1.jpg"
//Set corresponding URLs for above images. 
smartchoiceslink[0]="http://www.smartshop.com/cgi-bin/main.cgi?mv=1099414&o=2&out=&rotate=on&sc=0&shopc=1&sl=1&ssa=2825&adp=SC1"
smartchoiceslink[1]="http://www.smartshop.com/cgi-bin/main.cgi?o=40161&out=&rotate=on&sc=0&shopc=1&sl=1&ssa=2825&adp=SC2"
smartchoiceslink[2]="http://www.smartshop.com/cgi-bin/main.cgi?o=38165&out=&rotate=on&sc=0&shopc=1&sl=1&ssa=2825&adp=SC3"
smartchoiceslink[3]="http://www.smartshop.com/cgi-bin/main.cgi?o=29089&out=&rotate=on&sc=0&shopc=1&sl=1&ssa=2825&adp=SC4"
smartchoiceslink[4]="http://www.smartshop.com/cgi-bin/main.cgi?mb=3873929&o=1&out=&rotate=on&sc=0&shopc=1&sl=1&ssa=2825&adp=SC5"
var preloadedimages=new Array()
for (i = 0; i < smartchoices.length; i++){
preloadedimages[i]=new Image()
preloadedimages[i].src=smartchoices[i]
}
document.write('<STYLE type="text/css">')
document.write('TD.shopLet {font-family : Arial, Helvetica, sans-serif;	font-size : 10px; color : #FFFFFF}')
document.write('</STYLE>')
document.write('<TABLE BORDER="0" WIDTH="120" CELLPADDING="0" CELLSPACING="0" BGCOLOR="#003399">')
document.write('<FORM ACTION="http://www.smartshop.com/cgi-bin/main.cgi?out=shoplet&ssa=2825&rotate=on&shopc=1&sl=1" METHOD="GET" NAME="smartsearch" target="smartwindow">')
document.write('<TR>')
document.write('<TD WIDTH="1" ROWSPAN="2" BGCOLOR="#FFFFFF"><IMG SRC="http://smartshop.speedera.net/www.smartshop.com/images/pxl.gif" border="0" WIDTH="1" HEIGHT="1" VSPACE="0" HSPACE="0"></TD>')
document.write('<TD WIDTH="118" HEIGHT="1" BGCOLOR="#FFFFFF"><IMG SRC="http://smartshop.speedera.net/www.smartshop.com/images/pxl.gif" border="0" WIDTH="118" HEIGHT="1" VSPACE="0" HSPACE="0"></TD>')
document.write('<TD WIDTH="1" ROWSPAN="2" BGCOLOR="#FFFFFF"><IMG SRC="http://smartshop.speedera.net/www.smartshop.com/images/pxl.gif" border="0" WIDTH="1" HEIGHT="1" VSPACE="0" HSPACE="0"></TD>')
document.write('</TR><TR>')
document.write('<TD CLASS="shopLet" WIDTH="118" ALIGN="CENTER" VALIGN="TOP" BGCOLOR="#003399">')
document.write('Comparison Shopping<BR>Featured Special:</TD>')
document.write('</TR><TR>')
document.write('<TD WIDTH="120" HEIGHT="1" COLSPAN="3" BGCOLOR="#FFFFFF"><IMG SRC="http://smartshop.speedera.net/www.smartshop.com/images/pxl.gif" border="0" WIDTH="118" HEIGHT="1" VSPACE="0" HSPACE="0"></TD>')
document.write('</TR><TR>')
document.write('<TD COLSPAN="3" WIDTH="120" HEIGHT="90" ALIGN="CENTER" VALIGN="TOP" BGCOLOR="#003399">')
document.write('<a href="javascript:transport()" onMouseover="Stop()"><img width="120" height="90" onload="OnImgLoad()" src="'+smartchoices[0]+'" name="imageslider" style="filter:revealTrans(duration=2,transition=23)" border="0"></a></TD>')
document.write('</TR><TR>')
document.write('<TD COLSPAN="3" WIDTH="120" HEIGHT="15" ALIGN="CENTER" VALIGN="TOP" BGCOLOR="#003399">')
document.write('<a href="#" onMouseover="Stop()" onClick="ChangeImage(false);return false"><IMG SRC="http://smartshop.speedera.net/www.smartshop.com/images/clut3/aroz_back_lf_01.gif" alt="Back" border="0" WIDTH="58" HEIGHT="15" VSPACE="0" HSPACE="1"></a><a href="#" onMouseover="Stop()" onClick="ChangeImage(true);return false"><IMG SRC="http://smartshop.speedera.net/www.smartshop.com/images/clut3/aroz_next_rt_01.gif" border="0" WIDTH="58" HEIGHT="15" VSPACE="0" HSPACE="1" alt="Next"></a></TD>')
document.write('</TR><TR>')
document.write('<TD WIDTH="120" HEIGHT="1" COLSPAN="3" BGCOLOR="#FFFFFF"><IMG SRC="http://smartshop.speedera.net/www.smartshop.com/images/pxl.gif" border="0" WIDTH="118" HEIGHT="1" VSPACE="0" HSPACE="0"></TD>')
document.write('</TR><TR>')
document.write('<TD WIDTH="1" BGCOLOR="#FFFFFF"><IMG SRC="http://smartshop.speedera.net/www.smartshop.com/images/pxl.gif" border="0" WIDTH="1" HEIGHT="1" VSPACE="0" HSPACE="0"></TD>')
document.write('<TD CLASS="shopLet" WIDTH="118" ALIGN="CENTER" VALIGN="BOTTOM" BGCOLOR="#003399">')
document.write('<BR>Comparison shop for:<BR>')
document.write('<INPUT TYPE="TEXT" NAME="k" VALUE="" SIZE="10" MAXLENGTH="75"><BR>')
document.write('<INPUT TYPE="HIDDEN" NAME="ssa" VALUE="2825">')
document.write('<INPUT TYPE="HIDDEN" NAME="sl" VALUE="1">')
document.write('<BR><A HREF="javascript:checkArea()"><IMG SRC="http://smartshop.speedera.net/www.smartshop.com/images/clut3/btn_search_01.gif" WIDTH="58" HEIGHT="15" ALIGN="ABSMIDDLE" BORDER="0" ALT="Search Music.com"></A><BR>&nbsp;</TD>')
document.write('<TD WIDTH="1" BGCOLOR="#FFFFFF"><IMG SRC="http://smartshop.speedera.net/www.smartshop.com/images/pxl.gif" border="0" WIDTH="1" HEIGHT="1" VSPACE="0" HSPACE="0"></TD>')
document.write('</TR><TR>')
document.write('<TD WIDTH="120" HEIGHT="1" COLSPAN="3" BGCOLOR="#FFFFFF"><IMG SRC="http://smartshop.speedera.net/www.smartshop.com/images/pxl.gif" border="0" WIDTH="118" HEIGHT="1" VSPACE="0" HSPACE="0"></TD>')
document.write('</TR>')
document.write('</FORM>')
document.write('</TABLE>')
// --------- Copyright 2001, Smartshop.com, Inc --------------------
