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_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function clearDIVs(one, two, three) {
MM_showHideLayers(one,'','hide');
MM_showHideLayers(two,'','hide');
MM_showHideLayers(three,'','hide');
}

function clearAllRollOverTextBut(notThisOne) {
if (notThisOne != "homeText") { document.getElementById('homeText').style.color = "#000000" }
if (notThisOne != "aboutText") { document.getElementById('aboutText').style.color = "#000000" }
if (notThisOne != "westernCapeText") { document.getElementById('westernCapeText').style.color = "#000000" }
if (notThisOne != "hikingTrailsText") { document.getElementById('hikingTrailsText').style.color = "#000000" }
if (notThisOne != "yourHolidayText") { document.getElementById('yourHolidayText').style.color = "#000000" }
if (notThisOne != "accommodationText") { document.getElementById('accommodationText').style.color = "#000000" }
if (notThisOne != "faqsText") { document.getElementById('faqsText').style.color = "#000000" }
if (notThisOne != "contactUsText") { document.getElementById('contactUsText').style.color = "#000000" }
}

function hideDIV(nameDIV) {
document.getElementById(nameDIV).style.visibility = "hidden";
}

function showDIV(nameDIV) {
document.getElementById(nameDIV).style.visibility = "visible";
}

function videoDisplay() {
var strString = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="480" height="360" id="webvideo" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="gallery/webvideo.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /><embed src="gallery/webvideo.swf" quality="high" bgcolor="#000000" width="480" height="360" name="webvideo" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>';
document.write (strString);
}

function showPic(picName) {
document.getElementById('picDivImage').innerHTML = '<img src="pictures/large/'+picName+'.jpg" border="0">';
}

function moveDIV(divName) {
    var y = 0;
    if( typeof( window.pageYOffset ) == 'number' ) {
        // Netscape
        y = window.pageYOffset;
    } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
        // DOM
        y = document.body.scrollTop;
    } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
        // IE6 standards compliant mode
        y = document.documentElement.scrollTop;
    }
    document.getElementById(divName).style.top = y +'px';
}

function loadVideo() {
	window.open ("gallery-loader.asp","Gallery","menubar=0,resizable=0,location=0,status=0,scrollbars=0,width=480,height=360");
}