/*function c(s){
    console.log(s);
}*/

$(document).ready(function(){
    
    $("#buy-button, .show-buy-form").click(function(){
        $(this).fadeOut();
        $("#buy-form").slideDown();
    });

    /** activate videobox **/
	$('.vidbox').removeClass('external').removeClass('popup').removeAttr('style').fancybox({
			'width' : 725, 
			'height': 450,
			'type'			: 'swf',
			'overlayColor':	'#D9C691'
		});
	
  /**
    * Activate lightbox
    */
    $("a.lightbox").lightBox({
//        overlayBgColor:     "#eceae5",
        overlayBgColor:     "#d9c692",
        overlayOpacity:     0.8,
        imageBtnClose:      "/repository/js/lightbox/images/lightbox-btn-close.gif",
        imageLoading:       "/repository/js/lightbox/images/lightbox-ico-loading2.gif",
        imageBtnPrev:       "/repository/js/lightbox/images/lightbox-btn-prev.gif",
        imageBtnNext:       "/repository/js/lightbox/images/lightbox-btn-next.gif",
        txtImage:           "Obrázek",
        txtOf:              ""
    });

    $("#hall-map-thumb").click(function(){

        var large = $("#hall-map-large");

        $('#hall-map-background').css({
            'display': 'block',
            'width': $(document).width(),
            'height': $(document).height(),
            opacity: .8
        });

        large.fadeIn();
    });

    $("#hall-map-large, #hall-map-background").click(function(){
        $('#hall-map-background').hide();
        $("#hall-map-large").fadeOut();
    });

    
});
