// console.log in Firebug _________________________________________________

if (typeof(console) === 'undefined')
{
  var console = {};
  console.log = function (msg) 
  {
    //var p = document.body.appendChild(document.createElement('p'));
    //p.className = 'error';
    //p.appendChild(document.createTextNode(msg));
  }
}

// Function.prototype.bind in Prototype.js for jQuery _____________________

jQuery.scope = function (target, func)
{
  return function () 
  {
    func.apply(target, arguments);
  }
}

var lap = function()
{
  var i = datetime.length;
  datetime[datetime.length] = new Date();
  console.log('LAP => ' + i + ': ' + (datetime[i].valueOf() - datetime[(i - 1)].valueOf()));
}

$(document).ready(function()
{
  var c = PinupController.getInstance();

/*
  window.setTimeout(
    function(){
      c.showPicture(jsonp[0]);
    },
    1000
  )
*/

});
