function Amazon(e){function f(){t=["&#xE101;","bose","PLAY"],n=[["&#xE103;","bose","PAUSE"],["&#xE111;","bose","STOP"]],r=["&#xE10D;","bose","NEXT_TRACK"],i=["&#xE107;","bose","PREV_TRACK"],o=["&#xE1C3;","bose","THUMBS_DOWN"],s=["&#xE1C2;","bose","THUMBS_UP"],u=[];var f=funcObj.pageCon.getPageMenuItems("amazon");a.setInits({stopState:t,playState:n,menuLevels:f,controls:u,featureList:e})}function l(e,a){var f=$(a).find("streamType").text(),l;return f=="RADIO_TRACKS"?(u=[o,s,i,n,r],l=3):(u=[i,n,r],l=1),e=="PLAY_STATE"||e=="BUFFERING_STATE"?u[l]=n[0]:u[l]=t,u}function c(t,n,r,i,s){if(t&&t.term&&t.url){t.term=funcObj.UIMain.minEscape(t.term),t.url=funcObj.UIMain.minEscape(t.url);var o=t.url.split("filter=")[1],u="";o==null&&(o=""),u=funcObj.messageCon.getContent("searchFilter",{FILTERTERM:o},!1);if(n==undefined||n=="undefined")n="";r?r&&srcObj[e.requestName].getFeature("autoSearchEnabled")&&(funcObj.devCon.removeRequest(null,"search"),funcObj.devCon.sendMsg(funcObj.UIMain.getUID(),"search","searchBMXAutoComp",{SRC:e.requestName.toUpperCase(),ACC:n,STARTITEM:"1",NUMITEMS:"10",TERM:t.term,FILTER:u,URL:t.url},null,!1,s)):(funcObj.devCon.removeRequest(null,"search"),funcObj.devCon.sendMsg(funcObj.UIMain.getUID(),"search","searchBMX",{SRC:e.requestName.toUpperCase(),ACC:n,STARTITEM:"1",NUMITEMS:"100",TERM:t.term,FILTER:u,URL:t.url},null,!1,s))}}function h(e){var t="";return t=p(),t}function p(){var t="FAKESEARCHBAR",n=funcObj.langCon.getString("General SearchBarText").replace("##DATA_Source##",e.sourceName),r=a.getFeature("searchIcon"),i=funcObj.contentCon.getContent(t,{repl:{text:n,searchIcon:r}});return i}var t,n,r,i,s,o,u,a=new SourceCommon;a.extend(Amazon),this.getControls=l,this.searchStations=c,this.getSecHeader=h,f()};