var		fetcher = false;

function find(item) {
	if (window.mmIsOpera) return(document.getElementById(item));
	if (document.all) return(document.all[item]);
	if (document.getElementById) return(document.getElementById(item));
	return(false);
}
function var_dump(obj) {
	var s = new Array ();
	var i;
	var j = 0;
	
	for (i in obj) {
		s[j] = i + ": " + obj[i];
		j = j + 1;
	}
	s.sort ();
	document.open ("text/html");
	for (i=0; i<j; i++) {
		document.writeln (s[i], "<br />");
	}
}

function    article_change_all(nb_who, nb_total, id_nb)
{
    var c0 = 0;
    var c1 = 0;
    for (c0 = 0; c0 < nb_total; c0++)
    {
    temp_img = find("img_" + c0); 
    for (c1 = 0; c1 < id_nb; c1++)
    {
       temp_span = find("span_"+ c1 +"_" + c0);
       if (c0 == nb_who)
        {
          temp_span.style.display='block';                                   
          temp_img.border = 4;
          temp_img.style.borderStyle='groove';
          temp_img.style.borderColor='black';
        }
       else
        {
          temp_span.style.display='none';
          temp_img.border = 4;
          temp_img.style.borderStyle='solid';
          temp_img.style.borderColor='#EFF7BA';
        }
    }
    }
        fetcher = new   js_fetch('POST');
	if (!fetcher.init()) {
		alert(fetcher.error);
		return (false);
	}

	fetcher.set_handler(article_change_all_handler); 
	fetcher.add_param("who", nb_who);
	fetcher.go('/index.phtml?post=change_user_langage');
}

function	article_change_all_handler() {
	return (true);
}

function insert_music()
{
document.write('<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="0" height="0">\n');
document.write(' <param name="src" value="http://www.ecoleactivedecoiffure.com/images/intro.m3u" />\n');
document.write(' <param name="controller" value="true" />\n');
document.write(' <object type="video/quicktime" data="http://www.ecoleactivedecoiffure.com/images/intro.m3u" width="0" height="0" class="m3u">\n');
document.write('  <param name="controller" value="true" />\n');
document.write('  Error text.\n');
document.write(' </object>\n');
document.write('</object>\n');
}
