/*
Image Slide Show
*/

var timeDelay = 5; // change delay time in seconds 
var Pix = new Array ("images/screenshots/1thumb.jpg", "images/screenshots/2thumb.jpg", "images/screenshots/3thumb.jpg", "images/screenshots/4thumb.jpg", "images/screenshots/5thumb.jpg", "images/fillerpixel.gif");
var PixFull = new Array ("images/screenshots/1.png", "images/screenshots/2.png", "images/screenshots/3.png", "images/screenshots/4.png", "images/screenshots/5.png", "");
var howMany = Pix.length; timeDelay *= 500; 
var PicCurrentNum = 0; 
var PicturesShown = 0;
var PicCurrent = new Image();
var PicCurrentFull = new Image(); 
PicCurrent.src = Pix[PicCurrentNum]; 
PicCurrentFull.src = PixFull[PicCurrentNum]; 

function startPix(){ 
	setInterval("slideshow()", timeDelay);
	} 

function slideshow(){ 
	PicCurrentNum++; 
	PicturesShown++;
	if(PicturesShown < 6){
		changeLinkOnclick("ChangingLink","");	
		if (PicCurrentNum == howMany){ 
			PicCurrentNum = 0; 
			} 
		PicCurrent.src = Pix[PicCurrentNum]; 
		PicCurrentFull.src = PixFull[PicCurrentNum]; 
		document["ChangingPix"].src = PicCurrent.src;
		changeLinkHref("ChangingLink",PicCurrentFull.src);
		}
	if(PicturesShown == 5){
		hideImageAndBorder("bannershot");
		}	
	}

function changeLinkHref(id,newHref) {
  if (document.links.length > 0) {
    if (document.getElementById) {
      document.getElementById(id).href = newHref;
    }
    else if (document.all) {
      document.all[id].href = newHref;
    }
  }
}

function hideImageAndBorder(id) {
	document.getElementById(id).style.borderColor = "transparent";
	document.getElementById(id).style.borderWidth = "0px";
	document.getElementById(id).style.margin = "1px";
	}

function changeLinkOnclick(id,newclick) {
  if (document.links.length > 0) {
    if (document.getElementById) {
      document.getElementById(id).onclick = newclick;
    }
  }
}

/* Suckerfish */

function showDropDown(id){
document.getElementById(id).style.display = "block";
}

function hideDropDown(id){
var t=setTimeout(hideDropDown2(id),1000);
}

function hideDropDown2(id){
var displ = document.getElementById(id).style.display = "none";
}

