
function changeNews(id_news)
{
	document.getElementById('news0').style.display = 'none';
	document.getElementById('news1').style.display = 'none';
	document.getElementById('news2').style.display = 'none';
	document.getElementById('news3').style.display = 'none';
	document.getElementById('news'+id_news).style.display = 'block';
}

function changeCategoryRss(id_category_rss)
{
	document.getElementById('rssbutton0').className = 'onglet2une';
	document.getElementById('rssbutton1').className = 'onglet2';
	document.getElementById('rssbutton2').className = 'onglet2';
	document.getElementById('rssbutton3').className = 'onglet2';
	if (id_category_rss == 0)
		document.getElementById('rssbutton'+id_category_rss).className = 'onglet1une';
	else
		document.getElementById('rssbutton'+id_category_rss).className = 'onglet1';

	document.getElementById('rss0').style.display = 'none';
	document.getElementById('rss1').style.display = 'none';
	document.getElementById('rss2').style.display = 'none';
	document.getElementById('rss3').style.display = 'none';
	document.getElementById('rss'+id_category_rss).style.display = 'block';
}

function changeButtonCategoryRss(id_category_rss, id_action)
{
	if (document.getElementById('rssbutton'+id_category_rss).className == 'onglet1' || document.getElementById('rssbutton'+id_category_rss).className == 'onglet1une')
		return false;

	if (id_action == 1)
	{
		if (id_category_rss == 0)
			document.getElementById('rssbutton'+id_category_rss).className = 'onglethoverune';
		else
			document.getElementById('rssbutton'+id_category_rss).className = 'onglethover';
	}
	else
	{
		if (id_category_rss == 0)
			document.getElementById('rssbutton'+id_category_rss).className = 'onglet2une';
		else
			document.getElementById('rssbutton'+id_category_rss).className = 'onglet2';
	}
}

function setShootboxMsg()
{
	if (document.getElementById('inputShootboxMsg').value == 'votre message...')
		document.getElementById('inputShootboxMsg').value = '';
	document.getElementById('inputShootboxMsg').style.color = 'black';
}

function setShootboxPseudo()
{
	if (document.getElementById('inputShootboxPseudo').value == 'votre pseudo...')
		document.getElementById('inputShootboxPseudo').value = '';
	document.getElementById('inputShootboxPseudo').style.color = 'black';
}

function sendShootboxMsg()
{
	var pseudo = document.getElementById('inputShootboxPseudo').value;
	var msg = document.getElementById('inputShootboxMsg').value;
	
	document.getElementById('inputShootboxPseudo').value = 'votre pseudo...';
	document.getElementById('inputShootboxMsg').value = 'votre message...';
	document.getElementById('inputShootboxPseudo').style.color = '#BCBABB';
	document.getElementById('inputShootboxMsg').style.color = '#BCBABB';
}




$(document).ready(function() {
	$('.picturesList a').lightBox({fixedNavigation:true});

	$("#newsbutton0").click(function () { changeNews('0'); });
	$("#newsbutton1").click(function () { changeNews('1'); });
	$("#newsbutton2").click(function () { changeNews('2'); });
	$("#newsbutton3").click(function () { changeNews('3'); });

	$("#rssbutton0").click(function () { changeCategoryRss('0'); });
	$("#rssbutton1").click(function () { changeCategoryRss('1'); });
	$("#rssbutton2").click(function () { changeCategoryRss('2'); });
	$("#rssbutton3").click(function () { changeCategoryRss('3'); });
	
	$("#rssbutton0").hover(function () { changeButtonCategoryRss('0', '1'); }, function () { changeButtonCategoryRss('0', '2'); });
	$("#rssbutton1").hover(function () { changeButtonCategoryRss('1', '1'); }, function () { changeButtonCategoryRss('1', '2'); });
	$("#rssbutton2").hover(function () { changeButtonCategoryRss('2', '1'); }, function () { changeButtonCategoryRss('2', '2'); });
	$("#rssbutton3").hover(function () { changeButtonCategoryRss('3', '1'); }, function () { changeButtonCategoryRss('3', '2'); });

});



/*
$("#newsbutton0").click(function () { 
  alert('test1');
});

$("#myTest12 p").hover(function () {
  $(this).addClass("hilite");
}, function () {
  $(this).removeClass("hilite");
});


OnClick="changeNews({$k});"
*/
