/**
 * POKE namespace
 * Takes care of any global methods and site setup
 * Auth: Chris Reeves, POKE
 */
POKE = {}

POKE.navWidth = 160;

POKE.init = function() {
  POKE.bindEvents();
  POKE.nav.init();
}

POKE.bindEvents = function() {
  $('a[rel="external"]').live('mouseover', function() {
    $(this).attr('target', '_blank');
  });
  $('a[rel="external"]').live('mouseout', function() {
    $(this).removeAttr('target');
  });
  $('#partner-list a').live('click', function() {
    if($(this).attr('href') == '#') {
      return false
    }
  });
  $('#logo-carousel a').live('click', function() {
    if($(this).attr('href') == '#') {
      return false
    }
  });
}

POKE.posterwall = function() {
	$('.posterwall').posterwall({vertical_center:1, ratio:[820,462], min_size:[820, 462]});
}

POKE.size = function(obj) {
    var size = 0, key;
    for (key in obj) {
        if (obj.hasOwnProperty(key)) size++;
    }
    return size;
};