window.defaultStatus="The Perhapanauts";



// image popup window script //

function popUp(thePage,pgWidth,pgHeight){
	theTarget = "_blank";
	showToolbar = "no";
	theWidth = pgWidth + 40;
	theHeight = pgHeight + 40;
	window.open(thePage,theTarget,'toolbar=' + showToolbar + ',location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=' + theWidth + ',height=' + theHeight);
}




// charachter box switcher on ABOUT page //

function hidedivs(theDuration,theDelay) {
	Effect.Fade("charDetail0",{duration:theDuration,delay:theDelay});
	for (var hideNum=1; hideNum<=totalChars; hideNum++) {
		hideBox = "charDetail" + hideNum;
		Effect.Fade(hideBox,{duration:theDuration,delay:theDelay});
		
		hideLink = "charLink" + hideNum;
		Effect.Fade(hideLink,{duration:0,from:.5,to:.5});
	}
}

function showdiv(showNum) {
	hidedivs(.25,0);
	
	showBox = "charDetail" + showNum;
	Effect.Appear(showBox,{duration:.5,queue:'end'});

	showLink = "charLink" + showNum;
	Effect.Appear(showLink,{duration:.5,from:.5,to:1});
}





// UNUSED - OK TO DELETE //

function hidedivsORIG(theDuration,theDelay) {
	for (var hideNum=1; hideNum<=totalChars; hideNum++) {
		Effect.Fade("charDetail0",{duration:theDuration,delay:theDelay});
		hideBox = "charDetail" + hideNum;
		Effect.Fade(hideBox,{duration:theDuration,delay:theDelay});
		
		showLink = "charLink" + hideNum;
		if (document.getElementById) { // DOM3 = IE5, NS6
			document.getElementById(showLink).style.background = '#cccccc';
		} else {
			if (document.layers) { // Netscape 4
				document.layers[showLink].background = '#cccccc';
			} else { // IE 4
				document.all[showLink].style.background = '#cccccc';
			}
		}
	}
}

function showdivORIG(showNum) {
	hidedivs(.5,0);
	
	showBox = "charDetail" + showNum;
	Effect.Appear(showBox,{duration:.5,queue:'end'});

	showLink = "charLink" + showNum;
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(showLink).style.background = '#999999';
	} else {
		if (document.layers) { // Netscape 4
			document.layers[showLink].background = '#999999';
		} else { // IE 4
			document.all[showLink].style.background = '#999999';
		}
	}
}


