//input onfocus/onblur
$(function() {

  $('#simple').example('Cauta aici...');

  $('#simple2').example('Cauta aici...');

  $('#callback').example(function() {
     return $(this).attr('title');
  });

  $('#callback_with_custom_class').example(function() {
    return $(this).attr('title');
  }, { className: 'not_example' });

  $('.multiple_callback').example(function() {
   return $(this).attr('title');
  });

  $('#comments').example('First!', {
    className: 'not_example'
  });

  $('#content').example('Type here...', {
    className: 'not_example'
  });

  $('.multiple').example('Several at once.');

  $('#prefilled').example('This should not appear on page load.');

  $('#multiple_classNames').example('Multiple class names');

  $('#modifying_callback').example(function() {
    var text = $(this).attr('title');
    $(this).attr('title', 'Not anymore');
    return text;
  });

  $('#metadata_1').example();
  $('#metadata_2').example('This will override the metadata');

  $('#second_form').example('Only I should be cleared when you click below');

  $.fn.example.defaults.className = 'not_example';
  $('#defaults_test_1').example('Not example by default');
  $('#defaults_test_2').example('Not example by default');
  $('#defaults_test_3').example('Not example by default');
});
// /END input onfocus/onblur

/* thick box  --- folisit la search 3D, map, catalog*/
var tb_pathToImage = "/images/public/loadingAnimation.gif";

/*!!!!!!!!!!!!!!!!! edit below this line at your own risk !!!!!!!!!!!!!!!!!!!!!!!*/

//on page load call tb_init
$(document).ready(function(){
	tb_init('a.thickbox, area.thickbox, input.thickbox');//pass where to apply thickbox
	imgLoader = new Image();// preload image
	imgLoader.src = tb_pathToImage;
});
/*  END thick box  */


//lightbox init
$(function() {
	$('#gallery a').lightBox();
    $('.gallery a').lightBox();
    $('a.gallery').lightBox();
});

/*  END lightbox  */
