function $(id){
	return document.getElementById(id);
}
function imgSwap(img){
	$('imgfull').src = img;
	$('imgfull').style.display = "block";
}
function imgHide(){
	$('imgfull').style.display = "none";
}
function Show(div){
	$(div).style.display = "inline";
}
function Hide(div1, div2, div3, div4){
	$(div1).style.display = "none";
	$(div2).style.display = "none";
	$(div3).style.display = "none";
	$(div4).style.display = "none";
}

function MenuShow(){
	$('submenu').style.display = "block";
}
function MenuHide(){
	$('submenu').style.display = "none";
}

function NewsFeedDefil(sNews0Id,sNews0Name,sNews0Title,sNews0Text,sNews1Id,sNews1Name,sNews1Title,sNews1Text,sNews2Id,sNews2Name,sNews2Title,sNews2Text){
  var mots = Array();
  mots[0] = [sNews0Id,sNews0Name,sNews0Title,sNews0Text];
  mots[1] = [sNews1Id,sNews1Name,sNews1Title,sNews1Text];
  mots[2] = [sNews2Id,sNews2Name,sNews2Title,sNews2Text];
  var motCourant = 0;
  window.setInterval(function(){
  if(motCourant == mots.length) {motCourant = 0;}
  var sBuffer = '<a href="classified.php?forum='+mots[motCourant][0]+'">';
  sBuffer += '<span style="font-weight:bold;color:#000000;font-size:11px;">'+mots[motCourant][1]+'&nbsp;&nbsp;&nbsp;</span><br />';
  sBuffer += '<span style="font-weight:bold;font-size:11px;">'+mots[motCourant][2]+'</span><br />';
  sBuffer += '<span style="color:#000000;font-size:11px;">'+mots[motCourant][3]+'</span></a><span class=\'bot\'></span>';
  $('NewsFeedC').innerHTML = sBuffer;
  motCourant++;
  }, 4000);
}
