$(function(e) {
  
   /* INIT FORM-RENDERING */

   $('#file').customFileInput();  

   $('input[type="checkbox"]').ezMark();

   $('input[type="radio"]').ezMark();

  
  /* MODAL LIGHTBOX */
 
  jQuery(function ($) {

    $('.basicModal').click(function (e) {
      var $this = $(this), rel = $this.attr('rel'), modalId = ((typeof(rel) != 'undefined' && rel != '') ? rel : 'basic-modal-content');
      $('#' + modalId).modal();
      Cufon.refresh();
      return false;
    });

    $('body').addClass('fresh');

    $("body select").msDropDown();
    if(document.all){
      window.setTimeout(function(){
        window.resizeBy(1,0);
      }, 500);
    }
  });
  
	/* CUFONT FONT-RENDERING */

	Cufon.replace('.globusBold', {
		fontFamily : 'ClearfaceBold',
		hover : true
	});

	Cufon.replace('.globusMedium, .dropHead, .preparation strong, .wysiwyg h2', {
		fontFamily : 'ClearfaceMedium',
		hover : true
	});
	
	Cufon.replace('.globusRoman, .startpageHead3', {
    fontFamily : 'ClearfaceRoman'
  });
	
	Cufon.replace('.startpageHead1, .startpageHead2', {
    fontFamily : 'ClearfaceMedium',
    hover : true
  });
  
  Cufon.replace('.miamano', {
    fontFamily : 'miamano',
    hover : true
  });
  
});

