	$.noConflict();
	jQuery(document).ready(function($) {
			$('#main-menu ul.menu').superfish({ 
            animation: {opacity:'show',height:'show'},   // slide-down effect without fade-in 
            delay:     350               // 1.2 second delay on mouseout 
       		 }); 
			$("div.tabs").tabs({ 
				fx: { opacity: 'toggle', height: 'toggle',  duration: 'slow' }
			});
			$("div.tour").tabs({ fx: [{opacity:'toggle', duration:'fast'},   // hide option
                        {opacity:'toggle', duration:'slow'}] }); // show option

			$("div.accordion").accordion();
			
			//COMMENT FORM VALIDATOR
			var name = $('#commentform p.comment-form-author input');
			var email = $('#commentform p.comment-form-email input');
			var comment = $('#commentform p.comment-form-comment textarea');			
			if ( name != '' ) name.addClass('required');
			if ( comment != '' ) comment.addClass('required');			
			if ( email != '' ) email.addClass('required email');			
			$("#commentform").validate();
			$("#contactform").validate();
			$('#contactform').ajaxForm(function() { 
				alert("Your message has been sent!"); 
				$('#contactform').clearForm();
			}); 			
			
			//TOGGLE
			jQuery(".toggle_body").hide(); 
			jQuery("h4.toggle_head").toggle(function(){
				jQuery(this).addClass("toggle_active");
				}, function () {
				jQuery(this).removeClass("toggle_active");
			});
			jQuery("h5.toggle_head").click(function(){
				jQuery(this).next(".toggle_body").slideToggle();
		
			});
			
			$('.hr').click(function(){
				$('html, body').animate({scrollTop:0}, 'slow');
			}); 
			
			 $("ul.tabs").tabs("div.panes>div"); 
			 
			$('.content-slideshow-random').nivoSlider({
				effect:'random',
				slices:6,
				animSpeed:500,
				pauseTime:3000,
				startSlide:0, 
				directionNav:true,
				directionNavHide:true,
				controlNav:false,
				keyboardNav:false,
				pauseOnHover:true,
				manualAdvance:false
			});
			$('.content-slideshow-fade').nivoSlider({
				effect:'fade',
				slices:6,
				animSpeed:500,
				pauseTime:3000,
				startSlide:0, 
				directionNav:true,
				directionNavHide:true,
				controlNav:false,
				keyboardNav:false,
				pauseOnHover:true,
				manualAdvance:false
			});	
			$('.content-slideshow-fold').nivoSlider({
				effect:'fold',
				slices:6,
				animSpeed:500,
				pauseTime:3000,
				startSlide:0, 
				directionNav:true,
				directionNavHide:true,
				controlNav:false,
				keyboardNav:false,
				pauseOnHover:true,
				manualAdvance:false
			});	
			$('.content-slideshow-sliceup').nivoSlider({
				effect:'sliceUp',
				slices:6,
				animSpeed:500,
				pauseTime:3000,
				startSlide:0, 
				directionNav:true,
				directionNavHide:true,
				controlNav:false,
				keyboardNav:false,
				pauseOnHover:true,
				manualAdvance:false
			});	
			$('.content-slideshow-slicedown').nivoSlider({
				effect:'sliceDown',
				slices:6,
				animSpeed:500,
				pauseTime:3000,
				startSlide:0, 
				directionNav:true,
				directionNavHide:true,
				controlNav:false,
				keyboardNav:false,
				pauseOnHover:true,
				manualAdvance:false
			});	
			$('.content-slideshow-sliceupdown').nivoSlider({
				effect:'sliceUpDown',
				slices:6,
				animSpeed:500,
				pauseTime:3000,
				startSlide:0, 
				directionNav:true,
				directionNavHide:true,
				controlNav:false,
				keyboardNav:false,
				pauseOnHover:true,
				manualAdvance:false
			});				

			 
	});
