/**
 * @author Scott
 */
function chgPic(thisIs){
		document.getElementById('picHere').title=thisIs.title;
		fadeOut(document.getElementById('picHere'),1,thisIs.src);
		
	}

function fadeOut(pIs,oIs,srcIs){
	pIs.style.opacity=oIs;
	pIs.style.filter='alpha(opacity=' + oIs*100 + ')';
	newO=oIs-.1;
	tp=pIs;
	ts=srcIs;
	if (oIs >= 0) {
		setTimeout('fadeOut(tp,newO,ts)', 10);
	}
	else{
		setTimeout('fadeIn(tp,0,ts)',300);
	}
}
function fadeIn(pIs,oIs,sIs){
	if (oIs == 0) {
		document.getElementById('picHere').src = sIs;
	}
	pIs.style.opacity = oIs;
	pIs.style.filter='alpha(opacity=' + oIs*100 + ')';
	newO = oIs + .1;
	tp = pIs;
	ts = sIs;
	if (oIs <= 1) {
		setTimeout('fadeIn(tp,newO,ts)', 10);
	}
	pIs.alt=sIs.alt;	
}

function swapMenu(){
	if(document.getElementById('thumbMenu').style.display=="none"){
		document.getElementById('thumbMenu').style.display="block";
		document.getElementById('mainMenu').style.display="none";
		document.getElementById('swapMenuLink').childNodes[0].nodeValue="Show Main Menu";
	}
	else{
		document.getElementById('thumbMenu').style.display="none";
		document.getElementById('mainMenu').style.display="block";
		document.getElementById('swapMenuLink').childNodes[0].nodeValue="Show Thumbnail Menu";
	}
}
