function Iheart(e){function u(){t=["&#xE101;","bose","PLAY"],n=[["&#xE103;","bose","PAUSE"],["&#xE111;","bose","STOP"]],r=["&#xE10D;","bose","NEXT_TRACK"],i=["&#xE1DC;","bose","NEXT_TRACK"],s=[["&#xE1C3;","bose","THUMBS_DOWN"],["&#xE1C2;","bose","THUMBS_UP"],n,null];var u=funcObj.pageCon.getPageMenuItems("iheart");o.setInits({stopState:t,playState:n,menuLevels:u,featureList:e})}function a(e,o){var u=$(o).find("streamType").text();return e=="PLAY_STATE"||e=="BUFFERING_STATE"?u==="RADIO_STREAMING"?s[2]=n[1]:s[2]=n[0]:s[2]=t,u==="RADIO_STREAMING"?s[3]=i:s[3]=r,s}function f(t,n){var r=$(n).find("subtype").text();switch(r){case"perfectFor":var i=(new Date).getTimezoneOffset()*6e4,s=(new Date(Date.now()-i)).toISOString().slice(0,-1);funcObj.browse.animatePanel("200"),funcObj.browse.getLastList().clearList();var u=o.getTitleFromItem(n,"perfectFor");funcObj.content.enableLoadAni(!0,u),funcObj.browse.setPath(e.requestName+":"+r,n,null),funcObj.devCon.sendMsg(funcObj.UIMain.getUID(),"navigate","navigateCustomMenuSrc",{SRC:o.getFeature("requestName").toUpperCase(),ACC:t,START:funcObj.messageCon.getContent("listStart",{STARTITEM:"1"}),NUM:funcObj.messageCon.getContent("listNum",{NUMITEMS:"100"}),MENUITEM:r,CUSTOMATTRIBUTENAME:"localTime",CUSTOMATTRIBUTEVALUE:s,ITEM:""},"new",!1,!1);break;default:showDebug===2&&console.log("Unhandled custom type!")}}var t,n,r,i,s,o=new SourceCommon;o.extend(Iheart),this.getControls=a,this.getCustomContentForSourceItem=f,u()};