jQuery.noConflict();

jQuery(document).ready(function(){
			
	jQuery('.nav_new_sub').hide();

jQuery('.nav_new').mouseover(function() {
	jQuery('.nav_new_sub').slideDown({ duration: 100});

jQuery(this).parent().hover(function() {
		}, function(){	
			jQuery(this).parent().stop().find(".nav_new_sub").slideUp({ duration: 0}) //When the mouse hovers out of the subnav, move it back up
			
			//slideToggle(jQuery(this).parent().find("ul.subnav"),true).show();
		});
		//Following events are applied to the trigger (Hover events for the trigger)
		}).hover(function() { 	
		}, function(){	//On Hover Out
			jQuery(this).parent().stop().find(".nav_new_sub").slideUp({ duration: 100}); //On hover out, remove class "subhover"
			
			
	});
			
jQuery(function(){
	jQuery('.scroll-pane').jScrollPane(
									   {
										   showArrows:true,
										   reinitialiseOnImageLoad: true
									   }
									   );
});
	

var inprog = 0;
function clearAnimation(){
	jQuery(this).parent().find("ul.subnav").stop();	
}
	//jQuery("ul.subnav").parent().append("<span></span>"); //Only shows drop down trigger when js is enabled - Adds empty span tag after ul.subnav
	
	jQuery("ul.topnav li .subHover").mouseover(function() { //When trigger is clicked...
		
		//Following events are applied to the subnav itself (moving subnav up and down)
		
			jQuery(this).parent().stop().find("ul.subnav").slideDown({ duration: 100}) //When the mouse hovers out of the subnav, move it back up
			

		//jQuery(this).parent().find("ul.subnav").animate({height: height},{queue:false, duration:600, easing: 'easeOutBounce'}).show();

		jQuery(this).parent().hover(function() {
		}, function(){	
			jQuery("ul.topnav li .subHover").stop().animate({backgroundPosition: '-0% 0px'}, "fast");
			jQuery("ul.topnav li .subHover").removeClass("onHover");
			jQuery(this).parent().stop().find("ul.subnav").slideUp({ duration: 0}) //When the mouse hovers out of the subnav, move it back up
			
			//slideToggle(jQuery(this).parent().find("ul.subnav"),true).show();
		});
		//Following events are applied to the trigger (Hover events for the trigger)
		}).hover(function() { 	
			jQuery(this).stop().animate({backgroundPosition: '100% 0px'}, "fast");
			jQuery(this).addClass("onHover");
			jQuery(this).addClass("subhover"); //On hover over, add class "subhover"
		}, function(){	//On Hover Out
			jQuery(this).removeClass("subhover"); //On hover out, remove class "subhover"
			
			
	});
	
	jQuery("ul.topnav li .atHover").mouseover(function() { //When trigger is clicked...
		
		//Following events are applied to the subnav itself (moving subnav up and down)
		
			jQuery(this).parent().stop().find("ul.subnav").slideDown({ duration: 100}) //When the mouse hovers out of the subnav, move it back up
			

		//jQuery(this).parent().find("ul.subnav").animate({height: height},{queue:false, duration:600, easing: 'easeOutBounce'}).show();

		jQuery(this).parent().hover(function() {
		}, function(){	
			jQuery("ul.topnav li .atHover").removeClass("onHover");
			jQuery(this).parent().stop().find("ul.subnav").slideUp({ duration: 0}) //When the mouse hovers out of the subnav, move it back up
			
			//slideToggle(jQuery(this).parent().find("ul.subnav"),true).show();
		});
		//Following events are applied to the trigger (Hover events for the trigger)
		}).hover(function() { 	
			jQuery(this).addClass("onHover");
			jQuery(this).addClass("atHover"); //On hover over, add class "atHover"
		}, function(){	//On Hover Out
			jQuery(this).removeClass("atHover"); //On hover out, remove class "atHover"
			
			
	});
	
var currentSlide = 0;
	

});

function arrayTest(myArray){
    for(i=0;i<myArray.length;i++){
        if(myArray[i]==onCheck){
                return true;
        } else {
				return false;	
		}
    }
}



