function findPos(obj)
{
	var curleft = curtop = 0;
	if (obj.offsetParent) {
		curleft = obj.offsetLeft;
		curtop = obj.offsetTop;
		while (obj = obj.offsetParent) {
			curleft += obj.offsetLeft;
			curtop += obj.offsetTop;
		}
	}
	return [curleft,curtop];
}
function ShowScreenShot(src, target, ImageUrl){
    if(target.onmouseover != null){
        SetEvents(src, target, ImageUrl);
    }
	return target.onmouseover();
}
function SetEvents(src , target, ImageUrl){
    target.onmouseout = function() { HideScreenShot();};
    target.onmouseover = function() {ShowImage(src, ImageUrl);};
}
function ShowImage(src, ImageUrl){
	$get('ScreenShotDiv').innerHTML = "<img src='work/" + ImageUrl + "'>";
	$get('ScreenShotDiv').style.visibility = "visible";
	var coors = findPos($get(src));
	$get('ScreenShotDiv').style.top = coors[1] + 30 + 'px';
	$get('ScreenShotDiv').style.left = coors[0] - 250 + 'px';
}
function HideScreenShot(){
	$get('ScreenShotDiv').style.visibility="hidden";
}

