var flag13=0;
var flag23=0;

var existflag3=0;

var posx3, posy3;

var detectFlag3=0;

function onl3()
{
	if (!detectFlag3)
	{
		if (d.layers)
		{
			posx3=d.layers.ipo3.pageX;
			posy3=d.layers.ipo3.pageY;
			d.layers.men3.left=posx3-1;
			d.layers.men3.top=posy3+16;
	
		}
		else
		{	
			posx3=detectposxIE3();
			posy3=detectposyIE3();
		}
	detectFlag3=1;
	}
}


if (document.layers)
{
	d.write('<layer visibility="hide" onmouseout="mout3()" id="men3" 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="menu3" onmouseover="flag23=1" onmouseout="mout3()">');
	d.write('<table width="100%" cellpadding="3" cellspacing="0">');
	d.write(' <tr><td id="ye13" onmouseout="mout3()" onmouseover="mover3(1)"><a onmouseout="mout3()" class="nl" href="/catalog1.html">HP-CANON'+nbsp(13)+'</a></td></tr>');
	d.write(' <tr><td onmouseout="mout3()" bgcolor="white"></td></tr>');
	d.write(' <tr><td id="ye23" onmouseout="mout3()" onmouseover="mover3(2)"><a onmouseout="mout3()" class="nl" href="/catalog2.html">CANON'+nbsp(18)+'</a></td></tr>');	
	d.write(' <tr><td onmouseout="mout3()"  bgcolor="white"></td></tr>');
	d.write(' <tr><td id="ye33" onmouseout="mout3()" onmouseover="mover3(3)"><a onmouseout="mout3()" class="nl" href="/catalog3.html">HP'+nbsp(24)+'</a></td></tr>');
	d.write(' <tr><td onmouseout="mout3()"  bgcolor="white"></td></tr>');
	d.write(' <tr><td id="ye43" onmouseout="mout3()" onmouseover="mover3(4)"><a onmouseout="mout3()" class="nl" href="/catalog4.html">EPSON'+nbsp(18)+'</a></td></tr>');	
	d.write(' <tr><td onmouseout="mout3()"  bgcolor="white"></td></tr>');
	d.write(' <tr><td id="ye53" onmouseout="mout3()" onmouseover="mover3(5)"><a onmouseout="mout3()" class="nl" href="/catalog5.html">LEXMARK'+nbsp(14)+'</a></td></tr>');
	d.write(' <tr><td onmouseout="mout3()"  bgcolor="white"></td></tr>');
	d.write(' <tr><td id="ye63" onmouseout="mout3()" onmouseover="mover3(6)"><a onmouseout="mout3()" class="nl" href="/catalog6.html">OKI'+nbsp(23)+'</a></td></tr>');
	d.write(' <tr><td onmouseout="mout3()"  bgcolor="white"></td></tr>');
	d.write(' <tr><td id="ye73" onmouseout="mout3()" onmouseover="mover3(7)"><a onmouseout="mout3()" class="nl" href="/catalog7.html">XEROX'+nbsp(18)+'</a></td></tr>');
	d.write(' <tr><td onmouseout="mout3()"  bgcolor="white"></td></tr>');
	d.write(' <tr><td id="ye83" onmouseout="mout3()" onmouseover="mover3(8)"><a onmouseout="mout3()" class="nl" href="/catalog8.html">NEC'+nbsp(23)+'</a></td></tr>');
	d.write(' <tr><td onmouseout="mout3()" bgcolor="white"></td></tr>');
	d.write(' <tr><td id="ye93" onmouseout="mout3()" onmouseover="mover3(9)"><a onmouseout="mout3()" class="nl" href="/catalog9.html">FUJITSU'+nbsp(14)+'</a></td></tr>');
	d.write('</table>');
	d.write('</div>');
}

function dp2()
{
	var h=d.location.href;
	var res=0;
	for (var j=1; j<=9; j++)
	{
		if (h.indexOf('catalog'+j)>1)
			res = j;
	}
	return res;
}


function mover3(xi)
{
	d.all.ipos3.style.background="#293cca";
/*	if (xi!=1) d.all.ye13.style.background="#293cca";
	if (xi!=2) d.all.ye23.style.background="#293cca";
	if (xi!=3) d.all.ye33.style.background="#293cca";
	if (xi!=4) d.all.ye43.style.background="#293cca";
	if (xi!=5) d.all.ye53.style.background="#293cca";
	if (xi!=6) d.all.ye63.style.background="#293cca";
	if (xi!=7) d.all.ye73.style.background="#293cca";
	if (xi!=8) d.all.ye83.style.background="#293cca";
	if (xi!=9) d.all.ye93.style.background="#293cca";
*/
	var dip;
	if ((dip=dp2())==xi) 
	{
		if (d.all['ye'+xi+'3'])
			d.all['ye'+xi+'3'].style.background="#f6cc28";
	}
	else
		if (d.all['ye'+dip+'3'])
			d.all['ye'+dip+'3'].style.background="#293cca";
}


function mout3(xx)
{
	if (d.all)
	{
		flag3=0;
		var id=window.event;
		var x=id.clientX+d.body.scrollLeft;
		var y=id.clientY+d.body.scrollTop;

		if ((x<posx3+2)||(y<posy3+2)||(x>125+posx3)||(y>posy3+16+190) ||
			((x>=posx3+125)&&(y<=posy3+18)))
		{
			for (var j=1; j<=9; j++)
			{
				d.all['ye'+j+'3'].style.background="#293cca";
			}
			d.all.ipos3.style.background="#293cca";
			d.all.menu3.style.display='none';
			existflag3=0;
		}
	}
	else
	{
		x = mouseX;
		y = mouseY;

		if ((x<posx3+2)||(y<posy3+2)||(x>120+posx3)||(y>posy3+16+162) ||
			((x>=posx3+193)&&(y<=posy3+18)))
		{
			d.layers.men3.visibility='hide';		
			existflag3=0;
		}

	}
}

function detectposxIE3()
{

	var elem = document.all('ipos3');
	var pos = elem.offsetLeft;

	while (elem.offsetParent != null) 
	{
		elem = elem.offsetParent;
		pos += elem.offsetLeft;
		if (elem.tagName == 'BODY') 
			break;
	}
	return pos;
	
}

function detectposyIE3()
{

	var elem = document.all('ipos3');
	var pos = elem.offsetTop;
	while (elem.offsetParent != null) 
	{
		elem = elem.offsetParent;
		pos += elem.offsetTop;
		if (elem.tagName == 'BODY') 
			break;
	}
	return pos;
}





function smenu3()
{
	onl3();
	flag13=1;
	if (!existflag3)
	{
		if (d.all)
		{
			d.all.menu3.style.display='block';
			d.all.menu3.style.left=posx3;
			d.all.menu3.style.top=posy3+16;
			if (dp2()>0)
			{
				d.all.ipos3.style.background="#f6cc28";
			}

		}
		else
		{
			d.layers.men3.visibility='show';
		}
	}
	else
	{
		if (d.all)
		{
			if (dp2()>0)
				d.all.ipos3.style.background="#f6cc28";
		}
	}
	existflag3=1;
}

