﻿//<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
// JScript File

//if (navigator.platform == "Win32" 
//	&& navigator.appName == "Microsoft Internet Explorer" 
//	&& window.attachEvent)
//{
//	var rslt = navigator.appVersion.match(/MSIE (\d+\.\d+)/, '');
//	var isIE6 = (rslt != null && Number(rslt[1]) >= 5.5 && Number(rslt[1]) < 7.0);
//	if (isIE6) 
//	{
//	document.writeln('<style type="text/css">img { visibility:hidden; } </style>');
//	window.attachEvent("onload", enableAlphaImages);
//	}
//}

if (isOldIE()==1)
{
	document.writeln('<style type="text/css">.toplogo img { visibility:hidden; } </style>');
	window.attachEvent("onload", enableAlphaImages);
}


function isOldIE()
{
    if (navigator.platform == "Win32" 
	    && navigator.appName == "Microsoft Internet Explorer" 
	    && window.attachEvent)
    {
	    var res = navigator.appVersion.match(/MSIE (\d+\.\d+)/, '');
	    var isIE6 = (res != null && Number(res[1]) >= 5.5 && Number(res[1]) < 7.0);
	    if (isIE6) 
	    {
	        return 1
	    }
	}
	return 0
}

function enableAlphaImages()
{
	var spacerPath = 'images/spacer.gif';
		for (var i=0; i<document.images.length; i++)
		{
			var img = document.images[i];
            if (img && img.src.match(/\.png$/i) != null) 
            {
				var src = img.src;
				img.style.width = img.width + "px";
				img.style.height = img.height + "px";
				img.style.filter =
				"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+src+"', sizingMethod='crop')"
				img.src = spacerPath;
			}
            img.style.visibility = "visible";
		}
}


var ImageWindow=' ';

function closeimage()
{ 
    if (ImageWindow.location && !ImageWindow.closed) 
    {
        ImageWindow.close();
    }
}    


function showimage(image) 
{
    var str="showimage.htm?"+image;
	ImageWindow=window.open(str,'ImageWindow','resizable=1,height=200,width=200');
	if (window.focus) 
	{
	    ImageWindow.focus()
	}
	return false;
}


function dispimage(image,just)
{
document.write('<a href="showimage.htm" onclick="return showimage(\''
             + '../images/' + image + '_med.jpg\')" > '
             + '<img class=' + just + ' src="../images/' + image + '_thumb.jpg" alt="Small image" /></a> '
             );
}
 
function gdispimage(image,just)
{
document.write('<a href="showimage.htm" onclick="return showimage(\''
             + '../images/' + image + '.jpg\')" > '
             + '<img class=' + just + ' src="../images/' + image + '_thumb.jpg" alt="Small image" /></a> '
             );
}
 
function gdispimagetall(image,just)
{
document.write('<a href="showimage.htm" onclick="return showimage(\''
             + '../images/' + image + '.jpg\')" > '
             + '<img class=' + just + ' src="../images/' + image + '_thumb.jpg" alt="Small image" /></a> '
             );
}
 


function zoomimage(image,just)
{
if (isOldIE() == 1)
{
    dispimage(image,just);
 }
 else
 {
document.write('<a class="zoom" href="showimage.htm" onclick="return showimage(\''
             + '../images/' + image + '_med.jpg\')" > '
             + '<img class=' + just + ' src="../images/' + image + '_thumb.jpg" alt="Small image" /> '
             + '<img class="large" src="../images/' + image + '_med.jpg" alt="Large Image" /></a> ');
 }
}
 
function zoomimagetall(image,just)
{
if (isOldIE() == 1)
{
    dispimage(image,just);
 }
 else
 {
document.write('<a class="zoomtall" href="showimage.htm" onclick="return showimage(\''
             + '../images/' + image + '_med.jpg\')" > '
             + '<img class=' + just + ' src="../images/' + image + '_thumb.jpg" alt="Small image" /> '
             + '<img class="large" src="../images/' + image + '_med.jpg" alt="Large Image" /></a> ');
 }
}
                 
                    
                        
function Footer()
{
	document.write('<p>BIURO  TŁUMACZEŃ  PKB GROT</p>');
	document.write('<p>Adres korespondencyjny i Biuro: ul. Gościnna 3/52, 85-792 Bydgoszcz </p>');
	document.write('<p> tel. 0608799623    e-mail: <a href="mailto:bmir@in.com.pl">bmir@in.com.pl</a></p>');
}
                        
                
function Menu(dontshow)
{
	document.writeln('<ul>');
	if (dontshow != 1)
		document.write('<li><a href="index.htm"> Strona główna</a></li>');
	else
		document.write('<li><p> Strona główna</p></li>');
	if (dontshow != 2)
		document.write('<li><a href="pricelist.htm"> Cennik</a></li>');
	else
		document.write('<li><p> Cennik</p></li>');
	if (dontshow != 3)
		document.write('<li><a href="estimate.htm"> Terminy</a></li>');
	else
		document.write('<li><p> Terminy </p></li>');
	if (dontshow != 4)
		document.write('<li><a href="quickquote.htm"> Szybka wycena</a></li>');
	else
		document.write('<li><p> Szybka wycena</p></li>');
	if (dontshow != 5)
		document.write('<li><a href="branches.php"> Oddziały</a></li>');
	else
		document.write('<li><p> Oddziały</p></li>');
	if (dontshow != 7)
		document.write('<li><a href="orderonline.htm"> Zlecenia poprzez internet</a></li>');
	else
		document.write('<li><p> Zlecenia poprzez internet</p></li>');
	if (dontshow != 8)
		document.write('<li><a href="vacancies.htm"> Poszukujemy współpracowników</a></li>');
	else
		document.write('<li><p> Poszukujemy współpracowników</p></li>');
	if (dontshow != 9)
		document.write('<li><a href="catalog.htm"> Polskie katalogi branżowe GROT</a></li>');
	else
		document.write('<li><p> Polskie katalogi branżowe GROT</p></li>');
	if (dontshow != 10)
		document.write('<li><a href="ShowComments.php"> Przeczytaj oceny innych</a></li>');
	else
		document.write('<li><p> Przeczytaj oceny innych</p></li>');
	if (dontshow != 11)
		document.write('<li><a href="EnterComment.php"> Zapraszamy do wpisania swojej oceny naszych tłumaczeń</a></li>');
	else
		document.write('<li><p> Zapraszamy do wpisania swojej oceny naszych tłumaczeń</p></li>');
	if (dontshow != 6)
		document.write('<li><a href="contacts.htm"> Kontakt</a></li>');
	else
		document.write('<li><p> Kontakt</p></li>');
	document.writeln('</ul>');
}

