function get_commune(id, ref) {



var ref_obj = $(ref);
var box = $(id);
var oft = ref_obj.cumulativeOffset();
document.body.appendChild(box);
if(id=='liste_commune_new'){
	box.style.left = (parseInt(oft[0]) - 190)+"px";
	box.style.top = (parseInt(oft[1]) -110)+"px";
}
else {
	box.style.left = (parseInt(oft[0]) + 1)+"px";
	box.style.top = (parseInt(oft[1]) + 0)+"px";
}
box.style.display= "block";

}

function appelFlash(movieName) {
	
	//if(document.getElementById(movieName))
	//	return document.getElementById(movieName);
    if (navigator.appName.indexOf("Microsoft") != -1) {
	//	alert(movieName+", "+window[movieName]+", "+document[movieName]+", "+document.getElementById(movieName));
		return window[movieName];
    }
    else {
	    return document[movieName];
    }
} 

function afficherPartager(cle){
	//alert(cle);
	appelFlash("laVisionneuse_"+cle).afficherPartage();	
}

function afficherPlaylister(cle){
	appelFlash("laVisionneuse_"+cle).afficherPlaylist();	
}

function afficherExporter(cle){
	appelFlash("laVisionneuse_"+cle).afficherExport();	
}
