function GetY(imgElem) 
{
yPos = imgElem.offsetTop;
tempEl = eval(imgElem).offsetParent;
while (tempEl != null) {
yPos += tempEl.offsetTop;
tempEl = tempEl.offsetParent;
}
return yPos;
}

function GetX(imgElem) 
{
xPos = imgElem.offsetWidth;
tempEl = eval(imgElem).offsetParent;
while (tempEl != null) {
xPos += tempEl.offsetLeft;
tempEl = tempEl.offsetParent;
}
return xPos;
}

function color_mouse(el,or){
	if (or==1)
	{
		el.style.color="#523D31";
	}
	else
	{
		el.style.color="#000000";
	}
}

function okno(str)
{
	str3="directories=no, location=no, menubar=no, resizable=no, scrollbars=no, status=no, toolbar=no, fullscreen=0, height=600, width=700";
	newWindow = window.open("","newWindow",str3);
	newWindow.document.open();
	newWindow.document.write('<html><head><title> Office-trading </title><meta http-equiv="imagetoolbar" content="false"></head><body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0"  onBlur="self.close()" onClick="self.close()" ONCONTEXTMENU="return false" ONDRAGSTART="return false" ONSELECTSTART ="return false">');  
	newWindow.document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" height="100%"><tr><td align="center">');
	newWindow.document.write('<img src="'+str+'" alt="ÇÀÊÐÛÒÜ" >'); 
	newWindow.document.write('</td></tr></table></body></html>');
	newWindow.document.close();
	newWindow.focus();
}



function show_hide(el,pic,sh,or) {
	mouseY=GetY(pic);
	mouseX=GetX(pic)+125;
	el.style.cursor='hand';
	if (sh==1)
	{		
		if (or==1) 
		{
			el.style.top=mouseY;
			el.style.left=mouseX;
		}
		if (el.style.display == 'none')
		el.style.display = '';
		else
		el.style.display = '';
	}
	else
	{
		if (el.style.display == '')
		el.style.display = 'none';
		else
		el.style.display = 'none';
	}
}