function play_station( id, url_code ) { document.location.href = "/tuner/r/?id="+id+"&url_code="+url_code; } function research ( field, value ) { if ( field.length == 0 || value.length == 0 ) return; if ( field == "cat" ) field = "genre"; else if ( field == "city" ) field = "city_USA"; else if ( field == "state" ) field = "state_USA"; document.location.href="?type=results&searchtype=radioother&"+field+"="+escape(value)+getSearchURL(field)+"&more=1"; } var imgroot = ""; var res = new MyTDC("id,title,urlcode,epoch_start_time,duration,cat,city,state,rating,bitrate,quality"); /* Setup Styles */ res.setStyle("header","font-family","verdana,arial,helvetica,sans-serif;"); res.setStyle("header","color","ffffff"); res.setStyle("header","font-size","10px"); res.setStyle("header","padding-top","0px"); res.setStyle("header","padding-bottom","0px;"); res.setStyle("body","font-family","verdana,arial,helvetica,sans-serif;"); res.setStyle("body","font-size","10px"); res.writeStyles(); res.fieldOrder = new Array("title","schedule","quality","rating","cat","city","state"); res.columnWidths = new Array("#widthtitle#px","#widthschedule#px","#widthquality#px", "#widthrating#px","#widthcat#px","#widthcity#px","#widthstate#px"); res.fieldNames["title"] = "ON LATER"; res.fieldNames["cat"] = "GENRE"; res.fieldNames["rating"] = "RELIABILITY"; res.fieldTips["cat"] = "Rock, Country, Talk, Sports, News, etc."; res.fieldTips["rating"] = "A measure of the likelihood that this station's broadcast is working now."; res.fieldTips["quality"] = "A measure of how clear this station is likely to sound."; res.targetContainer = "radio_tdc"; if ( browser_name == "ns6" || browser_name == "moz1" || browsercfg == "macie5" ) res.preload = free_results; else res.preload = 25; res.paginate = 20; res.headerColor="ffab1c"; res.headerSelectedColor="f2bb30"; if ( !broadband_written ) res.key = " = broadband"; res.tip = " Tip: Click on any column heading to sort search results by that column."; res.defaultSortOrder["rating"] = "-"; res.defaultSortOrder["quality"] = "-"; res.showFooter = 1; var playIcon = new Image(11,11); playIcon.src = imgroot+"/cicons/PlayNow_Icon.gif"; var USECURSOR = "hand"; var USEHEIGHT = "220"; var USEWIDTH = "290"; if( navigator.userAgent.indexOf("MSIE")==-1 ){ USECURSOR = "pointer"; USEHEIGHT = "290"; } function title_render(value,data) { return "
 "+value+"
i
"; } res.defineRender("title",title_render); function schedule_render( value,data ) { return " "+formatSchedule( data['epoch_start_time'], data['duration'] ); } res.defineRender("schedule",schedule_render); function rating_render(value) { if( value && value!="-1" ) { ret = " "; if( value <= 50) return ret+="Low"; if(value >=51 && value <= 75) return ret+="Medium"; else return ret+="High"; } else { return " "; } } res.defineRender("rating",rating_render); function quality_render(value,data) { ret = " "; if (data["bitrate"]>55999){ ret += " "; } else{ ret += "o "; } if(value <= 2) return ret+=")))))"; if(value >2 && value <=2.7) return ret+=")))))"; if(value >2.7 && value <=3) return ret+=")))))"; if(value >3 && value <= 3.7) return ret+=")))))"; if(value > 3.7) return ret+=")))))"; } res.defineRender("quality",quality_render); function #f#_render(value) { return ""; } res.defineRender("#f#",#f#_render);