#!/usr/local/bin/python2.7

import cgi
import chSystem
import os.path

#debug code
import cgitb
cgitb.enable()

#this site is currently using python 2.7.2

chSystem.loadSystem()

strPath = chSystem.getFullPath()
if '.html' in strPath and os.path.exists(strPath):
	chSystem.loadHTMLPage(strPath)
elif os.path.exists(strPath+'.html'):
	chSystem.loadMergedHTMLPage(strPath)
elif os.path.exists(strPath+'.py'):
	chSystem.loadPythonPage(strPath)
elif strPath == 'testValues':
	import testValues
#elif strPath == 'testEmail':
#	import testEmail
else:
	chSystem.loadHomePage()

chSystem.closeSystem()

#this site is currently using python 2.6.6
##!/usr/bin/python
