// JavaScript Document

$(document).ready(function() {   

	// add classes to these form elements
    //$('input[type="text"]').addClass("input1"); 
	//$('textarea').addClass("input1"); 
	//$('select').addClass("input1"); 
	 
	// change bg colour of input element on focus
    $('input[type="text"]').focus(function() {   
        //$(this).removeClass("inputidle").addClass("inputfocus");  
       $(this).css("border-color","#F46F2C");
    });   
	
	// change bg color back after blur focus
    $('input[type="text"]').blur(function() {   
    // $(this).removeClass("inputfocus").addClass("inputidle");   
       $(this).css("border-color","#797979");
    });  
	
	// SAME FOR TEXT AREA ELEMENTS
	
	// change bg colour of textarea element on focus
    $('textarea').focus(function() {   
       $(this).css("border-color","#F46F2C");
    });   
	
	// change bg color back after blur focus
    $('textarea').blur(function() {   
		$(this).css("border-color","#797979");
    }); 	
	

	// SAME FOR SELECT ELEMENTS
	
	// change bg colour of select element on focus
    $('select').focus(function() {   
       $(this).css("border-color","#F46F2C");
    });   
	
	// change bg color back after blur focus
    $('select').blur(function() {    
		$(this).css("background","#797979");
    }); 

	 
	// NOW CHANGE THE SEND BUTTON IMG ON HOVER
	// change bg colour of input element on focus
    $("#send").mouseover(function() {   
        //$(this).removeClass("inputidle").addClass("inputfocus");  
       $(this).attr("src", "images/buttons/send-2.png");
    });   
	
	// change bg color back after blur focus
    $("#send").mouseout(function() {     
    // $(this).removeClass("inputfocus").addClass("inputidle");   
       $(this).attr("src", "images/buttons/send.png");
    });  	
	
	
	// SAME FOR ENQUIRE BUTTON
	
	// change image on focus
    $('#enquireimg').mouseover(function() {   
       $(this).attr("src", "images/buttons/enquire-2.png");
    });   
	
	// change image back on lost focus
    $('#enquireimg').mouseout(function() {    
		$(this).attr("src", "images/buttons/enquire.png");
    }); 
	
	 
	 
});  
