function show(e){
	if (document.getElementById){
		if (document.getElementById(e+"_links")){
		// reset all others
			r=new Array("internet", "exhibit", "identity", "promotion", "books", "provoke", "amplify", "clarify", "vibrate", "allude");
			for (i=0;i<r.length;i++){
				if (r[i] != e){
					document.getElementById(r[i]).style.background="transparent url(images/"+r[i]+"_bkg.gif) 0 0 no-repeat";
					document.getElementById(r[i]+"_links").style.display="none";
				}
			}
			document.getElementById(e+"_links").style.display="block";
			document.getElementById(e).style.background="transparent url(images/"+e+"_bkg.jpg) 0 0 no-repeat";
		}
		
	}
}

function activate(e){
	if (document.getElementById){
		deactivate("luzform");
		deactivate("collaborators");
		deactivate("clients");
		
		document.getElementById(e).style.backgroundColor="#E3027F";
	}
}

function deactivate(e){
	if (document.getElementById){
		document.getElementById(e).style.backgroundColor="#7f7f7f";
	}
}

function hide(e){
	document.getElementById(e).style.display="none";
}

function menu(e){
	if (document.getElementById){
		if (document.getElementById(e).style.display=="block"){
			document.getElementById(e).style.display="none";
		} else {
			document.getElementById(e).style.display="block";
		}
	}
}

function newWin(u){
	myWin=window.open(u,"external","status=1,toolbar=1,menubar=1,resizable=1,scrollbars=auto");
	myWin.focus();
}

function submenu(e){
	if (document.getElementById){
		if (document.getElementById(e).style.display != "block"){
			hide("elisa");
			hide("james");
			hide("vann");
			hide("pechet");
			hide("stacey");
			hide("clientList");
			hide("aboutluzform");
			
			document.getElementById(e).style.display="block";
			if (navigator.userAgent.indexOf("MSIE") && navigator.userAgent.indexOf("Mac")){
				if (e=="elisa"){
					document.getElementById("elisagutierrez").style.marginBottom="0px";
				} else if (e=="james"){
					document.getElementById("jamesbaker").style.marginBottom="0px";
				} else if (e=="vann"){
					document.getElementById("vannstruth").style.marginBottom="0px";
				} else if (e=="pechet"){
					document.getElementById("pechetrobb").style.marginBottom="0px";
				} else if (e=="clients"){
					document.getElementById("clientList").style.marginBottom="0px";
				}
			}
			deactivate("principal");
			deactivate("elisagutierrez");
			deactivate("jamesbaker");
			deactivate("vannstruth");
			deactivate("pechetrobb");
			if (e=="stacey"){
				activate("principal");
				activate("luzform");
			} else if (e=="aboutluzform"){
				activate("luzform");
			} else if (e=="elisa"){
				activate("elisagutierrez");
				activate("collaborators");
			} else if (e=="james"){
				activate("jamesbaker");
				activate("collaborators");
			} else if (e=="vann"){
				activate("vannstruth");
				activate("collaborators");
			} else if (e=="pechet"){
				activate("pechetrobb");
				activate("collaborators");
			} else if (e=="clientList"){
				activate("clients");
			}
		}
	}
}

function subpopoaat(e){
	if (document.getElementById){
		document.getElementById("elisa").style.display="none";
		document.getElementById("james").style.display="none";
		document.getElementById(e).style.display="block";
	}
}

function showProj(n,s,d){
	if (document.getElementById("image_"+n)){
		for (x=1;x<30;x++){
			if (document.getElementById("image_"+x)){
				document.getElementById("image_"+x).style.display="none";
				if (document.getElementById("sq_"+x)){
					document.getElementById("sq_"+x).src="images/off.gif";
				}
			}
		}
		document.getElementById("projectProfile").style.color="#fff";
		document.getElementById("image_"+n).style.display="block";
		document.getElementById("shortDescription").style.display=d;
					
		if (document.getElementById("sq_"+n)){
			if (s=="internet" || s=="exhibit" || s=="identity" || s=="promotion" || s=="books"){
				document.getElementById("sq_"+n).src="images/literal.gif";
			} else {
				document.getElementById("sq_"+n).src="images/abstract.gif";
			}
		} else {
			if (s=="internet" || s=="exhibit" || s=="identity" || s=="promotion" || s=="books"){
		document.getElementById("projectProfile").style.color="#FFF04D";
			} else {
		document.getElementById("projectProfile").style.color="#E3027F";
			}
		}
	}
}

function rollover(n,e){
	if (document.getElementById(n)){
		document.getElementById(n).background="transparent url(images/"+n+"_bkg."+e+") 0 0 no-repeat";
	}
}

function mailto(add,name){
	a="12wCAxGDPJHSIOKnELhM@pUtQvRbqVaWdXsYiZcfNgjBlmrkoFuTy.ze934";
	ad="";
	for (i=0;i<add.length;i++){
		ad=ad+a.charAt(a.indexOf(add.charAt(i))-2);
	}
	e=""
	for (i=0;i<name.length;i++){
		e=e+a.charAt(a.indexOf(name.charAt(i))-2);
	}
	document.write('<a href="mailto:'+ad+'">'+e+'</a>');
}