

// da ne pravi konfllikti so drugi skripti
jQuery.noConflict();
jQuery(function() {
	// hide all the sub-menus
	jQuery(".menu_link").next().hide();
	
	// add a link nudging animation effect to each link
//	$("#jQ-menu a, #jQ-menu .menu_link").hover(function() {
//        $(this).stop().animate( {
//			fontSize:"14px",
//			paddingLeft:"0px",
//			bgImage:"../../images/menu_item_over.png",
//			//ovde se promenuva bojata na tekstot za hover
//			color:"black" 
//        }, 300);
//    }, function() {
//        $(this).stop().animate( {
//			fontSize:"14px",
//			paddingLeft:"0",
//			color:"#FFFFFF"
//        }, 300);
//    });
	
	// set the cursor of the toggling span elements
    jQuery(".menu_link").css("cursor", "pointer");
	
	// prepend a plus sign to signify that the sub-menus aren't expanded
//    $(".menu_link").prepend("+ ");
	
	// add a click function that toggles the sub-menu when the corresponding
	// span element is clicked
   jQuery(".menu_link").click(function() {
		jQuery(this).next().toggle(500);
		
		// switch the plus to a minus sign or vice-versa
//		var v = $(this).html().substring( 0, 1 );
//		if ( v == "+" )
//			$(this).html( "-" + $(this).html().substring( 1 ) );
//		else if ( v == "-" )
//			$(this).html( "+" + $(this).html().substring( 1 ) );
	});
	jQuery(".menu_sub_link").click(function() {
	    $(this).parent().find(".menu_link").next().show();
	});
});