Application = {
  init: function() {     
    /**
     * Lightbox
     */
  	jQuery("a[class=lightbox]").lightBox({
  	  multipleImages: false
  	});
  	jQuery(".photogalery a[class=lightbox]").lightBox({
  	  multipleImages: true
  	});
  	
  	$('div[class*=photogalery]').each( function( i ) {
    /*$(this).addClass("photogalery-" + i);*/
      $(this).find('div[class*=fotogalerie-blok] a[class=lightbox]').lightBox({
        multipleImages: true
      });
    });
  	
  	jQuery("div[id=tabs]").tabs();
  	
  	jQuery("form[id=find] a").bind( "click", function() {
  	  jQuery(this).parent().submit();
  	  return false;
  	});
  	
  	/*if(screen.width <= 1024 )
      jQuery("body").attr("id","container_1024res");
    else if(screen.width <= 1280 )
      jQuery("body").attr("id","container_1280res");
    else if(screen.width <= 1440 )
      jQuery("body").attr("id","container_1440res");
    else if(screen.width <= 1680 )
      jQuery("body").attr("id","container_1680res");
    else if(screen.width <= 1920 )
      jQuery("body").attr("id","container_1920res");*/
  	
  	var formValid = new formValidation({
  		class: "validateForm", 
  		tags: {
  			required: "required",
  			mail: "mail",
  			number: "number"
  		},
  		messages: {
  			required: "Vyplňte prosím pole '%s'.",
  			mail: "Prosím vložte správnou e-mailovou adresu !",
  			number: "Prosím vložte jen čísla!"
  		}
  	});
  }
}
