$(document).ready(function() 
{
	$('#hd .top-navigation li').hover(
		function() { 
			$('ul', this).slideDown(100);
		},
		function () { 
			$('ul', this).slideUp(100);	
		}
	);

	$('body.welcome #bd .block-images a').hover(
		function() {
			$(this).parent('div.image').addClass('on');
		}, 
		function() {
			$(this).parent('div.image').removeClass('on');
		}
	);

	$('body.welcome select.bond-types').change(
		function() { 
		    var l = $('option:selected', this).attr('value');
		    if(l) window.location = l;
		}		
	);
	
	var p = window.location.pathname.substr(0, window.location.pathname.length -1).toLowerCase(); //trim possible "/"
	$('#hd .top-navigation a').each(function() {
		if(p.length <= 1 || p == '/') return; 
		var l = $(this).attr('href').toLowerCase();
		if(l.indexOf(p) >= 0) { 
		$(this).addClass('active');
		$(this).parents('ul', '#hd .top-navigation').siblings('a').addClass('active');
		}
	});
	
});





