function help(help_string){
     alert(help_string);
     return;
}
//Default browsercheck, added to all scripts!
function checkBrowser(){
        this.ver=navigator.appVersion
        this.dom=document.getElementById?1:0
        this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
        this.ie4=(document.all && !this.dom)?1:0;
        this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
        this.ns4=(document.layers && !this.dom)?1:0;
        this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
        return this
}
bw=new checkBrowser()

/***************************************************************************************
Variables to set:
***************************************************************************************/
messages=new Array()
//Write your descriptions in here.
messages[0]="Inleiding: over het verbieden van boeken"
messages[1]="Overzicht verboden boeken"
messages[2]="Namen van verbieders"
messages[3]="Begrippenlijst censuur"
messages[4]="Zoeken in Verboden boeken"
messages[5]="Een willekeurige fragment"
messages[6]="Het Gastenboek: laat uw commentaar achter"
messages[7]="Links"
messages[8]="Copyright informatie"
messages[9]="Beoordeel deze site"
messages[10]="Veelgestelde vragen"
messages[11]="Overzicht verboden boeken"
//To have more descriptions just add to the array.

fromX=0 //How much from the actual mouse X should the description box appear?
fromY=20////How much from the actual mouse Y should the description box appear?

//To set the font size, font type, border color or remove the border or whatever,
//change the clDescription class in the stylesheet.

//Makes crossbrowser object.
function makeObj(obj){                                                          
        this.css=bw.dom? document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?document.layers[obj]:0;       
        this.wref=bw.dom? document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?document.layers[obj].document:0;         
        this.writeIt=b_writeIt;                                                                                                                         
        return this
}
function b_writeIt(text){if(bw.ns4){this.wref.write(text);this.wref.close()}
else this.wref.innerHTML=text}

//Capturing mousemove
var descx,descy;
function popmousemove(e){descx=bw.ns4?e.pageX:event.x; descy=bw.ns4?e.pageY:event.y}

//Initiates page
var isLoaded;
function popupInit(){
    oDesc=new makeObj('divDescription')
    if(bw.ns4)document.captureEvents(Event.MOUSEMOVE)
    document.onmousemove=popmousemove;
    isLoaded=true;
}       
//Shows the messages
function popup(num){
    if(isLoaded){
        oDesc.writeIt('<span class="clDescription">'+messages[num]+'</span>')
        if(bw.ie5) descy=descy+document.body.scrollTop
        oDesc.css.left=descx+fromX; oDesc.css.top=descy+fromY
        oDesc.css.visibility='visible'
    }
}
//Hides it
function popout(num){
        if(isLoaded) oDesc.css.visibility='hidden'
}

//initiates page on pageload.
onload=popupInit;

//popupje
function popUp(pPage) {
 popUpWin = window.open(pPage,'popWin','resizeable=no,scrollbars=yes,topbar=no,width=525,height=330,left=315,top=150');
 }
//onresize
 NS4 = document.layers;
 if (NS4) {
 origWidth = innerWidth;
 origHeight = innerHeight;
 }

function reDo() {
if (innerWidth != origWidth || innerHeight != origHeight) 
location.reload();
 }
if (NS4) onresize = reDo;



//random.url
//script by Me  
   function go_to(url) {
      window.location=url;
    }

    function rand_link() {
    var a;
      a = 1+Math.round(Math.random()*8);
      if (a==1) go_to("Texts/merel.html");
      if (a==2) go_to("Texts/mze1.html");
      if (a==3) go_to("Texts/mze3.html");
	  if (a==4) go_to("Texts/magie.html");
	  if (a==5) go_to("Texts/torless.html");
	  if (a==6) go_to("Texts/amsel.html");
	  if (a==7) go_to("Texts/claudine.html");
	  if (a==8) go_to("Texts/anna.html");
    }
	


