document.writeln("<META HTTP-EQUIV=\"CACHE-CONTROL\" CONTENT=\"NO-CACHE\">");
document.writeln("<META HTTP-EQUIV=\"PRAGMAS\" CONTENT=\"NO-CACHE\">");
document.writeln("<META HTTP-EQUIV=\"imagetoolbar\" content=\"no\"/>");

// disable select
document.onselectstart=new Function('return false');
function ds(e){return false;}
function ra(){return true;}
document.onmousedown=ds;
document.onclick=ra;

// disable print
function p1(){
	for(pp=0;pp<document.all.length;pp++){
		if(document.all[pp].style.visibility!='hidden')¡@{
			document.all[pp].style.visibility='hidden';
			document.all[pp].id='ph'
		}
	}
}

function p2(){
	for (pp=0;pp<document.all.length;pp++){
		if(document.all[pp].id=='ph')
			document.all[pp].style.visibility=''
	}
}
window.onbeforeprint=p1;window.onafterprint=p2;

// top menu
function MakeArray(n) {
   this.length = n
   for (var i = 1; i <= n; i++) {
      this[i] = 0
   }
   return this
}

// disable right mouse click Script
// by Maximus (maximus@nsimail.com)

var message="Function Disabled!";

function clickIE4(){
	if (event.button==2){
		window.status=''
		return false;
	}
}

function clickNS4(e){
	if (document.layers||document.getElementById&&!document.all){
		if (e.which==2||e.which==3){
			window.status=''
			return false;
		}
	}
}

if (document.layers){
	document.captureEvents(Event.MOUSEDOWN);
	document.onmousedown=clickNS4;
} else if (document.all&&!document.getElementById){
	document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("window.status='';return false")

// hide url on status bar

function hidestatus(){
	window.status=''
	return true
}

if (document.layers)
	document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)

document.onmouseover=hidestatus
document.onmouseout=hidestatus

// top menu
mnuList = new MakeArray(9)
mnuList[1] = "./top.htm"
mnuList[2] = "./novel/index.htm"
mnuList[3] = "./artwork/index.htm"
mnuList[4] = "./misc/index.htm"
mnuList[5] = "./faq.htm"
mnuList[6] = "./board.htm"
mnuList[7] = "./chat.htm"
mnuList[8] = "./link.htm"

function go() {
	var selected = document.linkMenu.linkList.selectedIndex
	if(selected > 0) {
		parent.main.location = mnuList[selected]
	}
}

function openInfo() {window.open("./news.htm","NEWS","width=420,height=500,scrollbars=1");}
function openReadme() {window.open("./readme.htm","Notice","width=600,height=400,scrollbars=1");}