<!--INSERTADTHISPAGE -->
<%
	
	dim sitepathcheck, imagespath
	
	if (Request.ServerVariables("LOCAL_ADDR") = "203.24.131.65") then	
	
		sitepathcheck = "lvlq3a/"
	
	else
	
		sitepathcheck = "lvl/"
	
	end if
		
	if instr(1,Request.ServerVariables("PATH_INFO"),sitepathcheck & "beta/") > 0 then
		
		sitepathcheck = "[ ..::LvL - Q3A beta's ]"
	
		imagespath = "../"
	
	elseif instr(1,Request.ServerVariables("PATH_INFO"),sitepathcheck & "server/") > 0 then
		
		sitepathcheck = "[ ..::LvL - Q3A server's ]"

		imagespath = "../"
		
	elseif instr(1,Request.ServerVariables("PATH_INFO"),sitepathcheck & "mods/") > 0 then
		
		sitepathcheck = "[ ..::LvL - Q3A mod's ]"

		imagespath = "../"
		
	elseif instr(1,Request.ServerVariables("PATH_INFO"),sitepathcheck & "forum/") > 0 then
		
		sitepathcheck = "[ ..::LvL - Forum's ]"

		imagespath = "../"
		
	elseif instr(1,Request.ServerVariables("PATH_INFO"),sitepathcheck & "updates/") > 0 then
		
		sitepathcheck = "[ ..::LvL - Updates ]"

		imagespath = "../"
		
	else
		
		sitepathcheck = "[ ..::LvL - Q3A edition ]"

		imagespath = ""
		
	end if		
		
	'=======================
	' do the code for custom colours
	
	dim customcolours, bgcolourCustom, fontcolour
		
		customcolours = Request.Cookies("lvltheme")("colours")
			'Response.Write("customcolours=["&customcolours&"]<br />")
	
		'bgcolourCustom is used behind comments on other places
		'fontcolour is used with <pre> tags as a css don't work well with them

		bgcolourCustom = Request.Cookies("lvltheme")("bgcolourCustom")
		fontcolour = Request.Cookies("lvltheme")("fontcolour")
		
%><html>
<head>
	<title><%=sitepathcheck%></title>
<%	

'custom char set

	if Request.Cookies("lvl")("language") = "ru" then
	
		Response.Write("<meta http-equiv=""content-type"" content=""text/html; charset=windows-1251"">")
	
	end if	

	if Request.Cookies("lvl")("language") = "pl" then
	
		Response.Write("<meta http-equiv=""content-type"" content=""text/html; charset=ISO-8859-2"">")
	
	end if	

'font size for windows different to mac/linux

	if customcolours <> "" then
	
		if Instr(1,Lcase(Request.ServerVariables("HTTP_USER_AGENT")),"win") then 

			%>
	<link rel="stylesheet" href="<%=imagespath%>skinz/<%=replace(customcolours,"_","")%>_w.css" type="text/css" />
			<% 

		else 

			%>
	<link rel="stylesheet" href="<%=imagespath%>skinz/<%=replace(customcolours,"_","")%>.css" type="text/css" />
			<% 

		end if
	
	else
		'===============
		'standard colours or no cookie
		
		bgcolourCustom = "#efefef"
		fontcolour = "#696969"

		if Instr(1,Lcase(Request.ServerVariables("HTTP_USER_AGENT")),"win") then 

			%>
	<link rel="stylesheet" href="<%=imagespath%>skinz/default_w.css" type="text/css" />
			<% 

		else 

			%>
	<link rel="stylesheet" href="<%=imagespath%>skinz/default.css" type="text/css" />
			<% 

		end if

	end if 

%>
</head>
<!-- pages, code and graphics &copy; copyright 1999-2000 ray dow, tigger-on, tigger@ebom.org -->
<!-- ..::LvL &copy; copyright 1999-2000 ray dow, tigger-on, tigger@ebom.org -->
<body background="<%=imagespath%>skinz/images<%=customcolours%>/lvl_bg1.gif" text="#696969" leftmargin=0 rightmargin=0 topmargin=0 marginwidth="0" marginheight="0">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
	<tr>
		<td width="136" colspan="2" rowspan="2" background="<%=imagespath%>skinz/images_random<%=customcolours%>/topleft_<%=top_left%>.gif"><a href="./" target="_top"><img src="<%=imagespath%>images/clear.gif" width="136" height="114" alt=" " border="0"></a></td>
		<td width="173" background="<%=imagespath%>skinz/images<%=customcolours%>/top_bg1.gif" align="left"><img src="<%=imagespath%>skinz/images<%=customcolours%>/lvlq3a_logo.gif" width="173" height="68" alt="<%=sitepathcheck%>"></td>
<!--- banner ad in here --->
<% if Request.ServerVariables("LOCAL_ADDR") = "203.24.131.65" then %>
		<td width="100%" background="<%=imagespath%>skinz/images<%=customcolours%>/top_bg1.gif" align="right" valign="top"><a href="" target="_top"><img src="<%=imagespath%>banner_ad/tig_bigtits.gif" border="0" alt="Click for more information!" width="468" height="60"></a></td>
<% else %>
		<td width="100%" background="<%=imagespath%>skinz/images<%=customcolours%>/top_bg1.gif" align="right" valign="top"><!--ACCIPITERADINSERT /SITE=PQ/GENRE=ACTION/AREA=HOSTED/AAMSZ=IAB_FULL_BANNER-->
		</td>	
<% end if %>
	</tr>
	<tr>