var vImg = new Array()
vImg[0] = 'images/slides/0.jpg'
vImg[1] = 'images/slides/1.jpg'
vImg[2] = 'images/slides/2.jpg'
vImg[3] = 'images/slides/3.jpg'
vImg[4] = 'images/slides/4.jpg'
vImg[5] = 'images/slides/5.jpg'
vImg[6] = 'images/slides/6.jpg'
vImg[7] = 'images/slides/7.jpg'
vImg[8] = 'images/slides/8.jpg'
vImg[9] = 'images/slides/9.jpg'
vImg[10] = 'images/slides/10.jpg'
vImg[11] = 'images/slides/11.jpg'
vImg[12] = 'images/slides/12.jpg'
vImg[13] = 'images/slides/13.jpg'
vImg[14] = 'images/slides/14.jpg'
vImg[15] = 'images/slides/15.jpg'
vImg[16] = 'images/slides/16.jpg'
vImg[17] = 'images/slides/17.jpg'
vImg[18] = 'images/slides/18.jpg'

var t
var p = vImg.length
var j = 0
var vDoc = document

var vImgLoad = new Array()
for (i = 0; i < p; i++){
   vImgLoad[i] = new Image()
   vImgLoad[i].src = vImg[i]
}

function runSlide(){
	slide1();
	slide2();
	slide3();
	slide4();
}

function slide1(){
	if (vDoc.all){
		vDoc.images.ContentLeftOne.style.filter="blendTrans(duration=1)"
		vDoc.images.ContentLeftOne.filters.blendTrans.Apply()      
	}
	vDoc.images.ContentLeftOne.src = vImgLoad[j].src
	if (vDoc.all){
		vDoc.images.ContentLeftOne.filters.blendTrans.Play()
	}
	j = j + 1
	if (j > (p-1)) j=0
	vDur = (Math.floor(Math.random()*15) + 6 ) * 1000
	t = setTimeout('slide1()', vDur)
}

function slide2(){
	if (vDoc.all){
		vDoc.images.ContentLeftTwo.style.filter="blendTrans(duration=1)"
		vDoc.images.ContentLeftTwo.filters.blendTrans.Apply()      
	}
	vDoc.images.ContentLeftTwo.src = vImgLoad[j].src
	if (vDoc.all){
		vDoc.images.ContentLeftTwo.filters.blendTrans.Play()
	}
	j = j + 1
	if (j > (p-1)) j=0
	vDur = (Math.floor(Math.random()*15) + 5 ) * 1000
	t = setTimeout('slide2()', vDur)
}

function slide3(){
	if (vDoc.all){
		vDoc.images.ContentLeftThree.style.filter="blendTrans(duration=1)"
		vDoc.images.ContentLeftThree.filters.blendTrans.Apply()      
	}
	vDoc.images.ContentLeftThree.src = vImgLoad[j].src
	if (vDoc.all){
		vDoc.images.ContentLeftThree.filters.blendTrans.Play()
	}
	j = j + 1
	if (j > (p-1)) j=0
	vDur = (Math.floor(Math.random()*15) + 4 ) * 1000
	t = setTimeout('slide3()', vDur)
}

function slide4(){
	if (vDoc.all){
		vDoc.images.ContentLeftFour.style.filter="blendTrans(duration=1)"
		vDoc.images.ContentLeftFour.filters.blendTrans.Apply()      
	}
	vDoc.images.ContentLeftFour.src = vImgLoad[j].src
	if (vDoc.all){
		vDoc.images.ContentLeftFour.filters.blendTrans.Play()
	}
	j = j + 1
	if (j > (p-1)) j=0
	vDur = (Math.floor(Math.random()*15) + 7 ) * 1000
	t = setTimeout('slide4()', vDur)
}

function bookmark(){
if (navigator.appName=='Microsoft Internet Explorer') {
document.write("<a href=\"javascript:window.external.AddFavorite('http://www.innervisionhair.co.uk', 'Innervision Hair and Beauty')\"> Bookmark Us</a>");
}
else {
document.write("Press Ctrl-D to Bookmark Us!");
}
}