
    function initHover() {
    $(".videoHolder").hover(
      function () {
        $(".vidDesc", this).css("visibility", "visible");
      }, 
      function () {
        $(".vidDesc", this).css("visibility", "hidden");
      }
     )}

    function initMainNav() {
        var currentLoc = window.location.href;
        $(".linktab").each(function (i) {
            if (currentLoc.indexOf($("a" , this).attr('href')) != -1) {
              $(this).css("background-color", "#072D31");
             }
          });
    }

    function focusMe() {
        $(".focusmefirst").focus();
    }




    function setupCountries() {

	//Change this to the ID of the country input you want to be autocompleted
	//make sure to update the CSS for this ID as well
	var ac_country = ".location";

	//options are the same as the JQuery Autocomplete plugin
	$(ac_country).autocomplete(countries, {
		minChars: 2,
		width: 320,
		matchContains: true,
		scroll: true,
		max:0,
		formatItem: function(row, i, max, term) {
			return "<img src='images/flags/" + row.code.toLowerCase() + ".gif'/> " + row.name;
		},
		formatResult: function(row) {
			return row.name;
		},
		formatMatch: function(row, i, max) {
			return row.name;
		}
	});

	$(ac_country).after($(ac_country).clone().attr('value','').attr('type', 'hidden').attr('id', $(ac_country).attr('id') + '_hidden'));
	$(ac_country).removeAttr('name', '').clearField();
	$(ac_country).result(function(event, data, formatted) {
		if(data) {
			$(ac_country + '_hidden').val(data.code.toLowerCase());
		}
		var src = 'images/flags/' + data.code.toLowerCase() + '.gif';
		$(ac_country).css('backgroundImage', 'url(' + src + ')');
	});
    }


