	/**
	* Funkcja przekierowuje aktualnie 
	* otwarta strone na inny adres
	* url, jako parametr przyjmuje adres
	* wykonywalnego pliku.
	*
	* @access public
	* @return void
	* @param string url address
	**/
	function reload( href )
	{
		if ( document.all )
		{
		
			this.window.location.href( href );	
			
		} else {
		
			this.window.location.href = href;		
			
		}
	}
	
	
	/**
	* Funkcja otwiera nowe okienko
	* popup jako parametry przyjmuje
	* adres wykonywalnego pliku oraz
	* szerokosc i wysokosc okienka.
	*
	* @access public
	* @return void
	* @param string url address
	* @param integer popup width
	* @param integer popup height
	**/
	function popup( href , width , height )
	{
		var newWindow = null;
		
		if( window.screen )
		{
			
			aw = screen.availWidth;
			ah = screen.availHeight;
			
		} else {
		
			aw = 640;
			ah = 450;
			
		}
		
		if( width == null )
		{
		
			width = 740;
			
		}
		
		if( height == null )
		{
			
			height = 500;
			
		}
		
		settings = 
		"left=" + (aw-width)/2 + ","
		+"top=" + (ah-height)/2 + ","
		+"screenX=" + (aw-width)/2 + ","
		+"screenY=" + (ah-height)/2 + ","
		+'directories=no, location=no, menubar=no, scrollbars=yes, status=no, toolbar=no, resizable=0, width='+width+',height='+height+'';
	

	
		newWindow = window.open( href , 'newWindow' , settings );
	}

	
	/**
	* Dodaje strone do ulubionych,
	* dziala tylko w Internet Explorer
	*
	* @access public
	* @return void
	* @param string site title
	* @param string url address
	**/
	function addBookmark( sTitle , sUrl ) 
	{
		if( !sTitle )
		{
			sTitle = 'w|m|r studio';
		}
	
		if( !sUrl )
		{
			sUrl = 'http://www.dotproject.pl';
		}

		if ( window.sidebar ) 
		{
			return true;
			// since this doesn't work, disabling, but it may work someday.
			//window.sidebar.addPanel(sTitle, sUrl,"");

		} else if( document.all ) {
		
			window.external.AddFavorite( sUrl, sTitle);
		
		} else if( window.opera && window.print ) {
		
			return true;
		}
	}

	
	/**
	* Ustawia strone jako strone startowa
	* przegladarki internetowej.
	*
	* @access public
	* @return void
	* @param string url address
	**/
	function addStart( sUrl )
	{
		if( !sUrl )
		{
			sUrl = 'http://www.dotproject.pl';
		}
	
		this.style.behavior = 'url(#default#homepage)'; 
		this.setHomePage( sUrl );
	}



