function contentSwap(){

var htmlSnippet1 = '';
	
// The first block below is for the "special" message on any pages that are within the named sub-directory.
	if ( location.href.indexOf("/sub/") > -1) { // Change sub to match your own on your server
		htmlSnippet1 = 
// You can change/add/delete any of the HTML markup below to suit your needs.
// Be sure to wrap each line in single quotes followed by the + symbol for added lines or the closing semicolon at the end of the section. 
// If you're content contains a single quote, be sure to escape it with a forward slash \ like in the example below.
		'<h2>Special Message</h1>' +
		'<p class="specialText">Sed justo felis, mattis pretium congue bibendum, faucibus non orci.</p>' +
		'<p class="specialText">Sed justo felis, mattis pretium congue bibendum, faucibus non orci. Sed justo felis, mattis pretium congue bibendum, faucibus non orci.</p>' +
		'<p>Sed justo felis, mattis pretium congue\'s bibendum, faucibus non orci. Nunc placerat quam ut nibh rutrum lobortis feugiat dolor euismod. Aenean enim ante, tincidunt ut fringilla quis, elementum at lorem. Nulla magna est, lobortis quis laoreet eu, dapibus quis ante.</p>';
	}
	
// All other pages outside of the sub-directory will have the standard message seen in the block below
	else { 
		htmlSnippet1 = 
		'<h1>Regular Message</h1>' +
		'<p>Sed justo felis, mattis pretium congue bibendum, faucibus non orci. Nunc placerat quam ut nibh rutrum lobortis feugiat dolor euismod. Aenean enim ante, tincidunt ut fringilla quis, elementum at lorem. Nulla magna est, lobortis quis laoreet eu, dapibus quis ante.</p>';		
	}

	if (htmlSnippet1) {
		document.getElementById('snippet1').innerHTML = htmlSnippet1 ; 
	}
	
}
