//Pixelating Image slideshow
//Copyright Dynamic Drive 2001
//Visit http://www.dynamicdrive.com for this script

//specify interval between slide (in mili seconds)
var slidespeed=3000
//specify images
var slideimages=new Array("images/trees2.jpg","images/banff-760.jpg","images/sunset2.jpg")
//specify corresponding links
var slidelinks=new Array("http://www.bradhawker.com/buying_canmore_banff_real_estate.htm","http://www.bradhawker.com/selling_canmore_banff_real_estate.htm","http://www.bradhawker.com/the_canmore_and_banff_area.htm")

var imageholder=new Array()
var ie55=window.createPopup
for (i=0;i<slideimages.length;i++){
imageholder[i]=new Image()
imageholder[i].src=slideimages[i]
}

function gotoshow(){
window.location=slidelinks[whichlink]
}



///////// Hover code

// The menu

url_1on = new Image;
url_1on.src = "images/button2.gif";
url_1off = new Image;
url_1off.src = "images/button.gif";

url_2on = new Image;
url_2on.src = "images/button2.gif";
url_2off = new Image;
url_2off.src = "images/button.gif";

url_3on = new Image;
url_3on.src = "images/button2.gif";
url_3off = new Image;
url_3off.src = "images/button.gif";

url_4on = new Image;
url_4on.src = "images/button2.gif";
url_4off = new Image;
url_4off.src = "images/button.gif";

url_5on = new Image;
url_5on.src = "images/button2.gif";
url_5off = new Image;
url_5off.src = "images/button.gif";

url_6on = new Image;
url_6on.src = "images/button2.gif";
url_6off = new Image;
url_6off.src = "images/button.gif";

url_7on = new Image;
url_7on.src = "images/button2.gif";
url_7off = new Image;
url_7off.src = "images/button.gif";

url_8on = new Image;
url_8on.src = "images/button2.gif";
url_8off = new Image;
url_8off.src = "images/button.gif";

url_9on = new Image;
url_9on.src = "images/button2.gif";
url_9off = new Image;
url_9off.src = "images/button.gif";

url_10on = new Image;
url_10on.src = "images/button2.gif";
url_10off = new Image;
url_10off.src = "images/button.gif";

url_11on = new Image;
url_11on.src = "images/button2.gif";
url_11off = new Image;
url_11off.src = "images/button.gif";

url_12on = new Image;
url_12on.src = "images/button2.gif";
url_12off = new Image;
url_12off.src = "images/button.gif";

url_13on = new Image;
url_13on.src = "images/button2.gif";
url_13off = new Image;
url_13off.src = "images/button.gif";

url_14on = new Image;
url_14on.src = "images/button2.gif";
url_14off = new Image;
url_14off.src = "images/button.gif";

url_15on = new Image;
url_15on.src = "images/button2.gif";
url_15off = new Image;
url_15off.src = "images/button.gif";

url_16on = new Image;
url_16on.src = "images/button2.gif";
url_16off = new Image;
url_16off.src = "images/button.gif";

url_17on = new Image;
url_17on.src = "images/button2.gif";
url_17off = new Image;
url_17off.src = "images/button.gif";

url_18on = new Image;
url_18on.src = "images/button2.gif";
url_18off = new Image;
url_18off.src = "images/button.gif";

url_19on = new Image;
url_19on.src = "images/button2.gif";
url_19off = new Image;
url_19off.src = "images/button.gif";

url_20on = new Image;
url_20on.src = "images/button2.gif";
url_20off = new Image;
url_20off.src = "images/button.gif";

url_21on = new Image;
url_21on.src = "images/button2.gif";
url_21off = new Image;
url_21off.src = "images/button.gif";

function img_act(imgName)
{
    if (document.images)
    {
        imgOn = eval(imgName + "on.src");
        document [imgName].src = imgOn;
    }
}

function img_inact(imgName)
{
    if (document.images)
    {
        imgOff = eval(imgName + "off.src");
        document [imgName].src = imgOff;
    }
}