

<!--
function alignHeight(element){
    var elem = $(element);
    var h = 0;
    if(elem){
        for(var i=0; i<elem.length; i++){
            if(elem.eq(i).height() > h) h = elem.eq(i).height();
        }
        for(i=0; i<elem.length; i++){
            elem.eq(i).height(h);
        }
    }
}

$(document).ready(function() {

    $("div.content table tr:even").addClass("evenRow"); 
    $("div.content table tr:even").addClass("evenRow");
    
    var rows;
    rows = $("div.content table, div.content  table").find("tr:last");
    for (i=0; i<rows.length; i++) {
        if (! $(rows[i]).hasClass("evenRow")){
            $(rows[i]).addClass("lastOddRow");
        }
    }


$('a').each(function(){
    var tmpHref = $(this).attr('href');
    if( tmpHref ){
        if( tmpHref.search(/.*\.pdf$/ig) != -1 ){
            $(this).attr('target','_blank');
        }
    }
});


});
<!--
var K2Font = "/_files/K2Font.swf";
function sifrSubPageHeader() {
if(typeof sIFR == "function"){
var sectionHeader = named({sCase : "lower", sFlashSrc: K2Font, sColor: "#000000", sWmode: 'transparent'})
sIFR.replaceElement("h2.sectionHeader", sectionHeader); 
}
}
function label() {
if(typeof sIFR == "function"){
var label = named({sFlashSrc: K2Font, sColor: "#666666", sWmode: 'transparent'})
sIFR.replaceElement("form label", label);
}
}
/*
function sifrQuotation() {
    $(".content blockquote .blockquote, .content .editorText h3").wrapInner("<div></div>");
    if(typeof sIFR == "function"){
        var quotation_h3 = named({sFlashSrc: K2Font, sColor: "#010101", sWmode: 'transparent'})
        sIFR.replaceElement("blockquote div, h3 div", quotation_h3); 
        var quotation_h4 = named({sFlashSrc: K2Font, sColor: "#666666", sWmode: 'transparent'})
        sIFR.replaceElement(".content h4", quotation_h4); 
    }
}*/
function sifrPublicationLeadTitle(){
    if(typeof sIFR == "function"){
        var serviceTitle = named({sFlashSrc: K2Font, sColor: "#666666", sWmode: 'transparent'})
        sIFR.replaceElement(".content .newsList dt strong", serviceTitle); 
    }
}
function sifrCaseTeaserListTitle() {
    if(typeof sIFR == "function"){
        var teaserTitle = named({sFlashSrc: K2Font, sColor: "#666666", sWmode: 'transparent'})
        sIFR.replaceElement(".content .title, .content #caseTeaserListPageTitle span", teaserTitle); 
    }
}
function sifrMenuHeader() {
    if(typeof sIFR == "function"){
        var menuHeader = named({sFlashSrc: K2Font, sColor: "#666666", sWmode: 'transparent'})
        sIFR.replaceElement(".content h3", menuHeader); 
    }
}
function sifrColumnTitle() {
    if(typeof sIFR == "function"){
        var columnTitle = named({sFlashSrc: K2Font, sColor: "#666666", sWmode: 'transparent'})
        sIFR.replaceElement(".content h2, .content h4, .content h5", columnTitle); 
    }
}
function sifrColumnTitlea() {
    if(typeof sIFR == "function"){
        var columnTitlea = named({sFlashSrc: K2Font, sColor: "#666666", sWmode: 'transparent'})
        sIFR.replaceElement(".content .columnTitle", columnTitlea); 
    }
}
function sifrBlockquote() {
    if(typeof sIFR == "function"){
        var blockquoteHeader = named({sFlashSrc: K2Font, sColor: "#666666", sWmode: 'transparent'})
        sIFR.replaceElement(".content blockquote .blockquote .header", blockquoteHeader); 
        var blockquoteText = named({sFlashSrc: K2Font, sColor: "#999999", sWmode: 'transparent'})
        sIFR.replaceElement(".content blockquote .blockquote .text", blockquoteText); 
    }
}
function sifrManagementName() {
    if(typeof sIFR == "function"){
        var managementName = named({sFlashSrc: K2Font, sColor: "#666666", sWmode: 'transparent'})
        sIFR.replaceElement(".content ul#management li.item .info .name", managementName); 
    }
}
function sifrAwards() {
    if(typeof sIFR == "function"){
        var awardTitle = named({sFlashSrc: K2Font, sColor: "#666666", sWmode: 'transparent'})
        sIFR.replaceElement(".content .name, .content #awards .otherAwardsTxt span,.content #awards .toBeContinued span", awardTitle); 
    }
}
function sifrJobOffersBoxTitle() {
    if(typeof sIFR == "function"){
        var boxTitle = named({sFlashSrc: K2Font, sColor: "#999999", sWmode: 'transparent'})
        sIFR.replaceElement(".jobOffersBox .title", boxTitle ); 
    }
}

function sifrSiteMapHeader() {
    if(typeof sIFR == "function"){
        var boxHeader = named({sCase : "lower", sFlashSrc: K2Font, sColor: "#000000", sWmode: 'transparent'})
        sIFR.replaceElement("ul.sitemap li a.customFont", boxHeader ); 
    }
}
function sifrContactHeaders() {
    if(typeof sIFR == "function"){
        var contactHeader = named({sFlashSrc: K2Font, sColor: "#666666", sWmode: 'transparent'})
        sIFR.replaceElement(".content #contact ul.divisionsAddresses li.item .hd, .content #contact ul.contactPersons li.item .hd", contactHeader ); 
        var contactHeader2 = named({sFlashSrc: K2Font, sColor: "#000000", sWmode: 'transparent'})
        sIFR.replaceElement(".content #contact .divisionsHeader", contactHeader2 ); 
    }
}
function sifrJobOfferName() {
    if(typeof sIFR == "function"){
        var jobOfferName = named({sFlashSrc: K2Font, sColor: "#666666", sWmode: 'transparent'})
        sIFR.replaceElement("#recruitmentForm form fieldset#top .jobOfferName", jobOfferName ); 
    }
}
function sifrPressDownload() {
    if(typeof sIFR == "function"){
        var pressHD = named({sFlashSrc: K2Font, sColor: "#000000", sWmode: 'transparent'})
        sIFR.replaceElement(".content #pressDownload .pressHD span", pressHD); 
        var pressName = named({sFlashSrc: K2Font, sColor: "#666666", sWmode: 'transparent'})
        sIFR.replaceElement(".content #pressDownload .pressPhotos .item .info .name, .content #pressDownload .pressGraphics .item .info .title", pressName); 
    }
}

function sifrStockSingUp(){
    if(typeof sIFR == "function"){
        var header = named({sFlashSrc: K2Font, sColor: "#000000", sWmode: 'transparent'})
        sIFR.replaceElement(".content h3.header", header);
        var city = named({sFlashSrc: K2Font, sColor: "#666666", sWmode: 'transparent'})
        sIFR.replaceElement(".content ul.pokList li.pok .city", city);
    }
}
function sifrContent(){
    if(typeof sIFR == "function"){
        var header = named({sFlashSrc: K2Font, sColor: "#000000", sWmode: 'transparent'})
        sIFR.replaceElement("div.content h2.customFont", header);
        var city = named({sFlashSrc: K2Font, sColor: "#666666", sWmode: 'transparent'})
        sIFR.replaceElement("div.content h2.customFont", city);
    }
}


function toggleMap(id) {
  $(".content #contact .imgContent .map").hide();
  $("#"+id).show();
}

function addClickEvents() {
    $("#printPageTop").click(function(){
        window.print();
        return false;
    });
    $("#printPageBottom").click(function(){
        window.print();
        return false;
    });
    $("#goToTop").click(function(){
        scroll(0,0);
        return false;
    });
}

$(window).load(function () {
    addClickEvents();
});
/*
function addLoadEvent(func) {
    var oldonload = window.onload; 
    if (typeof window.onload != 'function') { 
        window.onload = func; 
    } 
    else { 
        window.onload = function() { 
            if (oldonload) { 
                oldonload(); 
            } 
            func(); 
        } 
    } 
}
*/
function getQueryStringByName(name){
  var wholeQuery, queryParts, queryPart, queryPartItems;
  var url = new String(window.location);
  var questionMark = String(document.location.search);
  var splittedUrl = url.split("?");
  
  if( splittedUrl.length < 2 ) return "";
  wholeQuery = splittedUrl[1];
  
  if (questionMark.match(/%20\w+=/))   { 
    queryParts = wholeQuery.split(escape("&"));
  }
  else {
    queryParts = wholeQuery.split("&");
  }  
  var i=0;
  while(i<queryParts.length){
      queryPart = queryParts[i];
      queryPartItems =  queryPart.split("=");
      if(queryPartItems[0] == name){
        return queryPartItems[1];
      }
      i++;
  }
  return "";
}
function toplayerFinished() {
/* funkcja wywolywana po zakoczeniu odtwarzania toplayera */
    $("#topLayerBox").css({display:"none"});
}
function showMap(imgUrl,name){
    window.open(imgUrl,name,'toolbar=yes,height=210,width=370,location=no,menubar=no,resizable=no,scrollbars=no,status=no','false')
}

var fontSize = ''; // zmienna globalna - moze przyjac jedna z 3-ech wartosci: small, normal, big
var fontSizeCookieName = 'k2_font_size'; //nazwa cookie dla rozmiaru czcionki
function changeFontSize(newSize) {
var elements = new Array();
elements.push(
  '.content,'+
  '.content p,'+
  '.content ul li,'
 ,
  '.content ul#management li.item .info .position,'+
  '.content .pressList li .listHeader,'+
  '.content .pressList li .listFooter,'+
  '.content #mainArticleWide #contact .txtContent .sectionBox .links .linkMoreTxt a span,'+
  '.content #awards ul .awardInfo .linkMoreTxt a span,'+
  '.content #article .date'
,
  '#surfaces .surfacesList .item .lead,'+
  '.content #contact .txtContent .sectionBox .links .linkMoreTxt a span.raquo,'+
  '.content #awards ul .awardInfo .linkMoreTxt a span.raquo'
,
  '#recruitmentForm form fieldset .oneColumn .name,'+
  '#mainArticle .editorText table tr th,'+
  '#mainArticleWide .editorText table tr th,'+
  '#mainArticle .editorText table tr th *,'+
  '#mainArticleWide .editorText table tr th *'
,
  '#recruitmentForm form fieldset label span.required,'+
  '#mainArticle .editorText table tr td,'+
  '#mainArticleWide .editorText table tr td,'+
  '#mainArticle .editorText table tr td *,'+
  '#mainArticleWide .editorText table tr td *'
,
  '#recruitmentForm form fieldset .oneColumn .info'
);
var smallSizes = new Array();
smallSizes.push(
  '11px',
  '10px',
  '11px',
  '11px',
  '10px',
  '10px'
);
var normalSizes = new Array();
normalSizes.push(
  '13px',
  '11px',
  '12px',
  '13px',
  '11px',
  '11px'
);
var bigSizes = new Array();
bigSizes.push(
  '15px',
  '12px',
  '14px',
  '15px',
  '12px',
  '12px'
);
var smallLineHeights = new Array();
smallLineHeights.push(
  '16px',
  '16px',
  '14px',
  'auto',
  'auto',
  '14px'
);
var normalLineHeights = new Array();
normalLineHeights.push(
  '19px',
  '17px',
  '16px',
  'auto',
  'auto',
  '16px'
);
var bigLineHeights = new Array();
bigLineHeights.push(
  '22px',
  '19px',
  '18px',
  'auto',
  'auto',
  '18px'
);

    var sizeArray, lineHeightArray;
    if (fontSize != newSize) {
        fontSize = newSize;
        $.cookie(fontSizeCookieName,fontSize, { expires: 7 }); // set cookie
        switch (fontSize)
        {
            case 'small':
                sizeArray = smallSizes;
                lineHeightArray = smallLineHeights;
                break;
            case 'normal':
                sizeArray = normalSizes;
                lineHeightArray = normalLineHeights;
                break;
            case 'big':
                sizeArray = bigSizes;
                lineHeightArray = bigLineHeights;
                break;
        }
        
        for (i=0; i<elements.length; i++ ) {
          $(elements[i]).css('font-size',sizeArray[i]);
          $(elements[i]).css('line-height',lineHeightArray[i]);
        }
    }
}
function checkFontSize() {
    var fontSizeCookie;    
    fontSizeCookie = $.cookie(fontSizeCookieName);    
    if (fontSizeCookie != null) {
        if (fontSizeCookie != 'small') {
            changeFontSize(fontSizeCookie);
        }
        fontSize = fontSizeCookie;
    }
    else {
        fontSize = 'small';
        $.cookie(fontSizeCookieName,fontSize, { expires: 7 }); // set cookie
    }
}

$(document).ready(function() {
 if ($('body.main').length>0 && $.cookie('januszBlog') != '1') {
  $.scrollTo('#footer',800);
  $("a.januszBlog span.teaser").show();
  setTimeout(function(){ $("a.januszBlog span.teaser").fadeOut() }, 2000);
  $.cookie('januszBlog', '1');
 }
 $("a.januszBlog").hover(
  function () {
   $(this).find('span.teaser').fadeIn();
  }, 
  function () {
   $(this).find('span.teaser').hide();
  }
 );
});
//-->
//-->

