// Augmenter ou réduire la taille du texte
var currentSize = 10;
var minSize = 9;
var maxSize = 12;
function resizeFont(size)
{
	currentSize += size;
	currentSize = (currentSize<minSize) ? minSize : ((currentSize>maxSize) ? maxSize : currentSize);

	if (document.getElementById('content'))
	{
		document.getElementById('content').style.fontSize = (currentSize/10)+'em';
	}
}

function addfav()
{
	if (document.all)
	{
		window.external.AddFavorite(window.document.location,window.document.title)
	}
	else
	{
		alert ("Votre navigateur ne connaît pas cette commande.");
	}
}

function addstart()
{
	if (document.all)
	{
		setHomePage(window.document.location)
	}
	else
	{
		alert ("Votre navigateur ne connaît pas cette commande.");
	}
}

$.fn.isAlertBox = function(newContentElements) { 
	return this.each(function() {
		$(this).empty().hide().append(newContentElements).slideDown('normal').pause(5000).slideUp('normal');
	});
};

$.taconite.addElementCommand('isAlertBox');

$.fn.isSlideRemove = function() { 
	return this.each(function() {
		$(this).slideUp('slow', function(){$(this).remove();});
	});
};

function selectRadio(id_radio) {
	$(id_radio).attr('checked',true);
}
