var pcnt = -1;
var Pic = new Array();
Pic[++pcnt] = 'images/slide01.jpg'
Pic[++pcnt] = 'images/slide02.jpg'
Pic[++pcnt] = 'images/slide03.jpg'
Pic[++pcnt] = 'images/slide04.jpg'
Pic[++pcnt] = 'images/slide07.jpg'

var slideShowSpeed = 3000;
var crossFadeDuration = 3;
var preLoad = new Array();
var preLoad2 = new Array();
var p = 0;
var p2 = 0;

function PreLoadImg() {
	if ( typeof(Pic) != "undefined" )	{
		p = Pic.length;

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

function runSlideShow(j) {
	try
	{
		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(' + j + ')', slideShowSpeed);		
	}
	catch ( Exc )
	{
	}
}

function newWindow(URL, name, specs) {
	var anon_win = window.open(URL, name, specs);
}

function openCenteredWindow(url, name, w, h, Ctrl) {
	var popWin = null;

	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	Ctrl = ( typeof(Ctrl) == "undefined" ) ? "no" : Ctrl = "yes";
	settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+Ctrl+',resizable='+Ctrl+',menubar=no,toolbar=no,status=yes,location=no';
	if(popWin == null) popWin = window.open(url,name,settings);
	popWin.focus();
}

function leftover(o) {
	o.className = "";
}

function leftout(o) {
	o.className = "tdLeftNav";
}

var SHwin = null;
function ShowHotelPopUp(nm, lg, alt) {
	if (SHwin) {
	   SHwin.close()
	}
	//Now set up for new window
	var params = "toolbar= 0,location= 0,directories= 0,status= 0,menubar= 0,scrollbars= 0,resizable= 0,copyhistory= 0,";
	params += "width= " + lg + ",innerWidth= " + lg + ",";
	params += "height= " + alt + ",innerHeight= " + alt;
	if (window.screen) {
		var ah = screen.availHeight - 30;
		var aw = screen.availWidth - 10;
		var xc = (aw - lg) / 3;
		var yc = (ah - alt) / 3;
		params += ",left=" + xc + ",screenX=" + xc;
		params += ",top=" + yc + ",screenY=" + yc;
	  }
	SHwin = window.open(nm,"SHpopup",params);
}

function talktothepresident() {
	openCenteredWindow("talktothepresident.htm","Talk",550,470,"yes");
}

