var url = window.location.href;
// Determine which banner image to show
switch (true) {
	case url == 'http://www.mcnae.co.nz/e107_plugins/content/' || url == 'http://www.mcnae.co.nz/':
		// Home page
		document.write("<div id='headerhome'>");
		break;
	case url.indexOf('content.php?content.8') > -1:
		// page name goes here for refference
		document.write("<div id='headerhome'>");
		// can declare other stuff like this too: document.body.style.backgroundColor='#9966FF';
		break;
	case url.indexOf('content.php?content.10') > -1:
		// page name goes here for refference
		document.write("<div id='headerhome'>");
		// can declare other stuff like this too: document.body.style.backgroundColor='#9966FF';
		break;	
		
// technical
		
	case url.indexOf('content.php?content.15') > -1:
		// page name goes here for refference
		document.write("<div id='header'>");
		// can declare other stuff like this too: document.body.style.backgroundColor='#9966FF';
		break;
	case url.indexOf('content.php?content.16') > -1:
		// page name goes here for refference
		document.write("<div id='header'>");
		// can declare other stuff like this too: document.body.style.backgroundColor='#9966FF';
		break;
		
		

// generic

	case url.indexOf('news.php') > -1:
		// page name goes here for refference
		document.write("<div id='headerhome'>");
		break;		
	case url.indexOf('home.php') > -1:
		// page name goes here for refference
		document.write("<div id='headerhome'>");
		break;
	case url.indexOf('page.php') > -1:
		// page name goes here for refference
		document.write("<div id='headerhome'>");
		break;			
	default:
		// Any other page - no banner graphic
		document.write("<div id='headerhome'>");
	}
	
