// JavaScript Document


	
	

//hides and shows appropriate sections for left vertical menu links	
function showSection_2( sectionID_2 ) {
 	$('div.section_2').css( 'display', 'none' );
    $('div'+sectionID_2).css( 'display', 'block' );
}
$(document).ready(function(){
    if (
        $('ul#verticalNavx_2 li a').length &&
        $('div.section_2').length
    ) {
        $('div.section_2').css( 'display', 'none' );
        $('ul#verticalNavx_2 li a').each(function() {
            $(this).click(function() {
                showSection_2( $(this).attr('href') );
				return false;
            });
        });
        $('ul#verticalNavx_2 li:first-child a').click();
    }
});	
	


//list of separate product items - videos, images, specs, etc. //  
$(document).ready(function(){
var originalBG2 = $("ul#verticalNavx_2 li").css("background-color");
var fadeColor = "#224EB3";


  
  
  $("ul#verticalNavx_2 li").hover( function () {
    
		$(this).animate( { backgroundColor:fadeColor}, 250 )
  },
  function () {
	   
   	if ($(this).hasClass('active')) {
		$(this).css('background-color', 'fadeColor');
	}
	else
	{
		$(this).animate( {backgroundColor: originalBG2}, 300 )
	}
	
	
  }
  );
  
  
  //added this to change background color onclick2
   $("ul#verticalNavx_2 li a").click( function () {
	   	
		$(this).parent().addClass('active').siblings().removeClass('active');
		$('li.active').css('background-color', 'fadeColor');
		$('li.active').siblings().css('background-color','#1C3E8E'); 
		
  }
  );
   //end
  
  
 });


/*  product heading links */
$(document).ready(function(){

	$('.tabbernav a').css( {backgroundPosition: "0 0"} )
		
	
	$('.tabbernav a').live('mouseover mouseout', function(event) {
		  if (event.type == 'mouseover') {
			// do something on mouseover
			$(this).stop().animate({backgroundPosition:"(0 -250px)"}, {duration:300});
			
		  } else {
			// do something on mouseout
			$(this).stop().animate({backgroundPosition:"(0 0)"}, {duration:300});
			
		  }
	});
	
		
});

