﻿/// <reference path="jquery-1.3.2-vsdoc2.js"/>

$(document).ready(function() {
    //$(".w").parent().css("background-color", "#E1FFE1");
    //$(".w").css("background-color", "white");
    $(".button-on-top").hover(
  function() {
      $(this).css("background-color", "#336600");
      $(this).css("font-size", "large");
  },
  function() {
      $(this).css("background-color", "#629601");
      $(this).css("font-size", "medium");
  }
);

    $(".button-on-bottom").hover(
   function() {
       $(this).css("background-color", "#336600");
       $(this).css("font-size", "large");
   },
  function() {
      $(this).css("background-color", "#629601");
      $(this).css("font-size", "medium");
  }
);

    $(".button-on-small").hover(
  function() {
      $(this).css("background-color", "#336600");
      $(this).css("font-size", "large");
      FloatText(this);
  },
  function() {
      $(this).css("background-color", "#629601");
      $(this).css("font-size", "medium");
      FloatText(this);
  }
);

  

});


function FloatText(control) {
    var x = $(control).find('a').text();
   
    if (x == "who") {
        $(control).find('a').text("who we are");
       // $(control).css("margin-right", "-28px");
        $(control).find('a').css("margin-left", "28px");
       // $(control).css("padding-left", "28px");
    }
    else if (x == "who we are") {
    $(control).find('a').text("who");
        //$(control).css("margin-right", "-28px");
        $(control).find('a').css("margin-left", "28px");
    }
    else if (x == "what") {

    $(control).find('a').text("what we do");
        $(control).find('a').css("margin-left", "28px");
    }
    else if (x == "what we do") {
    $(control).find('a').text("what");
        $(control).find('a').css("margin-left", "28px");
    }
    else if (x == "how") {
    $(control).find('a').text("how we work");
    $(control).find('a').css("margin-left", "28px");
    }
    else if (x == "how we work") {
    $(control).find('a').text("how");
    $(control).find('a').css("margin-left", "28px");
    }
   }
