<!--

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		preloadFlag = true;
	}
}

function OpenPhoto(url, name, width, height) {
	  var Win = window.open(url,'name','width=' + width + ',height=' + height +
	  ',resizable=0,scrollbars=no,location=no,directories=no,menubar=no,status=no,statusbar=no,toolbar=no,navbar=no,top=100,left=100' );
}


function ShowRecommend() 
{
	var rndURL = (1000*Math.random());
	var url = "http://www.communityinsite.ca/cgi-bin/csrecommend/csrecommend.cgi?command=showrecommend&page="+escape(window.location);
	h=625;
	w=700;
	newWindow = window.open(url,'search','width='+w+',height='+h+',top='+(screen.height-h)/2+',left='+(screen.width-w)/2+',location=0,directories=0,status=no,menuBar=no,scrollBars=no,resizable=yes');
	newWindow.focus();
}

	myPix = new Array("http://www.communityinsite.ca/images/header-quote01.jpg","http://www.communityinsite.ca/images/header-quote02.jpg","http://www.communityinsite.ca/images/header-quote03.jpg","http://www.communityinsite.ca/images/header-quote04.jpg","http://www.communityinsite.ca/images/header-quote05.jpg","http://www.communityinsite.ca/images/header-quote06.jpg","http://www.communityinsite.ca/images/header-quote07.jpg","http://www.communityinsite.ca/images/header-quote08.jpg","http://www.communityinsite.ca/images/header-quote09.jpg")
	imgCt = myPix.length 

	function choosePic() {
		if (document.images) {
			randomNum = Math.floor((Math.random() * imgCt))
			document.myPicture.src = myPix[randomNum]
		}
	}

// -->