(function ($) {

  Drupal.behaviors.frdbtemdr = {
    attach: function(context, settings) {
      $('input, textarea', context).focusin(function () {
        $(this).addClass('frdbtemdr-input-focus');
      });
      $('input, textarea', context).focusout(function () {
        $(this).removeClass('frdbtemdr-input-focus');
      });
      if(jQuery.isFunction(jQuery.colorbox)) {
	    $('a').filter(function() {
	      return this.hostname && this.hostname !== location.hostname;
	    }).colorbox({iframe:true, width:"900px", height:"600px", opacity:0.65});
      }
    }
  };

})(jQuery);;

