// JavaScript Document


$(document).ready(function() {
						   $("#menu > ul > li[class!=outgoing] > a").each(function() {
																  $(this).attr("href", $(this).attr("href") + "#top");
																  });
						   $("#menu > ul > li > ul > li > a").each(function() {
																  $(this).attr("href", $(this).attr("href") + "#top");
																  });
						   $("#menu > ul > li > cp").bind("mouseover", function() {
																			   $(this).children('ul').show(0);
																			   });
						   $("#menu > ul > li > cp").bind("mouseout", function() {
																			   $(this).children('ul').hide(0);
																			   });
						   $("#menu > ul > li > ul > li > cp").bind("mouseover", function() { $(this).parent().show(0); });
						   $("#menu > ul > li > ul > cp").bind("mouseout", function() { $(this).hide(0) ; });
                                                   $("#addArr > a").bind("click", function() { 
                                                      if($('#addArrContent').css('display') == 'none') {
                                                         $.get('wp-content/themes/sverok/event_upload.php', function(data) {
                                                         $('#addArrContent').html(data);
                                                         });
                                                      }
                                                      $('#addArrContent').slideToggle(300);
                                                      return false;
                                                   });
});