/**
 *	PineTree CMS *tm
 *	@author	Kirill I Sosnin kirill@sosnin.spb.ru
 *
 *	License: GPL
 *
 */
function detectIE()
{
 var agent = navigator.userAgent.toLowerCase();
 var i = agent.indexOf('msie');

 if (i != -1) return parseFloat(agent.slice(i+5))
 return false;
}
ie = detectIE();

function show_picture(gid, id, f, c, w, h, color, title)
{ var size="width="+w+",height="+h; picture = window.open("/includes/misc/popup_img.php?gid="+gid+"&id="+id+'&f='+f+"&c="+c+"&col="+color+"&tit="+title, "picture", "dependent=yes,status=yes,directories=no,menubar=no,scrollbars=yes,resizable=yes,"+size);
}

function PopUp(path,W,H)
	{
	W+=0;
	H+=0;
	var size="width="+W+",height="+H;
	window.open("/includes/popup.php?path="+path,"","dependent=yes,status=no,scrollbars=no,resizable=yes,"+size);
	}

function show_hide(form_id) {
if(document.getElementById(form_id))
{
	if(document.getElementById(form_id).style.display == "block")
	{
		document.getElementById(form_id).style.display = "none";
	}
	else
	{
		document.getElementById(form_id).style.display = "block";
	}
}
}

