browserName=navigator.appName;
nn = document.layers;
opera = (navigator.userAgent.indexOf('Opera') >= 0)? true : false;
ie = (document.all && !opera)? true : false;
dom = (document.getElementById && !ie && !opera)? true : false;
if(dom) nn=false;

function addfav()
{
	if (browserName=="Netscape")
	{
		window.open ('adfav.html', 'addfav', 'scrollbars=no,resizable=no,width=600,height=30');
	}
	else
	{
		window.external.AddFavorite('http://www.wcf.ru','Всемирная Федерация Кошек. Бюро в России.');
	}
}

function addhome(h)
{
	if (browserName=="Netscape")
	{
		window.open ('setdef.html', 'addfav', 'scrollbars=no,resizable=no,width=600,height=30');		
	}
	else
	{
			h.style.behavior='url(#default#homepage)';
			h.setHomePage('http://www.wcf.ru');
			return false;
	}
}

function ShowBigImage(imgId, width, height)
{
	if(width != '' && height != '')
	{
		width = width + 20;
		height= height + 20;   
		window.open("bigimg.shtml?id=" + imgId, "bigimage","scrollbars=yes,resizable=yes, status=1, width=" + width + ", height=" + height);
	}
	else
		window.open("bigimg.shtml?id=" + imgId, "bigimage","resizable=yes, status=1");
}

function OpenPlan(path)
{
	window.open('images/planes/' + path, 'planes', 'scrollbars=yes,resizable=yes,width=471,height=570');
	return false;
}

function OpenPlanBig(path)
{
	window.open('images/planes/' + path, 'planes', 'scrollbars=yes,resizable=yes,width=471,height=736');
	return false;
}
