// SGT JavaScript Document
var photos=new Array()
var photoslink=new Array()
var which=0

//Pic Definition: Need to be same size (414x550)
photos[0]="_img/slides/danielle_pics/01.jpg"
photos[1]="_img/slides/danielle_pics/02.jpg"
photos[2]="_img/slides/danielle_pics/03.jpg"
photos[3]="_img/slides/danielle_pics/04.jpg"
photos[4]="_img/slides/danielle_pics/05.jpg"
photos[5]="_img/slides/danielle_pics/06.jpg"
photos[6]="_img/slides/danielle_pics/07.jpg"
photos[7]="_img/slides/danielle_pics/08.jpg"
//If picsclickable=1 -> set link
photoslink[0]="http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=901313-0000&PA=1735595&BAN=0"
photoslink[1]="http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=901313-0000&PA=1735595&BAN=0"
photoslink[2]="http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=901313-0000&PA=1735595&BAN=0"
photoslink[3]="http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=901313-0000&PA=1735595&BAN=0"
photoslink[4]="http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=901313-0000&PA=1735595&BAN=0"
photoslink[5]="http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=901313-0000&PA=1735595&BAN=0"
photoslink[6]="http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=901313-0000&PA=1735595&BAN=0"
photoslink[7]="http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=901313-0000&PA=1735595&BAN=0"
var lastpic = 7;  
//Pics clickabel ? (1=yes , 0=no)
var picsclickable=1
var preloadedimages=new Array()
for (i=0;i<photos.length;i++){
preloadedimages[i]=new Image()
preloadedimages[i].src=photos[i]
}
function calc_transition(){
if (document.all){
photo_transition.filters.revealTrans.Transition=Math.floor(Math.random()*23)
photo_transition.filters.revealTrans.stop()
photo_transition.filters.revealTrans.apply()
}
}
function show_transition(){
if (document.all)
photo_transition.filters.revealTrans.play()
}
function howmuchpics(){
window.status="Pic "+(which+1)+" of "+photos.length
}
function previous_pic(){
if (which==0)  {which=lastpic}
if (which>0){
which--
calc_transition()
document.images.photo_transition.src=photos[which]
show_transition()
howmuchpics()
}
}
function next_pic(){
if (which==photos.length-1)  {which=-1}
if (which<photos.length-1){
which++
calc_transition()
document.images.photo_transition.src=photos[which]
show_transition()
howmuchpics()
} 
}
function showsite(){
window.open(photoslink[which])
}
