// JavaScript Document

function piterPrintDate() {
    daysArray = new Array;
    monthsArray = new Array;
    daysArray = ["niedziela", "poniedziałek", "wtorek", "środa", "czwartek", "piątek", "sobota"];
    monthsArray = ["stycznia", "lutego", "marca", "kwietnia", "maja", "czerwca", "lipca", "sierpnia", "września", "października", "listopada", "grudnia"];
    currentDate = new Date;
    if (currentDate.getDate() < 10) {
        thisDay = "0" + currentDate.getDate();
    } else {
        thisDay = currentDate.getDate();
    }
    dateString = daysArray[currentDate.getDay()] + ", " + thisDay + " " + monthsArray[currentDate.getMonth()] + " " + currentDate.getFullYear();
    document.write(dateString);
}

function piterBookmarkSite(siteTitle, siteURL)
{
	if (document.all)
		window.external.AddFavorite(siteURL, siteTitle);
	else if (window.sidebar)
		window.sidebar.addPanel(siteTitle, siteURL, "");
}

function piterShowFlash(flashSource, flashWidth, flashHeight)
{
    docSource = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + flashWidth + '" height="' + flashHeight + '">';
    docSource += '<param name="movie" value="' + flashSource +'" />';
    docSource += '<param name="quality" value="high" />';
    docSource += '<param name="wmode" value="transparent">';
    docSource += '<embed src="' + flashSource + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + flashWidth + '" height="' + flashHeight + '" wmode="transparent"></embed></object>';
    document.write(docSource);
}

function piterHideMail(addressPrefix, addressDomain, domainType)
{
	monkey = "@";
	dot = ".";
	addressDomain = addressDomain + dot + domainType;
	document.write("<a href=\"mailto:" + addressPrefix + monkey + addressDomain + "\" title=\"Napisz do nas!\">" + addressPrefix + monkey + addressDomain + "</a>");
}
