// Variables ============================================================================
// Set different variables to customize menu 5

var mouseover_menus5 = '';
var mouseout_menus5  = '';

var mouseover_items5 = '';
var mouseout_items5  = '';


// Write menus 5 here
var menus5 = new Array (
                    "Jan Mensink",
                    "Ine Mensink-Jenniskens"
                    );

var items5 = new Array();

var start_id5 = 500;

// Write menu 5 Items here respectively. If any menu item don't have sub items, then leave its respective array blank
items5[0]  = new Array (
						 "Protestborden...<br />Nieuwe tekst 29-06-11 |janfiles/teksten/kunst6.html",
						 "Tuinfeest/Boekenmarkt<br />Deventer 2008<br /> (fotografie Jan) 05-08-08|janfiles/fotografie/reportage/boeken08.html"
						);
                    
items5[1]  = new Array (
						 "Gestolen Leven <br /> column 30-12-11|inefiles/literairwerk/boekbesproken/recens20.html",
						 "Leonard Cohen & Colombia...<br /> column 20-01-12|inefiles/literairwerk/proza/proza46.html",						
						 "De Pioenroos<br /> column 30-12-11|inefiles/literairwerk/boekbesproken/recens19.html",
						 "Sony Music Entertainment...<br /> column 04-12-11|inefiles/literairwerk/proza/proza45.html",
						 "De laatste middagen met Teresa.<br />Recensie 04-11-11 |inefiles/literairwerk/boekbesproken/recens18.html"
						);

// Functions ============================================================================
// Don't Edit Below


// Menu Title Mouse Over-Mouse Out
function menu_over5(x)
    {
        if(document.getElementById||(document.all && !(document.getElementById)))
            {
                x.style.backgroundColor=mouseover_menus5;
            }
     }

function menu_out5(x)
    {
        if(document.getElementById||(document.all && !(document.getElementById)))
            {
                x.style.backgroundColor=mouseout_menus5;
            }
    }

// Item Mouse Over-Mouse Out
function item_over5(x)
    {
        if(document.getElementById||(document.all && !(document.getElementById)))
            {
                x.style.backgroundColor=mouseover_items5;
            }
    }

function item_out5(x)
    {
        if(document.getElementById||(document.all && !(document.getElementById)))
            {
                x.style.backgroundColor=mouseout_items5;
            }
    }
 
 
 
// Statement to collapse items;
function collapse5(id5)
    {
        if (document.getElementById(id5).style.display=="")
            {
                document.getElementById(id5).style.display = "none";
                return;
            }
        for (i=0; i<menus5.length; i++)
            {
                var others = document.getElementById(start_id5+i+1);
                others.style.display = "none";
            }
        document.getElementById(id5).style.display = "";
    }
 
// Statement to open links
/*function go(url)
    {
        window.location=url;
    }*/
 
                     
                         
// Writes menu
function write_menu5()
    {
        document.write('<div id="navigation_bar5">');
        
        for(x=0; x<menus5.length; x++)
            {
                document.write('<div>');
                
                // Spilts menus 5 into array for menu name and url
                var menu_array5  = menus5[x].split("|");
                // If menus 5 url is not available the just makes expand and collapse effect on menu
                if (!menu_array5[1])
                    {
                        var menu5  = '<div id="menu5" onMouseOver=menu_over5(this); onMouseOut=menu_out5(this); onClick="collapse5(\''+(start_id5+x+1)+'\')">'+menus5[x]+'</div>';
                    }
                else
                    {
                        var menu5  = '<div id="menu5" onMouseOver=menu_over5(this); onMouseOut=menu_out5(this); onClick="collapse5(\''+(start_id5+x+1)+'\'); go(\''+menu_array5[1]+'\')"><a href="'+menu_array5[1]+'">'+menu_array5[0]+'</a></div>';
                    }
                document.write(menu5); 
                    
                // Checks if current menu has items then writes items
                if(items5[x] !='')
                    {
                        // If menu is not current then sets its display to none
                        if (menu_array5[0] != current_menu5)
                            {
                                document.write('<div style="display:none" id="'+(start_id5+x+1)+'">');
                            }
                        else
                            {
                                document.write('<div style="display:" id="'+(start_id5+x+1)+'">');
                            }
                                
                            // Writes Items
                            for(y=0; y<items5[x].length; y++)
                                {
                                    // Splits current item into name and url
                                    var item_array5   = items5[x][y].split("|");
                                    
                                    // If item name is not current then acts with it as a ordinary item
                                    if (item_array5[0] != current_item5)
                                        {
                                            document.write('<div id="item5" onMouseOver=item_over5(this); onMouseOut=item_out5(this); onClick="go(\''+item_array5[1]+'\')"><a href="'+item_array5[1]+'">'+item_array5[0]+'</a></div>');
                                        }
                                    // Or if it current, then removes hyperlink and change it background color to current items background color
                                    else
                                        {
                                            document.write('<div id="current_item5">'+item_array5[0]+'</div>');
                                        }
        
                                }
                        }
                        
                    document.write('</div>');            
                document.write('</div>');
            }
            
        document.write('</div>');
    }
    
function stoperror5()
    {
        return true
    }
    
window.onerror=stoperror5
