$(document).ready(function() {
        $(".dialog_catalog").dialog({
                height:500,
                width:850,
                autoOpen: false
        });
        $(".dialog_reference").dialog({
                height:500,
                width:900,
                autoOpen: false
        });

        $(".dialog_schema").dialog({
                height:500,
                width:850,
                autoOpen:false
        });
         $("#dialog").dialog({
                height:500,
                width:900,
                autoOpen: false
        });

        $('.reference_picture').click(function() {
             $(".dialog_reference").dialog('open');
        })

        $('.info_product a').click(function() {
            var $img = jQuery('<img>')
                .attr('src', jQuery(this).attr('href'))
                .attr('alt', jQuery(this).attr('title'))
                .attr('height', jQuery('input.height',this).attr('value'))
                .attr('width', jQuery('input.width',this).attr('value'));
            jQuery("#dialog").html($img).dialog('open');
            return false;
        });

        $('.info_catalogfr_FR').click(function() {
            var $iframe = '<iframe src="http://castel.ks20808.force-interactive.com/media/flipping_book/index.html" width="825" height="450" frameborder="0" scrolling="no"></iframe>';
            jQuery(".dialog_catalog").html($iframe).dialog('open');
            /*$(".dialog_catalog").dialog('open');*/
        })
        $('.info_catalogen_GB').click(function() {
            var $iframe = '<iframe src="http://castel.ks20808.force-interactive.com/media/flipping_book_en/index.html" width="825" height="450" frameborder="0" scrolling="no"></iframe>';
            jQuery(".dialog_catalog").html($iframe).dialog('open');
            /*$(".dialog_catalog").dialog('open');*/
        })
        $('.info_schema').click(function() {
             $(".dialog_schema").dialog('open');
        })
});