
$(document).ready(function(){
	$(".nav").superfish({
	animation : { opacity:"show",height:"show"}
	});
});

$(document).ready(function(){
	$('#clientsContent').find('dd').hide().end().find('dt').click(function() {
     $(this).next().slideToggle();
 	$('#clientsContent').find('dd').hide().end();
 });
});

$(document).ready(function() { 
    $("table#searchResults") 
    .tablesorter({
    	headers: {0: {sorter: false}},
    	widthFixed: true, 
    	widgets: ['zebra']
    }) 
    .tablesorterPager({
    	container: $("#pager"),
    	positionFixed: false
    }); 
}); 

$(document).ready(function(){
	$('table').each(function(){
		$('tbody tr:odd').addClass("odd");
	});
});

$(document).ready(function(){
	$("#plant_equipment #content img,#about_us #content img,#case_studies #content .caseStudyWrapper img ,#clients #content img").each(function(){
		var width = $(this).attr("width");
		var height = $(this).attr("height");
		var ratio = width/height;
		var newwidth = width*0.925;
		var newheight = newwidth/ratio;
		$(this).attr("width",newwidth);
		$(this).attr("height",newheight);
		$(this).css({border:'1px solid #ccc',padding:'5px'});		
	});
});


$(document).ready(function(){
	$("img.clear").css({border:'none'});
});

$(document).ready(function(){
	$("dl:last").css({background:'none'});
});

$(document).ready(function(){
	$("#home .right p:last").css({background:'none'});
});
