var PrnAwSiteAffaliates={"AR":{"KMXF-FM":{"a":"KMXF-FM","n":"HotMix 101.9","s":"http:\/\/www.hotmix1019.com\/mediaplayer\/?station=KMXF-FM&action=listenlive&channel_title=","i":"sites\/elvis-duran\/affiliates\/usa\/arkansas\/lowell-kmxf-101.9\/96102-6-eng-US\/Lowell-KMXF-101.9.gif"}},"FL":{"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\/thomasville-wgmy-107.1\/119137-1-eng-US\/Thomasville-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\/ft-lauderdale-whyi-100.7\/96022-3-eng-US\/Ft-Lauderdale-WHYI-100.7.gif"},"WINK-FM":{"a":"WINK-FM","n":"WINK","s":"http:\/\/winkfm.com\/A-Message-From-WINK\/4126211","i":"sites\/elvis-duran\/affiliates\/usa\/florida\/fort-myers-wink-96.9\/96017-3-eng-US\/Fort-Myers-WINK-96.9.gif"}},"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"},"WSGA-FM":{"a":"WSGA-FM","n":"Point 92.3","s":"http:\/\/radio.securenetsystems.net\/radio_player_large.cfm?stationCallSign=WSGA","i":"sites\/elvis-duran\/affiliates\/usa\/georgia\/hinesville-wsga-92.3\/119067-1-eng-US\/Hinesville-WSGA-92.3.gif"},"WWVA-FM":{"a":"WWVA-FM","n":"Groove","s":"http:\/\/www.getintothegroove.com\/mediaplayer\/?station=WWVA-FM&action=listenlive&channel_title=","i":"sites\/elvis-duran\/affiliates\/usa\/georgia\/canton-wwva-105.7\/105053-2-eng-US\/Canton-WWVA-105.7.gif"}},"IA":{"KKDM-FM":{"a":"KKDM-FM","n":"KISS 107","s":"http:\/\/www.kiss1075.com\/mediaplayer\/?station=KKDM-FM&action=listenlive&channel_title=","i":"sites\/elvis-duran\/affiliates\/usa\/iowa\/des-moines-kkdm-107.5\/96117-4-eng-US\/Des-Moines-KKDM-107.5.jpg"}},"ME":{"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\/maine\/york-center-wskx-95.3\/136025-1-eng-US\/York-Center-WSKX-95.3.gif"}},"MS":{"WYDL-FM":{"a":"WYDL-FM","n":"Wild","s":"http:\/\/wms141.netromedia.net\/radiowild","i":"sites\/elvis-duran\/affiliates\/usa\/mississippi\/middleton-wydl-100.7\/96052-3-eng-US\/Middleton-WYDL-100.7.gif"}},"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\/york-center-wskx-95.3\/142699-1-eng-US\/York-Center-WSKX-95.3.gif"}},"NM":{"KXTC-FM":{"a":"KXTC-FM","n":"XTC"}},"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\/newark-new-york-whtz-100.3\/95917-3-eng-US\/Newark-New-York-WHTZ-100.3.gif"},"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\/irondequoit-wkgs-106.7\/95927-4-eng-US\/Irondequoit-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\/ballston-spa-wkkf-102.3\/95912-3-eng-US\/Ballston-Spa-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-96.1\/95922-5-eng-US\/Poughkeepsie-WPKF-96.1.gif"}},"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\/akron-waks-96.5\/96077-4-eng-US\/Akron-WAKS-96.5.gif"},"WDKF-FM":{"a":"WDKF-FM","n":"Channel 94.5","s":"http:\/\/www.channel945.com\/mediaplayer\/?station=WDKF-FM&action=listenlive&channel_title=","i":"sites\/elvis-duran\/affiliates\/usa\/ohio\/englewood-dayton-wdkf-94.5\/96072-3-eng-US\/Englewood-Dayton-WDKF-94.5.gif"},"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\/ohio\/bethlehem-wheeling-wvkf-95.7\/96082-3-eng-US\/Bethlehem-Wheeling-WVKF-95.7.gif"}},"OR":{"KEHK-FM":{"a":"KEHK-FM","n":"Star 102.3","s":"http:\/\/player.cumulusstreaming.com\/SLPLayer.aspx?KEHK-FM","i":"sites\/elvis-duran\/affiliates\/usa\/oregon\/brownsville-kehk-102.3\/130667-1-eng-US\/Brownsville-KEHK-102.3.jpg"}},"PA":{"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\/middleton-wydl-100.7\/96042-3-eng-US\/Middleton-WYDL-100.7.gif"}},"VA":{"WAZR-FM":{"a":"WAZR-FM","n":"KISS 93.7","s":"http:\/\/www.937kissfm.com\/mediaplayer\/?station=WAZR-FM&action=listenlive&channel_title=","i":"sites\/elvis-duran\/affiliates\/usa\/virginia\/woodstck-hrrsnb-wazr-93.7\/95947-3-eng-US\/Woodstck-Hrrsnb-WAZR-93.7.gif"},"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\/ruckersville-whte-101.9\/95942-3-eng-US\/Ruckersville-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-104.9\/95957-3-eng-US\/Roanoke-WJJS-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\/appomattox-wjjx-102.7\/95962-3-eng-US\/Appomattox-WJJX-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\/marietta-wrvb-102.1\/95842-3-eng-US\/Marietta-WRVB-102.1.gif"},"WZST-FM":{"a":"WZST-FM","n":"Variety 101","i":"sites\/elvis-duran\/affiliates\/usa\/west-virginia\/westover-wzst-100.9\/160052-1-eng-US\/Westover-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\/bethlehem-wheeling-wvkf-95.7\/95847-3-eng-US\/Bethlehem-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-10-eng-US\/Elvis-Duran.gif","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();