var browsversion=0
if (navigator.appVersion.indexOf("MSIE")!=-1){
temp=navigator.appVersion.split("MSIE")
browsversion=parseFloat(temp[1])
}

var tranz=new Array()
tranz[1]="Barn(motion='out', orientation='vertical')"
tranz[2]="Barn(motion='in', orientation='vertical')"
tranz[3]="Barn(motion='out', orientation='horizontal')"
tranz[4]="Barn(motion='in', orientation='horizontal')"
tranz[5]="Blinds(bands=1, direction='up')"
tranz[6]="Blinds(bands=1, direction='down')"
tranz[7]="Blinds(bands=1, direction='right')"
tranz[8]="Blinds(bands=1, direction='left')"
tranz[9]="Blinds(bands=10, direction='up')"
tranz[10]="Blinds(bands=10, direction='down')"
tranz[11]="Blinds(bands=10, direction='right')"
tranz[12]="Blinds(bands=10, direction='left')"
tranz[13]="CheckerBoard(squaresX=12, squaresY=10, direction='up')"
tranz[14]="CheckerBoard(squaresX=12, squaresY=10, direction='down')"
tranz[15]="CheckerBoard(squaresX=12, squaresY=10, direction='right')"
tranz[16]="CheckerBoard(squaresX=12, squaresY=10, direction='left')"
tranz[17]="Fade(overlap=1)"
tranz[18]="GradientWipe(motion='reverse', gradientSize=1, wipestyle=1)"
tranz[19]="GradientWipe(motion='forward', gradientSize=1, wipestyle=1)"
tranz[20]="GradientWipe(motion='forward', gradientSize=1, wipestyle=0)"
tranz[21]="GradientWipe(motion='reverse', gradientSize=1, wipestyle=0)"
tranz[22]="Inset()"
tranz[23]="Iris(motion='in', irisStyle='SQUARE')"
tranz[24]="Iris(motion='out', irisStyle='SQUARE')"
tranz[25]="Iris(motion='in', irisStyle='CIRCLE')"
tranz[26]="Iris(motion='out', irisStyle='CIRCLE')"
tranz[27]="Iris(motion='in', irisStyle='PLUS')"
tranz[28]="Iris(motion='out', irisStyle='PLUS')"
tranz[29]="Iris(motion='in', irisStyle='CROSS')"
tranz[30]="Iris(motion='out', irisStyle='CROSS')"
tranz[31]="Iris(motion='in', irisStyle='DIAMOND')"
tranz[32]="Iris(motion='out', irisStyle='DIAMOND')"
tranz[33]="Iris(motion='in', irisStyle='STAR')"
tranz[34]="Iris(motion='out', irisStyle='STAR')"
tranz[35]="Pixelate(enabled='false', maxSquare=50)"
tranz[36]="RadialWipe(wipeStyle='RADIAL')"
tranz[37]="RadialWipe(wipeStyle='CLOCK')"
tranz[38]="RadialWipe(wipeStyle='WEDGE')"
tranz[39]="RevealTrans(transition=21)"
tranz[40]="RevealTrans(transition=22)"
tranz[41]="RandomDissolve()"
tranz[42]="Slide(bands=4, slideStyle='HIDE')"
tranz[43]="Slide(bands=4, slideStyle='PUSH')"
tranz[44]="Slide(bands=4, slideStyle='SWAP')"
tranz[45]="Slide(bands=1, slideStyle='HIDE')"
tranz[46]="Slide(bands=1, slideStyle='PUSH')"
tranz[47]="Slide(bands=1, slideStyle='SWAP')"
tranz[48]="Spiral(gridSizeX=16, gridSizeY=16)"
tranz[49]="Spiral(gridSizeX=1, gridSizeY=16)"
tranz[50]="Spiral(gridSizeX=16, gridSizeY=1)"
tranz[51]="Spiral(gridSizeX=2, gridSizeY=2)"
tranz[52]="Spiral(gridSizeX=2, gridSizeY=16)"
tranz[53]="Spiral(gridSizeX=16, gridSizeY=2)"
tranz[54]="Stretch(stretchStyle='PUSH')"
tranz[55]="Stretch(stretchStyle='HIDE')"
tranz[56]="Stretch(stretchStyle='SPIN')"
tranz[57]="Strips(motion='leftdown')"
tranz[58]="Strips(motion='leftup')"
tranz[59]="Strips(motion='rightdown')"
tranz[60]="Strips(motion='rightup')"
tranz[61]="Wheel(spokes=20)"
tranz[62]="ZigZag(gridSizeX=16, gridSizeY=16)"

var logorotatetot=4

var logossrlinkurl=new Array()
var logossrtitle=new Array()
var logossrssimage=new Array()

logossrlinkurl[1]="javascript://"
logossrtitle[1]="Sample Screen Capture Image 1"
logossrssimage[1]=1

logossrlinkurl[2]="javascript://"
logossrtitle[2]="Sample Screen Capture Image 2"
logossrssimage[2]=2

logossrlinkurl[3]="javascript://"
logossrtitle[3]="Sample Screen Capture Image 3"
logossrssimage[3]=3

logossrlinkurl[4]="javascript://"
logossrtitle[4]="Sample Screen Capture Image 4"
logossrssimage[4]=4

var ssrlinkurl=new Array()
var ssrtitle=new Array()
var ssrdescrip=new Array()
var ssrssimage=new Array()
var ssradname=new Array()

var ssrotatetot=4

ssrlinkurl[1]="javascript://"
ssrtitle[1]="Sample Screen Capture Image 1"
ssrdescrip[1]=""
ssrssimage[1]=1
ssradname[1]="ad1"

ssrlinkurl[2]="javascript://"
ssrtitle[2]="Sample Screen Capture Image 2"
ssrdescrip[2]=""
ssrssimage[2]=2
ssradname[2]="ad2"

ssrlinkurl[3]="javascript://"
ssrtitle[3]="Sample Screen Capture Image 3"
ssrdescrip[3]=""
ssrssimage[3]=3
ssradname[3]="ad3"

ssrlinkurl[4]="javascript://m"
ssrtitle[4]="Sample Screen Capture Image 4"
ssrdescrip[4]=""
ssrssimage[4]=4
ssradname[4]="ad4"

var sswinbgcolor=new Array()
var ssadbordercolor=new Array()
var ssadbgcolor=new Array()

var ssbadborderstyle=new Array()
var ssadborderthickness=new Array()

sswinbgcolor[1]="#FFFFFF"
ssadbordercolor[1]="#0000FF"
ssadbgcolor[1]="#99CCFF"

sswinbgcolor[2]="#000000"
ssadbordercolor[2]="#FF0000"
ssadbgcolor[2]="#FFFFFF"

sswinbgcolor[3]="#FFFFFF"
ssadbordercolor[3]="#008000"
ssadbgcolor[3]="#CCFFCC"

sswinbgcolor[4]="#0000FF"
ssadbordercolor[4]="#FFFF00"
ssadbgcolor[4]="#FFFFFF"

sswinbgcolor[5]="#FFFFFF"
ssadbordercolor[5]="#FF0000"
ssadbgcolor[5]="#FFCCCC"

sswinbgcolor[6]="#FF0000"
ssadbordercolor[6]="#FFFF00"
ssadbgcolor[6]="#FFFFFF"

sswinbgcolor[7]="#FFFFFF"
ssadbordercolor[7]="#000000"
ssadbgcolor[7]="#DCDCDC"

sswinbgcolor[8]="#008000"
ssadbordercolor[8]="#FFFF00"
ssadbgcolor[8]="#FFFFFF"

sswinbgcolor[9]="#FFFFFF"
ssadbordercolor[9]="#FFCC00"
ssadbgcolor[9]="#FFFFCC"

sswinbgcolor[10]="#FFFF00"
ssadbordercolor[10]="#FF0000"
ssadbgcolor[10]="#FFFFFF"

ssbadborderstyle[1]="solid"
ssbadborderstyle[2]="dashed"
ssbadborderstyle[3]="dotted"

ssadborderthickness[1]="1px"
ssadborderthickness[2]="2px"
ssadborderthickness[3]="3px"

var nextadsettings=0

var newboxhtml=""

var scnum=0

var prevstart=0

function showprev(){
var tranznum=document.prevform.TStyle.value
if(!tranznum){
alert("Please select a transition")
}
else{

prevstart=1

scnum++

if(scnum>ssrotatetot){
scnum=1
}

if(ssrssimage[scnum]==0){
// text ad

nextadsettings++

if(nextadsettings>10){
nextadsettings=1
}

var randborderstyle=Math.round(Math.random()*2)+1
var randborderthickness=Math.round(Math.random()*2)+1

newboxhtml=""
newboxhtml+='<table border=0 cellpadding=0 cellspacing=0 style="width:100%;height:100%;background-color:'+sswinbgcolor[nextadsettings]+';overflow:hidden"><tr align=center valign=center><td>\n'
newboxhtml+='<table cellpadding=5 cellspacing=0 style="width:240;background-color:'+ssadbgcolor[nextadsettings]+';border:'+ssadborderthickness[randborderthickness]+' '+ssbadborderstyle[randborderstyle]+' '+ssadbordercolor[nextadsettings]+';"><tr><td>\n'
newboxhtml+='<center><a href="javascript:prevlink()" title="click here to load this link in a full new window"><font face="arial" style="font-size:7pt;"><b><font color=#0000FF>'+ssrtitle[scnum]+'</font></b></font></a></center>\n'
newboxhtml+='<font face="arial" style="font-size:7pt;color:#000000;">'+ssrdescrip[scnum]+'\n</font>\n'
newboxhtml+='</td></tr></table>\n'
newboxhtml+='</td></tr></table>'

document.all.sitelinktext.innerHTML="Link"
document.all.prevsitetitle.innerHTML=ssrtitle[scnum]
document.all.abovetext.innerHTML="load the link above"

var randdur=Math.round(Math.random()*4)+3

document.all.prevwindowbox2.style.filter="progid:DXImageTransform.Microsoft."+tranz[tranznum]

document.all.prevwindowbox2.filters[0].apply();

document.all.prevwindowbox2.style.backgroundColor=sswinbgcolor[nextadsettings]
document.all.prevwindowbox2.innerHTML=newboxhtml

document.all.prevwindowbox2.filters[0].play(randdur);
}
else{
// screenshot

newboxhtml=""
newboxhtml+='<img src="scsample'+ssrssimage[scnum]+'.jpg" width=300 height=200 border=0>'

var randdur=Math.round(Math.random()*4)+3

document.all.prevwindowbox2.style.filter="progid:DXImageTransform.Microsoft."+tranz[tranznum]

document.all.prevwindowbox2.filters[0].apply();

document.all.prevwindowbox2.style.backgroundColor="#FFFFFF"
document.all.prevwindowbox2.innerHTML=newboxhtml

document.all.prevwindowbox2.filters[0].play(randdur);

}

}

}

var logonum=0

function goshow(){

var randdur=Math.round(Math.random()*3)+2

if(document.body.scrollTop<150){

logonum++

if(logonum>logorotatetot){
logonum=1
}

var logoboxhtml=""

logoboxhtml+='<img src="lilscsample'+logossrssimage[logonum]+'.jpg" width=200 height=120 border=0>'

var randtranz=Math.round(Math.random()*61)+1

// document.all.logoprevbox.style.filter="progid:DXImageTransform.Microsoft."+tranz[randtranz]

// document.all.logoprevbox.filters[0].apply();

// document.all.logoprevbox.style.backgroundColor="#FFFFFF"
// document.all.logoprevbox.innerHTML=logoboxhtml

// document.all.logoprevbox.filters[0].play(randdur);

}

var tdelay=(randdur+5)*1000

var t=setTimeout("goshow()",tdelay)

}
