/* Remove Testimonial When Using Replocator */

$(document).ready(function() {
	$('#submit').click(function() {
		$('#testimonials').fadeOut('slow')	
	})	
});

/* LS Series & Independent Series - Specs Tab Toggle */

$(document).ready(function(){
		$('.independent').click(function() {
				$('#specs_wrapper').css('display','none')
				//$('.fourth').css('display','none')
	})
	
	$('.master').click(function() {
				$('#specs_wrapper').css('display','block')
				//$('.fourth').css('display','inline')
	})
});



/* Search Results Ajax */

// prepare the form when the DOM is ready 
$(document).ready(function() { 
    // bind form using ajaxForm 
    $('#search_form').ajaxForm({ 
        // target identifies the element(s) to update with the server response 
        target: '#results', 
 
        // success identifies the function to invoke when the server response 
        // has been received; here we apply a fade-in effect to the new content 
        success: function() { 
            $('#results').fadeIn('7500');
        } 
    }); 
});   

/* Search Results Ajax - For Rep Locator Contact Form is in the head of the results page */

 

/*Highlight Features*/

$(document).ready(function(){	
	$("#hightlight_slider").easySlider({
		auto: false,
		continuous: true 
	});
});

//$(document).ready(function(){	
//		$("#hightlight_slider").easySlider();
//	});


/*ToolTip*/

$(document).ready(function(){	
	$("#hightlight_slider a").easyTooltip();
});




	
/*Tab Feature*/

/*
$(function () {
    var tabContainers = $('div.tabs > div');
    
    $('div.tabs ul.tabNavigation a').click(function () {
        tabContainers.hide().filter(this.hash).show();
        
        $('div.tabs ul.tabNavigation a').removeClass('selected');
        $(this).addClass('selected');
        
        return false;
    }).filter(':first').click();
});
*/
  
$(function () {
 
  $('#tabs ul').tabs(); 

});

$(function () {
 
  $('#tab_nav ul').tabs(); 

});


/* Spec Table Alternating Rows */

$(function () {
	$(".info_tables tr:even").addClass("even");
	$('.features_table_data td:nth-child(2)').addClass('lanco_table'); //applies class to features table
	$('.features_table_data td:nth-child(3)').addClass('grey_table');
});

$(function () {
		$(".features_table_data").find("th:gt(0)").remove(); //removes extra th in table with vertical tabs
});


/* Comparisons Alternating Rows */

$(function () {
	$('.comparisons_table_data td:nth-child(2)').addClass('grey_table narrow');
	$('.comparisons_table_data td:nth-child(3)').addClass('lanco_table'); //applies class to features table
	$('.comparisons_table_data td:nth-child(4)').addClass('grey_table');
	$('.comparisons_table_data td:nth-child(5)').addClass('grey_table');
});

$(function () {
		$(".comparisons_table_data").find("th:gt(0)").remove(); //removes extra th in table with vertical tabs
});




/* Spec Table Column Highlight */

//$(function () {
//	 $('.specs_table').colorize( {columns: true, oneClick:true} );
//});


/*Last Box Shadow Alignment - For Cross-Browser*/

$(function () {

 $("div.box:last-child")
        .css({marginBottom:"-15px"})
      });
      
