function getPartnerStation()
    {
        window.station = "";
        cookieSave = document.cookie;
        window.cookieValue = cookieSave;
        stationFind = window.cookieValue.indexOf("station");
        if(stationFind > -1)
        {
            semiFind = window.cookieValue.indexOf(";", stationFind);
            if (semiFind == -1)
                {
                    semiFind = window.cookieValue.length;
                }
            window.station = window.cookieValue.substring(stationFind + 8, semiFind);
        }

        var partnerStations = "|KEXP_FM|KPLU_FM|KUT_FM|KUTX_FM|KRSD_FM|KBPN_FM|KNCM_FM|KCRB_FM|KMSE_FM|WMLS_FM|KLNI_FM|KNSR_FM|KCMP_FM|KRSW_FM|KLCD_FM|KCMF_FM|KSJR_FM|KCCD_FM|KGAC_FM|KBPR_FM|KZSE_FM|WIRR_FM|KCCM_FM|WGGL_FM|KXLC_FM|KNOW_FM|KRSU_FM|KNBJ_FM|KQMN_FM|KNGA_FM|KLSE_FM|KNSW_FM|KWRV_FM|WIRN_FM|WSCD_FM|KSJN_FM|WSCN_FM|KNTN_FM|WBGO_FM|WDUQ_FM|WFUV_FM|WGBH_FM|WGUC_FM|WXPN_FM|WKSU_FM|WVXU_FM|WNYC_FM|WNYC_AM|WKHS_FM|WXPH_FM|WCAI_FM|WNAN_FM|WKSV_FM|WKRW_FM|WNRK_FM|WKRJ_FM|KVIX_FM|KPLI_FM|";

        if (partnerStations.indexOf("|" + window.station + "|")>-1)
        {
            document.write('<div class="nprlogopartner">');
                document.write('<a href="/music"><img src="http://media.npr.org/chrome/music/npr_music_logo.gif" width="175" height="47" alt="NPR Music" /></a>');
                
                // INCLUDE STATION STUFF
                document.write ('<script src="http://www.npr.org/stations/music/partners/' + (window.station).toLowerCase() + '.js" type="text/javascript"></script>');
            
            document.write('</div>');
        }
        else
        {
            document.write('<div class="nprlogo">');
                document.write('<a href="/music"><img src="http://media.npr.org/chrome/music/npr_music_logo.gif" width="175" height="47" alt="NPR Music" /></a>');
            document.write('</div>');
        }
    }           
