// JavaScript Document
var viewportwidth;
 var viewportheight;
 
 // the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight
 
 if (typeof window.innerWidth != 'undefined')
 {
      viewportwidth = window.innerWidth,
      viewportheight = window.innerHeight
 }
 
// IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)

 else if (typeof document.documentElement != 'undefined'
     && typeof document.documentElement.clientWidth !=
     'undefined' && document.documentElement.clientWidth != 0)
 {
       viewportwidth = document.documentElement.clientWidth,
       viewportheight = document.documentElement.clientHeight
 }
 
 // older versions of IE
 
 else
 {
       viewportwidth = document.getElementsByTagName('body')[0].clientWidth,
       viewportheight = document.getElementsByTagName('body')[0].clientHeight
 }
//document.write('<style type="text/css">\n<!--\n#credit {\n	position:absolute;\n	width:'+viewportwidth+'px;\nheight:40px;\nz-index:1;\nleft: 0;\ntop : '+(vieportheight-40)+'px;\n}\n-->\n</style>');
var browser = navigator.appName.toLowerCase();;
if (browser!="netscape")
{
	viewportheight-=20;
}
else
{
	viewportheight-=22;
}
if (bgFile=='')
{
	bgFile = 'bg.jpg';
}
document.write('<style type="text/css">');
document.write('<!--');
document.write('body {\n');
document.write('	margin-left: 0px;\n');
document.write('	margin-top: 0px;\n');
document.write('	margin-right: 0px;\n');
document.write('	margin-bottom: 0px;\n');
document.write('	background-color: #860000;\n');
document.write('	background-image: url(images/'+bgFile+');\n');
document.write('	background-repeat: 	no-repeat;\n');
document.write('	background-position: '+((viewportwidth-1500)/2)+'px 0px;\n');
document.write('}\n');
document.write('-->\n');
document.write('</style>');