function showDiv(id) {
	greyTitle(id);
	document.getElementById(id).style.display = 'block';
	// 300108 if(!menuSet[1])
		// 300108 changeOpac(65,id);
}

function hideDiv(id) {
	if(!currentMain[0]) {
	document.getElementById(id).style.display = 'none';
	// 300108 changeOpac(0,id);
	}
}
function takeDiv(idnumber) {
	greyTitle(currentMain[idnumber]);
	// HIDES CONTENT DIV
	document.getElementById(currentMain[idnumber]).style.display = 'none';
	// RESETS CURRENT CONTENT REGISTER
	currentMain[idnumber] = false;	
}
function putDiv(id) {
	colourTitle(id);
	document.getElementById(id).style.display = 'block';
	// 300108 changeOpac(100,id);
	currentMain[0] = id;
	if(id == 'whocontent') 
		showDiv('ourpartners'); 
}
function putSecondDiv(id) {
	if(currentMain[1] != id) {
		// 300108 changeOpac(100,id);
		document.getElementById(id).style.display = 'block';
		currentMain[1] = id;		
	}
	colourTitle(id);
	if(currentMain[2])
		greyTitle(currentMain[2]);	
}

function putThirdDiv(id) {
	bkbutt = id+"_back";

	if(currentMain[2] != id) {
		if(currentMain[2]) {	
			backContent = currentMain[2];
			document.getElementById(currentMain[2]).style.display = 'none';	
		}
		if(document.getElementById(bkbutt))
			document.getElementById(bkbutt).style.display = 'none';
		document.getElementById(id).style.display = 'block';
		// 300108 changeOpac(100,id);
		currentMain[2] = id;
	}
	//colourTitle(id);
	greyTitle(currentMain[1]);
}
function linkThirdDiv(id) {
	putThirdDiv(id);
	//if(document.getElementById(id+'_back'))
	//	document.getElementById(id+'_back').style.display = 'none';
	
	bkbutt = id+"_back";
	if(document.getElementById(bkbutt))
		document.getElementById(bkbutt).style.display = 'block';
}

function putFourthDiv(id) {
	if(currentMain[3] != id) {
		if(currentMain[3]) {
			document.getElementById(currentMain[3]).style.display = 'none';	
		}
		document.getElementById(id).style.display = 'block';		
		currentMain[3] = id;
	}
}
// RESETS EVERY DIV WHEN A NEW PATHWAY OR THE LOGO IS CLICKED
function resetDivs() {
	// HIDE ILLUSTRATION HOLDER
	hideIllust();
	putNewsMenu('latestnews');
	
	// IF A PATHWAY IS ALREADY CHOSEN
	if(shifted) {
		cancelMove();
		document.getElementById('aboutus').className = '';
		// CHECKS TO SEE WHICH PATHWAY IS CHOSEN AND RESETS IT
		if(currentMenuItem) {
			if(currentMenuItem.src)
				currentMenuItem.src = currentMenuItem.outImage.src;
			else {
				if(currentMenuItem.id)
				lowlightBar(currentMenuItem.id);
				else
				lowlightBar(currentMenuItem);
			}
			currentMenuItem = false;
		}
		// CHECKS EVERY CONTENT DIV AND MENU'S STATUS
		for(var i=0; i<=currentMain.length; i++) {
			// IF THE CONTENT DIV EXISTS
			if(document.getElementById(currentMain[i])) { 
				// MAKES EVERY HEADING HAVE GREY IMAGE
				takeDiv(i);
			}
			
			if(subMenu) hideSubMenu(subMenu);   // HIDES ANY SUBMENU
			if(menuSet[i]) hideMenu(i);			// HIDES ANY REGULAR MENU
			if(menuSetLink[i]) hideMenuLink(i);	// HIDES ANY SELECTED MENU LINK			
		}
	}
	// IF A PATHWAY IS NOT ALREADY CHOSEN
	else {
		moveMainContent('all_content', 6);	// MOVE ALL CONTENT LEFT
		shifted = true;			// FLAG THAT CONTENT HAS SHIFTED LEFT
		document.getElementById('contactnumbersdiv').style.display = 'none';  // HIDES CONTACT NUMBERS
		// RE-ASSIGNS MENU ITEMS' CLICK AND ROLLOVER VALUES
		setupRolloverAgain('who');  
		setupRolloverAgain('what');
		setupRolloverAgain('where');
		setupRolloverAgain('why');
	}
	setTimeout("shifting = false", 1050);  // ALLOWS TIME TO IGNORE MULTIPLE CLICKS
	document.getElementById('whocontent').style.width = '648px';
	return true;
}

// USED ONLY TO ROLLOVER OUR PARTNERS DIV
function partnerson() {
	if((!currentMain[2])&&(!shifting)) {
		//changeOpac(65,'aboutus');
		document.getElementById('aboutus').className = 'aboutus_off';
		// 300108 changeOpac(100,'ourpartners');
		greyTitle('whocontent');
		colourTitle('ourpartners');
	}
}
// USED ONLY TO ROLLOUT OF OUR PARTNERS DIV
function partnersoff() {
	if((currentMain[1] != 'ourpartners')&&(!currentMain[2] != 'profile')) {
		//changeOpac(100,'aboutus');
		document.getElementById('aboutus').className = '';
		// 300108 changeOpac(65,'ourpartners');
		colourTitle('whocontent');
		greyTitle('ourpartners');
	}	
}