
// starting the script on page load
jQuery(document).ready(function(){

    $('ul.nav_list').superfish();

    $('.job_list h2 a').click(function(e)
    {
    	e.preventDefault();
    	var detail = $(this).closest('.job_list').find('.job');
    	var visible = detail.is(':visible');
  		$('.job').hide();

  		if (!visible)
  		{
			detail.show();
		}

		$(window).scrollTop($(this).offset().top)

    });

	if ($('#pipeline').length)
	{
		$j = jQuery.noConflict();
		$j('.product_descriptions li').hide();
		$j('.products a').hover(function(){
			li = '#pd_'+$j(this).closest('li').attr('id');
			$j(li).show();
		},function(){
			li = '#pd_'+$j(this).closest('li').attr('id');
			$j(li).hide();
		});

		jQuery('.products li a').hide();

		jQuery.fn.show_product = function()
		{
			jQuery(this).show(500,function ()
			{
				jQuery(this).closest('li').next().find('a').show_product();
			});
		}

		jQuery('.products li a:first').show_product();
	}
});


