function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=775,height=425');");
}

$(document).ready(function() {
  $('div.features a').hover(function() {
    $('img.main', this).css('zIndex', 5);
  }, function() {
    if ($(this).is('.first')) {
      $('img.main', this).css('zIndex', '2');      
    } else {
      $('img.main', this).css('zIndex', '1');
    }
  });
});


// homepage scrolling logos

$(window).bind('load', function() {
  
  var scrollWidth = 0;
  $('#scroll img').each(function(index) {
    scrollWidth += $(this).width();
  });
  
  $('#scroll > div')
  .width(scrollWidth);

  (function(){
      $('#scroll > div').css({left: '0'})
      .animate({foo: 1}, 1000)
      .animate({
        left: '-=' + scrollWidth
      }, {
        duration: scrollWidth*18, 
        easing: 'linear',
        complete: arguments.callee
      });
  })();
  
});
