// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this  header
// NS4-6,IE4-6
// Fade effect only in IE; degrades gracefully

// =======================================
// set the following variables
// =======================================

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 4000

// Duration of crossfade (seconds)
var crossFadeDuration = 2

// Specify the image files
var Pic = new Array() // don't touch this
// to add more images, just continue
// the pattern, adding to the array below

Pic[0] = 'wedding_00.jpg'
Pic[1] = 'wedding_1.jpg'
Pic[2] = 'wedding_2.jpg'
Pic[3] = 'wedding_3.jpg'
Pic[4] = 'wedding_4.jpg'
Pic[5] = 'wedding_5.jpg'
Pic[6] = 'wedding_6.jpg'
Pic[7] = 'wedding_7.jpg'
Pic[8] = 'wedding_8.jpg'
Pic[9] = 'wedding_9.jpg'
Pic[10] = 'wedding_10.jpg'
Pic[11] = 'wedding_11.jpg'
Pic[12] = 'wedding_12.jpg'
Pic[13] = 'wedding_13.jpg'
Pic[14] = 'wedding_14.jpg'
Pic[15] = 'wedding_15.jpg'
Pic[16] = 'wedding_16.jpg'
Pic[17] = 'wedding_17.jpg'
Pic[18] = 'wedding_18.jpg'
Pic[19] = 'wedding_19.jpg'
Pic[20] = 'wedding_20.jpg'
Pic[21] = 'wedding_21.jpg'
Pic[22] = 'wedding_22.jpg'
Pic[23] = 'wedding_23.jpg'
Pic[24] = 'wedding_24.jpg'
Pic[25] = 'wedding_25.jpg'
Pic[26] = 'wedding_26.jpg'
Pic[27] = 'wedding_27.jpg'
Pic[28] = 'wedding_28.jpg'
Pic[29] = 'wedding_29.jpg'
Pic[30] = 'wedding_30.jpg'
Pic[31] = 'wedding_31.jpg'
Pic[32] = 'wedding_32.jpg'
Pic[33] = 'wedding_33.jpg'
Pic[34] = 'wedding_34.jpg'
Pic[35] = 'wedding_35.jpg'
Pic[36] = 'wedding_36.jpg'
Pic[37] = 'wedding_37.jpg'
Pic[38] = 'wedding_38.jpg'
Pic[39] = 'wedding_39.jpg'
Pic[40] = 'wedding_40.jpg'
Pic[41] = 'wedding_41.jpg'
Pic[42] = 'wedding_42.jpg'
Pic[43] = 'wedding_43.jpg'
Pic[44] = 'wedding_44.jpg'
Pic[45] = 'wedding_45.jpg'
Pic[46] = 'wedding_46.jpg'
Pic[47] = 'wedding_47.jpg'

// =======================================
// do not edit anything below this line
// =======================================

var t
var j = 0
var p = Pic.length

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

function runSlideShow(){
	if (document.all){
		document.images.SlideShow.style.filter="blendTrans(duration=2)"
		document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
		document.images.SlideShow.filters.blendTrans.Apply()
	}
	document.images.SlideShow.src = preLoad[j].src
	if (document.all){
		document.images.SlideShow.filters.blendTrans.Play()
	}
	j = j + 1
	if (j > (p-1)) j=0
	t = setTimeout('runSlideShow()', slideShowSpeed)
}



/**************************
 * Right click prevention *
 **************************/
var message = 'Please respect our Copyright.' ;
function clickie() {
	if (document.all) {
		alert(message);
		return false;
	}
}
function clickns(e) {
	if (document.layers||(document.getElementById&&!document.all)) {
		if (e.which==2 || e.which==3) {
			alert(message);
			return false;
		}
	}
}
if (document.layers) {
	document.captureEvents(Event.MOUSEDOWN);
	document.onmousedown=clickns;
} else {
	document.onmouseup=clickns;
	document.oncontextmenu=clickie;
}
