function ComposeEMail()
{
	var params="width=1, height=1, status=0, menubar=0, location=0, toolbar=0, directories=0, resizable=0, scrollbars=0";
	var EMailWindow = window.open("mailto:webmaster@astonvilla.dk?subject=The Vice City 100", "Email", params);
	if(EMailWindow)
	{
		EMailWindow.close();
	}
}

function show_pagefooter()
{
	document.writeln('<HR WIDTH="100%" SIZE="1" noshade>');
	document.writeln('<SPAN CLASS="pagefooter">Copyright &#169; <A HREF=../../index.htm TARGET=_top>Christian Jahnsen</A>, 2004.<BR>All Rights Reserved.<BR>This document was last modified on');
	PrintLastModified();
	document.writeln('</SPAN>');
}

function openwindow(url,windowname,width,height)
{
	var params="width=" + width + ",height=" + height + ",status=1,menubar=0,location=0,toolbar=0,directories=0,resizable=0,scrollbars=1";
	window.open(url,windowname,params)
}

function centerwindow(width, height)
{
	window.resizeTo(width, height);
	window.moveTo(((screen.availWidth - width) / 2), ((screen.availHeight - height) / 2));
}

function showcopyright()
{
	document.writeln('<HR WIDTH="100%" SIZE="1" noshade>');
	document.writeln('<SPAN CLASS="pagefooter">This document was last modified on ');
	PrintLastModified();
	document.writeln('<BR>Copyright &copy; Christian Jahnsen</a>, 2004.');
	document.writeln('<BR>Please <A HREF="javascript:nothing()" onClick="ComposeEMail()">e-mail the webmaster</A> if you have comments, questions, additions, suggestions or corrections.');
	document.writeln('<BR>Please seek the permission of the webmaster before reproducing any part of this website.');
	document.writeln('<BR>For best view of this site, please use Internet Explorer 5 or newer.');
	document.writeln('<BR></SPAN>');
}

function shownavigation()
{
	document.writeln('<TABLE CLASS="Credits" BORDER="0" CELLSPACING="0" CELLPADDING="5" BGCOLOR="#CCCCCC"><TR><TD NOWRAP>');

	document.writeln('&#0149; <A HREF="missions.htm">Missions</A><BR>');
	document.writeln('&#0149; <A HREF="walkthrough.htm">Walkthrough</A><BR>');
	document.writeln('&#0149; <A HREF="downloads.htm">Maps / downloads</A><BR>');
	document.writeln('&#0149; <A HREF="cheat_codes.htm">Cheat codes</A><BR>');
	document.writeln('&#0149; <A HREF="weapons.htm">Weapons</A><BR>');
	document.writeln('&#0149; <A HREF="hidden_surprises.htm">Hidden surprises</A><BR>');
	document.writeln('&#0149; <A HREF="souvenirs.htm">Souvenirs</A><BR>');
	document.writeln('&#0149; <A HREF="links.htm">Links</A>');

	document.writeln('</TD></TR></TABLE>');
}

function nothing()
{
}

function PrintLastModified()
{
	var Datostring = document.lastModified;
	var Dag=Datostring.substr(3,2);
	var MaanedTemp=Datostring.substr(0,2);
	var Aar=Datostring.substr(6,4);
	var Maanednavne = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");

	if (MaanedTemp.substr(0,1) == 0)
	{
		MaanedTemp = MaanedTemp.substr(1,1);
	}

	if (Dag == "11" || Dag == "12" || Dag == "13")
	{
		var Denounce = "th";
	}
	else if (Dag.substr(1,1) == 1)
	{
		var Denounce = "st";
	}

	else if (Dag.substr(1,1) == 2)
	{
		var Denounce = "nd";
	}

	else if (Dag.substr(1,1) == 3)
	{
		var Denounce = "rd";
	}

	else
	{
		var Denounce = "th";
	}

	if (Dag.substr(0,1) == 0)
	{
		Dag = Dag.substr(1,1);
	}

	var MaanedInt = MaanedTemp-1;
	var Maaned = Maanednavne[(MaanedInt)];

	document.writeln(Maaned + " " + Dag + Denounce + ", " + Aar + ".");
}

function PrintLastModifiedFrontPage()
{
	var Datostring = document.lastModified;
	var Dag=Datostring.substr(3,2);
	var MaanedTemp=Datostring.substr(0,2);
	var Aar=Datostring.substr(6,4);
	var Maanednavne = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");

	if (MaanedTemp.substr(0,1) == 0)
	{
		MaanedTemp = MaanedTemp.substr(1,1);
	}

	if (Dag == "11" || Dag == "12" || Dag == "13")
	{
		var Denounce = "th";
	}
	else if (Dag.substr(1,1) == 1)
	{
		var Denounce = "st";
	}

	else if (Dag.substr(1,1) == 2)
	{
		var Denounce = "nd";
	}

	else if (Dag.substr(1,1) == 3)
	{
		var Denounce = "rd";
	}

	else
	{
		var Denounce = "th";
	}

	if (Dag.substr(0,1) == 0)
	{
		Dag = Dag.substr(1,1);
	}

	var MaanedInt = MaanedTemp-1;
	var Maaned = Maanednavne[(MaanedInt)];

	document.writeln(Maaned + " " + Dag + Denounce + ", " + Aar);
}

// RIGHT-CLICK PROTECTION

var RightClickMessage="To print, press CTRL+P or click the print button in your browser.\n\nIf you wish to gain permission to use material from this site,\nplease seek the permission of the webmaster, thank you.";

//Message for the alert box

// Don't edit below!

function click(e)
{
	if (document.all)
	{
		if (event.button == 2)
		{
			alert(RightClickMessage);
			return false;
		}
	}
	if (document.layers)
	{
		if (e.which == 3)
		{
			alert(RightClickMessage);
			return false;
		}
	}
}

if (document.layers)
{
	document.captureEvents(Event.mousedown);
}

document.onmousedown=click;

function HeaderSubLevelOne()
{
	document.writeln('<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="2" CLASS="body">');
	document.writeln('  <TR VALIGN="TOP">');
	document.writeln('    <TD WIDTH="1"><FONT SIZE="7"><B><A HREF="../index.htm"><IMG SRC="../graphics/GTAVC_logo_small.jpg" BORDER="0" WIDTH="90" HEIGHT="100"></A></B></FONT><BR><BR><BR><BR>');
	document.writeln('    <SCRIPT LANGUAGE="Javascript">shownavigation();</SCRIPT>');
	document.writeln('    	</TD>');
	document.writeln('    <TD WIDTH="1"><IMG SRC="../graphics/transp.gif" WIDTH="5" HEIGHT="5"></TD>');
	document.writeln('    <TD>');
}

function FooterSubLevelOne()
{
	document.writeln('<SCRIPT LANGUAGE="JavaScript">');
	document.writeln('	showcopyright();');
	document.writeln('</SCRIPT></TD></TR></TABLE>');
}

function Header()
{
	document.writeln('<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="2" CLASS="body">');
	document.writeln('  <TR VALIGN="TOP">');
	document.writeln('    <TD WIDTH="1"><FONT SIZE="7"><B><A HREF="index.htm"><IMG SRC="graphics/GTAVC_logo_small.jpg" BORDER="0" WIDTH="90" HEIGHT="100"></A></B></FONT></TD>');
	document.writeln('    <TD WIDTH="1"><IMG SRC="graphics/transp.gif" WIDTH="5" HEIGHT="5"></TD>');
	document.writeln('    <TD>');
}

function Footer()
{
	document.writeln('<SCRIPT LANGUAGE="JavaScript">');
	document.writeln('	showcopyright();');
	document.writeln('</SCRIPT></TD></TR></TABLE>');
}
