/* =========================================================
 *
 * jquery.reorder.js - version 0.1.1
 * 2007-12-11
 *
 * jquery plugin to randomly reorder 
 * first-child elements of selected elements 
 * by rebecca murphey
 * http://blog.rebeccamurphey.com/ 
 *
/* ========================================================= */

(function($){
$.fn.reorder = function() {

  // random array sort from 
  // http://javascript.about.com/library/blsort2.htm
  function randOrd() { return(Math.round(Math.random())-0.5); }

  return($(this).each(function() {
    var $this = $(this);
    var $children = $this.children();
    var childCount = $children.length;

    if (childCount > 1) {
      $children.remove();

      var indices = new Array();
      for (i=0;i<childCount;i++) { indices[indices.length] = i; }
      indices = indices.sort(randOrd);
      $.each(indices,function(j,k) { $this.append($children.eq(k)); });
    }
  }));
} 
})(jQuery);

(function($) {

  $(function() {

    function addWatermark() {
      if ($('#cse-search-box input.text').val() == '') {
        $('#cse-search-box input.text').css("background-image", "url(http://www.google.com/coop/intl/en/images/google_custom_search_watermark.gif)");
      };  
    }

    addWatermark();

    $("#cse-search-box input.text").bind('focus', function(event) {
      $("#cse-search-box input.text").css("background-image", "none" );
    });

    $("#cse-search-box input.text").bind('blur', function(event) {
      addWatermark();
    });

  });
}) (jQuery);

function showHeroImages() {
};