// JavaScript Document


function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

// Set up the image files to be used.
var theImages = new Array()
// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = 'lib/img/arms_h-soccer.jpg'
theImages[1] = 'lib/img/arms_h-skate.jpg'
theImages[2] = 'lib/img/arms_h-3d-aerial.jpg'


var theCaptions = new Array()

theCaptions[0] = '<h2>... because you want him to have the best opportunities possible.</h2> <p class="hometext">Whether they are dancers, hockey players, or social butterflies, you know and love someone whose life would be enriched given the benefit of a multi-use facility. Show your family and neighbours that you care about their quality of life.</p> <p>Support the effort to build a Multiplex in the Athabasca region</a>.</p>'

theCaptions[1] = '<h2>... because you want this legacy to continue.</h2> <p class="hometext">Your family, friends and neighbours built facilities that have met this community’s recreational and social requirements for decades. But the community is growing and changing, and so are its needs. Now your neighbours are proposing a multi-use facility. The buildings may be different, but the spirit remains the same. Keep this legacy alive.</p> <p>Support the effort to build a Multiplex in the Athabasca region</a>.</p>'

theCaptions[2] = '<h2>... because you want your tax dollars spent responsibly.</h2> <p class="hometext">You don’t mind paying taxes because you know you are contributing to the facilities that make this region a great place to live, work and play. But the rising costs of utilities and facility upgrades for aging buildings are sucking up more of your hard earned dollars than they should. For this reason, members of the ARMS Committee are proposing a viable alternative. You pay your taxes because you care about the health and well-being of your community. Now show the world you care about your tax dollars.</p> <p>Support the effort to build a Multiplex in the Athabasca region</a>.</p>'

var p = theImages.length;

var whichImage = Math.round(Math.random()*(p-1));

function showImage(){
document.write('<div class="homefeature"><img src="'+theImages[whichImage]+'" width="450" height="200" class="photo">'+theCaptions[whichImage]+' </div>');
}
