
function contact(mailtoID,rhs,lhs,innerhtml) {
  document.getElementById(mailtoID).href = 'mailto://' + rhs + '@' + lhs;
  document.getElementById(mailtoID).innerHTML = innerhtml;
  }

  function startAds() {
        document.getElementById('loadingImage').style.display = 'none';
  	bannerAdShow();
  	columnAdShow1();  	
  	setTimeout("columnAdShow2()",1250);
  	setTimeout("columnAdShow3()",1500);
  	/*  setTimeout("columnAdShow4()",1750);  */
  	setTimeout("columnAdShow5()",1750);  	
    }
    
  function bannerAdShow() {  
	initImage('pano',7000);
	setTimeout("initImage('bannerAd1',7000)",8000);
	setTimeout("initImage('bannerAd2',7000)",17000);
	setTimeout("initImage('bannerAd3',7000)",26000);	
/*	setTimeout("initImage('bannerAd4',7000)",35000);	 */
	setTimeout("bannerAdShow()", 35000);
	}
	
  function columnAdShow1() {
  	initImage('pic1-1',13000); 
	setTimeout("initImage('pic1-2',13000)",16000);
	setTimeout("initImage('pic1-3',13000)",32000);
	setTimeout("initImage('pic1-4',13000)",48000);
	setTimeout("columnAdShow1()", 66000);
	}
	
  function columnAdShow2() {
  	initImage('pic2-1',13000); 
	setTimeout("initImage('pic2-2',13000)",16000);
	setTimeout("initImage('pic2-3',13000)",32000);
	setTimeout("initImage('pic2-4',13000)",48000);
	setTimeout("columnAdShow2()", 66000);
	}
	
    
  function columnAdShow3() {
  	initImage('pic3-1',13000); 
	setTimeout("initImage('pic3-2',13000)",16000);
	setTimeout("initImage('pic3-3',13000)",32000);
	setTimeout("initImage('pic3-4',13000)",48000);
	setTimeout("columnAdShow3()", 66000);
	}

  function columnAdShow4() {
  	initImage('pic4-1',13000); 
	setTimeout("initImage('pic4-2',13000)",16000);
	setTimeout("initImage('pic4-3',13000)",32000);
	setTimeout("initImage('pic4-4',13000)",48000);
	setTimeout("columnAdShow4()", 66000);
	}

  	 function columnAdShow5() {
  	initImage('pic5-1',13000); 
	setTimeout("initImage('pic5-2',13000)",16000);
	setTimeout("initImage('pic5-3',13000)",32000);
	setTimeout("initImage('pic5-4',13000)",48000);
	setTimeout("columnAdShow5()", 66000);
	}
  	
  	
  function showPullDown() {
    document.getElementById("bannerLinksPullDown").style.visibility = "visible";
    }
    
  function hidePullDown() {
    document.getElementById("bannerLinksPullDown").style.visibility = "hidden";
    }
    
    
function go() {
	initImage('pic1',13000); 
	setTimeout("initImage('pic2',13000)",13000);
	setTimeout("initImage('pic3',13000)",26000);
	setTimeout("initImage('pic4',13000)",39000);
	setTimeout("go()",52000);
	}

function initImage(imageId,interval) { 
  image = document.getElementById(imageId);
  setOpacity(image, 0);
  image.style.display = 'inline';
  fadeIn(imageId,0); 
  window.setTimeout("fadeOut('"+imageId+"'," + "100" + ")",interval);  /* number of ms for the pic */
  }

function setOpacity(obj, opacity) {
    opacity = (opacity == 100)?99.999:opacity;
  // IE/Win
    obj.style.filter = "alpha(opacity:"+opacity+")";
  // Safari<1.2, Konqueror
    obj.style.KHTMLOpacity = opacity/100;
  // Older Mozilla and Firefox
    obj.style.MozOpacity = opacity/100;
  // Safari 1.2, newer Firefox and Mozilla, CSS3
    obj.style.opacity = opacity/100;
  }

function fadeIn(objId,opacity) {
  if (document.getElementById) {
    obj = document.getElementById(objId);
    if (opacity <= 100) {
      setOpacity(obj, opacity);
      opacity += 10;
      window.setTimeout("fadeIn('"+objId+"',"+opacity+")", 100);  /* fade-in is 1 sec */
    }
  }
}

function fadeOut(objId,opacity) {
  if (document.getElementById) {
    obj = document.getElementById(objId);
    if (opacity >= 0) {
      opacity = opacity - 10;
      setOpacity(obj, opacity);
      window.setTimeout("fadeOut('"+objId+"',"+opacity+")", 100);  /* fade-out is 1 sec */
      }
    else {
      obj.style.display = "none";
      }
   }
}

