TO_LOAD_INDEX++;
TO_LOAD[TO_LOAD_INDEX]='load_truepopups();';

function load_truepopups(){
	// Les vrais popups

	$(".truePopup").click(function(){
		var rev=$(this).attr('rev');
		if(!rev || rev==''){
			var n='PopupFS'+randval(1000,9999).toString();
		}else{
			n=rev;
		}

		$(this).attr('rel',$(this).attr('rel').replace(/screen.height/,screen.height));
		$(this).attr('rel',$(this).attr('rel').replace(/screen.width/,screen.width));
		window.open($(this).attr('href'),n,$(this).attr('rel'));
		return false;
	});

	$(".popupFS").click(function(){
		var rev=$(this).attr('rev');
		if(!rev || rev==''){
			var n='PopupFS'+randval(1000,9999).toString();
		}else{
			n=rev;
		}
		window.open($(this).attr('href'),n,'width='+screen.width+',height='+screen.height+',resizable=yes');
		return false;
	});

	$(".popupA4").click(function(){

		var rev=$(this).attr('rev');
		if(!rev || rev==''){
			var n='PopupFS'+randval(1000,9999).toString();
		}else{
			n=rev;
		}
		var h=screen.height;
		var w=h/1.5;
		window.open($(this).attr('href'),n,'width='+w+',height='+h+',resizable=yes');
		return false;
	});
}
