ns4 = (document.layers)? true:false
dom = (document.getElementById)? true : false;
ie4 = (document.all)? true : false;

aExploreToggle = Array();

function toggleExplore(id) {
	// change out the top information		
	
	
	
	obj1 = getObj(this.aExploreToggle[id]);
	
	
	this.toggleExploreAll();
	
	if (obj1.style.display == 'none') {
		obj1.style.display = 'block';
	} else {
		obj1.style.display = 'none';
	}
	
	// change out the bottom informtation
	obj2 = getObj(this.aExploreToggle[id] + 'th');
	
	if (obj2.className.indexOf('On') == -1) {
		obj2.className = obj2.className + 'On';
	} else {
		obj2.className = obj2.className.replace('On', '');
	}		
}
function toggleExploreAll() {
	for (j = 0; j < this.aExploreToggle.length; j++){
		obj = getObj(this.aExploreToggle[j]);
		
		if (obj != null)
			obj.style.display = 'none';
			
		obj2 = getObj(this.aExploreToggle[j] + 'th');
		if (obj2 != null)
			obj2.className = obj2.className.replace('On', '');
	}
}
function toggle(id) {
	//this.id = id;
	this.aExploreToggle = Array();
	
	this.toggleExplore = toggleExplore;
	this.toggleExploreAll = toggleExploreAll;	
}
function getObj(oID) {
	if (dom)
		return document.getElementById(oID);
	else if (ie4)
		return document.all(oID);
	else if (ns4)
		return null
}