
    function openPopUPTarriff(page) {
        msg = window.open(page,'MAPPopUp','width=600,height=400,directories=no,location=no,menubar=no,scrollbars=no,resizable=no,status=no,toolbar=no,systemmenu=no');
    }

    function openPopUP(page) {
        msg = window.open(page,'MAPPopUp','width=616,height=600,directories=no,location=no,menubar=no,scrollbars=yes,resizable=no,status=no,toolbar=no,systemmenu=no');
    }


    function addToFav(){
        if (navigator.appName =="Microsoft Internet Explorer") {
            window.external.AddFavorite(location.href, document.title);
        } else {
            alert('Funkcja dostępna tylko dla przeglądarek IE.');
        }
    }

    function addHP( othis ) {
        var ms = navigator.appVersion.indexOf("MSIE");
        var ie5 = (ms>0) && (parseInt(navigator.appVersion.substring(ms+5, ms+7)) >= 5);
        if(ie5) {
            othis.style.behavior='url(#default#homepage)';
            othis.setHomePage(location.href);
        } else {
            alert('Funkcja dostępna tylko dla przeglądarek IE.');
        }
    }

    function changeLink( location ) {
        if ( location!="nullOption" ) {
            window.location = location;
        }
    }

    function openMmsPopup() {
        window.open('/portal/map/map?_DARGS=/gear/static/ideaForYouLinks.jsp_A&_DAV=11600002', '', 'width=665, height=515, scrollbars=yes');
    }

    function openMms_portalPopup() {
        window.open('/portal/map/map?_DARGS=/gear/static/ideaForYouLinks.jsp.1_A&_DAV=12200002', '', 'width=665, height=515, scrollbars=yes');
    }

    function openPhoneconfigPopup() {
        window.open('/portal/map/map?_DARGS=/gear/static/ideaForYouLinks.jsp.1_A&_DAV=11900002', '', 'width=665, height=515, scrollbars=yes');
    }

    function openWhereAreYouPopup() {
        window.open('/portal/map/map?_DARGS=/gear/static/ideaForYouLinks.jsp.1_A&_DAV=12000002', '', 'width=700, height=515, scrollbars=yes');
    }

    function openMwiPopup() {
        window.open('/portal/map/map/mwi_popup?paf_dm=popup', 'mapmwi', 'width=590, height=465');
    }
   
           function detectFlash( version ) {
                var jest_flash = 0;
                if ( navigator.mimeTypes &&
                     navigator.mimeTypes[ "application/x-shockwave-flash" ] && 
                     navigator.mimeTypes[ "application/x-shockwave-flash" ].enabledPlugin ) {
                     if ( navigator.plugins && 
                          navigator.plugins[ "Shockwave Flash" ] && 
                          navigator.plugins[ "Shockwave Flash" ].description.indexOf( "Flash " + version ) != -1 ) jest_flash = 1;
                } else if ( navigator.userAgent && 
                            navigator.userAgent.indexOf("MSIE")>=0 && 
                            ( navigator.userAgent.indexOf("Windows 95")>=0 || 
                              navigator.userAgent.indexOf("Windows 98")>=0 || 
                              navigator.userAgent.indexOf("Windows NT")>=0 ) ) {
                    if ( ms_ie_flash_ver >= version ) jest_flash = true;
               }
               return jest_flash 
            }   

	

 
