///////////////////////////////////
//
//	MENU THUMB
//
///////////////////////////////////

function menu_thumb(image,num)
{
	var txt='<div style="position:absolute;top:-16px;left:190px"><img src="photos/products/thumb150_'+image+'" class="imgborder" alt="" /></div>';

	document.getElementById("m"+num).innerHTML=txt;

	document.getElementById("m"+num).style.display="block";
}

function menu_thumb_clear(num)
{
	document.getElementById("m"+num).style.display="none";
}

function menu_cats(ele)
{
	if (document.getElementById("mcats").className=="blk")
	{
		document.getElementById("mcats").className="hid";

		ele.className="selplus";
	}
	else
	{
		document.getElementById("mcats").className="blk";

		ele.className="selminus";
	}
}

///////////////////////////////////
//
//	PHOTO SHOW
//
///////////////////////////////////

document.write('<div id="photo_element" style="position:absolute;display:none;"></div>');

var ie=document.all?true:false;

if (!ie) document.captureEvents(Event.MOUSEMOVE);

document.onmousemove=getMouseXY;

var mx=0;

var my=0;

function getMouseXY(e)
{
	if (ie)
	{
		mx=event.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;

		my=event.clientY+document.body.scrollTop+document.documentElement.scrollTop;
	}
	else
	{
		mx=e.pageX;

		my=e.pageY;
	}  

	return true;
}

function photo_show(text)
{
	document.getElementById("photo_element").innerHTML='<img src="photos/products/'+text+'" class="imgborder" alt="" />';

	document.getElementById("photo_element").style.display="block";

	document.getElementById("photo_element").style.top=(my+20)+"px";

	document.getElementById("photo_element").style.left=(mx-50)+"px";

	photoid=setTimeout(photo_show_position,50);
}

function photo_show_position()
{
	document.getElementById("photo_element").style.top=(my+20)+"px";

	document.getElementById("photo_element").style.left=(mx-50)+"px";

	photoid=setTimeout(photo_show_position,50);
}

function photo_kill()
{
	document.getElementById("photo_element").style.display="none";

	if (photoid)
	{
		clearTimeout(photoid);
	}
}
