function img_act(imgName) {
	if (document.images){
    	imgOn = eval(imgName + "on.src");
        document [imgName].src = imgOn;
    }
}

function img_end(imgName) {
	if (document.images){
    	imgOn = eval(imgName + "off.src");
        document [imgName].src = imgOn;
    }
}

function popWindow(page, width, height){
	window.open(page,null,"height="+height+",width="+width+",status=no,toolbar=no,menubar=no,location=no,scrollbars=yes");
}

function swapDivs(top, bottom)
{
	document.getElementById(top).style.zIndex = "3";
	document.getElementById(bottom).style.zIndex = "2";
}

function runSlideShow()
{
	if (document.all)
	{		
		slideshow.style.filter="blendTrans(duration=2)";
		slideshow.style.filter="blendTrans(duration=crossFadeDuration)";
		slideshow.filters.blendTrans.Apply();
	}
	slideshow.src = preLoad[j].src;
	if (document.all)
	{
      slideshow.filters.blendTrans.Play();
	}
	j = j + 1;
	if (j > (p-1)) j=0;
	t = setTimeout('runSlideShow()', slideShowSpeed);
}


function showPic (whichpic) {
 if (document.getElementById) {
  document.getElementById('mainimage').src = whichpic.href;
  if (whichpic.title) {
   document.getElementById('zone4').childNodes[0].nodeValue = whichpic.title;
  } else {
   document.getElementById('zone4').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue;
  }
  return false;
 } else {
  return true;
 }
}