/* pour la gestion de l'abus */
		function void0(){}
		var tempImage;
		
		function overStar(v,flag)
		{
			/* Preloading image */
			if(!tempImage)
			{
				tempImage = new Image;
				tempImage.src = "http://static.idoo.com/img/barre_blog/minidoo.gif"
			}

			new_image = "http://static.idoo.com/img/barre_blog/minidoo.gif"
			if(flag == 0){
				for(i=1; i<=5; i=i+1)
				{
					if(i<=v)
						document.getElementById('star_'+i).src = new_image;
					else
						document.getElementById('star_'+i).src = "http://static.idoo.com/img/barre_blog/minidoo_grey.gif";
				}
			}
		}


function outStar(m)
{
	for(i=5; i > 1; i=i-1)
	{
		document.getElementById('star_'+i).src = "http://static.idoo.com/img/barre_blog/minidoo_grey.gif";
	}
	for(i=1; i <= m ; i++)
	{
		document.getElementById('star_'+i).src = "http://static.idoo.com/img/barre_blog/minidoo.gif";
	}
	
	
}
		
		
		function sub(n,flag){
		if (flag==1){
			//alert("T'as déjà voté, fais pas genre on a des users ^^ ");
		}
		
		document.getElementById('rate').value=n;
		document.getElementById('blog_note').submit();
		}
		
		function openAbu(page){
			window.open(page,'abu','width=990,height=326,left=200,top=200,resizable=no');
			/*window.open(page,"signaler un abus","_blank","menubar=no, status=no, scrollbars=no, width=350, height=200");*/
			/*window.open(page,"signaler un abus", '', 'resizable=no, location=no, width=200, height=100, menubar=no, status=no, scrollbars=no, menubar=no');*/
		}
		
		/*function openPopup(){
			$('abuBut').disabled = '';
			$('abuName').value = '';
			$('abuFirstName').value = '';
			$('abuMail').value = '';
			$('abuDesc').value = '';
			$('message').innerHTML = "";
			$('lName').style.color = "#827F7F";
			$('lFirstname').style.color = "#827F7F";
			$('lMail').style.color = "#827F7F";
			$('lDesc').style.color = "#827F7F";
			$('lName').style.fontWeight = "normal";
			$('lFirstname').style.fontWeight = "normal";
			$('lMail').style.fontWeight = "normal";
			$('lDesc').style.fontWeight = "normal";
			Effect.BlindDown($('abu'), { delay: 0, duration: 0.7 });
		}
		function sendAbus(){
			//alert('ajax');
			url = "<? echo($url_blog);?>/report";
			new Ajax.Request(url, {
			method: 'post',
    		parameters: 'abuName='+$('abuName').value
			+"&abuFirstname="+$('abuFirstName').value
			+"&abuMail="+$('abuMail').value
			+"&abuDesc="+$('abuDesc').value
			+"&abuId="+$('abuId').value
			+"&abuType="+$('abuType').value,
	        onComplete:completedAbus});
		}
		function completedAbus(transport){
			//alert(transport.responseText);
			//alert(transport.status);
			$('lName').style.color = "#827F7F";
			$('lFirstname').style.color = "#827F7F";
			$('lMail').style.color = "#827F7F";
			$('lDesc').style.color = "#827F7F";
			$('lName').style.fontWeight = "normal";
			$('lFirstname').style.fontWeight = "normal";
			$('lMail').style.fontWeight = "normal";
			$('lDesc').style.fontWeight = "normal";
			if (600 == transport.status) { //ERROR
				var xml = transport.responseXML;
				var root = xml.getElementsByTagName("error");
				//alert(root.length);
				for(var i=0; i < root.length; i++){
					$(root[i].firstChild.data).style.color = "#FF0000";
					$(root[i].firstChild.data).style.fontWeight = "bold";
				}
				$('message').innerHTML = "<p class='error'>Des champs n'ont pas été renseignés.</p>";
			}
			if(200 == transport.status){
				$('message').innerHTML = "<p class='ok'Votre demande a bien été enregistrée. <br />Nous allons la traiter dans les meilleurs délais!</p>";
				$('abuBut').disabled = 'disabled';
				closePopup(2);
			}
		}*/
		
		/*function closePopup(delay){
			Effect.BlindUp($('abu'), { delay: delay, duration: 0.7 });
		}*/
		/* fin gestion de l'abus */
	
