/*
$(window).load(function() {
 alert('load');
});

$(document).ready(function() {
  alert('ready');
});

$(window).bind('load', function() {
  alert('bind');
});


$(window).bind('load', function() {
    $("#out").attr("style", "display: block !important;");
});
*/

$(document).ready(function() {
  $(function () {
    $('div#newsFrame').load("http://eyeclaxton.com/news/news.html");
    $('div#newsFrame').load("http://www.eyeclaxton.com/news/news.html");
  });

  var b = $("div#navbar > ul > li");
  $("div#navbar").find("div.drop").first().css("left", "4px");
  var a = null, c = -1, d = function() {
    a && a.hide()
  };
  b.mouseover(function() {
    var e = $(this).children("div.drop");
    c = window.setTimeout(function() {
      a && a.hide();
      a = e;
      e.show()
    }, 300)
  });
  b.mouseout(function() {
    window.clearTimeout(c)
  });
  $("div#bn").mouseover(function() {
    window.setTimeout(d, 300)
  });
  $("div#bc").mouseover(function() {
    window.setTimeout(d, 300)
  })
});

function DisplayCurrentDate() {
  var now = new Date();
  var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
  var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
  var date = ((now.getDate()<10) ? "0" : "") + now.getDate();

  function fourdigits(number)	{
    return (number < 1000) ? number + 1900 : number;
  }
  today =  days[now.getDay()] + ", " + months[now.getMonth()] + " " + date + ", " + (fourdigits(now.getYear())) ;
  document.write(today);
}

