// JavaScript Document

$(document).ready(function(){
	borderMenu(); /*ok*/
	fctBlank();
	fctPop();
	
	$("#fd").fadeIn("fast");
})


//Variable utilisée dans la feuille jseurocopter-01_aircraftfinder.js
var statut;

function fctPop(){
	for(var i=0; i<document.getElementsByTagName("a").length; i++)
	{
		if(document.getElementsByTagName("a")[i].className)
			if(document.getElementsByTagName("a")[i].className=="pop" || document.getElementsByTagName("a")[i].className=="popup")
			{
				document.getElementsByTagName("a")[i].onclick=function()
				{
					fen=window.open(this.href,"popup","toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width=700,height=500,left=5,top=5");
					fen.focus();
					return false;
				}
			}
	}
}

function fctBlank(){
	for(var i=0; i<document.getElementsByTagName("a").length; i++)
	{
		if(document.getElementsByTagName("a")[i].className)
			if(document.getElementsByTagName("a")[i].className=="blank")
			{
				document.getElementsByTagName("a")[i].onclick=function()
				{
					window.open(this.href);
					return false;
				}
			}
	}
}


function borderMenu()
{
	$("#menuI a:last-children").css("borderRight", 0);
}


