
jQuery.fn.jpBottomNav = (function() {

//Slider Nav by jimypixel.com

return this.each(function(){

var $opner = $(this);

var opnerID = $opner.attr('class');

$("."+opnerID+"-c").hide();

$opner.addClass('mb_nv_off');

$opner.click(function(){

$('li.mb_nv_on').removeClass('mb_nv_on').addClass('mb_nv_off');
$('li.mb_nv_opnd').hide().removeClass('mb_nv_opnd');

$opner.removeClass('mb_nv_off').addClass('mb_nv_on');

$("."+opnerID+"-c").show().addClass("mb_nv_opnd");

});




});

});


jQuery(document).ready(function() {
 
 
 var sliLast  = jQuery('div.handle').size();
 
	jQuery(".test").hrzAccordion({
	
	
	
	
	handlePosition:"left",
	eventTrigger:"click",
	cycle: false,
	completeAction: function(i){
	
	

		
//	 	jQuery("div.handle").eq(0).addClass('menuleftBorder');
//	 	jQuery("div.handle").eq(-1).addClass('menurightBorder');
		
//		jQuery("div.handle").eq(i).addClass('menuleftBorder');
//		jQuery("div.handle:last").addClass('menurightBorder');


	
//	var value = i+1;
	
//	if (value%2 == 0) {
	
	
//	}
		
//	else {
	
	
	
//	}
		
	
	},
		
	
	openOnLoad: sliLast
	
	
	});
	

	jQuery(".test li:not(:last) div div div").css({width: "98%"})

 	jQuery('.contentWrapper').jScrollPane({
 	
 	scrollbarOnLeft: true
 	
 	});
 	
 	
 	// style the handles
 	
 	
 	
 	
 	// Start Bottom Nav
 	
 	
 jQuery('#mb_bottom_nav li').each(function(){
 
 jQuery(this).jpBottomNav();
 
 });
 	
  jQuery('#mb_bottom_nav li').eq(0).click();
  

 });
