
var webRoot = '/';

function do_dataforkje(e)
{
	if( document.all )
	{	
		var Xpos = event.x;
		var Ypos = event.y;
		mmousemove( event );
	}
	else if(e)
	{
		var Xpos = e.pageX;
		var Ypos = e.pageY;
		mmousemove( e );
	}

	var df = document.getElementById("dataforkje");

	var hdr = document.getElementById("header");

	if( df && hdr )
	{
		if( Xpos < hdr.offsetLeft + xcontainment( hdr ) ) Xpos = hdr.offsetLeft + xcontainment( hdr );
		if( Xpos > hdr.offsetLeft + xcontainment( hdr ) + 805 - 7 ) Xpos = hdr.offsetLeft + xcontainment( hdr ) + 805 - 7;

		df.style.left = ( Xpos - 10 ) +'px';

		df.style.visibility = "visible";
	}; 
}


	
	function print_item( label , url , color )
	{
		var js = "javascript: window.open('"+url+"','_self')";
		mprint('<TR><TD onclick="'+js+'" width="40"></TD><TD onclick="'+js+'" class="mitem" style="border-color: '+color+';" height="29">');
		mprint('<a href="'+url+'">');
		mprint(label+'</a></TD></TR>');
	};

	function print_last( label , url , color )
	{
		var js = "javascript: window.open('"+url+"','_self')";
		mprint('<TR><TD onclick="'+js+'" class="mlast" style="border-color: '+color+';" width="40">&nbsp;</TD><TD onclick="'+js+'" class="mitem" style="border-color: '+color+';" height="29">');
		mprint('<a href="'+url+'">');
		mprint(label+'</a></TD></TR>');
	};

function build_header()
{
    if(  ! is_badbrowser()  )
	{
		msetcontainer( 'wsdmenu' );

		mstart('sub_company','menu',true);

		mprint('<TABLE width="135" border="0" cellpadding="0" cellspacing="0" style="border-color: #81C241; z-order:3;">' );

		print_item( 'home' , webRoot+'files/index.php' , '#81C241' );

		print_item( 'Het bedrijf' , webRoot+'files/het_bedrijf.php' , '#81C241' );

		print_item( 'Het product' , webRoot+'files/het_product.php' , '#81C241' );

		print_item( 'Het kantoor' , webRoot+'files/het_kantoor.php' , '#81C241' );

		print_item( 'De winkel' , webRoot+'files/de_winkel.php' , '#81C241' );

		print_item( 'De makers' , webRoot+'files/de_makers.php' , '#81C241' );

		print_last( 'Nieuws' , webRoot+'files/webspace_nieuws.html' , '#81C241' );

		mprint('</TABLE>');


		mstart('sub_services','menu',true);

		mprint('<TABLE width="135" border="0" cellpadding="0" cellspacing="0">'  );

		print_item( 'Webontwerp' , webRoot+'files/webontwerp.php' , '#EF8442' );

		print_item( 'Programmeren' , webRoot+'files/programmeerwerk.php' , '#EF8442' );

		print_item( 'Klantenservice' , webRoot+'files/klantenservice.php' , '#EF8442' );

		print_last( 'Hosting' , webRoot+'files/hosting.php' , '#EF8442' );

		mprint('</TABLE>');


		mstart('sub_portfolio','menu',true);

		mprint('<TABLE width="135" border="0" cellpadding="0" cellspacing="0">'  );

		print_item( 'Websites' , webRoot+'files/websites.php' , '#29A5BD' );

		print_item( 'Design' , webRoot+'files/design.php' , '#29A5BD' );

		print_item( 'Games' , webRoot+'files/games.php' , '#29A5BD' );

		print_item( 'Wallpapers' , webRoot+'files/wallpaper.php' , '#29A5BD' );
		
		print_last( 'Experimental' , webRoot+'files/experimental.php' , '#29A5BD' );
		
		mprint('</TABLE>');


		mstart('sub_prizes','menu',true);

		mprint('<TABLE width="134" border="0" cellpadding="0" cellspacing="0">'  );

		print_last( 'EU Domeinen' , webRoot+'files/eudomeinen.php' , '#E7E739' )
		
		print_last( 'De prijzen' , webRoot+'files/de_prijzen.php' , '#E7E739' );

		mprint('</TABLE>');

		mstart('sub_contact','menu',true);

		mprint('<TABLE width="134" border="0" cellpadding="0" cellspacing="0">');

		print_item( 'De locatie' , webRoot+'files/de_locatie.php' , '#7B5A9C' );

		print_last( 'De E-mail' , webRoot+'files/email.php' , '#7B5A9C' );

		mprint('</TABLE>');

		
		mstart('sub_login','menu',true);

		mprint('<TABLE width="134" border="0" cellpadding="0" cellspacing="0">' );

		print_item( 'Klanten' , webRoot+'files/members.php' , '#294252' );

		print_last( 'Personeel' , webRoot+'files/personeel.php' , '#294252' );

		mprint('</TABLE>');

		mcreate();

		var nj = document.getElementById("nojava_submenu");

		nj.style.visibility = "hidden";
	};
};
	//do_dataforkje(false);

