

<!--
var K2Font = "/en/_files/K2Font.swf";
function sifrSubPageHeader() {
if(typeof sIFR == "function"){
var sectionHeader = named({sFlashSrc: K2Font, sColor: "#000000", sWmode: 'transparent'})
sIFR.replaceElement(".subPage .sectionHeader h2", sectionHeader); 
}
}
function label() {
if(typeof sIFR == "function"){
var label = named({sFlashSrc: K2Font, sColor: "#666666", sWmode: 'transparent'})
sIFR.replaceElement("form label", label);
}
}
function sifrQuotation() {
    $("#mainArticle .editorText blockquote, #mainArticle .editorText h3").wrapInner("<div></div>");
    if(typeof sIFR == "function"){
        var quotation_h3 = named({sFlashSrc: K2Font, sColor: "#010101", sWmode: 'transparent'})
        sIFR.replaceElement(".editorText blockquote div, .editorText h3 div", quotation_h3); 
        var quotation_h4 = named({sFlashSrc: K2Font, sColor: "#666666", sWmode: 'transparent'})
        sIFR.replaceElement(".editorText h4, h4.customFont", quotation_h4); 
    }
}
function sifrServiceTeaserListTitle(){
    if(typeof sIFR == "function"){
        var serviceTitle = named({sFlashSrc: K2Font, sColor: "#333333", sWmode: 'transparent'})
        sIFR.replaceElement(".subPage .section #mainWide .servicesTeaserList .item .text .title", serviceTitle); 
    }
}
function sifrCaseTeaserListTitle() {
    if(typeof sIFR == "function"){
        var teaserTitle = named({sFlashSrc: K2Font, sColor: "#666666", sWmode: 'transparent'})
        sIFR.replaceElement(".subPage .section #mainWide .caseTeaserList .item .lead .title, .subPage .section #mainWide #caseTeaserListPageTitle span", teaserTitle); 
    }
}
function sifrMenuHeader() {
    if(typeof sIFR == "function"){
        var menuHeader = named({sFlashSrc: K2Font, sColor: "#666666", sWmode: 'transparent'})
        sIFR.replaceElement(".subPage .section #side .thumbnailsWithTextMenu .menuHeader, .subPage .section #additions .thumbnailsWithTextMenuWide .menuHeader", menuHeader); 
    }
}
function sifrColumnTitle() {
    if(typeof sIFR == "function"){
        var columnTitle = named({sFlashSrc: K2Font, sColor: "#666666", sWmode: 'transparent'})
        sIFR.replaceElement(".subPage .section #additions .columnTitle", columnTitle); 
    }
}
function sifrBlockquote() {
    if(typeof sIFR == "function"){
        var blockquoteHeader = named({sFlashSrc: K2Font, sColor: "#666666", sWmode: 'transparent'})
        sIFR.replaceElement(".subPage .section #additions blockquote .blockquote .header", blockquoteHeader); 
        var blockquoteText = named({sFlashSrc: K2Font, sColor: "#999999", sWmode: 'transparent'})
        sIFR.replaceElement(".subPage .section #additions blockquote .blockquote .text", blockquoteText); 
    }
}
function sifrManagementName() {
    if(typeof sIFR == "function"){
        var managementName = named({sFlashSrc: K2Font, sColor: "#666666", sWmode: 'transparent'})
        sIFR.replaceElement(".subPage .section #main #mainArticle ul#management li.item .info .name", managementName); 
    }
}
function sifrPublicationLeadTitle() {
    if(typeof sIFR == "function"){
        var publicationTitle = named({sFlashSrc: K2Font, sColor: "#666666", sWmode: 'transparent'})
        sIFR.replaceElement(".subPage .section #main .pressList li .title", publicationTitle); 
    }
}
function sifrAwards() {
    if(typeof sIFR == "function"){
        var awardTitle = named({sFlashSrc: K2Font, sColor: "#666666", sWmode: 'transparent'})
        sIFR.replaceElement(".subPage .section #main #mainArticle #awards ul.mainAwards .awardInfo .name, .subPage .section #main #mainArticle #awards .otherAwardsTxt span,.subPage .section #main #mainArticle #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({sFlashSrc: K2Font, sColor: "#000000", sWmode: 'transparent'})
        sIFR.replaceElement(".subPage .section #mainWide #sitemap .item .header", boxHeader ); 
    }
}
function sifrContactHeaders() {
    if(typeof sIFR == "function"){
        var contactHeader = named({sFlashSrc: K2Font, sColor: "#666666", sWmode: 'transparent'})
        sIFR.replaceElement(".subPage .section #main #mainArticleWide #contact ul.divisionsAddresses li.item .hd, .subPage .section #main #mainArticleWide #contact ul.contactPersons li.item .hd", contactHeader ); 
        var contactHeader2 = named({sFlashSrc: K2Font, sColor: "#000000", sWmode: 'transparent'})
        sIFR.replaceElement(".subPage .section #main #mainArticleWide #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(".subPage .section #main #mainArticleWide #pressDownload .pressHD span", pressHD); 
        var pressName = named({sFlashSrc: K2Font, sColor: "#666666", sWmode: 'transparent'})
        sIFR.replaceElement(".subPage .section #main #mainArticleWide #pressDownload .pressPhotos .item .info .name, .subPage .section #main #mainArticleWide #pressDownload .pressGraphics .item .info .title", pressName); 
    }
}

function sifrStockSingUp(){
    if(typeof sIFR == "function"){
        var header = named({sFlashSrc: K2Font, sColor: "#000000", sWmode: 'transparent'})
        sIFR.replaceElement(".subPage .section #main #mainArticleWide .stockSignUp h3.header", header);
        var city = named({sFlashSrc: K2Font, sColor: "#666666", sWmode: 'transparent'})
        sIFR.replaceElement(".subPage .section #main #mainArticleWide .stockSignUp ul.pokList li.pok .city", city);
    }
}



function toggleMap(id) {
  $(".subPage .section #main #mainArticleWide #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(
  '.editorText,'+
  '.editorText p,'+
  '.editorText ul li,'+
  '.subPage .section #main .pressList li .lead,'+
  '#surfaces .lead, .subPage .section #main #mainArticleWide #contact .txtContent .sectionBox,'+
  '.subPage .section #main #mainArticleWide #contact .commonInfo,'+
  '.subPage .section #main #mainArticle #awards .lead,'+
  '.subPage .section #main #mainArticle #awards ul .awardInfo .awardDesc,'+
  '.subPage .section #main #mainArticle #awards ul.otherAwards .awardInfo .name,'+
  '.subPage .section #main #mainArticle #awards ul .awardInfo .separator,'+
  '.subPage .section #mainWide .caseTeaserList .item .lead .text,'+
  '.subPage .section #mainWide .caseTeaserList .item .lead .text a,'+
  '.subPage .section #main #mainArticle #article .lead,'+
  '.jobOffersBox ul.offersList li,'+
  '#recruitmentForm .lead'
 ,
  '.subPage .section #main #mainArticle ul#management li.item .info .position,'+
  '.subPage .section #main .pressList li .listHeader,'+
  '.subPage .section #main .pressList li .listFooter,'+
  '.subPage .section #main #mainArticleWide #contact .txtContent .sectionBox .links .linkMoreTxt a span,'+
  '.subPage .section #main #mainArticle #awards ul .awardInfo .linkMoreTxt a span,'+
  '.subPage .section #main #mainArticle #article .date'
,
  '#surfaces .surfacesList .item .lead,'+
  '.subPage .section #main #mainArticleWide #contact .txtContent .sectionBox .links .linkMoreTxt a span.raquo,'+
  '.subPage .section #main #mainArticle #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
    }
}
//-->

