

$(document).ready(function(){
	$("#nav-one li").hover(
		function(){ $("div", this).fadeIn("fast"); }, 
		function() { } 
	);
	if (document.all) { //for IE6
		$("#nav-one li").hoverClass ("sfHover");
	}
	
	$(".ro").hover(
		function () {$(this).css({'border-bottom': '1px solid'});}, function () {$(this).css({'border-bottom': 'none'});}
	);
	
	$(".ro").focus(
		function () {$(this).css({'border-bottom': '1px solid'});}, function () {$(this).css({'border-bottom': 'none'});}
	);

	$(".ro").blur(
		function () {$(this).css({'border-bottom': 'none'});}, function () {$(this).css({'border-bottom': 'none'});}
	);

	
	if (document.all) { //for IE 6
		$(".ro").hover( 
			function () {$(this).css({'text-decoration': 'underline', 'border-bottom': 'none'});},function () {$(this).css({'text-decoration': 'none', 'border-bottom': 'none'});}
		);
		$(".ro").focus( 
			function () {$(this).css({'text-decoration': 'underline', 'border-bottom': 'none'});},function () {$(this).css({'text-decoration': 'none', 'border-bottom': 'none'});}
		);
		$(".ro").blur( 
			function () {$(this).css({'text-decoration': 'none', 'border-bottom': 'none'});},function () {$(this).css({'text-decoration': 'none', 'border-bottom': 'none'});}
		);
	}
	
	
	if($('.filter')) {						   
		   initMenu();
	}
	
	
	
});
	  
$.fn.hoverClass = function(c) {
	return this.each(function(){
		$(this).hover( 
			function() { $(this).addClass(c);  },
			function() { $(this).removeClass(c); }
		);
	});
};	  


function initMenu() {
  $('.filter div.options').hide();
  $('.filter li a').click(
    function() {
        $(this).siblings('.summary').slideToggle('normal');	
		$(this).siblings('.options').slideToggle('normal');	
		if ($(this).children('img').attr('src') == 'images/structure/plus_trans.gif') {
			$(this).children('img').attr("src","images/structure/minus_trans.gif");
		}
		else {
				$(this).children('img').attr("src","images/structure/plus_trans.gif");
		}
	}
   );
  
  $('.filter li a').keypress(function() {
		 //this.blur();
		 this.hideFocus = false;
		 this.style.outline = null;
	});
	
	
	$('.filter li a').mousedown(function() {
		 this.blur();
		 this.hideFocus = true;
		 this.style.outline = 'none';
		 this.style.backgroundColor = '#fff';
	});
	$('.filter li a').mouseup(function() {
		 this.blur();
		 this.hideFocus = true;
		 this.style.outline = 'none';
		 this.style.backgroundColor = '#fff';
	});
  
  
 }

