﻿//pour index


document.createElement("header");
document.createElement("footer");
document.createElement("article");
document.createElement("nav");
document.createElement("aside");
document.createElement("abbr");


window.onload = depart;
window.onerror = mon_erreur;
function mon_erreur(){

	var a=window.location.href.substring(0,window.location.href.indexOf("#"));

	var m="<div style='position:absolute; top:0px; left:0;  width:80%; background-color:rgb(0,0,0); color:rgb(255,0,0); border:50px ridge rgb(150, 150, 150); text-align:center; font-size:200%;'><div style='position:absolute; top:0; right:0;' class='href-' onClick='pour_display(\"espace-glossaire\",\"none\");'><img src='../jeux/s4_croix.gif' alt='' /></div>";

	m=m+"<div>Attention !<br />Certains navigateurs n\'aiment pas ce type d\'ouverture dans une nouvelle fenêtre !<br />On va donc tenter de contourner le problème<p><a href="+a+">CLIC POUR CONTINUER</a></p></div></div>";

	pour_inner("espace-glossaire",m);
	pour_display("espace-glossaire","block");

return true;
}
function mon_erreur2(){
	return true;
}



////interface DOM
function $(o){return document.getElementById(o)}

function met_deplace(o,p,q){
	document.getElementById(o).style.left=p;
	document.getElementById(o).style.top=q;
	return;
}
function met_dim(o,p,q){
	document.getElementById(o).style.width=p;
	document.getElementById(o).style.height=q;
	return;
}
function pour_deplacex(o,p){
	if (p=="quoi_") {return parseInt(document.getElementById(o).style.left);}
	document.getElementById(o).style.left=p;
	return;
}
function pour_deplacey(o,p){
	if (p=="quoi_") {return parseInt(document.getElementById(o).style.top);}
	document.getElementById(o).style.top=p;
	return;
}
function pour_visibility(o,p){
	if (p=="quoi_") {return document.getElementById(o).style.visibility;}
	document.getElementById(o).style.visibility=p;
	return;
}
function pour_display(o,p){
	if (p=="quoi_") {return document.getElementById(o).style.display;}
	document.getElementById(o).style.display=p;
	return;
}
function pour_fontsize(o,p){
	if (p=="quoi_") {return parseInt(document.getElementById(o).style.fontSize);}
	document.getElementById(o).style.fontSize=p;
	return;
}
function pour_width(o,p){
	if (p=="quoi_") {return parseInt(document.getElementById(o).style.width);}
	document.getElementById(o).style.width=p;
	return;
}
function pour_height(o,p){
	if (p=="quoi_") {return parseInt(document.getElementById(o).style.height);}
	document.getElementById(o).style.height=p;
	return;
}
function pour_first(o,p){
	if (p=="quoi_") {return document.getElementById(o).firstChild.nodeValue;}
	document.getElementById(o).firstChild.nodeValue=p;
	return;
}
function pour_attribute(o,p,q){
	if (q=="quoi_") {return document.getElementById(o).getAttribute(p);}
	document.getElementById(o).setAttribute(p,q);
	return;
}
function pour_bgc(o,p){
	if (p=="quoi_") {return document.getElementById(o).style.backgroundColor;}
	document.getElementById(o).style.backgroundColor=p;
	return;
}
function pour_couleur(o,p){
	if (p=="quoi_") {return document.getElementById(o).style.color;}
	document.getElementById(o).style.color=p;
	return;
}
function pour_scroll_t(o,p,q){
	if (p=="quoi_") {return document.getElementById(o).scrollTop;}
	document.getElementById(o).scrollTop=p;
	return;
}
function pour_inner(o,p){
	if (p=="quoi_") {return document.getElementById(o).innerHTML;}
	document.getElementById(o).innerHTML=p;
	return;
}





function depart(){


return;
}
