$(document).ready(function() {
	var curLocation = document.location.toString().split("/");
	var realLocation = '';
	for (var i=3; i < curLocation.length && i < (3+2); i++) { // strip away http://..../
		realLocation += "/" + curLocation[i];
	};


	$('ul#menu li a[href=' + realLocation + ']').parent().addClass('selected');
});

$(document).ready(function(){
	$('h2').flash(
		{ 
			src: '/swf/museo.swf',  
			flashvars: { 
				css: [
				'* { color: #ffffff; }',
				'a { color: #0055CC; text-decoration: none; }',
				'a:hover { text-decoration: underline; }'
				].join(' ')
			},
			wmode : 'transparent'
		},
		{ version: 7 },
		function(htmlOptions) {
			htmlOptions.flashvars.txt = this.innerHTML;
			this.innerHTML = '<span>'+this.innerHTML+'</span>';
			var $alt = $(this.firstChild);
			htmlOptions.height = $alt.height();
			htmlOptions.width = $alt.width();
			$alt.addClass('alt');
			$(this)
			.addClass('flash-replaced')
			.prepend($.fn.flash.transform(htmlOptions));
		},
		{ update: false }
	);
});
