function imgNav(columns,useFade,useToolTips) {
	var linkArray = new Array;
	var html = "";
	var y = 0;
	var x = 0;
	var imgSize = 50;
	
	linkArray[0] = 'designForHumanity.png;www.designforhumanity.com;true;Design For Humanity is Billabong’s charitable division created at an international level that seeks to generate founds [sic] from the sale of limited edition products to donate to environmental and humanitarian causes.</p><p>Design For Humanity operates under Billabong’s philosophy of be the change you want in the world. This is a challenge for people to live their lives by example and be proactive in creating a more responsible world.'.split(';');
	linkArray[1] = 'edenProject.png;www.edenproject.com;true;Ten years ago this place was a barren, exhausted china clay pit. Now its massive Biomes (one of which is the biggest greenhouse in the world) and millions of plants bear witness to what can be achieved by a can-do attitude and the tenacity of the human spirit. Eden is as potent a symbol of hope for the future as you could find anywhere on earth.'.split(';');
	linkArray[2] = 'fifteenCornwall.png;www.fifteencornwall.co.uk;true;>Fifteen Cornwall offers an innovative menu of the best seasonal and local produce, a relaxed atmosphere, talented chefs – and an incredible view over a beautiful two-mile beach.'.split(';');
	linkArray[3] = 'gcs.png;www.gcsgroup.co.uk;true;'.split(';');
	linkArray[4] = 'godWentSurfing.png;www.godwentsurfing.com;true;‘God Went Surfing With the Devil’ charts the difficulties and dangers encountered by surfers in the region. Along the way it speaks to Israelis, Arab-Israelis, and Palestinians affected by the violence, charting their daily struggle to supersede the conflict through the joys of surfing.'.split(';');
	linkArray[5] = 'howies.png;www.howies.co.uk;true;Howies is an active clothing company that believes in making higher quality, lower impact products for our sports and day-to-day lives.'.split(';');
	linkArray[6] = 'huckMagazine.png;www.huckmagazine.com;true;HUCK is a bi-monthly lifestyle magazine rooted in surf, skate and snowboarding. It is published in English, German, French and Italian and distributed worldwide.'.split(';');
	linkArray[7] = 'kirstyJones.png;www.kirstyjones.com;true;The official website of Kirsty Jones, World Kitesurfing Wave Champion.</p><p>Kirsty’s National and World champion titles are only a small part of her incredible journey, which led her to become one of the greatest figures in the kitesurfing world'.split(';');
	linkArray[8] = 'kingSurf.png;www.kingsurf.co.uk;true;Kingsurf provides fun, professional & safe surf tuition for all ages and abilities. From one lesson taster sessions to week long progressor courses, we are the Newquay and Mawgan Porths number one provider of quality surf tuition.'.split(';');
	linkArray[9] = 'monocle.png;www.monocle.com;true;Monocle is a global briefing covering international affairs, business, culture and design.'.split(';');
	linkArray[10] = 'oasisOfPeace.png;www.nswas.org;true;A village, jointly established by Jewish and Palestinian Arab citizens of Israel, that is engaged in educational work for peace, equality and understanding between the two peoples.'.split(';');
	linkArray[11] = 'peaceOil.png;www.peaceoil.org;true;Peace Oil® is produced in Israel by Jews, Arabs, Druze and Bedouin working together.</p><p>Grown in the foothills of the Carmel Mountains, the olives are pressed within hours of picking, to produce this prize winning extra virgin olive oil.'.split(';');
	linkArray[12] = 'sas.png;www.sas.org.uk;true;Surfers Against Sewage are an environmental campaign group with a mission to rid the UK coastline of sewage. Still keeping their roots in the UK and using the knowledge and experience they have gained through the last 10 years.'.split(';');
	linkArray[13] = 'surfAid.png;www.surfaidinternational.org;true;SurfAid International: Medical aid organisation working to improve the health of the people of Mentawai, Nias, and the Hinakos.'.split(';');
	
	for (i=0; i<linkArray.length; i++) {
		var imgName = linkArray[i][0];
		var theLink = linkArray[i][1];
		var newWind = Boolean(linkArray[i][2] == 'true');
		var theText = linkArray[i][3];
		var divID = 'link' + i
		
		/* Calculate the x and y values */
		x = (i % columns)*imgSize;
		if (i % columns == 0 && i > columns-1) {
			y += imgSize;
		}
		
		/* Build the link and image. Add 'target="_blank"' if element[2] in each link record is 'true' */
		theLink = '<a href="http://' + linkArray[i][1] + '"';
		if (newWind) {
			theLink += ' target="_blank"';
		}
		
		theLink += addRollovers(divID,linkArray[i],useToolTips);

		theLink += '>';
		theLink += '<img src="http://www.faithinhumannature.com/media/linksPreviews/' + imgName + '" height="' + imgSize + '" width="' + imgSize + '" border="0">';
		theLink += '</a>';
		
		/* Build a div for each image and link. Its ID is the image name */
		theDiv = '<div id="' + divID + '" style="position: absolute; top:' + y + 'px; left:' + x + 'px; width:' + imgSize + 'px; height:' + imgSize + '; opacity:0.6; filter:alpha(opacity=60)">';
		
		html += theDiv + theLink + '</div>';
	}
	html = '<div id="navBar" style="position:absolute; top:5px; left:5px;">' + html + '</div>';

	return html;
}

function addRollovers(dID,linkRec,showOverLib) {
	var overLib = '';
	var fader = '';
	var theResult = '';
	
	/* Add the overLIB mouseOver */
	if (showOverLib) {
		overLib += 'return overlib(\'';
		overLib += '<img src=http://www.faithinhumannature.com/media/linksPreviews/' + linkRec[0] + ' width=100 height=100 hspace=5 vspace=5 align=left>';
		overLib += '<p><b>' + linkRec[1] + '</b></p><p>' + linkRec[3] + '</p>';
		overLib += '\', BGCOLOR, \'#CCCCCC\', FGCOLOR, \'#FFFFFF\', WIDTH, 300);';
	}
		
	theResult += ' onmouseover="opacity(\'' + dID + '\', 60, 100, 200); ' + overLib + '"';
	theResult += ' onmouseout="opacity(\'' + dID + '\', 100, 60, 200); return nd();"';
	
	return theResult;	
}

function printerFriendly(regionID)
{ 
	var disp_setting="toolbar=no,location=no,directories=no,menubar=yes,resizable=yes,scrollbars=yes,width=800, height=600, left=100, top=25"; 
	var content_vlue = document.getElementById(regionID).innerHTML; 
	var docprint=window.open("","",disp_setting); 

	docprint.document.open(); 
	docprint.document.write('<html>');
	docprint.document.write('<head>');
	
	// insert link to Support Warehouse stylesheet
	docprint.document.write('<link href="http://www.integrated-results.com/global.css" rel="stylesheet" type="text/css">');
	
	// insert window title
	docprint.document.write('<title>Integrated Results</title>'); 
	
	docprint.document.write('</head><body>');

	docprint.document.write('<p><table width="100%" bgcolor="#FFFFFF" border="0"><tr valign="center">'); 
	docprint.document.write('<td width="50%" align="left"><img src="http://www.integrated-results.com/media/logo_integratedResults_left.gif" alt="Integrated Results" /></td>');
	docprint.document.write('</tr>');
	docprint.document.write('<tr>');
	docprint.document.write('<td>');
	docprint.document.write(content_vlue);
	docprint.document.write('</td');
	docprint.document.write('</tr>');
	docprint.document.write('</table>');
	docprint.document.write('</body>');
	docprint.document.write('</html>');
	
	docprint.document.close(); 
	docprint.focus(); 
}
