// JavaScript Document

function toggleIt(a) {
if (document.getElementById(a).style.visibility == "visible") {
document.getElementById(a).style.visibility = "hidden";
}
else {document.getElementById(a).style.visibility = "visible";
}
}

function openIt() {
myWindow = window.open("mailer.asp", "tinyWindow", 'toolbar,width=300,height=310')
}

function swapIt(imNo) {
var imName = "images/" + imNo + "big.jpg";
document.galleryPic.src = imName;
return false;
}

var timer;
function init() {

nextPicture();
}


var scrollImage = new Array("images/close1.jpg","images/close2.jpg","images/close3.jpg","images/bluetop2.jpg","images/close5.jpg","images/close6.jpg","images/close4.jpg","images/close8.jpg","images/bluetop.jpg");

var onImg = new Array();

for (i=0; i < scrollImage.length; i++) {
onImg[i] = new Image(600,214);
onImg[i].src = scrollImage[i];
}

var counter=0;

function nextPicture() {
timer = setTimeout("nextPicture()", 7000);
	if (counter ==scrollImage.length) {
	counter = 0;
	}
document.images.headScroll.style.filter="blendTrans(duration=3)";
 document.images.headScroll.filters.blendTrans(duration=3).Apply();
 document.images.headScroll.filters.blendTrans.Play();
document.headScroll.src = onImg[counter].src;

counter++;
}