UDPATED: trying new include function 2
diff --git a/functions/templating.php b/functions/templating.php
new file mode 100644
index 0000000..15d636c
--- /dev/null
+++ b/functions/templating.php
@@ -0,0 +1,12 @@
+<?php
+
+function get_include_contents($filename) {
+    if (is_file($filename)) {
+        ob_start();
+        include $filename;
+        return ob_get_clean();
+    }
+    return false;
+}
+
+?>
\ No newline at end of file
diff --git a/index.php b/index.php
index 15f5dbd..4d6f885 100755
--- a/index.php
+++ b/index.php
@@ -10,20 +10,10 @@
  *    
  *******************************************************************************/
 
-
-	function get_include_contents($filename) {
-	    if (is_file($filename)) {
-	        ob_start();
-	        include $filename;
-	        return ob_get_clean();
-	    }
-	    return false;
-	}
-
-
 	require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/app.class.php");
 	require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/nav.class.php");
  	require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/menu.class.php");
+ 	require_once($_SERVER['DOCUMENT_ROOT'] . "./functions/templating.php");
  	$App 	= new App();
 	$Nav	= new Nav();
 	$Menu 	= new Menu();
diff --git a/pages/template.html b/pages/template.html
index 6906e0f..a9b7909 100644
--- a/pages/template.html
+++ b/pages/template.html
@@ -1,3 +1,7 @@
+<?php
+ 	require_once($_SERVER['DOCUMENT_ROOT'] . "./functions/templating.php");
+?>
+
 <div id="bigbuttons">
 	<h3>Primary Links</h3>
 	<ul>
@@ -15,9 +19,9 @@
 <div id="midcolumn">
 <?php
 	if ($_GET['section'] == "support") {
-		$html = include('./support.html');
+		$html = get_include_contents('./support.html');
 	} else {
-		$html = include('./_index.html');
+		$html = get_include_contents('./_index.html');
 	}
 	echo $html;
 ?>