<!-- 
var NS4 = (document.layers) ? 1:0
var IE4 = (document.all) ? 1:0
var intHours
var today

function place()
{}

function dynLayer(id,nestref)
{	if (NS4)
	{	if (nestref)
		{	this.css = eval("document." + nestref + ".document." + id)
			this.ref = eval("document." + nestref + ".document." + id + ".document")
			this.img = eval("document." + nestref + ".document." + id + ".document.images['img" + id + "']")
		}
		else
		{	this.css = document.layers[id]
			this.ref = document.layers[id].document
			this.img = eval("document.layers['"+ id + "'].document.images['img" + id + "']")

		}
		this.x = this.css.left
		this.y = this.css.top
	}
	else
	if (IE4)
	{	this.css = document.all[id].style
		this.ref = document.all[id]
		this.img = eval("document.all['img" + id + "']")
		this.x = this.css.pixelLeft
		this.y = this.css.pixelTop
	}
	this.obj = id + "Object" // these 2 lines are explained
	eval(this.obj + "=this") // in the slide method lesson
	this.moveBy = dynLayerMoveBy
	this.moveTo = dynLayerMoveTo
	this.show = dynLayerShow
	this.hide = dynLayerHide
	this.clipTo = dynLayerClipTo
	this.clipValues = dynLayerClipValues
}

function dynLayerMoveBy(x,y)
{	this.x += x
	this.css.left = this.x
	this.y += y
	this.css.top = this.y
}

function dynLayerMoveTo(x,y)
{	this.x = x
	this.css.left = this.x
	this.y = y
	this.css.top = this.y
}

function dynLayerShow()
{	if (NS4) this.css.visibility = "show"
	else
	if (IE4) this.css.visibility = "visible"
}

function dynLayerHide()
{	if (NS4) this.css.visibility = "hide"
	else
	if (IE4) this.css.visibility = "hidden"
}

function dynLayerClipTo(t,r,b,l)
{	if (NS4)
	{ 	this.css.clip.top = t
		this.css.clip.right = r
		this.css.clip.bottom = b
		this.css.clip.left = l
	}
	else
	if (IE4) this.css.clip = "rect("+t+"px "+r+"px "+b+"px "+l+"px)"
}

function dynLayerClipValues(which)
{	if (NS4)
	{	if (which=="t") return this.css.clip.top
		if (which=="r") return this.css.clip.right
		if (which=="b") return this.css.clip.bottom
		if (which=="l") return this.css.clip.left
	}
	else
	if (IE4)
	{	var clipv = this.css.clip.split("rect(")[1].split(")")[0].split("px")
		if (which=="t") return Number(clipv[0])
		if (which=="r") return Number(clipv[1])
		if (which=="b") return Number(clipv[2])
		if (which=="l") return Number(clipv[3])
	}
}

function banner()
{	today = new Date()
	intHours = today.getHours()

	if (intHours < 20 && intHours >7)
	{	theFond.img.src = imageJour.src
	}
	else
	{	theFond.img.src = imageNuit.src
	}
}

function init()
{	if (NS4)
	{	largeur=window.innerWidth
		hauteur=window.innerHeight
	}
	if (IE4)
	{	largeur=document.body.offsetWidth
		hauteur=document.body.offsetHeight
	}
	imageJour = new Image()
	imageJour.src = "logo7.jpg"
	imageNuit = new Image()
	imageNuit.src = "logo7.jpg"
	theFond = new dynLayer("fond")
	theLogo = new dynLayer("logo")
	setInterval("banner()",1000)
}

onload=init
//window.onresize=place
// -->
