// Hover sur les tags
/*window.onload = function() {
	var a_tag_list = document.getElementsByClassName("tag-link");
	var id = 0;
	var tmp = "";
	
	for(i = 0; i < a_tag_list.length; i++) {
		alert(a_tag_list[i].id);
		tmp = a_tag_list[i].id.split("-");
		id = tmp[3];
		a_tag_list.onmouseover = tag_hover;
		a_tag_list.onmouseout = tag_out;
	}
}*/

function tag_hover(id) {
	document.getElementById("li-tag-link-" + id).className = "hover";
}

function tag_out(id) {
	document.getElementById("li-tag-link-" + id).className = "";
}




// Fonction diverses


function popup (L,H,F,TL,SR,ST) {
	var vpos=(screen.height-H)/2;
	var hpos=(screen.width-L)/2;
	window.open(F,'','top='+vpos+',left='+hpos+',width='+L+',height='+H+',toolbar='+TL+', scrollbars='+SR+',status='+ST+'');
}

function unknown_intern_link(page) {
    if(confirm("La page " + page + " n'existe pas encore. Voulez vous la créer ?")) {
        popup(1000,800, '/igestis/modules/iabsis_website/articles.php?action=new&page=' + page,'no','yes','no');
    }
}

