$(document).ready( function() {
	
	$('.menu6 a').each( function( i, el ){
		try { el.style.removeAttribute( 'filter' ); } catch( e ){}
	});
	$('.menu5 a').each( function( i, el ){
		try { el.style.removeAttribute( 'filter' ); } catch( e ){}
	});
	

	
	
	$(".colapsChildren").click( function() {
		var divCount = $(this).attr('divCount');
		if($(this).attr("hidden") != 1){
			$("div.colapsDiv[divCount=" + divCount + "]").slideDown( function(){
				$(this).css('display', 'inline-block') 
			});
			$(this).attr("hidden", 1);
			$(this).find(".colapsArrow").attr("src","images2/minus_1.jpg");
		}
		else
		{
			$("div.colapsDiv[divCount=" + divCount + "]").slideUp();
			$(this).attr("hidden", 0);
			$(this).find("img").attr("src","images2/plus_1.jpg");
		}
	});
	
	
	
	$(".colapsChildren").hover( function() {
		$(this).css("cursor","pointer");	
	}, function() {
		$(this).css("cursor","auto");	
	});
	
	
	$(".childInKat").each( function() {
			
		var divCount = $(this).attr("parentId");
		
		$(".colapsChildren[divCount=" + divCount + "]").attr("hidden", 1);
		$(".colapsChildren[divCount=" + divCount + "]").find(".colapsArrow").attr("src","images2/minus_1.jpg");
		$(".colapsDiv[divCount=" + divCount + "]").attr("hidden",1);
		
			$(".colapsDiv").each( function() {
				if($(this).attr("hidden") == 1)
					$(this).show();
			});
	});
	
});
