//	............image preloader............


function preloadImages() {

  // Don't bother if there's no document.images
  if (document.images) {
    if (typeof(document.LB) == 'undefined'){
      document.LB = new Object();
    }
    document.LB.loadedImages = new Array();
	
    var argLength = preloadImages.arguments.length;
    for(arg=0;arg<argLength;arg++) {
      document.LB.loadedImages[arg] = new Image();

      document.LB.loadedImages[arg].src = preloadImages.arguments[arg];
    }
  }
}


//	............image swapper ...........

function	imageSwap(daImage, daSrc){

  var objStr,obj;
  // Check to make sure that images are supported in the DOM.
  if(document.images){
    // Check to see whether you are using a name, number, or object
    if (typeof daImage == 'string') {
      // This whole objStr nonesense is here solely to gain compatability
      // with ie3 for the mac.
      objStr = 'document.' + daImage;
      obj = eval(objStr);
      obj.src = daSrc;
    } else if ((typeof daImage == 'object') && daImage && daImage.src) {
      daImage.src = daSrc;
    }
  }
}

// ................ centered popup window............


function gallery(URL,width,height) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width='+width+',height='+height+',left = 120,top = 0');");
}

// ...............popup window - top left, not resizeable............

// usage <a href="javascript:openWind('page.html',250,360)">new page</a>

function openWind(url, width, height) {
        var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',resizable=no,scrollbars=no,menubar=no,status=no' );
}

// ....................expandible header.....................

var ns6=document.getElementById&&!document.all?1:0

var head="display:''"
var folder=''

function expandit(curobj){
folder=ns6?curobj.nextSibling.nextSibling.style:document.all[curobj.sourceIndex+1].style
if (folder.display=="none")
folder.display=""
else
folder.display="none"
}

//...........Change Objects Background.........

function changeBG(obj, newColor) { 
	obj.style.backgroundColor=newColor
}

function playButton() 
{
  document.all.sound.src = "../inc/Bleep.wav";
}
document.write('<bgsound id="sound">')

//................Select jumpPage.......................

function jumpPage(newLoc) {
			newPage = newLoc.options[newLoc.selectedIndex].value
	
			if (newPage != "") {
				window.location.href = newPage
			}
		}