<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html{$htmloptions} xmlns="
http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>{$title}</title>
<link rel="shortcut icon" href="{$cwebpath}/favicon.ico" />
{if $locale != 'en'}
<link rel="gettext" type="application/x-po" href="{$cwebpath}/inc/lang/{$locale}/LC_MESSAGES/kusaba.po" />
{/if}
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="Sat, 17 Mar 1990 00:00:01 GMT" />
<meta http-equiv="Content-Type" content="text/html;charset={%KU_CHARSET}" />
<script type="text/javascript" src="{$cwebpath}/lib/javascript/gettext.js"></script>
<script type="text/javascript" src="{$cwebpath}/lib/javascript/l.new.js"></script>
<script type="text/javascript" src="{$cwebpath}/lib/javascript/clear.l.new.js"></script>
<script type="text/javascript" src="{$cwebpath}/lib/javascript/jquery-ui-1.8.4.custom.min.js"></script>
<script type="text/javascript" src="{$cwebpath}/lib/javascript/chewroy.js"></script>
<script type="text/javascript" src="{$cwebpath}/lib/javascript/jquery-1.4.2.min.js"></script>
var gt = new Gettext({
'domain': 'kusaba'
});
function _(a) {
return gt.gettext(a)
}
function toggle(a, b) {
var c = document.getElementById(b);
if (c.style.display) {
c.style.display = ""
} else {
c.style.display = "none"
}
a.innerHTML = (c.style.display) ? '+' : '−';
set_cookie('nav_show_' + b, c.style.display ? '0' : '1', 30)
}
function removeframes() {
var a = document.getElementsByTagName("a");
for (var i = 0; i < a.length; i++)
if (a[i].className == "boardlink") a[i].target = "_top";
document.getElementById("removeframes").innerHTML = 'Frames removed.';
return false
}
function reloadmain() {
if (parent.main) {
parent.main.location.reload()
}
}
function replaceAll(a, b, c) {
var d = a.indexOf(b);
while (d > -1) {
a = a.replace(b, c);
d = a.indexOf(b)
}
return a
}
function insert(a) {
if (!ispage || quick_reply) {
var b = document.forms.postform.message;
if (b) {
if (b.createTextRange && b.caretPos) {
var c = b.caretPos;
c.text = c.text.charAt(c.text.length - 1) == " " ? a + " " : a
} else if (b.setSelectionRange) {
var d = b.selectionStart;
var e = b.selectionEnd;
b.value = b.value.substr(0, d) + a + b.value.substr(e);
b.setSelectionRange(d + a.length, d + a.length)
} else {
b.value += a + " "
}
b.focus();
return false
}
}
return true
}
function toggleOptions(a, b, c) {
if (document.getElementById('opt' + a)) {
if (document.getElementById('opt' + a).style.display == '') {
document.getElementById('opt' + a).style.display = 'none';
document.getElementById('opt' + a).innerHTML = ''
} else {
var d = '<td class="label"><label
for="formatting">Formatting:</label></td><td
colspan="3"><select name="formatting"><option value=""
onclick="javascript:document.getElementById(\'formattinginfo' + a +
'\').innerHTML = \'All formatting is performed by the
user.\';">Normal</option><option value="aa"
onclick="javascript:document.getElementById(\'formattinginfo' + a +
'\').innerHTML = \'
and
will surround your message.\';"';
if (getCookie('kuformatting') == 'aa') {
d += ' selected'
}
d += '>Text Art</option></select> <input
type="checkbox" name="rememberformatting"><label
for="rememberformatting">Remember</label> <span
id="formattinginfo' + a + '">';
if (getCookie('kuformatting') == 'aa') {
d += '
and
will surround your message.'
} else {
d += 'All formatting is performed by the user.'
}
d += '</span></td><td><input
type="button" value="Preview" class="submit"
onclick="javascript:postpreview(\'preview' + a + '\', \'' + c + '\', \''
+ a + '\', document.' + b + '.message.value);"></td>';
document.getElementById('opt' + a).innerHTML = d;
document.getElementById('opt' + a).style.display = ''
}
}
}
function togglethread(a) {
if (hiddenthreads.toString().indexOf(a) !== -1) {
document.getElementById('unhidethread' + a).style.display = 'none';
document.getElementById('thread' + a).style.display = 'block';
hiddenthreads.splice(hiddenthreads.indexOf(a), 1);
set_cookie('hiddenthreads', hiddenthreads.join('!'), 30)
} else {
document.getElementById('unhidethread' + a).style.display = 'block';
document.getElementById('thread' + a).style.display = 'none';
hiddenthreads.push(a);
set_cookie('hiddenthreads', hiddenthreads.join('!'), 30)
}
return false
}
function keypress(e) {
if (!e) e = window.event;
if (e.altKey) {
var a = document.location.toString();
if ((a.indexOf('catalog.html') == -1 &&
a.indexOf('/res/') == -1) || (a.indexOf('catalog.html') == -1 &&
e.keyCode == 80)) {
if (e.keyCode != 18 && e.keyCode != 16) {
if (a.indexOf('.html') == -1 || a.indexOf('board.html') != -1) {
var b = 0;
var c = a.substr(0, a.lastIndexOf('/') + 1)
} else {
var b = a.substr((a.lastIndexOf('/') + 1));
b = (+b.substr(0, b.indexOf('.html')));
var c = a.substr(0, a.lastIndexOf('/') + 1)
} if (b == 0) {
var d = c
} else {
var d = c + b + '.html'
} if (e.keyCode == 222 || e.keyCode == 221) {
if (match = /#s([0-9])/.exec(a)) {
var f = (+match[1])
} else {
var f = -1
} if (e.keyCode == 222) {
if (f == -1 || f == 9) {
var g = 0
} else {
var g = f + 1
}
} else if (e.keyCode == 221) {
if (f == -1 || f == 0) {
var g = 9
} else {
var g = f - 1
}
}
document.location.href = d + '#s' + g
} else if (e.keyCode == 59 || e.keyCode == 219) {
if (e.keyCode == 59) {
b = b + 1
} else if (e.keyCode == 219) {
if (b >= 1) {
b = b - 1
}
}
if (b == 0) {
document.location.href = c
} else {
document.location.href = c + b + '.html'
}
} else if (e.keyCode == 80) {
document.location.href = d + '#postbox'
}
}
}
}
}