function replaceFunctionContent(id) {
	
	new Ajax.Updater('functionContent', 'function/' + id + '.php',
  		{
    		method: 'post'
  		}
	);
	
	links = $('functionNav').childElements();
	
	//for(x in links) {
	for(x=0; x<links.length; x++) {
		if(links[x].identify() == id) {
			$(links[x]).className = 'functionNavCurrent';
		} else {
			$(links[x]).className = '';
		}
	}

}

function replaceCompanyContent(id) {
	
	new Ajax.Updater('companyContent', 'company/' + id + '.php',
  		{
    		method: 'post'
  		}
	);
	
	links = $('companyNav').childElements();
	
	//for(x in links) {
	for(x=0; x<links.length; x++) {
		if(links[x].identify() == id) {
			$(links[x]).className = 'companyNavCurrent';
		} else {
			$(links[x]).className = '';
		}
	}

}

function replaceContactContent(id) {
	
	new Ajax.Updater('contactContent', 'contact/' + id + '.php',
  		{
    		method: 'post'
  		}
	);
	
	links = $('contactNav').childElements();
	
	//for(x in links) {
	for(x=0; x<links.length; x++) {
		if(links[x].identify() == id) {
			$(links[x]).className = 'contactNavCurrent';
		} else {
			$(links[x]).className = '';
		}
	}

}
function replaceProjectsContent(id) {		new Ajax.Updater('projectsContent', 'projects/' + id + '.php',  		{    		method: 'post'  		}	);		links = $('functionNav').childElements();		//for(x in links) {	for(x=0; x<links.length; x++) {		if(links[x].identify() == id) {			$(links[x]).className = 'functionNavCurrent';		} else {			$(links[x]).className = '';		}	}};
//function replaceProjectsContent(id) {//
//	//
//	new Ajax.Updater('projectsContent', 'projects/' + id + '.php',//
//  		{//
//    		method: 'post',//
//    		evalScripts: true//
//  		}//
//	);

}