// JavaScript Document
$(function() {	
	$('.erase').focus(function(){
		$(this).val('');
	});
	//building envelope btn on main page
	$("#about-the-building-envelope .btn").click( function(){
		$(this).toggleClass('close');
		$("#about-the-building-envelope .slider").slideToggle();
		return false;
	});
	//building envelope btn on main page
	$("#contact-a-rep .btn").click( function(){
		$(this).toggleClass('close');
		$("#contact-a-rep .slider").slideToggle();
		return false;
	});
	/*
	- removed by JV, can not use the ifixpng becuase it doesn not support 'background-image: repeat'
	- replaceed with belatedPNG
	$('.bgPng').ifixpng();
	*/
		$('.ro').mouseover( function()
		{
			rep = ".";
			ext = $(this).attr('src').substr(-4, 4);
			src = $(this).attr('src').replace(rep, "-on.");
			$(this).attr('src', src);
			
		});
		$('.ro').mouseout( function()
		{
			rep = "-on.";
			ext = $(this).attr('src').substr(-4, 4);
			src = $(this).attr('src').replace(rep, ".");
			$(this).attr('src', src);
			
		});
	$('.ifixpng').ifixpng(); 
	
	$('a.toggleJob').click( function(){
		toggleMe = $(this).attr('rel');
		$('tr.' + toggleMe).toggleClass('hide-row');
		return false;
	});									
});
