var active;
function startclose(){
     active = window.setTimeout("closeAll()",1000);
}
function stopclose(){
     if(active){
		window.clearTimeout(active);
	}
}
function expandIt(el, id, OffsX, OffsY) {
	var coords= {left:0,top:0};

	coords = $('POSER_'+id).cumulativeOffset();
	//viewportOffset();
	if (coords){
		var poserX = coords['left'];
		var poserY = coords['top'];
	}
	MouseX=(poserX+OffsX);
	MouseY=(poserY+OffsY);
	
	$(el).style.top = MouseY+"px";
	$(el).style.left = MouseX+"px";
	$(el).style.display = "block";
}

function closeAll(){
  closeAllByName("child");
  closeAllByName("subchild");
}

function closeAllByName(name){
	stopclose();
	if (NS4) {
		for (i=0; i<document.layers.length; i++) {
			whichEl = document.layers[i];
			if (whichEl.id.toLowerCase().indexOf(name) != -1) {
				whichEl.display = "none";
			}
		}
	} else if(IE4) {
		tempColl = document.all.tags("DIV");
		for (i=0; i<tempColl.length; i++) {
			whichEl = tempColl(i);
			if (whichEl.className == name){
				whichEl.style.display = "none";
			}
		}
	} else if(DOM) {
		tempColl = document.getElementsByTagName("DIV");
		for (i=0; i<tempColl.length; i++) {
			whichEl = tempColl[i];
			if (whichEl.className == name){
				whichEl.style.display = "none";
			}
		}
	}
}

function toggleWebinar(id){
	if($(id)){
		if($(id).style.display=='none'){
			new Effect.BlindDown(id);
		} else {
			new Effect.BlindUp(id);
		}
	}
	return false;
}