
/* Image randomiser */

    adImages = new Array("images/h1.jpg","images/h2.jpg","images/h3.jpg","images/h4.jpg","images/h7.jpg")
	imgCt = adImages.length
    firstTime = true

 function rotate() {
    if (document.images) {
        if (firstTime) {
            thisAd = Math.floor((Math.random() * imgCt))
            firstTime = false
        }
        else {
            thisAd++
            if (thisAd == imgCt) {
                thisAd = 0
            }
        }
        document.banner.src=adImages[thisAd]
        setTimeout("rotate()", 2000 * 2000)
    }
 }
function show(obj,lnk)
{
	document.getElementById(obj).style.display = "block";
	document.getElementById(lnk).className = "active_menu ";
}
function hide(obj,lnk)
{
	document.getElementById(obj).style.display = "none";
	document.getElementById(lnk).className = "";
}

