$(document).ready(function() {
  $('a.lightbox').lightbox();
  $('a.fancy').lightbox();
});

// execute your scripts when the DOM is ready. this is mostly a good habit
$(function() {

	// initialize scrollable
	$(".scrollable").scrollable({ disabledClass: 'stat_inactive', mousewheel: true });

});

$(document).ready(function() {
	var pathname = window.location.pathname;
	
	//if (pathname == '/hu' || pathname == '/en') {
		$('.mv_main_page ul').show();
  //}
	
	active_a = $('li a[href$="'+pathname+'"]');
	if (active_a) {
		active_a.parents('ul').show();

		var myClass = active_a.parents('li').attr("class") + ' ' + active_a.parents('li').parents('li').attr("class");

		if (active_a.parents('li').parents('li').attr("class") == null){
			$("#divSelect").hide();
		}	

		active_a.parents('ul > li').addClass('active');
	}
	$('body').addClass(myClass);
  
  
  //$('#division').slideDown('16000');
});

