/* Ustal aktualny rok do tekstu COPYRIGHT */
function current_year() {
	currentDate = new Date()
	msie4 = ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ));
	if (msie4) {
	    var theYear = currentDate.getYear();
	}
	else {
	     var theYear = currentDate.getYear() + 1900;
	}
	return theYear;
}
/* - - - - - - - EOF - - - - - - - */

/* Ustal nazwe aktualnego dokumentu do wygenerowania flag zmiany jezyka strony */
url = new String (document.location);
sliceindex = url.indexOf('/');
checkhash = url.slice(-1);
filehtml = url.slice(sliceindex+4);
if (checkhash != '#')
	{
	file = filehtml.slice(0,-4);
	}
else
	{
	file = filehtml.slice(0,-5);
	}
nofileurl = url.slice(0,sliceindex+4);

/* Jesli nie ma nazwy dokumentu - przyjmij ze jestesmy na INDEX */
if (filehtml == "/")
	{
	filehtml = new String ('/index.htm');
	}
/* - - - - - - - EOF - - - - - - - */
	
/* Ustaw tekst stopki */
if (file.slice(-3) == '_en')
	{
	credits_text = 'All rights reserved. Downloading/copying pictures from this website w/o author\'s knowledge and permission is <em>forbidden</em>.<br />';
	}
else
	{
	credits_text = 'Wszelkie prawa zastrzeżone. Pobieranie/kopiowanie zdjęć zamieszczonych na stronie bez wiedzy i zgody autorki <em>zabronione</em>.<br />';
	}
/* - - - - - - - EOF - - - - - - - */

/* GENERUJ STOPKE */
document.write('<table id="bottom" cellpadding="0" cellspacing="0">');
document.write('	<tr>');
document.write('		<td id="bottom_main_bg">');
document.write('			&nbsp;');
document.write('		</td>');
document.write('		<td id="bottom_footer">');
document.write('		<div class="bottom_footer_text">');
document.write('			<br />');
document.write('			<br />');
document.write('			<br />');
document.write('			&copy; Copyright by <em>KoToRa</em> 1988 - ' + current_year() + ' :: designed by');
document.write('			<a href="http://www.zborecque.pl" target="_blank">zborecque</a><br />');
document.write('			e-mail:&nbsp;lucyna<img src="gfx/aticon.jpg" style="position: relative; bottom: -2px;">kotora-collies.com');
document.write('			::&nbsp;tel.:&nbsp;501-417-952');
document.write('			<br />');
document.write('			<br />');
document.write('			<span class="bottom_footer_text_forbidden">');
document.write('			' + credits_text);
document.write('			</span>');
document.write('			<br />');
document.write('			<br />');
document.write('			</div>');

/* WYSWIETL FLAGI ZMIENIAJACE JEZYK ale tylko, jesli aktualnym plikiem nie jest plik wyswietlania obrazow galerii*/
document.write('			<p class="centered">');
if (file.indexOf('gal.htm') > 1 || file.indexOf('gal_en.htm') > 1 || file.indexOf('gal_illustrations.htm') > 1 || file.indexOf('gal_illustrations_en.htm') > 1)
	{
	document.write('&nbsp;');
	}
else
	{
	if (file.slice(-3) == '_en')
		{
		plfile = filehtml.slice(0,-7);
		document.write('<a href=\"' + nofileurl + plfile + '.htm\"><img src=\"gfx/pl_i.jpg\" border=\"0\" alt=\"Wybierz język Polski\"></a>&nbsp;&nbsp;<img src=\"gfx/en_a.jpg\" border=\"0\" alt=\"Wybrany język: Angielski\">');
		}
	else
		{
		enfile = filehtml.slice(0,-4);
		document.write('<img src=\"gfx/pl_a.jpg\" border=\"0\" alt=\"Chosen language: Polish\">&nbsp;&nbsp;<a href=\"' + nofileurl + enfile +'_en.htm\"><img src=\"gfx/en_i.jpg\" border=\"0\" alt=\"Switch to English language\"></a>');
		}
	}
document.write('		</p>');
/* - - - - - - - EOF - - - - - - - */

/* GENERUJ STOPKE */
document.write('		<br />');
document.write('		<br />');
document.write('		</td>');
document.write('		<td id="bottom_main_bg">');
document.write('			&nbsp;');
document.write('		</td>');
document.write('	</tr>');
document.write('</table>');
/* - - - - - - - - - - - - - - */
