function popup_print(id_article,id_langue,url_site) {
	window.open(url_site+'popup-print.php?id_article='+id_article+'&id_langue='+id_langue,'popup','width=640,height=480,toolbar=false,scrollbars');
}

function add_plan(id_article,retours,type) {
	var ajax_request = new Request.HTML({
		url: retours+'ajax/ajax.public.article.php',
		update: $('zone_confirm'),
		useWaiter: true,
		waiterOptions: {
		  baseHref: '../admin/images/pictos/',
		  img: {
			src: 'preloader-horizontal.gif',
			styles: {
			  width: 160,
			  height: 20
			}
		  },
		  layer: {
			background: '#fff',
			opacity: 0.9
		  }
		}
	}).send("add_article_to_selection="+id_article+"&type="+type);
}

/*function change_theme_formation(id_theme) {
	//console.log(id_theme);
	var ajax_request = new Request.HTML({
		url: '../inc/ajax/ajax.public.rubrique.php',
		update: $('liste-formations'),
		useWaiter: true,
		waiterOptions: {
		  baseHref: '../admin/images/pictos/',
		  img: {
			src: 'preloader-horizontal.gif',
			styles: {
			  width: 160,
			  height: 20
			}
		  },
		  layer: {
			background: '#fff',
			opacity: 0.9
		  }
		}
	}).send("id_theme="+id_theme+"&update=formations");
}*/
function change_theme_formation(id_theme) {
	//console.log(id_theme);
	var ajax_request = new Request.HTML({
		url: '../inc/ajax/ajax.public.rubrique.php',
		update: $('liste-formations'),
		useSpinner: true
	}).send("id_theme="+id_theme+"&update=formations");
}

function goToRepPublic(rep) {
  var ajax_request = new Request.HTML({
    url: '../inc/ajax/ajax.images.php',
    update: $('bloc-explorateur'),
    useSpinner: true,
    onSuccess: function(){
		new Lightbox();
    }
  }).send("rep_img_public="+rep);
}

