$(document).ready(function() {
	//select first menu item if none is selected
	var active_is_set=false;
	
	$('#menu ul li').each(
	 function(){
		 if ($(this).hasClass('active_menu_item'))
	    active_is_set=true;
	})
	
	$('#menu ul:first')
		.addClass('mainmenu')
		.find( 'li:not(:last)' ).append( ' ' ).end()
		.find('a').each( function() { $( this ).html( $( this ).html().replace( / /g, '<span style="color:white;">_</span>' ) ); } ).end()
		.append( '<li class="break" style="margin-top: 10px;"></li>' );
	;
	$('#header').css('height',89);
	$('#footertext .segmenttext_body').append('<span class="break"></span>');
	
	if (!active_is_set){
	 $('#menu ul li:first').addClass('active_menu_item');
	} 
	
	$('#container').css('margin-bottom','28px');
	$('#container #gallery').css('margin-right','100px');
	
	$('#menu ')
		.prepend('<ul><li class="right"><a href="javascript:change_language(\'NL\')" class="NL">nl</a> / <a href="javascript:change_language(\'EN\')" class="EN">en</a></li></ul>')
		.find('a.' + LANGUAGE + '').addClass('active')
	;
	
	$( 'head' )
		.attr( 'profile', 'http://www.w3.org/2005/10/profile' )
		.append( '<link rel="icon" type="image/png" href="/files/91/favicon.png" />' )
	;
	
	/*
	$('head')
		.append('<script type="text/javascript" src="'+BASE_DIR+'js/cufon.js"></script>' )
		.append('<script type="text/javascript" src="'+BASE_DIR+'files/91/js/Helvetica_Neue.font.js"></script>')
	;
	Cufon.replace('h1');
	Cufon.replace('#footertext');
	*/
});

var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-21122968-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

