$(document).ready(function() {
	// Redirector for product selector on landing page
	$('#select_product').change(function() {
		if ($(this).val().length > 0) {
			location.href = '/our-clients/case-study-' + $(this).val() + '/';
		} else {
			$(this).next().show();
		}
	});
	$('#meta .product a img, #otherCaseStudies li a img, .case_study_list li a img').css({ opacity: 0.8 });
	$('#otherCaseStudies li a img, .case_study_list li').click(function() {
		location.href = $(this).children().attr('href');
	});
	// Roll over effects for case study and product images
	$('#meta .product a img, #otherCaseStudies li a img, .case_study_list li a img').hover(function() {
		$(this).css({ opacity: 1.0 });
	},function() {
		$(this).css({ opacity: 0.8 });
	});
});
