
$(function() {
	// Use this example, or...
	//$('a[@rel*=lightbox]').lightBox(); // Select all links that contains lightbox in the attribute rel
	// This, or...
	//$('#gallery a').lightBox(); // Select all links in object with gallery ID
	// This, or...
	$('a.lightbox').lightBox(); // Select all links with lightbox class
	// This, or...
	//$('a').lightBox(); // Select all links in the page
	// ... The possibility are many. Use your creative or choose one in the examples above
});
$(document).ready(function(){

        $('a.titrephotoopen').click(function() { 
        $('<div />').appendTo('body').load($(this).attr('href')).dialog({ 
            dialogClass: 'photo',
            position: 'top',
            width: 600,
            minHeight: 300,
            show: 'blind',
            hide: 'slide',
            modal:true,
            title: $(this).text()
        }); 
        return false; 
    });
   
   
/****************************************************************/
     // $('.divAjoutOffre').hide();
      
      
        $('a.ajoutOffreOpener').click(function() { 
        $('<div />').appendTo('body').load($(this).attr('href')).dialog({ 
            dialogClass: 'ajoutOffre',
            position: 'top',
            width: 1010,
            minHeight: 300,
            show: 'blind',
            hide: 'slide',
            modal:true,
			stack: false,
			closeOnEscape: true,
            title: $(this).text()
        }); 
        return false; 
    });
/****************************************************************/
//openrecherche
        $('a.openrecherche').click(function() { 
        $('<div />').appendTo('body').load($(this).attr('href')).dialog({ 
            dialogClass: 'Recherche',
            position: 'top',
            width: 800,
            minHeight: 300,
            show: 'blind',
            hide: 'slide',
            modal:true,
            title: $(this).text()
        }); 
        return false; 
    });
    /****************************************************************/
				$('#helpOffre').dialog({
			autoOpen: false,
			show: 'blind',
			hide: 'explode',
			modal:true,
		});
    
		$('a.helpOffreOpen').click(function() {
			$('#helpOffre').dialog('open');
		});

/**********************************************************************/
$('.ouvreVersBas').toggle(function() {
  $('.divAjoutOffre').slideDown('slow', function() {
  })}, 
  function() {
  $('.divAjoutOffre').slideUp('slow', function() {
  });
});

/**********************************************************************/
});
