

var id_page="hop15";
var id_tra_deri="_csg_";

var coord_="0<Fichiers locaux<../s3_ae.gif<<0<; 1<Généralités<../s3_ae.gif<<1<; 90<hr<<<; 2<Constat<photos/hopk_0.gif<2<2<; 4<Se protéger<photos/hopk_20.gif<4<4<; 5<Protection des cuirassements<photos/bambesch_b1_tam2.jpg<5<5<; 6<Couac des GFM<photos/galgenberg_b5.jpg<6<6<; 8<Béton à 2 armatures<photos/bambesch_b2_1.jpg<8<8<; 7<Protection du béton<photos/simserhof_47eh.jpg<7<7<; 9<Munitions à effet Hopkinson<../s3_ae.gif<9<9<; 91<hr<<<; 10<Didacticiel<photos/hopk_100.gif<10<10<";


//////spécial local



function clic_local(){
	for (i=0; i<11; i++) {$("im_"+i).style.visibility="hidden";}
	clearInterval(test_id2);dra_video=false;num_video=0;
	if (ici_==10) {//didacticiel
		$("question_").style.display="none";
		$("excellent_").style.display="none";
		$("clic_question").style.display="block";
		$("reponse_").style.display="none";
		$("excellent_").style.display="none";
		}
	return;
}

function prend_local(o){
	if (o.indexOf("im_")!=-1) {o="image_"}
	return o;
}

////animation
var detail_ = new Array(15);
for (i=0; i<=15; i++) {detail_[i] = new Image; detail_[i].src = "photos/hopk_"+i+".gif";}

var test_id2=""
var dra_video=false;
function depart_anim(){
	if (dra_video) {return;}
	dra_video=true; test_id2 = setInterval("animation_(1);",120);
	return;
}

var num_video=0;
function animation_(o){
	num_video=(num_video+o+15)%15;
	$("im").setAttribute("src",detail_[num_video].src);
	return;
}
function pas_a_pas(o){
	if (dra_video) {clearInterval(test_id2);dra_video=false;num_video=1;o=-1;}
	animation_(o);
	mets_pre_aide(num_video.toString(),1);
	return;
}
function fin_anim(){
	clearInterval(test_id2);dra_video=false;num_video=0;
	return;
}
function pas_a_pas_ecrit(){
	if (dra_video==false) {mets_pre_aide(num_video.toString(),1);}
	return;
}

///didacticiel
var compteur_=0;
var question_ = new Array(10);
	question_[0]="101;105;108;109;1";
	question_[1]="104;1";
	question_[2]="102;108;109;1";
	question_[3]="103;109;1";
	question_[4]="104;109;3";
	question_[5]="103;106;109;3";
	question_[6]="102;105;108;109;3";
	question_[7]="101;105;108;109;110;3";
	question_[8]="101;108;109;2";
	question_[9]="102;108;2";
	question_[10]="102;105;108;2";
	question_[11]="103;105;106;107;108;110;2";


var nombre_images=11;
var la_question=0;
var la_question_memo=0;
function pose_question(){
	var o=0;
	for (i=0; i<11; i++) {$("im_"+i).style.visibility="hidden";}

	$("compteur_").firstChild.nodeValue=compteur_;
	$("clic_question").style.display="none";
	$("reponse_").style.display="none";
	$("excellent_").style.display="none";
	$("question_").style.display="block";
	while (o==la_question_memo){o=Math.round(Math.random()*11);}
	la_question_memo=o;
	la_question=question_[o].split(";");

	for (i=0; i<la_question.length-1; i++) {
		$("im_"+i).setAttribute("src","photos/hopk_"+la_question[i]+".gif");
		$("im_"+i).style.visibility="visible";
		}



}

function reponse_(o){
	$("question_").style.display="none";
	$("reponse_").style.display="block";

	$("exact_").style.display="none";
	$("erreur_").style.display="none";

	if (la_question[la_question.length-1]==o) {compteur_++;
		$("exact_").style.display="block";
		}

	else {compteur_=0;
		$("erreur_").style.display="block";
		}

	$("bonne_reponse").firstChild.nodeValue=$("r_"+la_question[la_question.length-1]).firstChild.nodeValue;
	$("compteur_").firstChild.nodeValue=compteur_;

	if (compteur_>=10) {$("excellent_").style.display="block";}
	$("clic_question").style.display="block";
	return;
}




