/* 	Transition Functions
	Barking Dog Studios
	David Lachapelle
	Last Modified: February 20th, 2007
*/

//keep track of the visible elements on the page
var visible = Array();
var selected = Array();

function showObj(obj) {
	obj = document.getElementById(obj);

	if(obj.style.display == "none" || obj.style.display == "") {
		obj.style.display = "block";
	}
	if(obj.style.visibility == "hidden") {
	}
	if(parseInt(obj.style.opacity) == 0) {
	}
	
	
}

function hideObj(obj) {
	obj = document.getElementById(obj);
	
	if(obj.style.display == "block" || obj.style.display == "") {
		obj.style.display = "none";
	}
	if(obj.style.visibility == "visible") {
	}
	if(parseInt(obj.style.opacity) == 0) {
	}

}

function selObj(link, obj, rem) {
	if(rem) {
		for(var i = 0; i < visible.length; i++) {
			hideObj(visible[i]);
		}
		for(i = 0; i < selected.length; i++) {
			selected[i].className = "";
		}
		visible = Array();
	}
	link.className = "selected";
	showObj(obj);
	visible[visible.length] = obj;
	selected[selected.length] = link;
}
