document.write('<style TYPE="text/css">');
if(navigator.userAgent.lastIndexOf("MSIE")>-1) document.write(
'td {background-image: none; font-size: 11px; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif}'+
'.button {font-size: 11px; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif}'+
'.combo {font-size: 11px; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif; width: 180px}'+
'.currencycombo {font-size: 11px; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif; width: 60px}');
else document.write(
'td {background-image: none; font-size: 8pt; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif}'+
'.button {font-size: 8pt; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif}'+
'.combo {font-size: 8pt; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif; width: 180px}'+
'.currencycombo {font-size: 8pt; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif; width: 70px}');
document.write('</style>');

Menu = new Array("info", "bestellen", "download", "mission", "hilfe");
Links = new Array("curseofra.htm", "order.htm", "download.htm", "mission.htm", "help.asp");

function Header(n, l) {
	if(n>100) {
		n=n-100;
		Links[1]="order_2.htm";
	}

	preload=new Array(Menu.length);
	for(i=0; i<Menu.length; i++) {
		preload[i]=new Image();
		preload[i].src="../../gfx/curse_menu_" + Menu[i] + "_h.gif";
	}
	
	document.writeln('<center>');
	document.writeln('<table cellspacing=0 cellpadding=0 border=0>');
	document.writeln('<tr><td width=24><img src="../../gfx/nope.gif" width=24 height=2></td>');
	document.writeln('	<td width=700 align=left><img src="../../gfx/nope.gif" width=2 height=10><br><img src="../../gfx/logo_curseofra.gif" width=401 height=48><br><img src="../../gfx/nope.gif" width=2 height=10></td>');
	document.writeln('	<td width=24><img src="../../gfx/nope.gif" width=24 height=2></td></tr>');
	document.writeln('<tr><td><img src="../../gfx/curse_topleft.gif" width=24 height=45></td>');
	document.writeln('	<td class=topline><table cellspacing=0 cellpadding=0 border=0><tr><td width=600>');

	for(i=0; i<Menu.length; i++) {
		if(i==n) {
			if(i==0) document.write("<img src='../../gfx/curse_box_left_red_noshadow.gif' width=18 height=45 border=0 id=l" + i + ">");
			else document.write("<img src='../../gfx/curse_box_left_red_shadow.gif' width=18 height=45 border=0 id=l" + i + ">");
			document.write("<img src='../../gfx/curse_menu_" + Menu[i] + "_h.gif' height=45 border=0 id=t" + i + ">");
			document.write("<img src='../../gfx/curse_box_right_red.gif' width=18 height=45 border=0 id=r" + i + ">");
		}
		else {
			document.write("<a href='" + Links[i] + "' onmouseover='Over("+ i + ")' onmouseout='Out("+ i + ")'>");
			if(i==0) document.write("<img src='../../gfx/curse_box_left_blue_noshadow.gif' width=18 height=45 border=0 id=l" + i + ">");
			else document.write("<img src='../../gfx/curse_box_left_blue_shadow.gif' width=18 height=45 border=0 id=l" + i + ">");
			document.write("<img src='../../gfx/curse_menu_" + Menu[i] + "_n.gif' height=45 border=0 id=t" + i + ">");
			document.write("<img src='../../gfx/curse_box_right_blue.gif' width=18 height=45 border=0 id=r" + i + ">");
			document.write("</a>");
		}
	}
	document.write("<img src='../../gfx/curse_box_right_shadow.gif' width=18 height=45 border=0><br>");
	if(!l) l=Links[n];	    
	document.write("</td><td width=100 align=right valign=top><a href='../../en/curseofra/" + l + "'><img src='../../gfx/curse_menu_english.gif' width=62 height=34 border=0></a><br></td></tr></table>");

	document.writeln('	</td>');
	document.writeln('	<td><img src="../../gfx/curse_topright.gif" width=24 height=45></td>');
	document.writeln('</tr>');
	document.writeln('<tr><td class=leftline>&nbsp;</td>');
	document.writeln('	<td bgcolor=#ffffff><br>');
}


function Footer() {
	document.writeln('	<br><br></td>');
	document.writeln('	<td class=rightline>&nbsp;</td>');
	document.writeln('</tr>');
	document.writeln('<tr><td><img src="../../gfx/curse_bottomleft.gif" width=24 height=45></td>');
	document.writeln('	<td class=bottomline align=right>');
	document.writeln('	<a href="contact.asp"><img src="../../gfx/curse_bottom_logo.gif" width=146 height=45 border=0></a><br></td>');
	document.writeln('	<td><img src="../../gfx/curse_bottomright.gif" width=24 height=45></td>');
	document.writeln('</tr>');
	document.writeln('</table>');
	document.writeln('</center>');
}

function Over(n) {
	if(i==0) document.images["l"+n].src = "../../gfx/curse_box_left_red_noshadow.gif";
	else document.images["l"+n].src = "../../gfx/curse_box_left_red_shadow.gif";
	document.images["t"+n].src = "../../gfx/curse_menu_" + Menu[n] + "_h.gif";
	document.images["r"+n].src = "../../gfx/curse_box_right_red.gif";
}

function Out(n) {
	if(i==0) document.images["l"+n].src = "../../gfx/curse_box_left_blue_noshadow.gif";
	else document.images["l"+n].src = "../../gfx/curse_box_left_blue_shadow.gif";
	document.images["t"+n].src = "../../gfx/curse_menu_" + Menu[n] + "_n.gif";
	document.images["r"+n].src = "../../gfx/curse_box_right_blue.gif";
}

function Title(title) {
	document.write(
	'<table cellspacing=0 cellpadding=1 border=0 width=100%>' +
	'<tr><td bgcolor=black>' +
		'<table cellspacing=0 cellpadding=0 border=0 width=100%>' +
		'<tr><td bgcolor=white colspan=2><img src="../gfx/nope.gif" width=1 height=1></td></tr>' +
		'<tr><td bgcolor=white width=1><img src="../gfx/nope.gif" width=1 height=1></td>' +
			'<td bgcolor=#848EDE>' +
				'<table cellspacing=0 cellpadding=3 border=0 width=100%>' +
				'<tr><td bgcolor=848EDE>' +
					'<span class=title>&nbsp;' + title + '</span>' +
				'</td></tr>' +
				'</table>' +
			'</td></tr>' +
		'</table>' +
	'</td><tr>' +
	'</table>');
}
