//jQuery
$(document).ready(function(){
						   
$('#home_flooring').hover(function() {
$('#rollover_flooring').show();								   
}, function(){
$('#rollover_flooring').hide();								   
});	

$('#home_energystar').hover(function() {
$('#rollover_energystar').show();								   
}, function(){
$('#rollover_energystar').hide();								   
});	

$('#home_cabinets').hover(function() {
$('#rollover_cabinets').show();								   
}, function(){
$('#rollover_cabinets').hide();								   
});	

$('#home_counter').hover(function() {
$('#rollover_counter').show();								   
}, function(){
$('#rollover_counter').hide();								   
});	

$('#home_wall').hover(function() {
$('#rollover_wall').show();								   
}, function(){
$('#rollover_wall').hide();								   
});	

$('#home_design').hover(function() {
$('#rollover_design').show();								   
}, function(){
$('#rollover_design').hide();								   
});	
						   
						   
	$('.sub_nav').hover(function(){
	var temp=$(this).attr('src')
	temp=temp.replace('.gif', '-over.gif');
	$(this).attr('src', temp);
	}, 
	function() {
	var temp=$(this).attr('src')
	temp=temp.replace('-over.gif', '.gif');
	$(this).attr('src', temp);
	});
	
	
	
var tab_on=0;	
$('.item_tab').click(function() {
var index=$('.item_tab').index(this);
tab_on=index;
for (var i=0; i<$('.item_tab').length ;i++) {
var t=$('.item_tab:eq(' + i + ')').attr('src');
if (i==index) {
t=t.replace('_down.gif', '_up.gif');
$('.item_tab:eq(' + i + ')').attr('src', t);
$('.tab_container:eq(' + i + ')').fadeIn(300);
} else {
t=t.replace('_up.gif', '_down.gif');
$('.item_tab:eq(' + i + ')').attr('src', t);
$('.tab_container:eq(' + i + ')').hide();
}
}
return false;
});

var tab_org;
$('.item_tab').hover(function(){
var temp=$(this).attr('src');
tab_org=temp;
temp=temp.replace('_down.gif', '_up.gif');
$(this).attr('src', temp);
}, 
function() {
if ($('.item_tab').index(this)!=tab_on) {
$(this).attr('src', tab_org);		
}

});
/* */

		
}); // end ready
