/**
 * bootstrap.js
 * 
 * Central executive for UrbanDaddy JS.  All site-wide page load commands should go here.
 */
 
// ensure that the debug console exists
if (window['loadFirebugConsole']) window.loadFirebugConsole(); 
else if (!window['console']) window.console = { info:function(s){}, log:function(s){}, warn:function(s){}, error:function(s){} }

function onDomLoaded() 
{
  $("input.rollover").initRollovers();
  $("input.innerlabel").inlineFieldLabel();
  $("input.innerlabel2").betterFieldLabel();
  
  // fix label image clicking, see http://snook.ca/archives/javascript/using_images_as
  // the code forwards the click to the containing label.
  if ($j.browser.msie) {
    $j("label img").click(function() { $j(this).closest("label").click(); });
  }
}

jQuery(onDomLoaded);

