/**
 * @author a.hover
 */  
 
  /* MENU - All*/
 
 $(document).ready(function(){
    
    $(".homero").hover(
      function () {
        $(this).attr("src","images/menu/home2.gif");
      }, 
      function () {
        $(this).attr("src","images/menu/home1.gif");
      }
    );
  });
 
 $(document).ready(function(){
    
    $(".productro").hover(
      function () {
        $(this).attr("src","images/menu/product2.gif");
      }, 
      function () {
        $(this).attr("src","images/menu/product1.gif");
      }
    );
  });
  
 $(document).ready(function(){
    
    $(".deliveryro").hover(
      function () {
        $(this).attr("src","images/menu/delivery2.gif");
      }, 
      function () {
        $(this).attr("src","images/menu/delivery1.gif");
      }
    );
  });
  
 $(document).ready(function(){
    
    $(".frqualro").hover(
      function () {
        $(this).attr("src","images/menu/frqual2.gif");
      }, 
      function () {
        $(this).attr("src","images/menu/frqual1.gif");
      }
    );
  });
 
 $(document).ready(function(){
    
    $(".orderingro").hover(
      function () {
        $(this).attr("src","images/menu/ordering2.gif");
      }, 
      function () {
        $(this).attr("src","images/menu/ordering1.gif");
      }
    );
  });
  
 $(document).ready(function(){
    
    $(".contactro").hover(
      function () {
        $(this).attr("src","images/menu/contact2.gif");
      }, 
      function () {
        $(this).attr("src","images/menu/contact1.gif");
      }
    );
  });
 
 /* PRODUCT.html - Banana Rollover */
 
 $(document).ready(function(){
    
    $(".bananaro").hover(
      function () {
        $(this).attr("src","images/banana2.png");
      }, 
      function () {
        $(this).attr("src","images/banana1.png");
      }
    );
  });
  
 /* STORAGE.html - Cherry Rollover */
 
 $(document).ready(function(){
    
    $(".cherryroa").hover(
      function () {
        $(this).attr("src","images/cherry2-1.png");
      }, 
      function () {
        $(this).attr("src","images/cherry1-1.png");
      }
    );
  });
  
 $(document).ready(function(){
    
    $(".cherryrob").hover(
      function () {
        $(this).attr("src","images/cherry2-2.png");
      }, 
      function () {
        $(this).attr("src","images/cherry1-2.png");
      }
    );
  });
  
 /* CONTACTUS.html - Kiwi Rollover */
 
 $(document).ready(function(){
    
    $(".kiwiroa").hover(
      function () {
        $(this).attr("src","images/kiwi2-1.png");
      }, 
      function () {
        $(this).attr("src","images/kiwi1-1.png");
      }
    );
  });
  
 $(document).ready(function(){
    
    $(".kiwirob").hover(
      function () {
        $(this).attr("src","images/kiwi2-2.png");
      }, 
      function () {
        $(this).attr("src","images/kiwi1-2.png");
      }
    );
  });
  
   $(document).ready(function(){
    
    $(".submit-enquiry").hover(
      function () {
        $(this).attr("src","images/menu/make-enquiry2.gif");
      }, 
      function () {
        $(this).attr("src","images/menu/make-enquiry1.gif");
      }
    );
  });
  
 /* ORDERING.html - Orange Rollover */
 
 $(document).ready(function(){
    
    $(".orangero").hover(
      function () {
        $(this).attr("src","images/orange2.png");
      }, 
      function () {
        $(this).attr("src","images/orange1.png");
      }
    );
  });
  
 $(document).ready(function(){
    
    $(".orangerotwo").hover(
      function () {
        $(this).attr("src","images/orange3-2.png");
      }, 
      function () {
        $(this).attr("src","images/orange3-1.png");
      }
    );
  });
  
 /* Bottom Nav - Order Rollover */
 
	 /*Ordering*/
 $(document).ready(function(){
    
    $(".bhorderingro").hover(
      function () {
        $(this).attr("src","images/menu/backhome3.gif");
      }, 
      function () {
        $(this).attr("src","images/menu/backhome1.gif");
      }
    );
  });
  
 $(document).ready(function(){
    
    $(".submit").hover(
      function () {
        $(this).attr("src","images/menu/enterdeets2.gif");
      }, 
      function () {
        $(this).attr("src","images/menu/enterdeets1.gif");
      }
    );
  });
  
 $(document).ready(function(){
    
    $(".submit-order").hover(
      function () {
        $(this).attr("src","images/menu/placeorder2.gif");
      }, 
      function () {
        $(this).attr("src","images/menu/placeorder1.gif");
      }
    );
  });
  
  $(document).ready(function(){
    
    $(".previousro").hover(
      function () {
        $(this).attr("src","images/menu/previous2.gif");
      }, 
      function () {
        $(this).attr("src","images/menu/previous1.gif");
      }
    );
  });  
  
  
	 /*Product*/
 $(document).ready(function(){
    
    $(".bhproductro").hover(
      function () {
        $(this).attr("src","images/menu/backhome4.gif");
      }, 
      function () {
        $(this).attr("src","images/menu/backhome1.gif");
      }
    );
  });
  
  $(document).ready(function(){
    
    $(".bhdelivro").hover(
      function () {
        $(this).attr("src","images/menu/bn-delivery2.gif");
      }, 
      function () {
        $(this).attr("src","images/menu/bn-delivery1.gif");
      }
    );
  });
  
	 /*Delivery*/
 $(document).ready(function(){
    
    $(".bhdeliveryro").hover(
      function () {
        $(this).attr("src","images/menu/backhome5.gif");
      }, 
      function () {
        $(this).attr("src","images/menu/backhome1.gif");
      }
    );
  });
  
	 /*Fruit Quality*/
 $(document).ready(function(){
    
    $(".bhstoragero").hover(
      function () {
        $(this).attr("src","images/menu/backhome6.gif");
      }, 
      function () {
        $(this).attr("src","images/menu/backhome1.gif");
      }
    );
  });
  
 $(document).ready(function(){
    
    $(".bhdelivropink").hover(
      function () {
        $(this).attr("src","images/menu/bn-delivery3.gif");
      }, 
      function () {
        $(this).attr("src","images/menu/bn-delivery1.gif");
      }
    );
  });
  
	 /*Contact*/
 $(document).ready(function(){
    
    $(".bhcontactro").hover(
      function () {
        $(this).attr("src","images/menu/backhome2.gif");
      }, 
      function () {
        $(this).attr("src","images/menu/backhome1.gif");
      }
    );
  });
  
   $(document).ready(function(){
    
    $(".bhdelivrogreen").hover(
      function () {
        $(this).attr("src","images/menu/bn-delivery4.gif");
      }, 
      function () {
        $(this).attr("src","images/menu/bn-delivery1.gif");
      }
    );
  });

	/*Privacy Policy & Ts & Cs*/
 $(document).ready(function(){
    
    $(".bhtandcro").hover(
      function () {
        $(this).attr("src","images/menu/backhome7.gif");
      }, 
      function () {
        $(this).attr("src","images/menu/backhome1.gif");
      }
    );
  });
  
  
   /* ORDERING.html Script for form */
	 
$(document).ready(function(){
    
    $(".form-text").click(
      function () {
		$('input:text').removeClass("selected-form-text");
		$('input:text').addClass("form-text");
		$(this).removeClass("form-text");
		$(this).addClass("selected-form-text");
      }
    );
  });
  
/* POP UP */
$(document).ready(function(){
    
	$(".popup").hide();
	$(".valid-one").hide();
	$(".valid-two").hide();
		
	$(".open-popup").click(function(){
		if($("#form-two").valid() == true)
		{
			$(".popup").show("slow");
		}
		else
		{
			$(".valid-two").show();
		}
	});	
	
	$(".submit-order").click(function(){if($("#form-one").valid() == false){$(".valid-one").show();}});			
	
	$(".popup img").hover(
      function () {
        $(this).attr("src","images/popup-checked.gif");
      }, 
      function () {
        $(this).attr("src","images/popup-unchecked.gif");
      }
    );
		
	$(".internet").click(function () {$(".where-did-you").attr("value","Internet");});
	$(".advert").click(function () {$(".where-did-you").attr("value","Advertising");});
	$(".friend").click(function () {$(".where-did-you").attr("value","Friends");});
	$(".radio").click(function () {$(".where-did-you").attr("value","Radio");});
	$(".accident").click(function () {$(".where-did-you").attr("value","By accident");});
	$(".other").click(function () {$(".where-did-you").attr("value","Other...");});
	
	$(".popup img").click(
      function () {
		$(".popup").hide("slow");
		$("form:fruityForm").submit();
      }
    );
 });
