//----------------------- Prototype -----------------------------------------//
//  resize(x,y): Resize la fenetre à la taile x, y			     //
//  									     //
//---------------------------------------------------------------------------//


//function resize(x,y) 
//{
	
//	window.moveTo('0','0');
//	window.resizeTo(x, y);
//}

function resize(w, h)
{
	window.resizeTo(300, 300);
	if (self.innerWidth)
	{
		dif1	= 300 - self.innerWidth;
		dif2	= 300 - self.innerHeight;
		w	+= dif1;
		h	+= dif2;
		window.resizeTo(w, h);
	}
	else
	{
		dif1	= 300 - document.body.clientWidth;
		dif2	= 300 - document.body.clientHeight;
		w	+= dif1;
		h	+= dif2;
		window.resizeTo(w, h);
	}
		
}

function resize2(w, h)
{
	window.parent.resizeTo(300, 300);
	if (parent.self.innerWidth)
	{
		dif1	= 300 - parent.self.innerWidth;
		dif2	= 300 - parent.self.innerHeight;
		w	+= dif1;
		h	+= dif2;
		window.parent.resizeTo(w, h);
	}
	else
	{
		dif1	= 300 - window.parent.document.body.clientWidth;
		dif2	= 300 - window.parent.document.body.clientHeight;
		w	+= dif1;
		h	+= dif2;
		window.parent.resizeTo(w, h);
	}
}

function timeFormat(t) 
{
         return ((h=Math.floor(t/1000/60/60))<10?"0"+h:h)+":"+
                ((m=Math.floor(t/1000/60)%60)<10?"0"+m:m)+":"+
                ((s=Math.floor(t/1000)%60)<10?"0"+s:s);
}

function dynamic(layer, html)
{
  if (document.getElementById(layer).innerHTML != html) {
    document.getElementById(layer).innerHTML = html;
  }
}
