$(document).ready(function()
{
	// Menu Hover IE 6 
	if( $.browser.msie && $.browser.version < 7 )
		$('#menu ul.main li.menu_item').hover(function(){ $(this).addClass('hover').find('ul.submenu').height(50); },function(){ $(this).removeClass('hover'); });

	// Striped tables
	$("table.productinformation tbody tr:even").css("background-color", "#fff");
	$("table.productinformation tbody tr:odd").css("background-color", "#f4f4f4");

	// Adds tracking to links containing the class .pdf 
 	$("#contentpage .pdf").each(function() { 
		var TITLE = this.title; 
		$(this).attr("onclick","pageTracker._trackEvent('PDF', 'Downloads', '"+ TITLE +"');");
	}); 

	// Accordion menu
	$(".accordion h3:first").addClass("active");
	$(".accordion div.answer:not(:first)").hide();

	$(".accordion h3").click(function(){
		$(this).next("div.answer").slideToggle("slow")
			// Commenting this line out enables answers to maintain visible
			//	.siblings("div.answer:visible").slideUp("slow");
		$(this).toggleClass("active");
		$(this).siblings("h3").removeClass("active");
	});

	//Shadowbox video player app  -  Define basic Shadowbox options for using the image player.
	var sbOptions = {
		handleOversize: 'none',
		animate: true,
		displayNav: true,
		handleUnsupported: 'remove',
		initialHeight: 60,
		initialWidth: 100
	};
	Shadowbox.init(sbOptions);

	//Show/hide for left menu
	$('#LeftNavigationMenu span.arrow').click(function()
	{
		$(this).parent().toggleClass('down');
		$(this).parent().toggleClass('hidden-children');
		return false;
	});

	
});

