function toggleDiv(divid){
for (i=1;i<=18;i++){
    document.getElementById(i).style.display = 'none';
}if (document.getElementById(divid).style.display == 'none'){document.getElementById(divid).style.display = 'block';}else{document.getElementById(divid).style.display = 'none';}}

//specify interval between slide (in mili seconds)
var slidespeed=6000

//specify images
var slideimages=new Array("./media/banner1.jpg","./media/banner2.jpg","./media/banner3.jpg")

//specify corresponding links
var slidelinks=new Array("./index.htm","./index.htm","./index.htm")

var whichlink=0
var whichimage=0
var blenddelay=(ie)? document.images.slide.filters[0].duration*1000 : 0

var newwindow=0 //open links in new window? 1=yes, 0=no

var imageholder=new Array()
var ie=document.all

for (i=0;i<slideimages.length;i++){
    imageholder[i]=new Image()
    imageholder[i].src=slideimages[i]
}

function gotoshow(){
    if (newwindow)
    window.open(slidelinks[whichlink])
    else
    window.location=slidelinks[whichlink]
}

function slideit(){
    if (!document.images) return
    if (ie) document.images.slide.filters[0].apply()
    document.images.slide.src=imageholder[whichimage].src
    if (ie) document.images.slide.filters[0].play()
    whichlink=whichimage
    whichimage=(whichimage<slideimages.length-1)? whichimage+1 : 0
    setTimeout("slideit()",slidespeed+blenddelay)
}

var message="Function Disabled!";

function clickIE4(){
    if (event.button==2){
        return false;
    }
}

function clickNS4(e){
    if (document.layers||document.getElementById&&!document.all){
        if (e.which==2||e.which==3){
            return false;
        }
    }
}

if (document.layers){
    document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown=clickNS4;
    }
else if (document.all&&!document.getElementById){
    document.onmousedown=clickIE4;
    }

document.oncontextmenu=new Function("return false")
