if (document.images) {
var home = new Image (42,10);
home.src = "images/home.jpg";
var home_h = new Image (42,10);
home_h.src = "images/home_h.jpg";
var about = new Image (84,10);
about.src = "images/about.jpg";
var about_h = new Image (84,10);
about_h.src = "images/about_h.jpg";
var testimonials = new Image (96,10);
testimonials.src = "images/testimonials.jpg";
var testimonials_h = new Image (96,10);
testimonials_h.src = "images/testimonials_h.jpg";
var estimates = new Image (73,10);
estimates.src = "images/estimates.jpg";
var estimates_h = new Image (73,10);
estimates_h.src = "images/estimates_h.jpg";
var commericals = new Image (102,12);
commericals.src = "images/commericals.jpg";
var commericals_h = new Image (102,12);
commericals_h.src = "images/commericals_h.jpg";
var residential = new Image (96,12);
residential.src = "images/residential.jpg";
var residential_h = new Image (96,11);
residential_h.src = "images/residential_h.jpg";
}

var src;
$(document).ready(function(){
	if($.browser.msie && $.browser.version==6.0){
		$('.ie6_img').css('display','');
		$('.non_ie6_img').css('display','none');
	}
	$('#top_menu a').find('img').hover(
		function(){
			src = $(this).attr('src');
			var src1 = src.split('.');
			var new_src = src1[0]+'_h.jpg';
			$(this).attr('src',new_src);
		},
		function(){
			$(this).attr('src',src);
		}
		
	);
	$('#top_menu2 a').find('img').hover(
		function(){
			src = $(this).attr('src');
			var src1 = src.split('.');
			var new_src = src1[0]+'_h.jpg';
//	for .gif		var new_src = src1[0]+'_h.gif';
			$(this).attr('src',new_src);
		},
		function(){
			$(this).attr('src',src);
		}
		
	);
});
	if($.browser.msie && $.browser.version==6.0){
		$('#logo_img').supersleight();
		$('#mid_page').supersleight();
//		$('#logos').supersleight();
	}


