function ShowCloser(page,sizex,sizey) {
version=parseInt(navigator.appVersion);
winw=sizex+10;
winh=sizey+10;
windowPosition='';
if (version >= 4)
	{
	screenw  = screen.width;
	screenh  = screen.height;
	}
else
	{
	screenw  = 630;
	screenh  = 400;
	}

if (winw>screenw) 
	winw=screenw;
	
if (winh>screenh) 
	winh=screenh;

if (version >= 4)
	{
	positionx = Math.round((screenw-winw)/2);  
	positiony = Math.round((screenh-winh)/2);
	windowPosition='left='+positionx+',top='+positiony+',';
	}
window.open(page,'picture','width='+winw+', height='+winh+','+windowPosition+'scrollbars=1, toolbar=0, resizable=1');
}

function setHomepage(f) 
{ f.style.behavior='url(#default#homepage)'; f.setHomePage('http://www.softerra.ru/index.html') }

function addBookmark()
{  window.external.addFavorite('http://www.softerra.ru/index.html', 'Softerra') }