// JavaScript Document

function addbookmark()
{ 
	title = "Papendrecht.net - Alles over Papendrecht";
	url="http://www.papendrecht.net"   
	// Blogger - Replace with <$BlogItemTitle$>   
	// MovableType - Replace with <$MTEntryTitle$> url = "Webpage URL";  
	// Blogger - Replace with <$BlogItemPermalinkURL$>   
	// MovableType - Replace with <$MTEntryPermalink$>  
	// WordPress - <?php bloginfo('url'); ?>	
	if (window.sidebar) { 
		// Mozilla Firefox Bookmark		
		window.sidebar.addPanel(title, url,"");	
	} 
	else if( window.external ) 
	{ 
		// IE Favorite		
		window.external.AddFavorite( url, title); 
	}	
	else if(window.opera && window.print) 
	{ 
		// Opera Hotlist		
		return true; 
	} 
}

/* showhidesub.js -- a simple, yet powerful javascript to onclick a menu ;-) */ 

initJS();

function initJS ()
{
	document.write("<style type='text/css'>#menu #nav li.menu:hover ul, #menu #nav li.ie_does_hover ul {display:none;}</style>");
	navigatie=document.getElementsByTagName('ul');
	for (i=0; i<navigatie.length;i++)
	{
		if (navigatie[i].id=='nav')
		{			
			break;
		}
	}
	
	lis=navigatie[i].getElementsByTagName('li');
	for (i=0; i<lis.length;i++)
	{	
		lis[i].onclick=function(){showsub(this);};
	}
	
}

function showsub(menu)
{
	treeinit();
	
	tree=menu.getElementsByTagName('ul');
	for (i=0; i<tree.length;i++)
	{
		tree[i].style.display='block';
	}
}

function treeinit()
{
	navigatie=document.getElementsByTagName('ul');
	for (i=0; i<navigatie.length;i++)
	{
		if (navigatie[i].id=='nav')
		{			
			break;
		}
	}
	
	uls=navigatie[i].getElementsByTagName('ul');
	for (i=0; i<uls.length;i++)
	{	
		uls[i].style.display='none';
	}
}

