<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset={LANG_CHARSET}">
<title>{SITE_TITLE} - {PAGE_TITLE}</title>
<meta name="keywords" content="">
<meta name="description" content="">
<link href="{SITE_URL}templates/{TPL_NAME}/images/style.css" type="text/css" rel="stylesheet">
<script language="JavaScript" type="text/JavaScript">
<!--
var http = createRequestObject();
function createRequestObject()
{
var ro;
var browser = navigator.appName;
if(browser == "Microsoft Internet Explorer")
{
ro = new ActiveXObject("Microsoft.XMLHTTP");
}
else
{
ro = new XMLHttpRequest();
}
return ro;
}
function digResponse()
{
if(http.readyState == 4)
{
var response = http.responseText;
returned = response.split('|');
if(response.indexOf('|' != -1))
{
var id=returned[1];
var numdigs=returned[2];
var status=returned[0];
if(status == '1')
{
document.getElementById('digbut'+id).innerHTML = '{LANG_DUGG}';
document.getElementById('numdigs'+id).innerHTML = numdigs;
}
else if(status == '2')
{
document.getElementById('digbut'+id).innerHTML = '{LANG_DUGG}';
}
else if(status == '0')
{
document.getElementById('digbut'+id).innerHTML = '<a href="{SITE_URL}login.php">{LANG_LOGIN}<\/a>';
}
}
}
}
function cdigResponse()
{
if(http.readyState == 4)
{
var response = http.responseText;
returned = response.split('|');
if(response.indexOf('|' != -1))
{
var id=returned[1];
var numdigs=returned[2];
var status=returned[0];
if(status == '1')
{
document.getElementById('comd'+id).innerHTML = numdigs+' {LANG_DIGGS}';
document.getElementById('cup'+id).className = 'opacityit';
document.getElementById('cdown'+id).className = 'opacityit';
}
else if(status == '2')
{
// Already dug comment
document.getElementById('cup'+id).className = 'opacityit';
document.getElementById('cdown'+id).className = 'opacityit';
}
else if(status == '0')
{
document.getElementById('comd'+id).innerHTML = '<a href="{SITE_URL}login.php">{LANG_LOGIN}<\/a>';
}
}
}
}
function buryResponse()
{
if(http.readyState == 4)
{
var response = http.responseText;
returned = response.split('|');
if(response.indexOf('|' != -1))
{
var id=returned[1];
var status=returned[0];
if(status == '0')
{
document.getElementById('digbut'+id).innerHTML = '<a href="{SITE_URL}login.php">{LANG_LOGIN}<\/a>';
}
else
{
document.getElementById('storyb'+id).style.filter = "Alpha(Opacity=80)";
document.getElementById('storyb'+id).style.opacity = ".2";
document.getElementById('digbut'+id).innerHTML = '{LANG_BURIED}';
document.getElementById('storyb'+id).disabled = true;
}
}
}
}
function dig(id)
{
document.getElementById('digbut'+id).innerHTML = '{LANG_SENDING}';
http.open('get', '{SITE_URL}dig.php?i='+id);
http.onreadystatechange = digResponse;
http.send(null);
}
function digcom(comment_id,dir,story_id)
{
http.open('get', '{SITE_URL}dig.php?type=comm&i='+comment_id+'&story='+story_id+'&dir='+dir);
http.onreadystatechange = cdigResponse;
http.send(null);
if(dir == 0)
{
dispcomment(comment_id,false,0);
}
}
function bury_story(id)
{
if({LOGGEDIN} == 0)
{
document.getElementById('digbut'+id).innerHTML = '<a href="{SITE_URL}login.php">{LANG_LOGIN}<\/a>';
return;
}
http.open('get', '{SITE_URL}bury.php?i='+id);
http.onreadystatechange = buryResponse;
http.send(null);
}
function inclickcheck(field,def,val)
{
if(field.value == def)
{
field.value = val;
}
}
function changeuser(field,but)
{
if(field.value == '')
{
document.getElementById(but).disabled = true;
}
else
{
document.getElementById(but).disabled = false;
}
}
function checkavail(field)
{
username = document.getElementById(field).value;
if(username.length < 4)
{
document.getElementById('availres').innerHTML = '{LANG_THEUSER} "'+username+'" {LANG_TOOSHORT}';
return;
}
else if(username.length > 16)
{
document.getElementById('availres').innerHTML = '{LANG_THEUSER} "'+username+'" {LANG_TOOLONG}';
return;
}
http.open('get', '{SITE_URL}signup.php?avail='+username);
http.onreadystatechange = availResponse;
http.send(null);
}
function availResponse()
{
if(http.readyState == 4)
{
var response = http.responseText;
returned = response.split('|');
if(response.indexOf('|' != -1))
{
var username=returned[0];
var status=returned[1];
if(status == 1)
{
document.getElementById('availres').innerHTML = '{LANG_THEUSER} "'+username+'" {LANG_ISAVAIL}';
}
else
{
document.getElementById('availres').innerHTML = '{LANG_SORRY}, {LANG_THEUSER} "'+username+'" {LANG_ISTAK}';
}
}
}
}
function dispcomment(id,show,ctype)
{
if(ctype == 0)
{
if(show)
{
document.getElementById('commdesc'+id).style.display = '';
document.getElementById('commbut'+id).innerHTML = '{LANG_BURIED} [<a href="javascript:dispcomment('+id+',false,0);">{LANG_HIDEC}</a>]';
}
else
{
document.getElementById('commdesc'+id).style.display = 'none';
document.getElementById('commbut'+id).innerHTML = '{LANG_BURIED} [<a href="javascript:dispcomment('+id+',true,0);">{LANG_SHOWC}</a>]';
}
}
else if(ctype == 1)
{
if(show)
{
document.getElementById('commdesc'+id).style.display = '';
document.getElementById('commbut'+id).innerHTML = '{LANG_BELOWTHRESH} [<a href="javascript:dispcomment('+id+',false,1);">{LANG_HIDEC}</a>]';
}
else
{
document.getElementById('commdesc'+id).style.display = 'none';
document.getElementById('commbut'+id).innerHTML = '{LANG_BELOWTHRESH} [<a href="javascript:dispcomment('+id+',true,1);">{LANG_SHOWC}</a>]';
}
}
}
function openWindow(theURL,winName,features)
{
window.open(theURL,winName,features);
}
function comreply(id,nickname)
{
if({LOGGEDIN} == 0)
{
alert('Please login before replying');
return;
}
document.getElementById('creply').style.display = '';
document.getElementById('replynick').innerHTML = nickname;
document.getElementById('parentid').value = id;
}
function replycancel()
{
document.getElementById('creply').style.display = 'none';
document.getElementById('replynick').innerHTML = '';
document.getElementById('parentid').value = '0';
}
//-->
</script>
<style type="text/css">
<!--
#tabsB
{
float:right;
width:100%;
background:#FFFFFF;
font-size:93%;
line-height:normal;
}
#tabsB ul
{
margin:0;
padding:0px 0px 0 0px;
list-style:none;
float:right;
}
#tabsB li
{
display:inline;
margin:0;
padding:0;
}
#tabsB a
{
float:left;
background:url("{SITE_URL}templates/{TPL_NAME}/images/tableftB.gif") no-repeat left top;
margin:0;
padding:0 0 0 4px;
text-decoration:none;
}
#tabsB a span
{
float:left;
display:block;
background:url("{SITE_URL}templates/{TPL_NAME}/images/tabrightB.gif") no-repeat right top;
padding:5px 15px 4px 6px;
color:#666;
}
#tabsB a span
{
float:none;
}
#tabsB a:hover span
{
color:#000;
}
#tabsB a:hover
{
background-position:0% -42px;
}
#tabsB a:hover span
{
background-position:100% -42px;
}
#tabsB #current a
{
background-position:0% -42px;
}
#tabsB #current a span
{
background-position:100% -42px;
}
.digbox
{
background-image:url({SITE_URL}templates/{TPL_NAME}/images/digg_back.jpg);
}
-->
</style>
</head>
<body>
<table width="700" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="50" valign="top"><span class="headlogo"><a href="{SITE_URL}" class="headlogo">{SITE_TITLE}</a></span></td>
<td width="200" align="right" valign="top" style="padding-top:10px;"><form name="form1" method="get" action="{SITE_URL}search.php" style="padding:0px;margin:0px;">
<input name="q" type="text" id="q" onfocus="inclickcheck(this,'{LANG_SEARCH}','');" onblur="inclickcheck(this,'','{LANG_SEARCH}');" value="{LANG_SEARCH}">
<input type="submit" name="Submit" value="Go">
</form></td>
</tr>
</table>
IF("{ANOUNCE}"=="1"){
<table width="700" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="8"><img src="{SITE_URL}templates/{TPL_NAME}/images/anounce_left.gif" width="8" height="32"></td>
<td background="{SITE_URL}templates/{TPL_NAME}/images/anounce_back.gif"><span style="padding-left:10px;" class="anounce">{ANOUNCE_TEXT}</span></td>
<td width="8"><img src="{SITE_URL}templates/{TPL_NAME}/images/anounce_right.gif" width="8" height="32"></td>
</tr>
</table>
{:IF}
<br><br>