$(document).ready(function() {
	$('li.sub_menu_list_container').mouseenter(function(event){
		var parent_id = $(this).attr('parent_id');
		var id = $(this).attr('id');
		var ul_children = $(this).parents('ul').children();
		jQuery.each(ul_children , function(index, value){
			if($(value).attr('parent_id') == id) {
				$(value).fadeIn();
				jQuery.each(ul_children , function(index2, value2){
					if($(value2).attr('parent_id') >= $(value).attr('id')) {				
						$(value2).fadeOut();
					}
				});
			}
		});
	});
});

$(function() {
	var shadowbox_conf = {
		animate: true,
		animateFade: true,
		animSequence: "sync",
		autoDimensions: false,
		modal: false,
		showOverlay: true,
		overlayColor: "#ffffff",
		overlayOpacity: 1,
		flashBgColor: "#ffffff",
		autoplayMovies: true,
		showMovieControls: true,
		slideshowDelay: 0,
		resizeDuration: 0.35,
		fadeDuration: 0.35,
		displayNav: true,
		continuous: false,
		displayCounter: true,
		counterType: "default",
		counterLimit: 10,
		viewportPadding: 20,
		handleOversize: "resize",
		handleUnsupported: "link",
		initialHeight: 160,
		initialWidth: 320,
		enableKeys: true,
		skipSetup: false,
		flashParams: {bgcolor:"#000000", allowFullScreen:true},
		flashVars: {},
		flashVersion: "9.0.0"

	};
	Shadowbox.init(shadowbox_conf);
});
