/**
 * Opens a link in a new window.
 * Returns false to prevent the browser from following the actual href.
 *
 * cf. http://openweb.eu.org/articles/popup/
 */
function openLinkInPopup(url) {
 
	 var width  = screen.width /2;
	 var height = screen.height/2;
	 var left   = 0;
	 var top    = 0;
	 var params = 'width='+width+', height='+height;
	 params += ', top='+top+', left='+left;
	 params += ', directories=no';
	 params += ', location=no';
	 params += ', menubar=no';


	 params += ', status=no';
	 params += ', toolbar=no';

    newWindow = window.open(url, 'neolinks_popup',params);
    //                        'height=' + height + ',width=' + width + ',resizable=yes,menubar=yes,scrollbars=1');
    if (window.focus) {
        newWindow.focus();
    }
    return newWindow;
}                                                                                                 


// pour les  onglets

$(function() {

	$("a[rel='lightbox']").lightBox({
		overlayBgColor: '#888',
		overlayOpacity: 0.6,
		imageLoading: 'http://www.neolinks.com/images/divers/lightbox-ico-loading.gif',
		imageBtnClose: 'http://www.neolinks.com/images/divers/lightbox-btn-close.gif',
		imageBtnPrev: 'http://www.neolinks.com/images/divers/lightbox-btn-prev.gif',
		imageBtnNext: 'http://www.neolinks.com/images/divers/lightbox-btn-next.gif',
		imageBlank : 'http://www.neolinks.com/images/divers/lightbox-blank.gif',
		containerResizeSpeed: 350,
		txtImage: 'Image',
		txtOf: 'sur'

	});
});
$(function(){
	  var  id_show= $(".ongletsMenu li:first-child a").attr('href');
	$(".ongletsMenu li:first-child a").addClass("current");
	$(".ongletsMain .content div.onglet").not($(id_show)).hide();
	$(".ongletsMenu li a").click(
	                      function(){
	                                 $(".ongletsMenu li a").removeClass("current");
	                                 $(".ongletsMain .content div.onglet").hide();
	                                 var clicId = $(this).attr('href');
	                                 var toshow=$(".ongletsMain .content div#"+clicId);
	                                 $(".ongletsMenu li a[href='"+clicId+"']").addClass("current");
	$(".ongletsMain .content div#"+clicId).show();
	return false;
	});
	});

//pour les lightbox


