#!/usr/bin/python

import cgi
import sys

get = cgi.FieldStorage()

if get.getvalue('source') == '1':
	print 'Content-type: text'
	print
	fichier = open('index.py','r')
	print fichier.read()
	sys.exit()

print 'Content-type: text/html'
print

header = open('../includes/header.html','r')
print header.read()
banniere = open('../includes/banniere.html','r')
print banniere.read()
menu = open('../includes/menu.html','r')
print menu.read()
print '<div id="corps"><img style="float: right;" src="me.jpg" alt="Photo">'
corps = open('corps.html','r')
print corps.read()
print '</div>'
footer = open('../includes/footer.html','r')
print footer.read()
print '''
					</div>
				</div>
			</div>
		</body>
	</html>
'''

