function updatescreen()
{
	if (document.getElementById) { // DOM3 = IE5, NS6
		var maxheight=0;
		var leftitem=document.getElementById('left');
		var contentitem=document.getElementById('content');
		var rightitem=document.getElementById('right');
		
		if ( leftitem.offsetHeight > contentitem.offsetHeight )
		{
			maxheight=leftitem.offsetHeight;
			if (leftitem.offsetHeight > rightitem.offsetHeight)
			{
			maxheight=leftitem.offsetHeight;
			}
			else
			{
			maxheight=rightitem.offsetHeight;
			}
		}
		else
		{
			if ( contentitem.offsetHeight > rightitem.offsetHeight )
			{
			maxheight=contentitem.offsetHeight;
			}
			else
			{
			maxheight=rightitem.offsetHeight;
			}
		}
	}
	contentitem.style.height=maxheight;
	leftitem.style.height=maxheight;
	rightitem.style.height=maxheight;
}

function hidediv(evt) {
	//safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		var tgt = evt.target || evt.srcElement; // Correct or IE
		var Id=tgt.id+"full";

			delay(305,Id,'none');
			//document.getElementById(Id).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.Id.display = 'none';
			}
		else { // IE 4
			document.all.Id.style.display = 'none';
		}
	}
}

function delay(delay,objid,type)
{
func="displaynow('"+objid+"','"+type+"')";
setTimeout(func,delay);
}

function displaynow(Id,method)
{
	document.getElementById(Id).style.display = method;
}

function showdiv(evt) {
	//safe function to show an element with a specified id
	var tgt = evt.target || evt.srcElement; // Correct or IE
	if (document.getElementById) { // DOM3 = IE5, NS6
		var offx=evt.clientX - 500 ;
		var offy=evt.clientY + 20 + document.documentElement.scrollTop;
	
		if (offx < 0 )
		{
		offx=20 ;
		
		}

		x=offx;
		var Id=tgt.id+"full";

		document.getElementById(Id).style.left = x+"px";
		document.getElementById(Id).style.top = offy+"px";
		delay(300,Id,'block');
		//document.getElementById(Id).style.display = 'block';
	}
	else {

		if (document.layers) { // Netscape 4
			document.Id.display = 'block';

		}
		else { // IE 4
			document.all.Id.style.display = 'block';
		}
	}
}

function inittimer()
{
var secs
var timerID = null
var timerRunning = false
var delay = 1000
}

function InitializeTimer()
{
    // Set the length of the timer, in seconds


    secs = 2
    StopTheClock()
    StartTheTimer()
}

function StopTheClock()
{
    if(timerRunning)
        clearTimeout(timerID)
    timerRunning = false
}

function StartTheTimer()
{
    if (secs==0)
    {
        StopTheClock()
        // Here's where you put something useful that's
        // supposed to happen after the allotted time.
        // For example, you could display a message:
        //alert("You have just wasted 10 seconds of your life.")
//        document.write('<p>colour1:</p>');


    }
    else
    {
        self.status = secs
        secs = secs - 1
        timerRunning = true
        timerID = self.setTimeout("StartTheTimer()", delay)
    }
}



