function doContent(cdiv) {
  document.getElementById("homeinfo").style.display = "none";
  document.getElementById("aboutinfo").style.display = "none";
  document.getElementById("contactinfo").style.display = "none";
  document.getElementById("developmentinfo").style.display = "none";
  document.getElementById(cdiv).style.display = "block";
}

var photos = new Array();

function doLoad() {

    if (location.href.indexOf("about") != -1) {
	doContent("aboutinfo");
    }
    else if (location.href.indexOf("contact") != -1) {
	doContent("contactinfo");
    }
    else if (location.href.indexOf("development") != -1) {
	doContent("developmentinfo");
    }
    else {
    	doContent("homeinfo");
    }
    
    photos[0] = new photoCache("images/header_clairview.jpg", "Clairview Sunrise<br><font class=loc>Mackay, Australia</font><br><br>Harrington Collection");
    photos[1] = new photoCache("images/header_cabramura.jpg", "Cabramura<br><font class=loc>Snowy Mountains, Australia</font><br><br>Harrington Collection");
    photos[2] = new photoCache("images/header_eiger.jpg", "Death Bivouac<br><font class=loc>Eiger North Face, Switzerland</font><br><br>Harrington Collection");
    photos[3] = new photoCache("images/header_aran.jpg", "Aran Islands<br><font class=loc>Doolin, Clare</font><br><br>McQuaid Collection");
    photos[4] = new photoCache("images/header_dru.jpg", "Dru West Face<br><font class=loc>Chamonaix, France</font><br><br>Harrington Collection");
    startBackgroundSwitch(photos, 'sshow', 'caption', 0, 6000, -1);
    
    document.getElementById("home").onclick=function () { doContent('homeinfo'); return false };
    document.getElementById("about").onclick=function () { doContent('aboutinfo'); return false };
    document.getElementById("contact").onclick=function () { doContent('contactinfo'); return false };
    document.getElementById("development").onclick=function () { doContent('developmentinfo'); return false };

    document.getElementById("site1").onmouseover=function () {showDesc('desc1','targetdesc','1')};
    document.getElementById("site1").onmouseout=function () {showDesc('desc1','targetdesc','0')};
    document.getElementById("site2").onmouseover=function () {showDesc('desc2','targetdesc','1')};
    document.getElementById("site2").onmouseout=function () {showDesc('desc2','targetdesc','0')};
    document.getElementById("site3").onmouseover=function () {showDesc('desc3','targetdesc','1')};
    document.getElementById("site3").onmouseout=function () {showDesc('desc3','targetdesc','0')};
    document.getElementById("site4").onmouseover=function () {showDesc('desc4','targetdesc','1')};
    document.getElementById("site4").onmouseout=function () {showDesc('desc4','targetdesc','0')};
    document.getElementById("site5").onmouseover=function () {showDesc('desc5','targetdesc','1')};
    document.getElementById("site5").onmouseout=function () {showDesc('desc5','targetdesc','0')};

}

