// JavaScript Document
$(document).ready(function() {
	if ($("#calendartt")) {
		$("#calendartt").click( function() { 
			window.open(this.href, null, "height=500,width=600,status=no,toolbar=no,menubar=no,scrollbars=yes"); return false;
		});
	}
	if ($("#calendarlmc")) {
		$("#calendarlmc").click( function() { 
			window.open(this.href, null, "height=500,width=600,status=no,toolbar=no,menubar=no,scrollbars=yes"); return false;
		});
	}
	if ($("#calendarlg")) {
		$("#calendarlg").click( function() { 
			window.open(this.href, null, "height=500,width=600,status=no,toolbar=no,menubar=no,scrollbars=yes"); return false;
		});
	}
	if ($("#calendarbb")) {
		$("#calendarbb").click( function() { 
			window.open(this.href, null, "height=500,width=600,status=no,toolbar=no,menubar=no,scrollbars=yes"); return false;
		});
	}
	MyImages=new Array();
	$("div#homeimgshow > img").hide();
    $("div#homeimgshow > img").each(function(i){
		MyImages[i]= this.src;
 });
	MyImages[1] = 'i/homeimg2.jpg';
	MyImages[2] = 'i/homeimg3.jpg';
	MyImages[3] = 'i/homeimg4.jpg';
	MyImages[4] = 'i/aerial.jpg';
	currentIndx=0;
	slide();
 });
function slide() {
if (currentIndx<MyImages.length){currentIndx=currentIndx}
else {currentIndx=1}
$("#hImg").attr({ src: MyImages[currentIndx], alt: "Test Image" });
$("#hImg").animate({
   opacity: 'show'
 }, 1000);
currentIndx=currentIndx+1;
var delay = setTimeout("slide()",5000)
}