﻿    var contextHidden = true;
    function showContextual()
    {
        dummy_mc = document.getElementById('contextual_container');
    	dummy_mc2 = document.getElementById('xtra1');
    	if(contextHidden)
        {
            contextHidden = false;
	        zzz = new Tween(dummy_mc.style,'height',Tween.strongEaseInOut,parseInt(dummy_mc.style.height),document.getElementById('contextual_info').offsetHeight,1,'px');
	        zzz2 = new Tween(dummy_mc2.style,'top',Tween.strongEaseInOut,parseInt(dummy_mc2.style.top),document.getElementById('contextual_info').offsetHeight+25,1,'px');
            var openOutDiv = new Object();
            openOutDiv.onMotionFinished = function()
            {
                document.getElementById('xtra1').style.background='url(/images/construction/jobs/hidebar.png)';    
            }
            zzz.fixTime;
            zzz2.fixTime;
            zzz.start();
            zzz2.start();
            zzz2.addListener(openOutDiv); 
        }
        else
        {
            contextHidden = true;
            zzz = new Tween(dummy_mc.style,'height',Tween.strongEaseInOut,parseInt(dummy_mc.style.height), 30,1,'px');
            zzz2 = new Tween(dummy_mc2.style,'top',Tween.strongEaseInOut,parseInt(dummy_mc2.style.top),55,1,'px');
            var openOutDiv = new Object();
            openOutDiv.onMotionFinished = function()
            {
                document.getElementById('xtra1').style.background='url(/images/construction/jobs/readmorebar.png)';    
            }
            zzz.fixTime;
            zzz2.fixTime;
            zzz.start();
            zzz2.start();
            zzz2.addListener(openOutDiv);
        }
    }
    
setTimeout(init,600)

function init()
{
dummy_mc = document.getElementById('contextual_container');
dummy_mc2 = document.getElementById('xtra1');
zzz = new Tween(dummy_mc.style,'height',Tween.strongEaseInOut,parseInt(dummy_mc.style.height),30,1,'px');
zzz2 = new Tween(dummy_mc2.style,'top',Tween.strongEaseInOut,parseInt(dummy_mc2.style.top),55,1,'px');
zzz2.fixTime;
zzz.start();
zzz2.start();
}
