function handleError() {return true;}

window.onerror = handleError;

var temp;

function getPos(el,sProp)
{   var iPos = 0;
    while (el!=null)
    {   iPos+=el["offset" + sProp];
        el = el.offsetParent;
    }
    return iPos;
}
    
function show(el,m)
{   m.style.top = getPos(el,"Top")+20;
    m.style.left = getPos(el,"Left")-13;
    m.style.visibility='visible';
}

function hidesubmenuus()
{   document.getElementById('menubox4').style.visibility='hidden';
    document.getElementById('menubox5').style.visibility='hidden';
    document.getElementById('menubox6').style.visibility='hidden';
}

function writemenu()
{   var a="";
    a+= "<table width='960px' height='150px'align='center'>";
    a+= "<tr height='30px' onMouseover='hidesubmenuus()'>";
        a+= "<td rowspan=4 id='hoofdmenu' width='160px' valign='top'><img src='images/logo.png' onmouseover='hidesubmenuus()'></td>";
        a+= "<td colspan=8 align=right>";
            a+= "<form  target='_blank' method='get' style='margin:0;' action='http://www.picosearch.com/cgi-bin/ts.pl'>";
            a+= "<input type='hidden' name='index' value='507248' />";
            a+= "<table bgcolor='transparent' cellspacing='2' cellpadding='0' border='0'>";
            a+= "<tr>";
            a+= "<td><a href='http://www.picosearch.com/'><img style='border:0' src='http://www.picosearch.com/picosmall.gif' alt='Doorzoek deze site met PicoSearch' /></a></td>";
            a+= "<td><input type='text' name='query' value='' size='20' /></td>";
            a+= "<td><input type='submit' value='Zoek' /></td>";
            a+= "</tr>";
            a+= "</table>";
            a+= "</form>"; 
        a+="</td>";
    a+= "</tr>";
    a+= "<tr height='53px' onMouseover='hidesubmenuus()'>";
        a+= "<td id='titel' colspan=8 valign='top'>Afdeling Loppersum</td>";
    a+= "</tr>";
    a+= "<tr height='20px'>";
        a+= "<td id='hoofdmenu' width='90px'><a href='index.html' id='hoofdmenu' onMouseover='hidesubmenuus()'>Home</a></td>";
        a+= "<td id='hoofdmenu' width='100px'><a href='actueel.html' id='hoofdmenu' onMouseover='hidesubmenuus()'>Actueel</a></td>";
        a+= "<td id='hoofdmenu' width='100px'><a href='agenda.html' id='hoofdmenu' onMouseover='hidesubmenuus()'>Agenda</a></td>";
        a+= "<td id='hoofdmenu' width='110px'><a href='' id='hoofdmenu' onMouseover='hidesubmenuus(); show(this,menubox4)'>Wie is wie</a></td>";
        a+= "<td id='hoofdmenu' width='130px'><a href='' id='hoofdmenu' onMouseover='hidesubmenuus(); show(this,menubox5)'>Over de VVD</a></td>";
        a+= "<td id='hoofdmenu' width='100px'><a href='' id='hoofdmenu' onMouseover='hidesubmenuus(); show(this,menubox6)'>Contact</a></td>";
        a+= "<td id='hoofdmenu' width='100px'><a href='links.html' id='hoofdmenu' onMouseover='hidesubmenuus()'>Links</a></td>";
        a+= "<td id='hoofdmenu' width='70px'><a href='' id='hoofdmenu' onMouseover='hidesubmenuus()'>&nbsp;</a></td>";
    a+= "</tr>";
    a+= "<tr height='47px' onMouseover='hidesubmenuus()'r>";
        a+= "<td colspan=8>&nbsp;</td>";
    a+= "</tr>";
    a+= "</table>";

    a+= "<div id='menubox4'>";
    a+= "<span id='hoofdmenu'><a href='fractie.html' id='hoofdmenu'>Fractie</a></span><br>";
    a+= "<span id='hoofdmenu'><a href='bestuur.html' id='hoofdmenu'>Bestuur</a></span><br>"
;
    a+= "</div>";

    a+= "<div id='menubox5'>";
    a+= "<span id='hoofdmenu'><a href='gemeenteraad.html' id='hoofdmenu'>Gemeenteraad</a></span><br>";
    a+= "<span id='hoofdmenu'><a href='provincie.html' id='hoofdmenu'>Provincie</a></span><br>";
    a+= "<span id='hoofdmenu'><a href='landelijk.html' id='hoofdmenu'>Landelijk</a></span><br>";
    a+= "<span id='hoofdmenu'><a href='verkiezingen.html' id='hoofdmenu'>Verkiezingen</a></span><br>";
    a+= "<span id='hoofdmenu'><a href='downloads.html' id='hoofdmenu'>Downloads</a></span><br>";
    a+= "</div>";

    a+= "<div id='menubox6'>";
    a+= "<span id='hoofdmenu'><a href='http://www.vvd.nl/word-lid' target='_blank' id='hoofdmenu'>Lid worden</a></span><br>";
    a+= "<span id='hoofdmenu'><a href='contact.html' id='hoofdmenu'>Contact</a></span><br>";
    a+= "</div>";
    document.getElementById('menu').innerHTML=a;
}

function writelinkerkolom()
{   var a="";
    a+= "<br><br><br><br>";
    a+= "<table id='linkerkolom' width=150>";
        a+= "<tr><td><a href='http://www.vvd.nl/word-lid' target='_blank'><img src='images/word_lid.jpg'></a></td></tr>";
    a+= "</table>";
    document.getElementById('linkerkolom').innerHTML=a;
}

function writerechterkolom()
{   var a="";
    a+= "<br><br><br><br>";
    a+= "<table id='rechterkolom' width=150>";
        a+= "<tr><td align=center><a href='http://www.politiebezuinigingen.nl' target='_blank'><img src='images/politie.jpg'></a></td></tr>";
        a+= "<tr><td align=center><a href='http://www.politiebezuinigingen.nl' target='_blank'>Politiebezuinigingen</a></td></tr>";
    a+= "</table>";
    a+= "<br>";
    a+= "<table id='rechterkolom' width=150>";
        a+= "<tr><td align=center><a href='http://www.kilometerheffingnoway.nl' target='_blank'><img src='images/kmheffing.gif'></a></td></tr>";
        a+= "<tr><td align=center><a href='http://www.kilometerheffingnoway.nl' target='_blank'>Kilometerheffing<br>No Way</a></td></tr>";
    a+= "</table>";
    a+= "<br>";
    a+= "<br>";
    a+= "<img src='images/boom.jpg' width='150'><br><br>";
    a+= "<img src='images/peertil.jpg' width='150'><br><br>";
    a+= "<img src='images/schaap.jpg' width='150'><br><br>";
    document.getElementById('rechterkolom').innerHTML=a;
}