/*
var soWebsiteUrl = 'http://www.pinb.tgory.pl';
var soWebsiteInfo = 'Powiatowy Inspektorat Nadzoru Budowlanego w Tarnowskich Górach';
/ *** Ustawienie jako startowa *** /
function soSetAsHomePage() {
	var someDIV = document.getElementById('stMicrolinks');
	var errBrowser = false;
	var errMsg = '';
	if( typeof(window.external) != 'undefined' )
	{
		try
		{
			someDIV.style.behavior = 'url(#default#homepage)';
			someDIV.setHomePage(soWebsiteUrl);
		}
		catch(ex)
		{
			errMsg = ex.message;
			if(errMsg.indexOf('is not'))
				errBrowser = true;
		}
	}

	if( errBrowser )
		alert('Twoja przeglądarka nie obsługuje tej funkcji!\nSpróbuj przeciągnąć adres tej strony na ikonę strony domowej\nlub skorzystaj z menu "Opcje" przeglądarki.');
	else if( errMsg.length > 0 )
		alert('Przepraszamy, nie można ustawić strony jako startowa ('+errMsg+')!');
}
/ *** Dodanie do ulubionych *** /
function soAddToFavorite() {
	if( typeof( document.all ) == 'object' )
		window.external.AddFavorite( soWebsiteUrl, soWebsiteInfo );
	else if( typeof( window.sidebar ) == 'object' )
		window.sidebar.addPanel(soWebsiteInfo, soWebsiteUrl,""); 
	else
		alert('Twoja przeglądarka nie obsługuje tej funkcji,\nmusisz ręcznie dodać tę stronę do zakładek/ulubionych.');
}
/ *** Przekierowanie Flash na domowa *** /
function soHomepage() {
	document.location.href = soWebsiteUrl;
}
*/



///////////////////////////////////////////////////////////////////////////////
//
function StSetAsStartPage( lang, url, info )
{
	var someDIV = document.getElementById('stPage');

	var errBrowser = false;
	var errMsg = '';

	if( typeof(window.external) != 'undefined' )
	{
		try
		{
			someDIV.style.behavior = 'url(#default#homepage)';
			someDIV.setHomePage( url );
		}
		catch(ex)
		{
			errMsg = ex.message;
			if(errMsg.indexOf('is not'))
				errBrowser = true;
		}
	}

	if( errBrowser )
		alert( StTxt(lang,'NotSupported') );
	else if( errMsg.length > 0 )
		alert( StTxt(lang,'NotSetAsStartPage') + errMsg );
}

///////////////////////////////////////////////////////////////////////////////
//
function StAddToFavorite( lang, url, info )
{
	if( typeof( document.all ) == 'object' )
		window.external.AddFavorite( url, info );
	else if( typeof( window.sidebar ) == 'object' )
		window.sidebar.addPanel( info, url, "" ); 
	else
		alert( StTxt(lang,'NotSupported') );
}

///////////////////////////////////////////////////////////////////////////////
//
function StTxt( lang, id )
{
	var txt = '';
	switch( lang )
	{
		case 'pl': return StTxtPL( id );
		case 'en':
		default: return StTxtEN( id );
	}
}

function StTxtEN( id )
{
	switch( id )
	{
		case 'NotSupported': return 'Your browser doesn\'t support this functionality!';
		case 'NotSetHomePage': return 'Sorry! Cannot set this page as Start Page!';
	}
}

function StTxtPL( id )
{
	switch( id )
	{
		case 'NotSupported': return 'Twoja przeglądarka nie obsługuje tej funkcji!';
		case 'NotSetHomePage': return 'Nie można ustawić strony jako Startowa!';
	}
}




