/*----------------------------------------------------------------+
|            Javascript Created for Colorlume.com                 |
+----------------------------------------------------------------*/

// Standard Site Javascript

var menu_is_on = false;
var options = new Array('company','philosophy','staff', 'jeff', 'linda', 'projects', 'contact');
var defaultimgs = new Array();
var altimgs = new Array();
var path = "img/";

function LoadMenu () {
	var n;
	if ( document.images ) {
		for ( n = 0; n < options.length; n++ ) {
			o_n = options[n];
			altimgs[o_n] = new Image();
			altimgs[o_n].src = path + "menu" + o_n + "on.png";
			defaultimgs[o_n] = new Image();
			defaultimgs[o_n].src = path + "menu" + o_n + ".png";
		}
		menu_is_on = true;
	}
}

function Out ( id ) {
	if ( document.images ) {
		if ( menu_is_on ) {
			document.images[id].src = defaultimgs[id].src;
		}
	}
}

function Over ( id ) {
	if ( document.images ) {
		if ( menu_is_on ) {
			document.images[id].src = altimgs[id].src;
		}
	}
}

function PlaceArrow() {
	if ( cphoto ) {
		carrow = "a" + cphoto;
		document.images[carrow].src = "img/thumbarrow.png";
	}
}

function PlaceSideArrow() {
	if ( cphoto ) {
		carrow = "a" + cphoto;
		document.images[carrow].src = "img/menuarr.gif";
	}
}

function LoadPhoto (i) {
	if (document.images) {
		carrow = "a" + cphoto;
		document.images[carrow].src = "img/spacer.gif";
		
		narrow = "a" + i;
		nphoto = "photo0" + i;
		document.images[narrow].src = "img/thumbarrow.png";
		document.images['photo'].src = "photos/slides/" + nphoto + ".jpg";
		
		cphoto = i;
	}
}

function LoadSidePhoto (i) {
	if (document.images) {
		carrow = "a" + cphoto;
		document.images[carrow].src = "img/spacer.gif";
		
		narrow = "a" + i;
		nphoto = "slide" + i;
		document.images[narrow].src = "img/menuarr.gif";
		document.images['photo'].src = "photos/slides/" + nphoto + ".jpg";
		
		cphoto = i;
	}
}

function winopen(url, height, width) {
	window.open(url,'miniwin','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width='+width+', height='+height);
}