function popup(adresse, nom, large, haute) {
	window.open(adresse, nom, 'resizable=no,location=no,width='+large+',height='+haute+',menubar=no,status=no,scrollbars=no,menubar=no');
}

function chgStarOff ( note , type) {
	for ( i=0; i<note; i++ ) {
		j = i + 1;
		eval("document.getElementById('note_" + j + "').src='http://static.intellego.fr/images/"+type+"_star_on.gif';");
	}
}
function chgStarOn ( note ) {
	for ( i=0; i<note; i++ ) {
		j = i + 1;
		eval("document.getElementById('note_" + j + "').src='http://static.intellego.fr/images/star_off.gif';");
	}
}


//mod SB
function chgZeroOff (note, typeuser) {

		eval("document.getElementById('note_" + note + "').src='http://static.intellego.fr/images/zero_off"+typeuser+".gif';");
}
function chgZeroOn (note, typeuser) {

	eval("document.getElementById('note_" + note + "').src='http://static.intellego.fr/images/zero_on"+typeuser+".gif';");
}
//mod SB

function getProfColors () {
	document.getElementById('body-right-1').style.backgroundColor = '#d7cfdc';

	document.getElementById('blog_plan').style.backgroundColor = '#481f6b';
	if (document.getElementById('blog_doc'))
	{
		document.getElementById('blog_doc').style.backgroundColor = '#481f6b';
		document.getElementById('blog_doct').style.backgroundColor = '#cca7eb';
	}

	document.getElementById('blog_recent').style.backgroundColor = '#481f6b';
	document.getElementById('quizz_recent').style.backgroundColor = '#481f6b';
	document.getElementById('blog_search').style.backgroundColor = '#481f6b';
	document.getElementById('blog_prefer').style.backgroundColor = '#481f6b';
	document.getElementById('blog_link').style.backgroundColor = '#481f6b';
	document.getElementById('blog_o').style.backgroundColor = '#481f6b';

	document.getElementById('blog_plant').style.backgroundColor = '#cca7eb';
	document.getElementById('blog_recentt').style.backgroundColor = '#cca7eb';
	document.getElementById('quizz_recentt').style.backgroundColor = '#cca7eb';
	document.getElementById('blog_searcht').style.backgroundColor = '#cca7eb';
	document.getElementById('blog_prefert').style.backgroundColor = '#cca7eb';
	document.getElementById('blog_linkt').style.backgroundColor = '#cca7eb';
	document.getElementById('blog_ot').style.backgroundColor = '#cca7eb';

	document.getElementById('colorizeBlogType').style.backgroundColor = '#481f6b';
}

function getParentColors () {
	document.getElementById('body-right-1').style.backgroundColor = '#fce6b4';

	document.getElementById('blog_plan').style.backgroundColor = '#e1a006';
	if (document.getElementById('blog_doc'))
	{
		document.getElementById('blog_doc').style.backgroundColor = '#e1a006';
		document.getElementById('blog_doct').style.backgroundColor = '#f2d48c';
	}
	document.getElementById('blog_recent').style.backgroundColor = '#e1a006';
	document.getElementById('quizz_recent').style.backgroundColor = '#e1a006';
	document.getElementById('blog_search').style.backgroundColor = '#e1a006';
	document.getElementById('blog_prefer').style.backgroundColor = '#e1a006';
	document.getElementById('blog_link').style.backgroundColor = '#e1a006';
	document.getElementById('blog_o').style.backgroundColor = '#e1a006';

	document.getElementById('blog_plant').style.backgroundColor = '#f2d48c';
	document.getElementById('blog_recentt').style.backgroundColor = '#f2d48c';
	document.getElementById('quizz_recentt').style.backgroundColor = '#f2d48c';
	document.getElementById('blog_searcht').style.backgroundColor = '#f2d48c';
	document.getElementById('blog_prefert').style.backgroundColor = '#f2d48c';
	document.getElementById('blog_linkt').style.backgroundColor = '#f2d48c';
	document.getElementById('blog_ot').style.backgroundColor = '#f2d48c';

	document.getElementById('colorizeBlogType').style.backgroundColor = '#e1a006';
}

function getEleveColors () {
	document.getElementById('body-right-1').style.backgroundColor = '#d7e19c';

	document.getElementById('blog_plan').style.backgroundColor = '#97aa13';
	if (document.getElementById('blog_doc'))
	{
		document.getElementById('blog_doc').style.backgroundColor = '#97aa13';
		document.getElementById('blog_doct').style.backgroundColor = '#dce88b';
	}

	document.getElementById('blog_recent').style.backgroundColor = '#97aa13';
	document.getElementById('quizz_recent').style.backgroundColor = '#97aa13';
	document.getElementById('blog_search').style.backgroundColor = '#97aa13';
	document.getElementById('blog_prefer').style.backgroundColor = '#97aa13';
	document.getElementById('blog_link').style.backgroundColor = '#97aa13';
	document.getElementById('blog_o').style.backgroundColor = '#97aa13';

	document.getElementById('blog_plant').style.backgroundColor = '#dce88b';
	document.getElementById('blog_recentt').style.backgroundColor = '#dce88b';
	document.getElementById('quizz_recentt').style.backgroundColor = '#dce88b';
	document.getElementById('blog_searcht').style.backgroundColor = '#dce88b';
	document.getElementById('blog_prefert').style.backgroundColor = '#dce88b';
	document.getElementById('blog_linkt').style.backgroundColor = '#dce88b';
	document.getElementById('blog_ot').style.backgroundColor = '#dce88b';

	document.getElementById('colorizeBlogType').style.backgroundColor = '#97aa13';
}

function ooops () {
	if (confirm("Il faut être membre de la communauté intellego pour ajouter un commentaire. Cliquez sur OK pour vous inscrire (c’est gratuit) ou cliquez sur Annuler et identifiez-vous si vous êtes déjà inscrit."))
	{
		document.location.href = 'index.php?PageID=inscription';
	}
	else
	{
	}
/*ajout Sophie 21/04/2008*/


}
function cache_div(id) {
		var di = document.getElementById(id) ;
		if (di) { di.style.display = 'none'; }
		return false;
	}
function montre_div(id) {
		var d = document.getElementById(id);
		if (d) {d.style.display='block';}
		return false;
}
