document.write('<div id="epop" style="Z-INDEX:1;left:0px;visibility:hidden; POSITION:absolute; TOP:0px; z-index: 10;"> ');
document.write('<table width="236" border="0" cellpadding="0" cellspacing="0">');  // style="border:1px #DC0000 solid;background:#DC0000;"
document.write('<tr>');
/*
document.write('<td colspan="2" height="41" background="/images/small/xx41.gif" style="background-repeat:no-repeat;">&nbsp;</td></tr>');
*/
document.write('<td colspan="2" height="41"><img src="/images/small/boy1.gif" height=40px align=right onMouseOver=javascript:changeDiv()><img src="/images/small/baby.gif" height=40px align=right onMouseOver=javascript:changeDiv()></td></tr>');
document.write('<tr>');
document.write('<td width="229" height="16" background="/images/small/bgh.jpg" style="color:#fff; text-align:left;">&nbsp;E&T&nbsp;ΤΪΟίΑτΡΤ°ε</td>');
document.write('<td width="61" background="http://www.ettrans.com/images/small/bgh.jpg" align="right"><img src="http://www.ettrans.com/images/small/min.gif" width="15" height="15" onclick="changeDiv();" id="ctrl" style="cursor:pointer;" /><img style="cursor:pointer;" src="http://www.ettrans.com/images/small/close2.gif" width="15" height="15" onclick="closeDiv();" />&nbsp;</td>');
document.write('</tr><tr>');
document.write('<td colspan="2" id="popad" style="border:1px #DC0000 solid;">');
document.write('<iframe width=236 height=136 marginwidth=0 maginheight=0 frameborder=0 scrolling=no src="/menu/liuyanban.htm"></iframe></td></tr></table></div>');
var divTop,divLeft,divWidth,divHeight,docHeight,docWidth,objTimer,i = 0;
var bodyfrm = ( document.compatMode.toLowerCase()=="css1compat" ) ? document.documentElement : document.body;
function getMsg()
{
	try{
	divTop = parseInt(document.getElementById("epop").style.top,10);
	divLeft = parseInt(document.getElementById("epop").style.left,10);
	divHeight = parseInt(document.getElementById("epop").offsetHeight,10);
	divWidth = parseInt(document.getElementById("epop").offsetWidth,10);
	docWidth = bodyfrm.scrollLeft;
	docHeight = bodyfrm.clientHeight;
	document.getElementById("epop").style.top = parseInt(bodyfrm.scrollTop,10) + docHeight + 10+"px";//  divHeight
	document.getElementById("epop").style.left = parseInt(bodyfrm.scrollLeft,10)+screen.width-255+"px"; //  divLeft
	document.getElementById("epop").style.visibility="visible"
	objTimer = window.setInterval("moveDiv()",10)
	}
	catch(e){}
}

function getMsg0()
{
	try{
	divTop = parseInt(document.getElementById("epop").style.top,10);
	divLeft = parseInt(document.getElementById("epop").style.left,10);
	divHeight = parseInt(document.getElementById("epop").offsetHeight,10);
	divWidth = parseInt(document.getElementById("epop").offsetWidth,10);
	docWidth = bodyfrm.scrollLeft;
	docHeight = bodyfrm.clientHeight;
	document.getElementById("epop").style.top = parseInt(bodyfrm.scrollTop,10) + docHeight + 10+"px";//  divHeight
	document.getElementById("epop").style.left = parseInt(bodyfrm.scrollLeft,10)+2+"px";
	document.getElementById("epop").style.visibility="visible"
	objTimer = window.setInterval("moveDiv()",10)
		}
	catch(e){}
		document.getElementById('popad').innerHTML = "";
		document.getElementById('ctrl').src = "http://www.ettrans.com/images/small/max.gif";
}

function resizeDiv()
	{
	try{
	divHeight = parseInt(document.getElementById("epop").offsetHeight,10)
	divWidth = parseInt(document.getElementById("epop").offsetWidth,10)
	docWidth = document.documentElement.clientWidth;
	docHeight = bodyfrm.clientHeight;
	document.getElementById("epop").style.top = docHeight - divHeight + parseInt(bodyfrm.scrollTop,10)+"px";
	document.getElementById("epop").style.left = parseInt(bodyfrm.scrollLeft,10)+screen.width-255+"px";
	}
	catch(e){}
}

function moveDiv()
{
	try
	{
	if(parseInt(document.getElementById("epop").style.top,10) <= (docHeight - divHeight + parseInt(bodyfrm.scrollTop,10)))
	{
	window.clearInterval(objTimer)
	objTimer = window.setInterval("resizeDiv()",1)
	}
	divTop = parseInt(document.getElementById("epop").style.top,10)
	document.getElementById("epop").style.top = divTop - 1+"px";
	}
	catch(e){}
}

function closeDiv()
{
	document.getElementById('epop').style.visibility='hidden';
	if(objTimer) window.clearInterval(objTimer)
}

function changeDiv(){
	var cobj = document.getElementById('ctrl').src;	
	if(cobj=="http://www.ettrans.com/images/small/min.gif") {
		document.getElementById('popad').innerHTML = "";
		document.getElementById('ctrl').src = "http://www.ettrans.com/images/small/max.gif";
		}
	if(cobj=="http://www.ettrans.com/images/small/max.gif"){
             	document.getElementById('ctrl').src = "http://www.ettrans.com/images/small/min.gif";
		document.getElementById('popad').innerHTML = '<iframe width=236 height=136 marginwidth=0 maginheight=0 frameborder=0 scrolling=no src="/menu/liuyanban.htm"></iframe>';
		}
		
}
	window.onload = getMsg;
	window.refresh = getMsg;
	window.onresize = resizeDiv;
	setTimeout("changeDiv()",8000);
	//window.onerror = function(){}



