var active = null;
$(function() {

$(".menu-list > li").hover(
  function () {
	if (active) {

		if (active.find('li').size() !=  $(this).find('li').size()) {  active.hide();}	
	}
    $(this).find('.submenu-list').show("slow");
	active = $(this).find('.submenu-list');
  }, 
  function () {

  }
);

$(".menu-list li .submenu-list").hover(
  function () {
	
    }, 
  function () {
    $(this).hide("slow");
	active = null;
  }
);




	$(".test3").hrzAccordion({openOnLoad     :1,
							 handlePosition     :"right",
							 eventTrigger			: "mouseover",
							 containerClass     	: "container3",
							  listItemClass      	: "listItem3",					
							  contentWrapper     	: "contentWrapper3",
							  contentInnerWrapper	: "contentInnerWrapper3",
						      handleClass        	: "handle3",
							  handleClassOver    	: "handleOver3",
							  handleClassSelected	: "handleSelected3"
							 });
	 
	 
	$('#cycle-container').cycle({ 
    fx:     'fade', 
    timeout: 6000, 
    delay:  -2000,
    pager:  '#pager',
	pagerAnchorBuilder: function(idx, slide) { 
        return '<span class="pager"></span>'; 
    } 
     
});
	
	$('.corner-full').corner();
	$('#topbanner').corner();
	$('.handle3').last().corner("tr br");
	$('.handleInnerWrapper').last().corner("tr br");
	$('.handleInnerWrapper').last().find('img').corner("tr br");
	$('.border-img').corner("3px");
	$('#topmenu-firstlevel li').corner("3px");
	 
	 
	$(".submenu-list").topZIndex( { increment: 10 } ); 


});
