var oMenu;
function initAd() {
	
	oTbl = pGetElementById("tbl");
	oTbl.style.height = oTbl.parentNode.offsetHeight + "px";
	
	oMenu = pGetElementById("menu_layer");
	oMenu.style.top = 318;
	oMenu.style.visibility = "visible";
	//MoveLayer();
}
function initAd2() {
	
	oTbl2 = pGetElementById("tbl2");
	oTbl2.style.height = oTbl2.parentNode.offsetHeight + "px";
	oMenu = pGetElementById("menu_layer");
	oMenu.style.top = 318;
	oMenu.style.visibility = "visible";
	//MoveLayer();
}
/*
function MoveLayer() {
	var x = 0;
	var y = 318;
	var diff = (document.documentElement.scrollTop + y - oMenu.style.top)*.40;
	if (document.documentElement.scrollTop > 318) y = document.documentElement.scrollTop; // + y - diff
	oMenu.style.top = y + "px";
	oMenu.style.left = x + "px";
	setTimeout("MoveLayer();", 60);
}
*/

function pGetElementById(id){
    if (document.getElementById)
		return document.getElementById(id);
	else if(document.all)
		return document.all[id];
	else if(eval && self){
		eval("var e=self."+id+";");
		return e;
	}
	else if(window.execScript && self){
		window.execScript("var e=self."+id+";", "JavaScript");
		return e;
	}
}



