function Item( indexItem, imageItem, texteItem, styleItem, styleOnFocus )
{
	this.index = indexItem
	if( imageItem.length == 0 )
		this.image = "none"
	else
		this.image = imageItem
	this.imageOnFocus = "none"
	this.style = styleItem
	this.styleOnFocus = styleOnFocus
	this.isFocused = false
	if( texteItem.length == 0 )
		this.texte = "none"
	else
		this.texte = texteItem
	this.functionOnClick = "none"
	this.URLOnClick = "none"
	this.imageFleche = "none"
	this.imageFlecheOnFocus = "none"
	this.sousMenu = null
	this.Draw			= Item_Draw
	this.MakeFocused	= Item_MakeFocused
	this.MakeUnfocused	= Item_MakeUnfocused
	this.MakeSubMenu		= Item_MakeSubMenu
	this.SetImageOnFocus	= Item_SetImageOnFocus
	this.SetFlecheOnFocus	= Item_SetFlecheOnFocus
	this.SetFunction		= Item_SetFunction
	this.SetURL				= Item_SetURL
}
function Item_Draw()
{
	document.write( "<TABLE ID = 'ITEM_" + this.index + "' CLASS = '" + this.style + "' CELLPADDING = 0px CELLSPACING = 0px><TR>" );
	if( this.image != "none" )
		document.write( "<TD WIDTH = '1px'><IMG ID = 'IMG_ITEM_" + this.index + "' SRC = ' " + this.image + "'></TD>" )
	if( this.texte != "none" )
		document.write( "<TD>" + this.texte + "</TD>" )
	if( this.sousMenu != null && this.imageFleche != "none" )
		document.write( "<TD WIDTH = '1px'><IMG ID = 'FLECHE_ITEM_" + this.index + "' SRC = '" + this.imageFleche + "'></TD>" )
	document.write( "</TR></TABLE>" )
}
function Item_MakeFocused()
{
	this.isFocused = true
	GetElement( "ITEM_" + this.index ).className = this.styleOnFocus
	if( this.image != "none" && this.imageOnFocus != "none" )
		GetElement( "IMG_ITEM_" + this.index ).src = this.imageOnFocus
	if( this.imageFlecheOnFocus != "none" )
		GetElement( "FLECHE_ITEM_" + this.index ).src = this.imageFlecheOnFocus
	if( this.URLOnClick != "none" )
		window.defaultStatus = this.URLOnClick
}
function Item_MakeUnfocused()
{
	this.isFocused = false
	GetElement( "ITEM_" + this.index ).className = this.style
	if( this.image != "none" && this.imageOnFocus != "none" )
		GetElement( "IMG_ITEM_" + this.index ).src = this.image
	if( this.imageFleche != "none" && this.imageFlecheOnFocus != "none" )
		GetElement( "FLECHE_ITEM_" + this.index ).src = this.imageFleche
	if( this.URLOnClick != "none" )
		window.defaultStatus = ""
}
function Item_MakeSubMenu( styleMenu, imageFleche )
{
	if( imageFleche.length > 0 )
		this.imageFleche = imageFleche
	this.sousMenu = new Menu( this.index, styleMenu )
	return this.sousMenu
}
function Item_SetImageOnFocus( image )
{
	this.imageOnFocus = image
}
function Item_SetFlecheOnFocus( imageFleche )
{
	this.imageFlecheOnFocus = imageFleche
}
function Item_SetFunction( functionName )
{
	this.functionOnClick = functionName
}
function Item_SetURL( linkName )
{
	this.URLOnClick = linkName
}
