
/*
function show(e) {
	divs = document.getElementsbyTag(e);
	for ( in ) {
	
	}
}

function slide(e, s){
	el=document.getElementById(this.key);
	this.el=el;
	el.slide = eval("this");	
	this.show = s;	
}

slide.prototype.on = function() {
	appendClassName(this.el
}
*/

var activeSection;
var activeSectionLabel;
var AS;

function viewSlide(e) {
	if(el=document.getElementById(e)){
		if(isUndefined(el)){AS=el};
		try {removeClassName(AS,"selected")} catch(er) {}
		appendClassName(el,"selected");		
		AS = el;	
		}
	return(false);
}

function changeSection(e, cls) {
		try {removeClassName(activeSectionLabel,cls)} catch(er) {}
		try {appendClassName(e,cls);} catch(er) {}
		activeSectionLabel = e;
}

function viewSection(elid, e) {		
		try {displayElemById(activeSection,"none")} catch(er) {}
		displayElemById(elid,"block");
		activeSection=elid;		
		changeSection(e, "selected");
		return(false);	
}