var currentElement4 = null; // object

var x4 = 0;

var activeContainer4;

var position4 = 1;



function doMove4() {

	if (position4 == 2){

	if (x4 == 10) {

	position4 = 3;

	return;}

	currentElement4.style.top = parseInt(currentElement4.style.top)+2+'px';

	currentElement4.style.opacity = x4/10;

	if (activeContainer4 == "container4")

		currentElement4.style.height = (x4*8) + 50 + 'px';

	else 

		currentElement4.style.height = (x4*8) + 100 + 'px';

	x4++;

	setTimeout(doMove4,30); // call doMove4 in 20msec

}

}



function init4(container) {

	if (position4 == 1){

	currentElement4 = document.getElementById(container); // get the "currentElement4" object

	currentElement4.style.backgroundImage = "url(images/drop1.gif)";	

	currentElement4.style.visibility = 'visible';

	currentElement4.style.top = '0px';

	currentElement4.style.height = '100px';

	position4 = 2;

	doMove4(); // start animating

	}

}



function reset24(container) {

position4 = 3;

x4 = 0;

currentElement4 = document.getElementById('container4');

currentElement4.style.height = '0px';

currentElement4.style.visibility = 'hidden';

currentElement4.style.opacity = 0;

position4 = 1;

}



function reset4(e, container) {

	if (!e) var e = window.event;

	e.cancelBubble = true;

	if (e.stopPropagation) e.stopPropagation();

currentElement4 = document.getElementById(container);

if (!e) var e = window.event;

var tg = e.toElement || e.relatedTarget;

if (tg.nodeName == 'TABLE' || tg.nodeName == 'TD' || tg.nodeName == 'TR' || tg.className == 'dropdownlinks' || tg.className == 'dots') return;

if (container == 'container4' && tg.id == 'container4') return;

if (container == 'container4' && tg.id == 'company') return;

if (tg.className == 'navbar') return;

if(tg.nodeName == 'undefined') return;

if(tg.nodeName == 'TBODY') return;

//var reltg = (e.relatedTarget) ? e.relatedTarget : e.toElement;

//while (reltg != tg && reltg.nodeName != 'BODY')

	//	reltg= reltg.parentNode

//if (reltg== tg) return;

setTimeout("reset24('container4')", 200);

}

