// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 2000;
// Duration of crossfade (seconds)
var crossFadeDuration = 3;
// Specify the image files
var Pic = new Array();
// to add more images, just continue
// the pattern, adding to the array below

Pic[0] = 'images/Photos/Photo1.gif'
Pic[1] = 'images/Photos/Photo2.gif'
Pic[2] = 'images/Photos/Photo3.gif'
Pic[3] = 'images/Photos/Photo4.gif'
Pic[4] = 'images/Photos/Photo5.gif'


// do not edit anything below this line
var t;
var j1 = 0;
var p1 = Pic.length;
var preLoad = new Array();
for (i1 = 0; i1 < p1; i1++) {
preLoad[i1] = new Image();
preLoad[i1].src = Pic[i1];
}
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[j1].src;
if (document.all) {
document.images.SlideShow.filters.blendTrans.Play();
}
j1 = j1 + 1;
if (j1 > (p1 - 1)) j1 = 0;
t = setTimeout('runSlideShow()', slideShowSpeed);
}
//  End -->

function pop_up(url){
link = window.open(url,"link","toolbar=yes,location=0,directories=0,status=0,scrollbars=yes,menubar=yes,resizable=yes,width=600,height=500,left=150,top=150");
link.focus()
}


//showhide div

function showDiv(pass) { 
	var divs = document.getElementsByTagName('div'); 
		for(i=0;i<divs.length;i++){ 
			if(divs[i].id.match(pass)){//if they are 'see' divs 
			if (document.getElementById) // DOM3 = IE5, NS6 
				divs[i].style.visibility="visible";// show/hide 
			else 
			if (document.layers) // Netscape 4 
				document.layers[divs[i]].display = 'visible'; 
			else // IE 4 
				document.all.divs[i].visibility = 'visible'; 
			} 
		else { 
			if (document.getElementById) 
				divs[i].style.visibility="hidden"; 
			else 
			if (document.layers) // Netscape 4 
				document.divs[i].visibility = 'hidden'; 
			else // IE 4 
				document.all.divs[i].visibility = 'hidden'; 
			} 
		} 
} 

function Validate(form)
{
	var msg = "You must enter both name and email values ...";
	var name = document.contact.realname.value;
	var email = document.contact.email.value;

	
	// check for any space characters that may be input
  	
  	if (name == "" || name == null || email == "" || email == null)
  	{
  		alert (msg);
  		return false;
  	}
}