var flag14=0;
var flag24=0;

var existflag4=0;

var posx4, posy4;

var detectFlag4=0;

function onl4()
{
	if (!detectFlag4)
	{
		if (d.layers)
		{
			posx4=d.layers.ipo4.pageX;
			posy4=d.layers.ipo4.pageY;
			d.layers.men4.left=posx4-1;
			d.layers.men4.top=posy4+16;
	
		}
		else
		{	
			posx4=detectposxIE4();
			posy4=detectposyIE4();
		}
	detectFlag4=1;
	}
}


if (document.layers)
{
	d.write('<layer visibility="hide" onmouseout="mout4()" id="men4" position="absolute" left=429 top=152 width=124 height=163 >');
	d.write('<table width="100%" border="0" cellspacing="0" cellpadding="2" bgcolor=#293CCA>');
	d.write(' <tr><td><a  class="nl" href="/catalog1.html">HP-CANON</a></td></tr>');
	d.write(' <tr><td><a  class="nl" href="/catalog2.html">CANON</a></td></tr>');
	d.write(' <tr><td><a  class="nl" href="/catalog3.html">HP</a></td></tr>');
	d.write(' <tr><td><a  class="nl" href="/catalog4.html">EPSON</a></td></tr>');
	d.write(' <tr><td><a  class="nl" href="/catalog5.html">LEXMARK</a></td></tr>');
	d.write(' <tr><td><a  class="nl" href="/catalog6.html">OKI</a></td></tr>');
	d.write(' <tr><td><a  class="nl" href="/catalog7.html">XEROX</a></td></tr>');
	d.write(' <tr><td><a  class="nl" href="/catalog8.html">NEC</a></td></tr>');
	d.write(' <tr><td><a  class="nl" href="/catalog9.html">FUJITSU</a></td></tr>');
	d.write('</table>');
	d.write('</layer>');
	//d.layers.men.visibility='hide';
}
else
{
	d.write('<div style="display:none" id="menu4" onmouseover="flag24=1" onmouseout="mout4()">');
	d.write('<table width="100%" cellpadding="3" cellspacing="0">');
	d.write(' <tr><td id="ye14" onmouseout="mout4()" onmouseover="mover4(1)"><a onmouseout="mout4()" class="nl" href="/catalog1.html">HP-CANON</a></td></tr>');
	d.write(' <tr><td onmouseout="mout()" onmouseover="mover4(1)" bgcolor="white"></td></tr>');
	d.write(' <tr><td id="ye24" onmouseout="mout4()" onmouseover="mover4(2)"><a onmouseout="mout4()" class="nl" href="/catalog2.html">CANON</a></td></tr>');	
	d.write(' <tr><td onmouseout="mout()" onmouseover="mover4(1)" bgcolor="white"></td></tr>');
	d.write(' <tr><td id="ye34" onmouseout="mout4()" onmouseover="mover4(4)"><a onmouseout="mout4()" class="nl" href="/catalog4.html">HP</a></td></tr>');
	d.write(' <tr><td onmouseout="mout()" onmouseover="mover4(1)" bgcolor="white"></td></tr>');
	d.write(' <tr><td id="ye44" onmouseout="mout4()" onmouseover="mover4(4)"><a onmouseout="mout4()" class="nl" href="/catalog4.html">EPSON</a></td></tr>');	
	d.write(' <tr><td onmouseout="mout()" onmouseover="mover4(1)" bgcolor="white"></td></tr>');
	d.write(' <tr><td id="ye54" onmouseout="mout4()" onmouseover="mover4(5)"><a onmouseout="mout4()" class="nl" href="/catalog5.html">LEXMARK</a></td></tr>');
	d.write(' <tr><td onmouseout="mout()" onmouseover="mover4(1)" bgcolor="white"></td></tr>');
	d.write(' <tr><td id="ye64" onmouseout="mout4()" onmouseover="mover4(6)"><a onmouseout="mout4()" class="nl" href="/catalog6.html">OKI</a></td></tr>');
	d.write(' <tr><td onmouseout="mout()" onmouseover="mover4(1)" bgcolor="white"></td></tr>');
	d.write(' <tr><td id="ye74" onmouseout="mout4()" onmouseover="mover4(7)"><a onmouseout="mout4()" class="nl" href="/catalog7.html">XEROX</a></td></tr>');
	d.write(' <tr><td onmouseout="mout()" onmouseover="mover4(1)" bgcolor="white"></td></tr>');
	d.write(' <tr><td id="ye84" onmouseout="mout4()" onmouseover="mover4(8)"><a onmouseout="mout4()" class="nl" href="/catalog8.html">NEC</a></td></tr>');
	d.write(' <tr><td onmouseout="mout()" onmouseover="mover4(1)" bgcolor="white"></td></tr>');
	d.write(' <tr><td id="ye94" onmouseout="mout4()" onmouseover="mover4(9)"><a onmouseout="mout4()" class="nl" href="/catalog9.html">FUJITSU</a></td></tr>');

	d.write('</table>');
	d.write('</div>');
}

function mover4(xi)
{
	d.all.ipos4.style.background="#293cca";
	if (xi!=1) d.all.ye14.style.background="#293cca";
	if (xi!=2) d.all.ye24.style.background="#293cca";
	if (xi!=3) d.all.ye34.style.background="#293cca";
	if (xi!=4) d.all.ye44.style.background="#293cca";
	if (xi!=5) d.all.ye54.style.background="#293cca";
	if (xi!=6) d.all.ye64.style.background="#293cca";
	if (xi!=7) d.all.ye74.style.background="#293cca";
	if (xi!=8) d.all.ye84.style.background="#293cca";
	if (xi!=9) d.all.ye94.style.background="#293cca";

	if (dp()==xi) d.all['ye'+xi].style.background="#f6cc28";
}


function mout4(xx)
{
	if (d.all)
	{
		flag4=0;
		var id=window.event;
		var x=id.clientX+d.body.scrollLeft;
		var y=id.clientY+d.body.scrollTop;


		if ((x<posx4+2)||(y<posy4+2)||(x>125+posx4)||(y>posy4+16+190) ||
			((x>=posx4+125)&&(y<=posy4+18)))
		{
			d.all.ye14.style.background="#293cca";
			d.all.ye24.style.background="#293cca";
			d.all.ye34.style.background="#293cca";
			d.all.ipos4.style.background="#293cca";
			d.all.menu4.style.display='none';
			existflag4=0;
		}
	}
	else
	{
		x = mouseX;
		y = mouseY;

		if ((x<posx4+2)||(y<posy4+2)||(x>120+posx4)||(y>posy4+16+162) ||
			((x>=posx4+193)&&(y<=posy4+18)))
		{
			d.layers.men4.visibility='hide';		
			existflag4=0;
		}

	}
}

function detectposxIE4()
{

	var elem = document.all('ipos4');
	var pos = elem.offsetLeft;

	while (elem.offsetParent != null) 
	{
		elem = elem.offsetParent;
		pos += elem.offsetLeft;
		if (elem.tagName == 'BODY') 
			break;
	}
	return pos;
	
}

function detectposyIE4()
{

	var elem = document.all('ipos4');
	var pos = elem.offsetTop;
	while (elem.offsetParent != null) 
	{
		elem = elem.offsetParent;
		pos += elem.offsetTop;
		if (elem.tagName == 'BODY') 
			break;
	}
	return pos;
}





function smenu4()
{
	onl4();
	flag14=1;
	if (!existflag4)
	{
		if (d.all)
		{
			d.all.menu4.style.display='block';
			d.all.menu4.style.left=posx4;
			d.all.menu4.style.top=posy4+16;
			if (dp()>0)
			{
				d.all.ipos4.style.background="#f6cc28";
				d.all.ye14.style.background="#293cca";
				d.all.ye24.style.background="#293cca";
				d.all.ye34.style.background="#293cca";
			}

		}
		else
		{
			d.layers.men4.visibility='show';
		}
	}
	else
	{
		if (d.all)
		{
			if (dp()>0)
				d.all.ipos4.style.background="#f6cc28";
				d.all.ye14.style.background="#293cca";
				d.all.ye24.style.background="#293cca";
				d.all.ye34.style.background="#293cca";
		}
	}
	existflag4=1;
}

