

//GA
function loadScript(url) {document.write('<script src="', url, '" type="text/javascript"></script>');}
loadScript("http://www.google-analytics.com/urchin.js");


/*-------- FAQs ------------*/
// This function is used to check whether a list/menu item is in the collapsed or expanded mode.
function faqsMenuSwitch(question, answer)
{
	var questionElement = document.getElementById(question); // The question clicked.
	var answerStyle =document.getElementById(answer).style; // The style of the answer for the question clicked.
	
	if (answerStyle.display == 'none') // If the list/menu item clicked is currently in collapsed mode...
	{
		expandFAQsMenu(questionElement, answerStyle); // ...then expand it.
	}
	else
	{
		collapseFAQsMenu(questionElement, answerStyle); // Otherwise, collapse it.
	}
}

	
var collapseText = 'Click to hide the answer';
var expandText = 'Click to display the answer';

// This function expands the list/menu item clicked and changes the '+' sign to the '-' sign. It also changes the title text of the '-' sign.
function expandFAQsMenu(questionElement, answerStyle)
{
	questionElement.title = collapseText;
	answerStyle.display = 'block';
}

// This function collapses the list/menu item clicked and changes the '-' sign to the '+' sign. It also changes the title text of the '+' sign.
function collapseFAQsMenu(questionElement, answerStyle)
{
	questionElement.title = expandText;
	answerStyle.display = 'none';
}


var title="Carroll, Into the Jungle: Great Adventures in the Search for Evolution";
var BP='<a href="http://www.aw-bc.com/carroll" class="groupLink" target="_blank">www.aw-bc.com/carroll</a>';

function writeTitle(title)

{
document.write(title);
}

function writeBridge(title)

{
document.write(bridge);
}
 
