var PrnAwSiteAffaliates={"AZ":{"KMVA-FM":{"a":"KMVA-FM","n":"Hot 97.5","s":"http:\/\/socialstreamingplayer.crystalmedianetworks.com\/radio\/kmva ","i":"sites\/elvis-duran\/affiliates\/usa\/arizona\/phoenix-kmva-fm-97.5\/166823-8-eng-US\/Phoenix-KMVA-fm-97.5.jpg"}},"AR":{"KMXF-FM":{"a":"KMXF-FM"}},"CT":{"WKCI-FM":{"a":"WKCI-FM","n":"KC 101.3","s":"http:\/\/www.kc101.com\/mediaplayer\/?station=WKCI-FM&action=listenlive&channel_title=","i":"sites\/elvis-duran\/affiliates\/usa\/connecticut\/hartford-new-haven-wkci-fm-101.3\/196348-1-eng-US\/Hartford-New-Haven-WKCI-fm-101.3.jpg"}},"FL":{"WFKS-FM":{"a":"WFKS-FM"},"WINK-FM":{"a":"WINK-FM","n":"96.9 WINK FM","i":"sites\/elvis-duran\/affiliates\/usa\/florida\/fort-myers-wink-fm-96.9\/198858-1-eng-US\/Fort-Myers-WINK-fm-96.9.jpg"},"WGMY-FM":{"a":"WGMY-FM","n":"My 107.1","s":"http:\/\/www.my1071.com\/mediaplayer\/?station=WGMY-FM&action=listenlive&channel_title=","i":"sites\/elvis-duran\/affiliates\/usa\/florida\/tallahassee-wgmy-107.1\/119137-1-eng-US\/Tallahassee-WGMY-107.1.gif"},"WHYI-FM":{"a":"WHYI-FM","n":"Y100","s":"http:\/\/www.y100.com\/mediaplayer\/?station=WHYI-FM&action=listenlive&channel_title=","i":"sites\/elvis-duran\/affiliates\/usa\/florida\/miami-whyi-fm-100.7\/96022-3-eng-US\/Miami-WHYI-fm-100.7.gif"},"WMXZ-FM":{"a":"WMXZ-FM","n":"MIX 103.1","s":"http:\/\/player.radioloyalty.com\/Universal\/stationPreview.php?stationID=3805","i":"sites\/elvis-duran\/affiliates\/usa\/florida\/valparaiso-wmxz-fm-103.1\/255532-1-eng-US\/Valparaiso-WMXZ-fm-103.1.jpg"},"WOCY-FM":{"a":"WOCY-FM","n":"Hitz 106","s":"www.hitz106fm.com","i":"sites\/elvis-duran\/affiliates\/usa\/florida\/eastpoint-wocy-fm-106.5\/215630-1-eng-US\/Eastpoint-WOCY-fm-106.5.jpg"}},"GA":{"WCGQ-FM":{"a":"WCGQ-FM","n":"Q107.3","s":"http:\/\/v2.player.abacast.com\/player\/player.php?pid=wcgqfm","i":"sites\/elvis-duran\/affiliates\/usa\/georgia\/columbus-wcgq-107.3\/96007-3-eng-US\/Columbus-WCGQ-107.3.gif"},"WWLG-FM":{"a":"WWLG-FM","n":"Wild 105.7 & 96.7","s":"http:\/\/www.wildatlanta.com\/mediaplayer\/?station=WWVA-FM&action=listenlive&channel_title=","i":"sites\/elvis-duran\/affiliates\/usa\/georgia\/atlanta-wwlg-fm-96.7\/196104-2-eng-US\/Atlanta-WWLG-fm-96.7.png"},"WWVA-FM":{"a":"WWVA-FM","n":"Wild 105.7 & 96.7","s":"http:\/\/www.wildatlanta.com\/mediaplayer\/?station=WWVA-FM&action=listenlive&channel_title=","i":"sites\/elvis-duran\/affiliates\/usa\/georgia\/atlanta-wwva-fm-105.7\/105053-5-eng-US\/Atlanta-WWVA-fm-105.7.png"}},"IA":{"KKDM-FM":{"a":"KKDM-FM","n":"KISS 1075","s":"http:\/\/www.kiss1075.com\/mediaplayer\/?station=KKDM-FM&action=listenlive&channel_title=","i":"sites\/elvis-duran\/affiliates\/usa\/iowa\/des-moines-kkdm-fm-107.5\/96117-8-eng-US\/Des-Moines-KKDM-fm-107.5.jpg"}},"MT":{"KISN-FM":{"a":"KISN-FM","n":"KISS 96.7","s":"http:\/\/bozemanskissfm.com\/streaming-player\/","i":"sites\/elvis-duran\/affiliates\/usa\/montana\/bozeman-kisn-fm-96.7\/247595-1-eng-US\/Bozeman-KISN-fm-96.7.jpg"}},"NH":{"WSKX-FM":{"a":"WSKX-FM","n":"KISS 95.3","s":"http:\/\/www.kiss953.com\/mediaplayer\/?station=WSKX-FM&action=listenlive&channel_title=","i":"sites\/elvis-duran\/affiliates\/usa\/new-hampshire\/portsmouth-wskx-fm-95.3\/167372-1-eng-US\/Portsmouth-WSKX-fm-95.3.gif"}},"NJ":{"WHCY-FM":{"a":"WHCY-FM","n":"Max 106.3","i":"sites\/elvis-duran\/affiliates\/usa\/new-jersey\/sussex-whcy-fm-106.3\/198783-1-eng-US\/Sussex-WHCY-fm-106.3.jpg"}},"NY":{"WHTZ-FM":{"a":"WHTZ-FM","n":"Z100","s":"http:\/\/www.z100.com\/mediaplayer\/?station=WHTZ-FM&action=listenlive&channel_title=","i":"sites\/elvis-duran\/affiliates\/usa\/new-york\/new-york-whtz-fm-100.3\/95917-7-eng-US\/New-York-WHTZ-fm-100.3.jpg"},"WKGS-FM":{"a":"WKGS-FM","n":"KISS 106.7","s":"http:\/\/www.1067kissfm.com\/mediaplayer\/?station=WKGS-FM&action=listenlive&channel_title=","i":"sites\/elvis-duran\/affiliates\/usa\/new-york\/rochester-wkgs-106.7\/95927-4-eng-US\/Rochester-WKGS-106.7.jpg"},"WKKF-FM":{"a":"WKKF-FM","n":"KISS 102.3","s":"http:\/\/www.1023kissfm.com\/mediaplayer\/?station=WKKF-FM&action=listenlive&channel_title=","i":"sites\/elvis-duran\/affiliates\/usa\/new-york\/latham-wkkf-102.3\/95912-3-eng-US\/Latham-WKKF-102.3.gif"},"WPKF-FM":{"a":"WPKF-FM","n":"KISS 96.1","s":"http:\/\/www.kissfmjams.com\/cc-common\/ondemand\/player.html?world=st","i":"sites\/elvis-duran\/affiliates\/usa\/new-york\/poughkeepsie-wpkf-fm-96.1\/95922-5-eng-US\/Poughkeepsie-WPKF-fm-96.1.gif"},"WWHT-FM":{"a":"WWHT-FM","n":"HOT 1079","s":"http:\/\/www.hot1079.com\/mediaplayer\/?station=WWHT-FM&action=listenlive&channel_title=","i":"sites\/elvis-duran\/affiliates\/usa\/new-york\/syracuse-wwht-fm-107.9\/169410-1-eng-US\/Syracuse-WWHT-fm-107.9.jpg"}},"OH":{"WAKS-FM":{"a":"WAKS-FM","n":"KISS 96.5","s":"http:\/\/www.kisscleveland.com\/mediaplayer\/?station=WAKS-FM&action=listenlive&channel_title=","i":"sites\/elvis-duran\/affiliates\/usa\/ohio\/cleveland-waks-96.5\/96077-4-eng-US\/Cleveland-WAKS-96.5.gif"},"WDKF-FM":{"a":"WDKF-FM","n":"Channel 99.9","s":"http:\/\/www.channel945.com\/mediaplayer\/?station=WDKF-FM&action=listenlive&channel_title=","i":"sites\/elvis-duran\/affiliates\/usa\/ohio\/dayton-wdkf-fm-99.9\/96072-7-eng-US\/Dayton-WDKF-fm-99.9.jpg"}},"OR":{"KTMT-FM":{"a":"KTMT-FM","n":"Beat 93","i":"sites\/elvis-duran\/affiliates\/usa\/oregon\/medford-ktmt-fm-93.7\/241667-1-eng-US\/Medford-KTMT-fm-93.7.jpg"}},"PA":{"WLAN-FM":{"a":"WLAN-FM","i":"sites\/elvis-duran\/affiliates\/usa\/pennsylvania\/lancaster-wlan-fm-96.9\/268141-1-eng-US\/Lancaster-WLAN-fm-96.9.jpg"},"WIOQ-FM":{"a":"WIOQ-FM","n":"Q102","s":"http:\/\/www.q102.com\/mediaplayer\/?station=WIOQ-FM&action=listenlive&channel_title=","i":"sites\/elvis-duran\/affiliates\/usa\/pennsylvania\/philadelphia-wioq-102.1\/95972-3-eng-US\/Philadelphia-WIOQ-102.1.gif"}},"TN":{"WYDL-FM":{"a":"WYDL-FM","n":"Wild","s":"http:\/\/wms141.netromedia.net\/radiowild","i":"sites\/elvis-duran\/affiliates\/usa\/tennessee\/memphis-wydl-100.7\/167095-1-eng-US\/Memphis-WYDL-100.7.gif"}},"VT":{"WXZO-FM":{"a":"WXZO-FM","n":"Planet 96.7","s":"http:\/\/lightningstream.surfernetwork.com\/Media\/player\/view\/wxzo_sl4.asp?call=wxzo&title=96.7%20DOT-FM","i":"sites\/elvis-duran\/affiliates\/usa\/vermont\/burlington-wxzo-fm-96.7\/196645-1-eng-US\/Burlington-WXZO-fm-96.7.jpg"},"WZRT-FM":{"a":"WZRT-FM","n":"Z 97.1","s":"http:\/\/player.streamtheworld.com\/_players\/pamal\/?callsign=WZRTFM","i":"sites\/elvis-duran\/affiliates\/usa\/vermont\/rutland-wzrt-fm-97.1\/208632-1-eng-US\/Rutland-WZRT-fm-97.1.jpg"}},"VA":{"WHTE-FM":{"a":"WHTE-FM","n":"Hot 101.9","s":"http:\/\/www.streamaudio.com\/Player\/Player.aspx?Station=WHTE_FM&filename=&Optin=","i":"sites\/elvis-duran\/affiliates\/usa\/virginia\/charlottesville-whte-101.9\/95942-3-eng-US\/Charlottesville-WHTE-101.9.gif"},"WJJS-FM":{"a":"WJJS-FM","n":"JJS 104.9","s":"http:\/\/www.wjjs.com\/mediaplayer\/?station=WJJS-FM&action=listenlive&channel_title=","i":"sites\/elvis-duran\/affiliates\/usa\/virginia\/roanoke-wjjs-fm-104.9\/95957-3-eng-US\/Roanoke-WJJS-fm-104.9.gif"},"WJJX-FM":{"a":"WJJX-FM","n":"JJS 102.7","s":"http:\/\/www.wjjs.com\/mediaplayer\/?station=WJJS-FM&action=listenlive&channel_title=","i":"sites\/elvis-duran\/affiliates\/usa\/virginia\/roanoke-wjjx-fm-102.7\/95962-3-eng-US\/Roanoke-WJJX-fm-102.7.gif"},"WRVQ-FM":{"a":"WRVQ-FM","n":"Q94","s":"http:\/\/www.q94radio.com\/mediaplayer\/?station=WRVQ-FM&action=listenlive&channel_title=","i":"sites\/elvis-duran\/affiliates\/usa\/virginia\/richmond-wrvq-94.5\/95952-3-eng-US\/Richmond-WRVQ-94.5.gif"}},"WA":{"KZBD-FM":{"a":"KZBD-FM","n":"Now 105.7","s":"http:\/\/sp.crystalmedianetworks.com\/player\/?q=show\/kzbd","i":"sites\/elvis-duran\/affiliates\/usa\/washington\/spokane-kzbd-105.7\/160035-1-eng-US\/Spokane-KZBD-105.7.gif"}},"WV":{"WRVB-FM":{"a":"WRVB-FM","n":"River","i":"sites\/elvis-duran\/affiliates\/usa\/west-virginia\/parkersburg-wrvb-102.1\/95842-3-eng-US\/Parkersburg-WRVB-102.1.gif"},"WZST-FM":{"a":"WZST-FM","n":"Variety 101","i":"sites\/elvis-duran\/affiliates\/usa\/west-virginia\/fairmont-wzst-100.9\/160052-1-eng-US\/Fairmont-WZST-100.9.jpg"},"WVKF-FM":{"a":"WVKF-FM","n":"KISS 95.7","s":"http:\/\/www.wvkffm.com\/cc-common\/ondemand\/player.html?world=st","i":"sites\/elvis-duran\/affiliates\/usa\/west-virginia\/wheeling-wvkf-95.7\/167146-1-eng-US\/Wheeling-WVKF-95.7.gif"}}}; var PrnAwSiteSettings={"t":"
\r\n
<\/select><\/div>\r\n
<\/div>\r\n
<\/a><\/div>\r\n
<\/a><\/div>\r\n<\/div>","d":"edms-pr","s":"http:\/\/www.z100.com\/mediaplayer\/?station=WHTZ-FM&action=listenlive&channel_title=","i":"sites\/elvis-duran\/95400-39-eng-US\/Elvis-Duran.jpg","b":"sites\/elvis-duran\/95401-35-eng-US\/Elvis-Duran.jpg","u":"http:\/\/common.prndigital.com\/cimages\/var\/common\/storage\/images\/","e":"elvis_duran"}; var PrnAwDevMode=false; var idx = { "prn_aw_json_station" : "a", "prn_aw_json_base_image_url" : "u", "prn_aw_json_dart_parameter_affiliate" : "d", "prn_aw_json_station_name" : "n", "prn_aw_json_stream_url" : "s", "prn_aw_json_stream_image_url" : "i", "prn_aw_json_background_image_url" : "b", "prn_aw_json_template" : "t", "prn_aw_json_site_id" : "e", "prn_aw_dom_select_affiliates":"prn_aw_dom_select_affiliates", "prn_aw_dom_select_regions":"prn_aw_dom_select_regions", "prn_aw_dom_div_background":"prn_aw_dom_div_background", "prn_aw_dom_img_stream":"prn_aw_dom_img_stream", "prn_aw_dom_a_stream":"prn_aw_dom_a_stream", "prn_aw_dom_a_dart":"prn_aw_dom_a_dart", "prn_aw_dom_img_dart":"prn_aw_dom_img_dart", "prn_aw_dom_option_region":"prn_aw_dom_option_region", "prn_aw_dom_option_affiliate":"prn_aw_dom_option_affiliate", "":"" }; function PrnAwChangeRegion() { var t = document.getElementById(idx["prn_aw_dom_select_regions"]); var region_id = t.options[t.selectedIndex].value; var affs = PrnAwSiteAffaliates[region_id]; var selectObj = document.getElementById(idx["prn_aw_dom_select_affiliates"]); // Clean up the exisiting options elements for (i = selectObj.length - 1; i >= 0; i--) { try { selectObj.remove(i, null); } catch (ex) { selectObj.remove(i); } } // Add new option elements PrnAwCreateAffiliateOption("Default").selected = true; for (key in affs) { PrnAwCreateAffiliateOption(affs[key]); } selectObj.focus(); PrnAwLoadAffiliate(null,null); return true; } function PrnAwCreateAffiliateOption(affObj){ // affiliate_id,region_id){ if(affObj==null || affObj=='')return false; // if(affiliate_id==null || affiliate_id=='')return false; var selectObj = document.getElementById(idx["prn_aw_dom_select_affiliates"]); var newOptObj = document.createElement("option"); if(affObj=='Default'){ affiliate_id = affObj; stationName = affObj; }else{ affiliate_id = affObj[idx['prn_aw_json_station']]; stationName = (affObj[idx['prn_aw_json_station_name']] != null)?affObj[idx['prn_aw_json_station_name']]:affiliate_id; } newOptObj.text = stationName; newOptObj.value = affiliate_id; newOptObj.id = idx["prn_aw_dom_option_affiliate"]+"_"+affiliate_id; try { selectObj.add(newOptObj, null); } catch (ex) { selectObj.add(newOptObj); } return selectObj; } function PrnAwChangeAffiliate() { var t = document.getElementById(idx["prn_aw_dom_select_affiliates"]); affiliate_id = t.options[t.selectedIndex].value; var t = document.getElementById(idx["prn_aw_dom_select_regions"]); region_id = t.options[t.selectedIndex].value; PrnAwLoadAffiliate(region_id,affiliate_id); PrnAwSetCookie(region_id,affiliate_id); } function PrnAwSetCookie(region_id,affiliate_id){ document.cookie='prn_aw_'+PrnAwSiteSettings[idx["prn_aw_json_site_id"]]+ "="+region_id+"#~#"+affiliate_id+";"; } function PrnAwGetCookie(){ var region_id = null; var affiliate_id = null; var cookies = document.cookie.split(";"); for(i in cookies){ if(PrnAwDevMode) alert("Cookie line "+i+"\n"+cookies[i]); if(typeof cookies[i] != "string") continue; try{ cookie = cookies[i].split("="); name = cookie[0].replace(/^\s+|\s+$/g, ''); }catch(ex){ if(PrnAwDevMode) alert(ex.toString()); } if (name == "prn_aw_"+PrnAwSiteSettings[idx["prn_aw_json_site_id"]] ){ try{ values = cookie[1].split("#~#"); region_id = values[0]; affiliate_id = values[1]; }catch(ex){ if(PrnAwDevMode) alert(ex.toString()); } break; } } if(region_id==null || affiliate_id==null) return false; var returnJson = {"region_id":region_id,"affiliate_id":affiliate_id}; return returnJson; } function PrnAwLoadAffiliate(region_id,affiliate_id) { if(region_id!=null && affiliate_id!=null){ affObj = PrnAwSiteAffaliates[region_id][affiliate_id]; if (affObj == null || affObj == "default") affObj = PrnAwSiteSettings; }else{ affObj = PrnAwSiteSettings; } if (affObj == null || affObj == "default") affObj = PrnAwSiteSettings; try{ var tmp = (affObj[idx["prn_aw_json_background_image_url"]] != null) ? affObj[idx["prn_aw_json_background_image_url"]]:PrnAwSiteSettings[idx["prn_aw_json_background_image_url"]] document.getElementById(idx["prn_aw_dom_div_background"]).style.backgroundImage = "url(" + PrnAwSiteSettings[idx["prn_aw_json_base_image_url"]] + tmp + ")"; var tmp = (affObj[idx["prn_aw_json_stream_image_url"]] != null) ? affObj[idx["prn_aw_json_stream_image_url"]] : PrnAwSiteSettings[idx["prn_aw_json_stream_image_url"]]; document.getElementById(idx["prn_aw_dom_img_stream"]).src = PrnAwSiteSettings[idx["prn_aw_json_base_image_url"]] + tmp; var tmp = (affObj[idx["prn_aw_json_stream_url"]] != null) ? affObj[idx["prn_aw_json_stream_url"]] : PrnAwSiteSettings[idx["prn_aw_json_stream_url"]]; document.getElementById(idx["prn_aw_dom_a_stream"]).href = tmp; var tmp = (affObj[idx["prn_aw_json_station"]] != null) ? affObj[idx["prn_aw_json_station"]] : "default"; document.getElementById(idx["prn_aw_dom_a_dart"]).href = "http://dart.clearchannel.com/click.ng/prntype=affwid&site=premiere&pagepos=9140&affiliate=" + PrnAwSiteSettings[idx["prn_aw_json_dart_parameter_affiliate"]] + "&prnkeyword=" + tmp ; document.getElementById(idx["prn_aw_dom_img_dart"]).src = "http://dart.clearchannel.com/image.ng/prntype=affwid&site=premiere&pagepos=9140&affiliate=" + PrnAwSiteSettings[idx["prn_aw_json_dart_parameter_affiliate"]] + "&prnkeyword=" + tmp ; }catch(ex){ if(PrnAwDevMode) alert(ex.toString()); } }; function PrnAwLoadRegions() { selectObj = document.getElementById(idx["prn_aw_dom_select_regions"]); for (key in PrnAwSiteAffaliates) { var newOptObj = document.createElement("option"); newOptObj.text = key; newOptObj.value = key; newOptObj.id = idx["prn_aw_dom_option_region"]+"_"+key; try { selectObj.add(newOptObj, null); } catch (ex) { selectObj.add(newOptObj); } } return true; } function PrnAwInit(){ try{ document.write(PrnAwSiteSettings[idx["prn_aw_json_template"]]); document.getElementById(idx["prn_aw_dom_select_regions"]).onchange = function(){PrnAwChangeRegion()} document.getElementById(idx["prn_aw_dom_select_affiliates"]).onchange = function(){PrnAwChangeAffiliate()} }catch(ex){ if(PrnAwDevMode) alert(ex.toString()); } var region_id=""; var affiliate_id=""; var cookie = PrnAwGetCookie(); if(cookie){ region_id = cookie["region_id"]; affiliate_id = cookie["affiliate_id"]; if(PrnAwDevMode) alert("You have previously selected "+affiliate_id+" station in "+region_id+".\n"); } PrnAwLoadRegions(); if(region_id!='' && region_id!=null) document.getElementById(idx["prn_aw_dom_option_region"]+"_"+region_id).selected=true; PrnAwChangeRegion(); if(affiliate_id!='' && affiliate_id!=null) document.getElementById(idx["prn_aw_dom_option_affiliate"]+"_"+affiliate_id).selected=true; PrnAwChangeAffiliate(); // document.getElementById(idx["prn_aw_dom_select_regions"]).focus(); // document.getElementById(idx["prn_aw_dom_select_affiliates"]).onfocus = // function(){var t = // document.getElementById(idx["prn_aw_dom_select_affiliates"]); // t.size=t.length; t.style.zIndex=1000;} // document.getElementById(idx["prn_aw_dom_select_affiliates"]).onclick = // function(){document.getElementById(idx["prn_aw_dom_select_affiliates"]).size=1} // document.getElementById(idx["prn_aw_dom_select_affiliates"]).onblur = // function(){document.getElementById(idx["prn_aw_dom_select_affiliates"]).size=1} } PrnAwInit();