

/*     plik ten jest wlasnoscia serwisu Strefa9.pl     */


/*     jakiekolwiek kopiowanie i edytowanie jest surowo zabronione    */
/*     Copyright (c) 2001-2010 Strefa9.pl. All rights reserved.       */


$(document).ready(function(){
	$('ul#main-menu li:last-child').addClass('last');
	$('div.box ul.articles-list li:last-child').addClass('last');
	$('ul#article-options li:last-child').addClass('last');
	
	$('ul#main-menu ul.home').css('background-color', 'transparent');

	$('ul#main-menu li.branch:hover ul.submenu').css('display', 'none');
	var menuIndex = $('ul#main-menu li.active').index();

	$('ul#main-menu > li:not(.active)').hover(function() {
		$('ul#main-menu > li.active').removeClass('active');
		$('ul#main-menu > li').eq(menuIndex).children('ul').fadeOut('normal');
		
		$(this).children('ul').show();
		$(this).addClass('active');
	}, function() {
		$(this).children('ul').fadeOut('normal');
		$(this).removeClass('active');
		
		$('ul#main-menu > li').eq(menuIndex).addClass('active');
	});
});


$(document).ready(function() {
  $("li.submenu2").mouseenter(function() {
    $("div.subbwypr").show("slow");
      $('a.subwypr').css('background-color', '#4370a7');
      $('a.subwypr').css('color', 'white');
  });
});
$(document).ready(function() {
  $("li.submenu2").mouseleave(function() {
    $("div.subbwypr").hide("slow");
      $('a.subwypr').css('background-color', 'white');
      $('a.subwypr').css('color', '#4370a7');
  });
});


$(document).ready(function() {
  $("li.submenu3").mouseenter(function() {
    $("div.subbsms").show("slow");
      $('a.subsms').css('background-color', '#4370a7');
      $('a.subsms').css('color', 'white');
  });
});
$(document).ready(function() {
  $("li.submenu3").mouseleave(function() {
    $("div.subbsms").hide("slow");
      $('a.subsms').css('background-color', 'white');
      $('a.subsms').css('color', '#4370a7');
  });
});


jQuery(document).ready(function() { 
// xhtml 1.0 strict way of using target _blank 
jQuery('.bookmarks a.external').attr("target", "_blank"); 
// this block sets the auto vertical expand when there are more than 
// one row of bookmarks. 
}); 
      

