// JavaScript Document
var is_IE = document.all ? true : false;
document.onmousemove = getmouse;
var posx = 0;
var posy = 0;
var size = new Array();
function getmouse(e)
{
	if (is_IE) {
		posx = event.clientX + document.documentElement.scrollLeft;
		posy = event.clientY + document.documentElement.scrollTop;
	} else {
		posx = e.pageX;
		posy = e.pageY;
	}
}

function showimg(path)
{
	var temp = document.getElementById("pic");
	var i = document.getElementById("img");
	if (size[path]) {
		i.src = path;
		i.width = size[path]['width'];
		i.height = size[path]['height'];
	} else {
		size[path] = new Array();
		var tmp_i = new Image();
		i.src = tmp_i.src = path;
		if (tmp_i.width > tmp_i.height) {
			var wid_o = tmp_i.width;
			i.width = size[path]['width'] = 200;
			i.height = size[path]['height'] = tmp_i.height / (wid_o / 200);
		} else {
			var hei_o = tmp_i.height;
			i.height = size[path]['height'] = 200;
			i.width = size[path]['width'] = tmp_i.width / (hei_o / 200);
		}
	}
	if (temp) {
		if (is_IE) {
			temp.style.display = 'block';
			temp.style.left = posx + "px";
			temp.style.top = posy + "px";
			temp.style.zIndex = "1";
		} else {
			temp.style['display'] = 'block';
			temp.style['left'] = posx + "px";
			temp.style['top'] = posy + "px";
		}
	}
}

function hideimg()
{
	var temp = document.getElementById("pic");
	if (temp) {
		if (is_IE)
			temp.style.display = 'none';
		else
			temp.style['display'] = 'none';
	}
}