var rq = new Array()
var photos=new Array()
var photoslink=new Array()
var photostitle=new Array()
var which=0
var imgnum=1
var interval = 7500
var itotalimages = 11


//define images. You can have as many as you want:
photos[0]='images/polo-01a.jpg'
photos[1]='images/polo-02a.jpg'
photos[2]='images/polo-03a.jpg'
photos[3]='images/polo-04a.jpg'
photos[4]='images/polo-05a.jpg'
photos[5]='images/polo-06a.jpg'
photos[6]='images/polo-07a.jpg'
photos[7]='images/polo-08a.jpg'
photos[8]='images/polo-09a.jpg'
photos[9]='images/polo-10a.jpg'
photos[10]='images/polo-11a.jpg'

//Specify whether images should be linked or not (1=linked)
var linkornot=0

photoslink[0]="experience.asp?pg=e&ref=1"
photoslink[1]="experience.asp?pg=e&ref=4"
photoslink[2]="experience.asp?pg=e&ref=5"
photoslink[3]="experience.asp?pg=e&ref=6"

photostitle[0]="  This is the text that goes with the image numbered 0"
photostitle[1]="  This is the text that goes with the image numbered 1"
photostitle[2]="  This is the text that goes with the image numbered 2"

var preloadedimages=new Array()
for (i=0;i<photos.length;i++){
preloadedimages[i]=new Image()
preloadedimages[i].src=photos[i]
}

// Store some random quotations

rq[0] = "Sanskirt - Classical Indian language."
rq[1] = "Sanskirt - Classical Indian language."
rq[2] = "Flow Yoga links postures and the breath in a flowing series warming and energizing the body.  'Dance of the Prana'"
rq[3] = "Pranayama - The breath, life, energy"
rq[4] = "Namaste - 'I bow to you'. allowing individuals to connect together.  Hands are placed together at the heart chakra, eyes close, the head bows.  We are one living from the heart."
rq[5] = "Asana - Posture, a steady state of position"
rq[6] = "Parighasana - The Gateway Pose encourages transformation.  This intense side stretch takes us beyond our daily lives, stretching our boundaries and helping us to move past linitations."
rq[7] = "Chakra - Sanskirt for wheel or disk and signifies one of seven basic energy centers in the body.  The chakras correlate to levels of consciousness, developmental stages of life, colors, sounds, body functions, and much more."
rq[8] = "Mantras - Words or phrases that are chanted out loud or internally as objects of meditation, tools to think with."
rq[9] = "OM Gum Ganapatayei Namaha - Chanted to start new endeavors with positive and energy and remove obstacles."
rq[10] = "Yoga Sanskirt for Yoke union.  Ancient Indian philosphy, physical and psychological discipline linking the mind body and spirit."
rq[11] = "Mundras - Sanskirt word meaning sign or seal, is a gesture or position, usually of the hands, that locks and guides energy flow and reflexes to the brain."
rq[12] = "OM - Primal sound or vibration from which all other names and forms arise and to which we all return."
rq[13] = "OM - Primal sound or vibration from which all other names and forms arise and to which we all return."

function pick_quote(){
var now=new Date()
var num=(now.getSeconds())%13
var num=num+1

  document.getElementById('rquote').innerHTML = rq[num];
}


// This script is intended for use with a minimum of Netscape 4 or IE 4.
		// First we detect the browser type
		if(document.getElementById) { // IE 5 and up, NS 6 and up
			var upLevel = true;
			}
		else if(document.layers) { // Netscape 4
			var ns4 = true;
			}
		else if(document.all) { // IE 4
			var ie4 = true;
			}
			
function applyeffect(){
if (document.all && photoslider.filters){
photoslider.filters.revealTrans.Transition=Math.floor(Math.random()*23)
photoslider.filters.revealTrans.stop()
photoslider.filters.revealTrans.apply()
}
}
function playeffect(){
if (document.all && photoslider.filters)
photoslider.filters.revealTrans.play()
}
function keeptrack(){
window.status="Image "+(which+1)+" of "+photos.length
}
function backward(){
if (which>0){
which--
imgnum -= 1;
// document.getElementById('photostitle').innerHTML = '' + imgnum; //
document.images.photoslider.src=photos[which]
playeffect()
}
}
function forward(){
if (which == itotalimages-1)
{
which=-1;
imgnum=0;
}
which++
imgnum += 1;

// document.getElementById('photostitle').innerHTML=photostitle[which]; //
applyeffect()
document.images.photoslider.src=photos[which]
playeffect()

var recur_call = "forward('"+imgnum+"')";
timerID = setTimeout(recur_call, interval);
// }
}
function transport(){
window.location=photoslink[which]
}

function slideit(){
if (!document.images)
return
document.images.photoslider.src=eval("image"+step+".src")
whichimage=step
if (step<3)
step++
else
step=1
setTimeout("slideit()",1800)
}
function OpenWindow(url,w,h)
        {                                                         
        msgWindow=window.open(url,"displayWindow","toolbar=no,width="+w+",height="+h+",directories=no,status=no,scrollbars=yes,resize=no,menubar=no")
        }  
