/*
 * JS for startScreen generated by Appery.io
 */

Apperyio.getProjectGUID = function() {
    return '31270bd3-092e-49ba-a4ef-3e306c055990';
};

function navigateTo(outcome, useAjax) {
    Apperyio.navigateTo(outcome, useAjax);
}

function adjustContentHeight() {
    Apperyio.adjustContentHeightWithPadding();
}

function adjustContentHeightWithPadding(_page) {
    Apperyio.adjustContentHeightWithPadding(_page);
}

function setDetailContent(pageUrl) {
    Apperyio.setDetailContent(pageUrl);
}

// Appery.io push registration service
var _pushRegistrationApperyService = new Apperyio.RestService({
    'url': 'https://api.appery.io/rest/push/reg',
    'dataType': 'json',
    'type': 'post',
    'contentType': 'application/json',
});

Apperyio.AppPages = [{
    "name": "startScreen",
    "location": "#startScreen"
}, {
    "name": "feed",
    "location": "#feed"
}];

function startScreen_js() {

    /* Object & array with components "name-to-id" mapping */
    var n2id_buf = {
        'mobilegrid_61621': 'startScreen_mobilegrid_61621',
        'mobilegridcell_61622': 'startScreen_mobilegridcell_61622',
        'mobileimage_33': 'startScreen_mobileimage_33',
        'spacer_61628': 'startScreen_spacer_61628',
        'mobilegrid_61633': 'startScreen_mobilegrid_61633',
        'mobilegridcell_61634': 'startScreen_mobilegridcell_61634',
        'spacer_61629': 'startScreen_spacer_61629',
        'mobilelabel_61632': 'startScreen_mobilelabel_61632',
        'worldcara': 'startScreen_worldcara',
        'mobilecarouselitem_462_61273_61388': 'startScreen_mobilecarouselitem_462_61273_61388',
        'mobilegrid_62_466_61274_61389': 'startScreen_mobilegrid_62_466_61274_61389',
        'mobilegridcell_63_467_61275_61390': 'startScreen_mobilegridcell_63_467_61275_61390',
        'woi1': 'startScreen_woi1',
        'wo1': 'startScreen_wo1',
        'mobilecarouselitem_463_61280_61395': 'startScreen_mobilecarouselitem_463_61280_61395',
        'mobilegrid_62_473_61281_61396': 'startScreen_mobilegrid_62_473_61281_61396',
        'mobilegridcell_63_474_61282_61397': 'startScreen_mobilegridcell_63_474_61282_61397',
        'woi2': 'startScreen_woi2',
        'wo2': 'startScreen_wo2',
        'mobilecarouselitem_464_61287_61402': 'startScreen_mobilecarouselitem_464_61287_61402',
        'mobilegrid_62_480_61288_61403': 'startScreen_mobilegrid_62_480_61288_61403',
        'mobilegridcell_63_481_61289_61404': 'startScreen_mobilegridcell_63_481_61289_61404',
        'woi3': 'startScreen_woi3',
        'wo3': 'startScreen_wo3',
        'mobilecarouselitem_485_61294_61409': 'startScreen_mobilecarouselitem_485_61294_61409',
        'mobilegrid_62_507_61295_61410': 'startScreen_mobilegrid_62_507_61295_61410',
        'mobilegridcell_63_508_61296_61411': 'startScreen_mobilegridcell_63_508_61296_61411',
        'woi4': 'startScreen_woi4',
        'wo4': 'startScreen_wo4',
        'mobilecarouselitem_486_61301_61416': 'startScreen_mobilecarouselitem_486_61301_61416',
        'mobilegrid_62_501_61302_61417': 'startScreen_mobilegrid_62_501_61302_61417',
        'mobilegridcell_63_502_61303_61418': 'startScreen_mobilegridcell_63_502_61303_61418',
        'woi5': 'startScreen_woi5',
        'wo5': 'startScreen_wo5',
        'mobilecarouselitem_487_61308_61423': 'startScreen_mobilecarouselitem_487_61308_61423',
        'mobilegrid_62_519_61309_61424': 'startScreen_mobilegrid_62_519_61309_61424',
        'mobilegridcell_63_520_61310_61425': 'startScreen_mobilegridcell_63_520_61310_61425',
        'woi6': 'startScreen_woi6',
        'wo6': 'startScreen_wo6',
        'mobilecarouselitem_488_61315_61430': 'startScreen_mobilecarouselitem_488_61315_61430',
        'mobilegrid_62_513_61316_61431': 'startScreen_mobilegrid_62_513_61316_61431',
        'mobilegridcell_63_514_61317_61432': 'startScreen_mobilegridcell_63_514_61317_61432',
        'woi7': 'startScreen_woi7',
        'wo7': 'startScreen_wo7',
        'mobilecarouselitem_489_61322_61437': 'startScreen_mobilecarouselitem_489_61322_61437',
        'mobilegrid_62_495_61323_61438': 'startScreen_mobilegrid_62_495_61323_61438',
        'mobilegridcell_63_496_61324_61439': 'startScreen_mobilegridcell_63_496_61324_61439',
        'woi8': 'startScreen_woi8',
        'wo8': 'startScreen_wo8',
        'uk': 'startScreen_uk',
        'regionalcara': 'startScreen_regionalcara',
        'mobilecarouselitem_462_61216': 'startScreen_mobilecarouselitem_462_61216',
        'mobilegrid_62_466_61217': 'startScreen_mobilegrid_62_466_61217',
        'mobilegridcell_63_467_61218': 'startScreen_mobilegridcell_63_467_61218',
        'uki1': 'startScreen_uki1',
        'wka1': 'startScreen_wka1',
        'mobilecarouselitem_463_61223': 'startScreen_mobilecarouselitem_463_61223',
        'mobilegrid_62_473_61224': 'startScreen_mobilegrid_62_473_61224',
        'mobilegridcell_63_474_61225': 'startScreen_mobilegridcell_63_474_61225',
        'uki2': 'startScreen_uki2',
        'wka2': 'startScreen_wka2',
        'mobilecarouselitem_464_61230': 'startScreen_mobilecarouselitem_464_61230',
        'mobilegrid_62_480_61231': 'startScreen_mobilegrid_62_480_61231',
        'mobilegridcell_63_481_61232': 'startScreen_mobilegridcell_63_481_61232',
        'uki3': 'startScreen_uki3',
        'wka3': 'startScreen_wka3',
        'mobilecarouselitem_485_61237': 'startScreen_mobilecarouselitem_485_61237',
        'mobilegrid_62_507_61238': 'startScreen_mobilegrid_62_507_61238',
        'mobilegridcell_63_508_61239': 'startScreen_mobilegridcell_63_508_61239',
        'uki4': 'startScreen_uki4',
        'wka4': 'startScreen_wka4',
        'mobilecarouselitem_486_61244': 'startScreen_mobilecarouselitem_486_61244',
        'mobilegrid_62_501_61245': 'startScreen_mobilegrid_62_501_61245',
        'mobilegridcell_63_502_61246': 'startScreen_mobilegridcell_63_502_61246',
        'uki5': 'startScreen_uki5',
        'wka5': 'startScreen_wka5',
        'mobilecarouselitem_487_61251': 'startScreen_mobilecarouselitem_487_61251',
        'mobilegrid_62_519_61252': 'startScreen_mobilegrid_62_519_61252',
        'mobilegridcell_63_520_61253': 'startScreen_mobilegridcell_63_520_61253',
        'uki6': 'startScreen_uki6',
        'wka6': 'startScreen_wka6',
        'mobilecarouselitem_488_61258': 'startScreen_mobilecarouselitem_488_61258',
        'mobilegrid_62_513_61259': 'startScreen_mobilegrid_62_513_61259',
        'mobilegridcell_63_514_61260': 'startScreen_mobilegridcell_63_514_61260',
        'uki7': 'startScreen_uki7',
        'wka7': 'startScreen_wka7',
        'mobilecarouselitem_489_61265': 'startScreen_mobilecarouselitem_489_61265',
        'mobilegrid_62_495_61266': 'startScreen_mobilegrid_62_495_61266',
        'mobilegridcell_63_496_61267': 'startScreen_mobilegridcell_63_496_61267',
        'uki8': 'startScreen_uki8',
        'wka8': 'startScreen_wka8',
        'tech': 'startScreen_tech',
        'techcara': 'startScreen_techcara',
        'mobilecarouselitem_462_61273_61331': 'startScreen_mobilecarouselitem_462_61273_61331',
        'mobilegrid_62_466_61274_61332': 'startScreen_mobilegrid_62_466_61274_61332',
        'mobilegridcell_63_467_61275_61333': 'startScreen_mobilegridcell_63_467_61275_61333',
        'tei1': 'startScreen_tei1',
        'te1': 'startScreen_te1',
        'mobilecarouselitem_463_61280_61338': 'startScreen_mobilecarouselitem_463_61280_61338',
        'mobilegrid_62_473_61281_61339': 'startScreen_mobilegrid_62_473_61281_61339',
        'mobilegridcell_63_474_61282_61340': 'startScreen_mobilegridcell_63_474_61282_61340',
        'tei2': 'startScreen_tei2',
        'te2': 'startScreen_te2',
        'mobilecarouselitem_464_61287_61345': 'startScreen_mobilecarouselitem_464_61287_61345',
        'mobilegrid_62_480_61288_61346': 'startScreen_mobilegrid_62_480_61288_61346',
        'mobilegridcell_63_481_61289_61347': 'startScreen_mobilegridcell_63_481_61289_61347',
        'tei3': 'startScreen_tei3',
        'te3': 'startScreen_te3',
        'mobilecarouselitem_485_61294_61352': 'startScreen_mobilecarouselitem_485_61294_61352',
        'mobilegrid_62_507_61295_61353': 'startScreen_mobilegrid_62_507_61295_61353',
        'mobilegridcell_63_508_61296_61354': 'startScreen_mobilegridcell_63_508_61296_61354',
        'tei4': 'startScreen_tei4',
        'te4': 'startScreen_te4',
        'mobilecarouselitem_486_61301_61359': 'startScreen_mobilecarouselitem_486_61301_61359',
        'mobilegrid_62_501_61302_61360': 'startScreen_mobilegrid_62_501_61302_61360',
        'mobilegridcell_63_502_61303_61361': 'startScreen_mobilegridcell_63_502_61303_61361',
        'tei5': 'startScreen_tei5',
        'te5': 'startScreen_te5',
        'mobilecarouselitem_487_61308_61366': 'startScreen_mobilecarouselitem_487_61308_61366',
        'mobilegrid_62_519_61309_61367': 'startScreen_mobilegrid_62_519_61309_61367',
        'mobilegridcell_63_520_61310_61368': 'startScreen_mobilegridcell_63_520_61310_61368',
        'tei6': 'startScreen_tei6',
        'te6': 'startScreen_te6',
        'mobilecarouselitem_488_61315_61373': 'startScreen_mobilecarouselitem_488_61315_61373',
        'mobilegrid_62_513_61316_61374': 'startScreen_mobilegrid_62_513_61316_61374',
        'mobilegridcell_63_514_61317_61375': 'startScreen_mobilegridcell_63_514_61317_61375',
        'tei7': 'startScreen_tei7',
        'te7': 'startScreen_te7',
        'mobilecarouselitem_489_61322_61380': 'startScreen_mobilecarouselitem_489_61322_61380',
        'mobilegrid_62_495_61323_61381': 'startScreen_mobilegrid_62_495_61323_61381',
        'mobilegridcell_63_496_61324_61382': 'startScreen_mobilegridcell_63_496_61324_61382',
        'tei8': 'startScreen_tei8',
        'te8': 'startScreen_te8',
        'bus': 'startScreen_bus',
        'buscara': 'startScreen_buscara',
        'mobilecarouselitem_462_61273_61453': 'startScreen_mobilecarouselitem_462_61273_61453',
        'mobilegrid_62_466_61274_61454': 'startScreen_mobilegrid_62_466_61274_61454',
        'mobilegridcell_63_467_61275_61455': 'startScreen_mobilegridcell_63_467_61275_61455',
        'bui1': 'startScreen_bui1',
        'bu1': 'startScreen_bu1',
        'mobilecarouselitem_463_61280_61460': 'startScreen_mobilecarouselitem_463_61280_61460',
        'mobilegrid_62_473_61281_61461': 'startScreen_mobilegrid_62_473_61281_61461',
        'mobilegridcell_63_474_61282_61462': 'startScreen_mobilegridcell_63_474_61282_61462',
        'bui2': 'startScreen_bui2',
        'bu2': 'startScreen_bu2',
        'mobilecarouselitem_464_61287_61467': 'startScreen_mobilecarouselitem_464_61287_61467',
        'mobilegrid_62_480_61288_61468': 'startScreen_mobilegrid_62_480_61288_61468',
        'mobilegridcell_63_481_61289_61469': 'startScreen_mobilegridcell_63_481_61289_61469',
        'bui3': 'startScreen_bui3',
        'bu3': 'startScreen_bu3',
        'mobilecarouselitem_485_61294_61474': 'startScreen_mobilecarouselitem_485_61294_61474',
        'mobilegrid_62_507_61295_61475': 'startScreen_mobilegrid_62_507_61295_61475',
        'mobilegridcell_63_508_61296_61476': 'startScreen_mobilegridcell_63_508_61296_61476',
        'bui4': 'startScreen_bui4',
        'bu4': 'startScreen_bu4',
        'mobilecarouselitem_486_61301_61481': 'startScreen_mobilecarouselitem_486_61301_61481',
        'mobilegrid_62_501_61302_61482': 'startScreen_mobilegrid_62_501_61302_61482',
        'mobilegridcell_63_502_61303_61483': 'startScreen_mobilegridcell_63_502_61303_61483',
        'bui5': 'startScreen_bui5',
        'bu5': 'startScreen_bu5',
        'mobilecarouselitem_487_61308_61488': 'startScreen_mobilecarouselitem_487_61308_61488',
        'mobilegrid_62_519_61309_61489': 'startScreen_mobilegrid_62_519_61309_61489',
        'mobilegridcell_63_520_61310_61490': 'startScreen_mobilegridcell_63_520_61310_61490',
        'bui6': 'startScreen_bui6',
        'bu6': 'startScreen_bu6',
        'mobilecarouselitem_488_61315_61495': 'startScreen_mobilecarouselitem_488_61315_61495',
        'mobilegrid_62_513_61316_61496': 'startScreen_mobilegrid_62_513_61316_61496',
        'mobilegridcell_63_514_61317_61497': 'startScreen_mobilegridcell_63_514_61317_61497',
        'bui7': 'startScreen_bui7',
        'bu7': 'startScreen_bu7',
        'mobilecarouselitem_489_61322_61502': 'startScreen_mobilecarouselitem_489_61322_61502',
        'mobilegrid_62_495_61323_61503': 'startScreen_mobilegrid_62_495_61323_61503',
        'mobilegridcell_63_496_61324_61504': 'startScreen_mobilegridcell_63_496_61324_61504',
        'bui8': 'startScreen_bui8',
        'bu8': 'startScreen_bu8',
        'health': 'startScreen_health',
        'healthcara': 'startScreen_healthcara',
        'mobilecarouselitem_462_61273_61511': 'startScreen_mobilecarouselitem_462_61273_61511',
        'mobilegrid_62_466_61274_61512': 'startScreen_mobilegrid_62_466_61274_61512',
        'mobilegridcell_63_467_61275_61513': 'startScreen_mobilegridcell_63_467_61275_61513',
        'hei1': 'startScreen_hei1',
        'he1': 'startScreen_he1',
        'mobilecarouselitem_463_61280_61518': 'startScreen_mobilecarouselitem_463_61280_61518',
        'mobilegrid_62_473_61281_61519': 'startScreen_mobilegrid_62_473_61281_61519',
        'mobilegridcell_63_474_61282_61520': 'startScreen_mobilegridcell_63_474_61282_61520',
        'hei2': 'startScreen_hei2',
        'he2': 'startScreen_he2',
        'mobilecarouselitem_464_61287_61525': 'startScreen_mobilecarouselitem_464_61287_61525',
        'mobilegrid_62_480_61288_61526': 'startScreen_mobilegrid_62_480_61288_61526',
        'mobilegridcell_63_481_61289_61527': 'startScreen_mobilegridcell_63_481_61289_61527',
        'hei3': 'startScreen_hei3',
        'he3': 'startScreen_he3',
        'mobilecarouselitem_485_61294_61532': 'startScreen_mobilecarouselitem_485_61294_61532',
        'mobilegrid_62_507_61295_61533': 'startScreen_mobilegrid_62_507_61295_61533',
        'mobilegridcell_63_508_61296_61534': 'startScreen_mobilegridcell_63_508_61296_61534',
        'hei4': 'startScreen_hei4',
        'he4': 'startScreen_he4',
        'mobilecarouselitem_486_61301_61539': 'startScreen_mobilecarouselitem_486_61301_61539',
        'mobilegrid_62_501_61302_61540': 'startScreen_mobilegrid_62_501_61302_61540',
        'mobilegridcell_63_502_61303_61541': 'startScreen_mobilegridcell_63_502_61303_61541',
        'hei5': 'startScreen_hei5',
        'he5': 'startScreen_he5',
        'mobilecarouselitem_487_61308_61546': 'startScreen_mobilecarouselitem_487_61308_61546',
        'mobilegrid_62_519_61309_61547': 'startScreen_mobilegrid_62_519_61309_61547',
        'mobilegridcell_63_520_61310_61548': 'startScreen_mobilegridcell_63_520_61310_61548',
        'hei6': 'startScreen_hei6',
        'he6': 'startScreen_he6',
        'mobilecarouselitem_488_61315_61553': 'startScreen_mobilecarouselitem_488_61315_61553',
        'mobilegrid_62_513_61316_61554': 'startScreen_mobilegrid_62_513_61316_61554',
        'mobilegridcell_63_514_61317_61555': 'startScreen_mobilegridcell_63_514_61317_61555',
        'hei7': 'startScreen_hei7',
        'he7': 'startScreen_he7',
        'mobilecarouselitem_489_61322_61560': 'startScreen_mobilecarouselitem_489_61322_61560',
        'mobilegrid_62_495_61323_61561': 'startScreen_mobilegrid_62_495_61323_61561',
        'mobilegridcell_63_496_61324_61562': 'startScreen_mobilegridcell_63_496_61324_61562',
        'hei8': 'startScreen_hei8',
        'he8': 'startScreen_he8',
        'special': 'startScreen_special',
        'specialcara': 'startScreen_specialcara',
        'mobilecarouselitem_462_61273_61569': 'startScreen_mobilecarouselitem_462_61273_61569',
        'mobilegrid_62_466_61274_61570': 'startScreen_mobilegrid_62_466_61274_61570',
        'mobilegridcell_63_467_61275_61571': 'startScreen_mobilegridcell_63_467_61275_61571',
        'spi1': 'startScreen_spi1',
        'sp1': 'startScreen_sp1',
        'mobilecarouselitem_463_61280_61576': 'startScreen_mobilecarouselitem_463_61280_61576',
        'mobilegrid_62_473_61281_61577': 'startScreen_mobilegrid_62_473_61281_61577',
        'mobilegridcell_63_474_61282_61578': 'startScreen_mobilegridcell_63_474_61282_61578',
        'spi2': 'startScreen_spi2',
        'sp2': 'startScreen_sp2',
        'mobilecarouselitem_464_61287_61583': 'startScreen_mobilecarouselitem_464_61287_61583',
        'mobilegrid_62_480_61288_61584': 'startScreen_mobilegrid_62_480_61288_61584',
        'mobilegridcell_63_481_61289_61585': 'startScreen_mobilegridcell_63_481_61289_61585',
        'spi3': 'startScreen_spi3',
        'sp3': 'startScreen_sp3',
        'mobilecarouselitem_485_61294_61590': 'startScreen_mobilecarouselitem_485_61294_61590',
        'mobilegrid_62_507_61295_61591': 'startScreen_mobilegrid_62_507_61295_61591',
        'mobilegridcell_63_508_61296_61592': 'startScreen_mobilegridcell_63_508_61296_61592',
        'spi4': 'startScreen_spi4',
        'sp4': 'startScreen_sp4',
        'mobilecarouselitem_486_61301_61597': 'startScreen_mobilecarouselitem_486_61301_61597',
        'mobilegrid_62_501_61302_61598': 'startScreen_mobilegrid_62_501_61302_61598',
        'mobilegridcell_63_502_61303_61599': 'startScreen_mobilegridcell_63_502_61303_61599',
        'spi5': 'startScreen_spi5',
        'sp5': 'startScreen_sp5',
        'mobilecarouselitem_487_61308_61604': 'startScreen_mobilecarouselitem_487_61308_61604',
        'mobilegrid_62_519_61309_61605': 'startScreen_mobilegrid_62_519_61309_61605',
        'mobilegridcell_63_520_61310_61606': 'startScreen_mobilegridcell_63_520_61310_61606',
        'spi6': 'startScreen_spi6',
        'sp6': 'startScreen_sp6',
        'mobilecarouselitem_488_61315_61611': 'startScreen_mobilecarouselitem_488_61315_61611',
        'mobilegrid_62_513_61316_61612': 'startScreen_mobilegrid_62_513_61316_61612',
        'mobilegridcell_63_514_61317_61613': 'startScreen_mobilegridcell_63_514_61317_61613',
        'spi7': 'startScreen_spi7',
        'sp7': 'startScreen_sp7',
        'mobilecarouselitem_489_61322_61618': 'startScreen_mobilecarouselitem_489_61322_61618',
        'mobilegrid_62_495_61323_61619': 'startScreen_mobilegrid_62_495_61323_61619',
        'mobilegridcell_63_496_61324_61620': 'startScreen_mobilegridcell_63_496_61324_61620',
        'spi8': 'startScreen_spi8',
        'sp8': 'startScreen_sp8',
        'hide': 'startScreen_hide',
        'alerthold': 'startScreen_alerthold',
        'mobilegrid_301': 'startScreen_mobilegrid_301',
        'mobilegridcell_302': 'startScreen_mobilegridcell_302',
        'mobilegridcell_303': 'startScreen_mobilegridcell_303',
        'mobilegrid_196': 'startScreen_mobilegrid_196',
        'mobilegridcell_197': 'startScreen_mobilegridcell_197',
        'mobileimage_446': 'startScreen_mobileimage_446',
        'mobilegridcell_198': 'startScreen_mobilegridcell_198',
        'mobilegridcell_201': 'startScreen_mobilegridcell_201',
        'mobileimage_439': 'startScreen_mobileimage_439',
        'mobileimage_451': 'startScreen_mobileimage_451',
        'mobileimage_440': 'startScreen_mobileimage_440',
        'ratelabel_play': 'startScreen_ratelabel_play',
        'winlabel': 'startScreen_winlabel',
        'ratelabel_firefox': 'startScreen_ratelabel_firefox',
        'dontworry': 'startScreen_dontworry',
        'mobileimage_410': 'startScreen_mobileimage_410',
        'newsinpictures': 'startScreen_newsinpictures',
        'linkpictures': 'startScreen_linkpictures',
        'html_pictures': 'startScreen_html_pictures',
        'mobilebutton_442': 'startScreen_mobilebutton_442',
        'mobileimage_218': 'startScreen_mobileimage_218',
        'mobilebutton_61626': 'startScreen_mobilebutton_61626',
        'resgionmenu': 'startScreen_resgionmenu',
        'resgionmenu-0': 'startScreen_resgionmenu-0',
        'z': 'startScreen_z',
        'savetitle_266': 'startScreen_savetitle_266',
        'mobilegrid_210_262': 'startScreen_mobilegrid_210_262',
        'mobilegridcell_211_263': 'startScreen_mobilegridcell_211_263',
        'mobilegridcell_308': 'startScreen_mobilegridcell_308',
        'mobilegridcell_213_265': 'startScreen_mobilegridcell_213_265',
        'mobilegridcell_309': 'startScreen_mobilegridcell_309',
        'mobilegridcell_215_267': 'startScreen_mobilegridcell_215_267',
        'mobileimage_307_447': 'startScreen_mobileimage_307_447',
        'mobilegridcell_310': 'startScreen_mobilegridcell_310',
        'save1': 'startScreen_save1',
        'mobilegridcell_216_269': 'startScreen_mobilegridcell_216_269',
        'mobileimage_307_448': 'startScreen_mobileimage_307_448',
        'mobilegridcell_311': 'startScreen_mobilegridcell_311',
        'save2': 'startScreen_save2',
        'mobilegridcell_217_271': 'startScreen_mobilegridcell_217_271',
        'mobileimage_307_449': 'startScreen_mobileimage_307_449',
        'mobilegridcell_312': 'startScreen_mobilegridcell_312',
        'save3': 'startScreen_save3',
        'mobilegridcell_230_273': 'startScreen_mobilegridcell_230_273',
        'mobileimage_307_450': 'startScreen_mobileimage_307_450',
        'mobilegridcell_313': 'startScreen_mobilegridcell_313',
        'save4': 'startScreen_save4',
        'mobilegrid_419': 'startScreen_mobilegrid_419',
        'mobilegridcell_420': 'startScreen_mobilegridcell_420',
        'mobilelabel_424': 'startScreen_mobilelabel_424',
        'mobilegridcell_421': 'startScreen_mobilegridcell_421',
        'togglepictures': 'startScreen_togglepictures',
        'mobilegrid_61444': 'startScreen_mobilegrid_61444',
        'mobilegridcell_61445': 'startScreen_mobilegridcell_61445',
        'mobilelabel_61450': 'startScreen_mobilelabel_61450',
        'mobilegridcell_61446': 'startScreen_mobilegridcell_61446',
        'toggleload': 'startScreen_toggleload',
        'mobilegrid_384': 'startScreen_mobilegrid_384',
        'mobilegridcell_385': 'startScreen_mobilegridcell_385',
        'loadthech': 'startScreen_loadthech',
        'mobilegridcell_386': 'startScreen_mobilegridcell_386',
        'toggletech': 'startScreen_toggletech',
        'mobilegridcell_387': 'startScreen_mobilegridcell_387',
        'loadbus': 'startScreen_loadbus',
        'mobilegridcell_388': 'startScreen_mobilegridcell_388',
        'togglebus': 'startScreen_togglebus',
        'mobilegridcell_389': 'startScreen_mobilegridcell_389',
        'mobilelabel_400': 'startScreen_mobilelabel_400',
        'mobilegridcell_390': 'startScreen_mobilegridcell_390',
        'togglehealth': 'startScreen_togglehealth',
        'mobilegridcell_391': 'startScreen_mobilegridcell_391',
        'loadspecial': 'startScreen_loadspecial',
        'mobilegridcell_392': 'startScreen_mobilegridcell_392',
        'togglespecial': 'startScreen_togglespecial',
        'banner': 'startScreen_banner',
        'more': 'startScreen_more',
        'mobilegrid_428': 'startScreen_mobilegrid_428',
        'mobilegridcell_429': 'startScreen_mobilegridcell_429',
        'mobileimage_435': 'startScreen_mobileimage_435',
        'mobilegridcell_430': 'startScreen_mobilegridcell_430',
        'mobilegridcell_433': 'startScreen_mobilegridcell_433',
        'mobilegridcell_431': 'startScreen_mobilegridcell_431',
        'mobilelabel_437': 'startScreen_mobilelabel_437',
        'mobilegridcell_432': 'startScreen_mobilegridcell_432',
        'mobilegridcell_434': 'startScreen_mobilegridcell_434',
        'loadlabel': 'startScreen_loadlabel',
        'label1': 'startScreen_label1',
        'label2': 'startScreen_label2'
    };

    if ("n2id" in window && window.n2id !== undefined) {
        $.extend(n2id, n2id_buf);
    } else {
        window.n2id = n2id_buf;
    }

    /*
     * Nonvisual components
     */

    Apperyio.mappings = Apperyio.mappings || {};

    Apperyio.mappings["startScreen_rss1_onerror_mapping_0"] = {
        "homeScreen": "startScreen",
        "directions": []
    };

    Apperyio.mappings["startScreen_rss1_onsuccess_mapping_0"] = {
        "homeScreen": "startScreen",
        "directions": [

        {
            "from_name": "rss1",
            "from_type": "SERVICE_RESPONSE",

            "to_name": "ukoffline",
            "to_type": "LOCAL_STORAGE",

            "mappings": [

            {

                "source": "$['body']['rss']['channel']['item'][i]['description'][0]",
                "target": "$[i]['article']"

            },

            {

                "source": "$['body']['rss']['channel']['item'][i]['title'][0]",
                "target": "$[i]['title']"

            },

            {

                "source": "$['body']['rss']['channel']['item'][i]['link']",
                "target": "$[i]['link']"

            },

            {

                "source": "$['body']['rss']['channel']['item'][i]['image']",
                "target": "$[i]['image']"

            }

            ]
        }

        ]
    };

    Apperyio.mappings["startScreen_rss2_onsuccess_mapping_0"] = {
        "homeScreen": "startScreen",
        "directions": [

        {
            "from_name": "rss2",
            "from_type": "SERVICE_RESPONSE",

            "to_name": "worldoffline",
            "to_type": "LOCAL_STORAGE",

            "mappings": [

            {

                "source": "$['body']['rss']['channel']['item'][i]['title'][0]",
                "target": "$[i]['title']"

            },

            {

                "source": "$['body']['rss']['channel']['item'][i]['link']",
                "target": "$[i]['link']"

            },

            {

                "source": "$['body']['rss']['channel']['item'][i]['description'][0]",
                "target": "$[i]['article']"

            },

            {

                "source": "$['body']['rss']['channel']['item'][i]['image']",
                "target": "$[i]['image']"

            }

            ]
        }

        ]
    };

    Apperyio.mappings["startScreen_rss3_onerror_mapping_0"] = {
        "homeScreen": "startScreen",
        "directions": []
    };

    Apperyio.mappings["startScreen_rss3_onsuccess_mapping_0"] = {
        "homeScreen": "startScreen",
        "directions": [

        {
            "from_name": "rss3",
            "from_type": "SERVICE_RESPONSE",

            "to_name": "techoffline",
            "to_type": "LOCAL_STORAGE",

            "mappings": [

            {

                "source": "$['body']['rss']['channel']['item'][i]['title'][0]",
                "target": "$[i]['title']"

            },

            {

                "source": "$['body']['rss']['channel']['item'][i]['description'][0]",
                "target": "$[i]['article']"

            },

            {

                "source": "$['body']['rss']['channel']['item'][i]['link']",
                "target": "$[i]['link']"

            },

            {

                "source": "$['body']['rss']['channel']['item'][i]['image']",
                "target": "$[i]['image']"

            }

            ]
        }

        ]
    };

    Apperyio.mappings["startScreen_rss4_onerror_mapping_0"] = {
        "homeScreen": "startScreen",
        "directions": []
    };

    Apperyio.mappings["startScreen_rss4_onsuccess_mapping_0"] = {
        "homeScreen": "startScreen",
        "directions": [

        {
            "from_name": "rss4",
            "from_type": "SERVICE_RESPONSE",

            "to_name": "businessoffline",
            "to_type": "LOCAL_STORAGE",

            "mappings": [

            {

                "source": "$['body']['rss']['channel']['item'][i]['title'][0]",
                "target": "$[i]['title']"

            },

            {

                "source": "$['body']['rss']['channel']['item'][i]['description'][0]",
                "target": "$[i]['article']"

            },

            {

                "source": "$['body']['rss']['channel']['item'][i]['link']",
                "target": "$[i]['link']"

            },

            {

                "source": "$['body']['rss']['channel']['item'][i]['image']",
                "target": "$[i]['image']"

            }

            ]
        }

        ]
    };

    Apperyio.mappings["startScreen_rss5_onerror_mapping_0"] = {
        "homeScreen": "startScreen",
        "directions": []
    };

    Apperyio.mappings["startScreen_rss5_onsuccess_mapping_0"] = {
        "homeScreen": "startScreen",
        "directions": [

        {
            "from_name": "rss5",
            "from_type": "SERVICE_RESPONSE",

            "to_name": "healthoffline",
            "to_type": "LOCAL_STORAGE",

            "mappings": [

            {

                "source": "$['body']['rss']['channel']['item'][i]['description'][0]",
                "target": "$[i]['article']"

            },

            {

                "source": "$['body']['rss']['channel']['item'][i]['link']",
                "target": "$[i]['link']"

            },

            {

                "source": "$['body']['rss']['channel']['item'][i]['title'][0]",
                "target": "$[i]['title']"

            },

            {

                "source": "$['body']['rss']['channel']['item'][i]['image']",
                "target": "$[i]['image']"

            }

            ]
        }

        ]
    };

    Apperyio.mappings["startScreen_rss12_onerror_mapping_0"] = {
        "homeScreen": "startScreen",
        "directions": []
    };

    Apperyio.mappings["startScreen_rss12_onsuccess_mapping_0"] = {
        "homeScreen": "startScreen",
        "directions": [

        {
            "from_name": "rss12",
            "from_type": "SERVICE_RESPONSE",

            "to_name": "ukoffline",
            "to_type": "LOCAL_STORAGE",

            "mappings": [

            {

                "source": "$['body']['rss']['channel']['item'][i]['description'][0]",
                "target": "$[i]['article']"

            },

            {

                "source": "$['body']['rss']['channel']['item'][i]['title'][0]",
                "target": "$[i]['title']"

            },

            {

                "source": "$['body']['rss']['channel']['item'][i]['link']",
                "target": "$[i]['link']"

            },

            {

                "source": "$['body']['rss']['channel']['item'][i]['image']",
                "target": "$[i]['image']"

            }

            ]
        }

        ]
    };

    Apperyio.mappings["startScreen_rss13_onerror_mapping_0"] = {
        "homeScreen": "startScreen",
        "directions": []
    };

    Apperyio.mappings["startScreen_rss13_onsuccess_mapping_0"] = {
        "homeScreen": "startScreen",
        "directions": [

        {
            "from_name": "rss13",
            "from_type": "SERVICE_RESPONSE",

            "to_name": "ukoffline",
            "to_type": "LOCAL_STORAGE",

            "mappings": [

            {

                "source": "$['body']['rss']['channel']['item'][i]['title'][0]",
                "target": "$[i]['title']"

            },

            {

                "source": "$['body']['rss']['channel']['item'][i]['link']",
                "target": "$[i]['link']"

            },

            {

                "source": "$['body']['rss']['channel']['item'][i]['description'][0]",
                "target": "$[i]['article']"

            },

            {

                "source": "$['body']['rss']['channel']['item'][i]['image']",
                "target": "$[i]['image']"

            }

            ]
        }

        ]
    };

    Apperyio.mappings["startScreen_rss15_onerror_mapping_0"] = {
        "homeScreen": "startScreen",
        "directions": []
    };

    Apperyio.mappings["startScreen_rss15_onsuccess_mapping_0"] = {
        "homeScreen": "startScreen",
        "directions": [

        {
            "from_name": "rss15",
            "from_type": "SERVICE_RESPONSE",

            "to_name": "ukoffline",
            "to_type": "LOCAL_STORAGE",

            "mappings": [

            {

                "source": "$['body']['rss']['channel']['item'][i]['description'][0]",
                "target": "$[i]['article']"

            },

            {

                "source": "$['body']['rss']['channel']['item'][i]['title'][0]",
                "target": "$[i]['title']"

            },

            {

                "source": "$['body']['rss']['channel']['item'][i]['link']",
                "target": "$[i]['link']"

            },

            {

                "source": "$['body']['rss']['channel']['item'][i]['image']",
                "target": "$[i]['image']"

            }

            ]
        }

        ]
    };

    Apperyio.mappings["startScreen_rss16_onerror_mapping_0"] = {
        "homeScreen": "startScreen",
        "directions": []
    };

    Apperyio.mappings["startScreen_rss16_onsuccess_mapping_0"] = {
        "homeScreen": "startScreen",
        "directions": [

        {
            "from_name": "rss16",
            "from_type": "SERVICE_RESPONSE",

            "to_name": "worldoffline",
            "to_type": "LOCAL_STORAGE",

            "mappings": [

            {

                "source": "$['body']['rss']['channel']['item'][i]['description'][0]",
                "target": "$[i]['article']"

            },

            {

                "source": "$['body']['rss']['channel']['item'][i]['title'][0]",
                "target": "$[i]['title']"

            },

            {

                "source": "$['body']['rss']['channel']['item'][i]['link']",
                "target": "$[i]['link']"

            },

            {

                "source": "$['body']['rss']['channel']['item'][i]['image']",
                "target": "$[i]['image']"

            }

            ]
        }

        ]
    };

    Apperyio.mappings["startScreen_rss17_onerror_mapping_0"] = {
        "homeScreen": "startScreen",
        "directions": []
    };

    Apperyio.mappings["startScreen_rss17_onsuccess_mapping_0"] = {
        "homeScreen": "startScreen",
        "directions": [

        {
            "from_name": "rss17",
            "from_type": "SERVICE_RESPONSE",

            "to_name": "ukoffline",
            "to_type": "LOCAL_STORAGE",

            "mappings": [

            {

                "source": "$['body']['rss']['channel']['item'][i]['description'][0]",
                "target": "$[i]['article']"

            },

            {

                "source": "$['body']['rss']['channel']['item'][i]['link']",
                "target": "$[i]['link']"

            },

            {

                "source": "$['body']['rss']['channel']['item'][i]['title'][0]",
                "target": "$[i]['title']"

            },

            {

                "source": "$['body']['rss']['channel']['item'][i]['image']",
                "target": "$[i]['image']"

            }

            ]
        }

        ]
    };

    Apperyio.mappings["startScreen_rss14_onerror_mapping_0"] = {
        "homeScreen": "startScreen",
        "directions": []
    };

    Apperyio.mappings["startScreen_rss14_onsuccess_mapping_0"] = {
        "homeScreen": "startScreen",
        "directions": [

        {
            "from_name": "rss14",
            "from_type": "SERVICE_RESPONSE",

            "to_name": "ukoffline",
            "to_type": "LOCAL_STORAGE",

            "mappings": [

            {

                "source": "$['body']['rss']['channel']['item'][i]['description'][0]",
                "target": "$[i]['article']"

            },

            {

                "source": "$['body']['rss']['channel']['item'][i]['link']",
                "target": "$[i]['link']"

            },

            {

                "source": "$['body']['rss']['channel']['item'][i]['title'][0]",
                "target": "$[i]['title']"

            },

            {

                "source": "$['body']['rss']['channel']['item'][i]['image']",
                "target": "$[i]['image']"

            }

            ]
        }

        ]
    };

    Apperyio.mappings["startScreen_rss6_onerror_mapping_0"] = {
        "homeScreen": "startScreen",
        "directions": []
    };

    Apperyio.mappings["startScreen_rss6_onbeforesend_mapping_0"] = {
        "homeScreen": "startScreen",
        "directions": []
    };

    Apperyio.mappings["startScreen_rss6_onsuccess_mapping_0"] = {
        "homeScreen": "startScreen",
        "directions": [

        {
            "from_name": "rss6",
            "from_type": "SERVICE_RESPONSE",

            "to_name": "specialoffline",
            "to_type": "LOCAL_STORAGE",

            "mappings": [

            {

                "source": "$['body']['rss']['channel']['item'][i]['title'][0]",
                "target": "$[i]['title']"

            },

            {

                "source": "$['body']['rss']['channel']['item'][i]['link']",
                "target": "$[i]['link']"

            },

            {

                "source": "$['body']['rss']['channel']['item'][i]['description'][0]",
                "target": "$[i]['article']"

            },

            {

                "source": "$['body']['rss']['channel']['item'][i]['image']",
                "target": "$[i]['image']"

            }

            ]
        }

        ]
    };

    Apperyio.mappings["startScreen_rsspictures_onbeforesend_mapping_0"] = {
        "homeScreen": "startScreen",
        "directions": []
    };

    Apperyio.mappings["startScreen_rsspictures_onsuccess_mapping_0"] = {
        "homeScreen": "startScreen",
        "directions": [

        {
            "from_name": "rsspictures",
            "from_type": "SERVICE_RESPONSE",

            "to_name": "rsspichtml",
            "to_type": "LOCAL_STORAGE",

            "mappings": [

            {

                "source": "$['body']['rss']['channel']['item']['description'][0]",
                "target": "$"

            }

            ]
        },

        {
            "from_name": "rsspictures",
            "from_type": "SERVICE_RESPONSE",

            "to_name": "rsspictitle",
            "to_type": "LOCAL_STORAGE",

            "mappings": [

            {

                "source": "$['body']['rss']['channel']['item']['link']",
                "target": "$"

            }

            ]
        }

        ]
    };

    Apperyio.mappings["startScreen_rss41_onerror_mapping_0"] = {
        "homeScreen": "startScreen",
        "directions": []
    };

    Apperyio.mappings["startScreen_rss41_onbeforesend_mapping_0"] = {
        "homeScreen": "startScreen",
        "directions": []
    };

    Apperyio.mappings["startScreen_rss41_onsuccess_mapping_0"] = {
        "homeScreen": "startScreen",
        "directions": [

        {
            "from_name": "rss41",
            "from_type": "SERVICE_RESPONSE",

            "to_name": "businessoffline",
            "to_type": "LOCAL_STORAGE",

            "mappings": [

            {

                "source": "$['body']['rss']['channel']['item'][i]['title'][0]",
                "target": "$[i]['title']"

            },

            {

                "source": "$['body']['rss']['channel']['item'][i]['description'][0]",
                "target": "$[i]['article']"

            },

            {

                "source": "$['body']['rss']['channel']['item'][i]['link']",
                "target": "$[i]['link']"

            },

            {

                "source": "$['body']['rss']['channel']['item'][i]['image']",
                "target": "$[i]['image']"

            }

            ]
        }

        ]
    };

    Apperyio.mappings["startScreen_rss51_onsuccess_mapping_0"] = {
        "homeScreen": "startScreen",
        "directions": [

        {
            "from_name": "rss51",
            "from_type": "SERVICE_RESPONSE",

            "to_name": "healthoffline",
            "to_type": "LOCAL_STORAGE",

            "mappings": [

            {

                "source": "$['body']['rss']['channel']['item'][i]['description'][0]",
                "target": "$[i]['article']"

            },

            {

                "source": "$['body']['rss']['channel']['item'][i]['title'][0]",
                "target": "$[i]['title']"

            },

            {

                "source": "$['body']['rss']['channel']['item'][i]['link']",
                "target": "$[i]['link']"

            },

            {

                "source": "$['body']['rss']['channel']['item'][i]['image']",
                "target": "$[i]['image']"

            }

            ]
        }

        ]
    };

    Apperyio.mappings["startScreen_rss51_onbeforesend_mapping_0"] = {
        "homeScreen": "startScreen",
        "directions": []
    };

    Apperyio.mappings["startScreen_rss51_onerror_mapping_0"] = {
        "homeScreen": "startScreen",
        "directions": []
    };

    Apperyio.datasources = Apperyio.datasources || {};

    window.rss1 = Apperyio.datasources.rss1 = new Apperyio.DataSource(UK, {
        "onBeforeSend": function(jqXHR) {},
        "onComplete": function(jqXHR, textStatus) {
            loadregional();;

        },
        "onSuccess": function(data) {
            Apperyio.processMappingAction(Apperyio.mappings["startScreen_rss1_onsuccess_mapping_0"]);
            Apperyio("uk").text("UK");

            Apperyio("mobileheader").text("UK");
        },
        "onError": function(jqXHR, textStatus, errorThrown) {
            Apperyio.processMappingAction(Apperyio.mappings["startScreen_rss1_onerror_mapping_0"]);
        }
    });

    window.rss2 = Apperyio.datasources.rss2 = new Apperyio.DataSource(worldnews, {
        "onBeforeSend": function(jqXHR) {},
        "onComplete": function(jqXHR, textStatus) {
            Apperyio("load").popup("close");
            loadworld();;

        },
        "onSuccess": function(data) {
            Apperyio.processMappingAction(Apperyio.mappings["startScreen_rss2_onsuccess_mapping_0"]);
        },
        "onError": function(jqXHR, textStatus, errorThrown) {
            Apperyio("mobileheader").text("Offline");
            Apperyio("load").popup("close");
        }
    });

    window.rss3 = Apperyio.datasources.rss3 = new Apperyio.DataSource(tech, {
        "onBeforeSend": function(jqXHR) {},
        "onComplete": function(jqXHR, textStatus) {
            loadtech();;

        },
        "onSuccess": function(data) {
            Apperyio.processMappingAction(Apperyio.mappings["startScreen_rss3_onsuccess_mapping_0"]);
        },
        "onError": function(jqXHR, textStatus, errorThrown) {
            Apperyio.processMappingAction(Apperyio.mappings["startScreen_rss3_onerror_mapping_0"]);
        }
    });

    window.rss4 = Apperyio.datasources.rss4 = new Apperyio.DataSource(Business, {
        "onBeforeSend": function(jqXHR) {},
        "onComplete": function(jqXHR, textStatus) {
            loadbusiness();

        },
        "onSuccess": function(data) {
            Apperyio.processMappingAction(Apperyio.mappings["startScreen_rss4_onsuccess_mapping_0"]);
        },
        "onError": function(jqXHR, textStatus, errorThrown) {
            Apperyio.processMappingAction(Apperyio.mappings["startScreen_rss4_onerror_mapping_0"]);
        }
    });

    window.rss5 = Apperyio.datasources.rss5 = new Apperyio.DataSource(health, {
        "onBeforeSend": function(jqXHR) {},
        "onComplete": function(jqXHR, textStatus) {
            loadhealth();

        },
        "onSuccess": function(data) {
            Apperyio.processMappingAction(Apperyio.mappings["startScreen_rss5_onsuccess_mapping_0"]);
        },
        "onError": function(jqXHR, textStatus, errorThrown) {
            Apperyio.processMappingAction(Apperyio.mappings["startScreen_rss5_onerror_mapping_0"]);
        }
    });

    window.rss12 = Apperyio.datasources.rss12 = new Apperyio.DataSource(asia, {
        "onBeforeSend": function(jqXHR) {},
        "onComplete": function(jqXHR, textStatus) {
            loadregional();

        },
        "onSuccess": function(data) {
            Apperyio.processMappingAction(Apperyio.mappings["startScreen_rss12_onsuccess_mapping_0"]);
            Apperyio("uk").text("Asia");
            Apperyio("uk1").text("Asia");
            Apperyio("uk2").text("Asia");
            Apperyio("uk3").text("Asia");
            Apperyio("uk4").text("Asia");
            Apperyio("uk5").text("Asia");
            Apperyio("uk6").text("Asia");
            Apperyio("uk7").text("Asia");

            Apperyio("mobileheader").text("Asia");
        },
        "onError": function(jqXHR, textStatus, errorThrown) {
            Apperyio.processMappingAction(Apperyio.mappings["startScreen_rss12_onerror_mapping_0"]);
        }
    });

    window.rss13 = Apperyio.datasources.rss13 = new Apperyio.DataSource(africa, {
        "onBeforeSend": function(jqXHR) {},
        "onComplete": function(jqXHR, textStatus) {
            loadregional();

        },
        "onSuccess": function(data) {
            Apperyio.processMappingAction(Apperyio.mappings["startScreen_rss13_onsuccess_mapping_0"]);
            Apperyio("uk").text("Africa");
            Apperyio("uk1").text("Africa");
            Apperyio("uk2").text("Africa");
            Apperyio("uk3").text("Africa");
            Apperyio("uk4").text("Africa");
            Apperyio("uk5").text("Africa");
            Apperyio("uk6").text("Africa");
            Apperyio("uk7").text("Africa");

            Apperyio("mobileheader").text("Africa");
        },
        "onError": function(jqXHR, textStatus, errorThrown) {
            Apperyio.processMappingAction(Apperyio.mappings["startScreen_rss13_onerror_mapping_0"]);
        }
    });

    window.rss15 = Apperyio.datasources.rss15 = new Apperyio.DataSource(north, {
        "onBeforeSend": function(jqXHR) {},
        "onComplete": function(jqXHR, textStatus) {
            loadregional();

        },
        "onSuccess": function(data) {
            Apperyio.processMappingAction(Apperyio.mappings["startScreen_rss15_onsuccess_mapping_0"]);
            Apperyio("uk").text("USA & Canada");
            Apperyio("uk1").text("USA & Canada");
            Apperyio("uk2").text("USA & Canada");
            Apperyio("uk3").text("USA & Canada");
            Apperyio("uk4").text("USA & Canada");
            Apperyio("uk5").text("USA & Canada");
            Apperyio("uk6").text("USA & Canada");
            Apperyio("uk7").text("USA & Canada");

            Apperyio("mobileheader").text("USA & Canada");
        },
        "onError": function(jqXHR, textStatus, errorThrown) {
            Apperyio.processMappingAction(Apperyio.mappings["startScreen_rss15_onerror_mapping_0"]);
        }
    });

    window.rss16 = Apperyio.datasources.rss16 = new Apperyio.DataSource(latin, {
        "onBeforeSend": function(jqXHR) {},
        "onComplete": function(jqXHR, textStatus) {
            loadregional();

        },
        "onSuccess": function(data) {
            Apperyio.processMappingAction(Apperyio.mappings["startScreen_rss16_onsuccess_mapping_0"]);
            Apperyio("uk").text("Latin America");
            Apperyio("uk1").text("Latin America");
            Apperyio("uk2").text("Latin America");
            Apperyio("uk3").text("Latin America");
            Apperyio("uk4").text("Latin America");
            Apperyio("uk5").text("Latin America");
            Apperyio("uk6").text("Latin America");
            Apperyio("uk7").text("Latin America");

            Apperyio("mobileheader").text("Latin America");
        },
        "onError": function(jqXHR, textStatus, errorThrown) {
            Apperyio.processMappingAction(Apperyio.mappings["startScreen_rss16_onerror_mapping_0"]);
        }
    });

    window.rss17 = Apperyio.datasources.rss17 = new Apperyio.DataSource(middleeast, {
        "onBeforeSend": function(jqXHR) {},
        "onComplete": function(jqXHR, textStatus) {
            loadregional();

        },
        "onSuccess": function(data) {
            Apperyio.processMappingAction(Apperyio.mappings["startScreen_rss17_onsuccess_mapping_0"]);
            Apperyio("uk").text("Middle East");
            Apperyio("uk1").text("Middle East");
            Apperyio("uk2").text("Middle East");
            Apperyio("uk3").text("Middle East");
            Apperyio("uk4").text("Middle East");
            Apperyio("uk5").text("Middle East");
            Apperyio("uk6").text("Middle East");
            Apperyio("uk7").text("Middle East");

            Apperyio("mobileheader").text("Middle East");
        },
        "onError": function(jqXHR, textStatus, errorThrown) {
            Apperyio.processMappingAction(Apperyio.mappings["startScreen_rss17_onerror_mapping_0"]);
        }
    });

    window.rss14 = Apperyio.datasources.rss14 = new Apperyio.DataSource(europe, {
        "onBeforeSend": function(jqXHR) {},
        "onComplete": function(jqXHR, textStatus) {
            loadregional();

        },
        "onSuccess": function(data) {
            Apperyio.processMappingAction(Apperyio.mappings["startScreen_rss14_onsuccess_mapping_0"]);
            Apperyio("uk").text("Europe");
            Apperyio("uk1").text("Europe");
            Apperyio("uk2").text("Europe");
            Apperyio("uk3").text("Europe");
            Apperyio("uk4").text("Europe");
            Apperyio("uk5").text("Europe");
            Apperyio("uk6").text("Europe");
            Apperyio("uk7").text("Europe");

            Apperyio("mobileheader").text("Europe");
        },
        "onError": function(jqXHR, textStatus, errorThrown) {
            Apperyio.processMappingAction(Apperyio.mappings["startScreen_rss14_onerror_mapping_0"]);
        }
    });

    window.rss6 = Apperyio.datasources.rss6 = new Apperyio.DataSource(special, {
        "onBeforeSend": function(jqXHR) {
            Apperyio.processMappingAction(Apperyio.mappings["startScreen_rss6_onbeforesend_mapping_0"]);
        },
        "onComplete": function(jqXHR, textStatus) {
            loadspecial();

        },
        "onSuccess": function(data) {
            Apperyio.processMappingAction(Apperyio.mappings["startScreen_rss6_onsuccess_mapping_0"]);
        },
        "onError": function(jqXHR, textStatus, errorThrown) {
            Apperyio.processMappingAction(Apperyio.mappings["startScreen_rss6_onerror_mapping_0"]);
        }
    });

    window.rsspictures = Apperyio.datasources.rsspictures = new Apperyio.DataSource(weekInPictures, {
        "onBeforeSend": function(jqXHR) {
            Apperyio.processMappingAction(Apperyio.mappings["startScreen_rsspictures_onbeforesend_mapping_0"]);
        },
        "onComplete": function(jqXHR, textStatus) {

        },
        "onSuccess": function(data) {
            Apperyio.processMappingAction(Apperyio.mappings["startScreen_rsspictures_onsuccess_mapping_0"]);
        },
        "onError": function(jqXHR, textStatus, errorThrown) {}
    });

    window.rss41 = Apperyio.datasources.rss41 = new Apperyio.DataSource(businessWorld, {
        "onBeforeSend": function(jqXHR) {
            Apperyio.processMappingAction(Apperyio.mappings["startScreen_rss41_onbeforesend_mapping_0"]);
        },
        "onComplete": function(jqXHR, textStatus) {
            loadbusiness();

        },
        "onSuccess": function(data) {
            Apperyio.processMappingAction(Apperyio.mappings["startScreen_rss41_onsuccess_mapping_0"]);
        },
        "onError": function(jqXHR, textStatus, errorThrown) {
            Apperyio.processMappingAction(Apperyio.mappings["startScreen_rss41_onerror_mapping_0"]);
        }
    });

    window.rss51 = Apperyio.datasources.rss51 = new Apperyio.DataSource(healthWorld, {
        "onBeforeSend": function(jqXHR) {
            Apperyio.processMappingAction(Apperyio.mappings["startScreen_rss51_onbeforesend_mapping_0"]);
        },
        "onComplete": function(jqXHR, textStatus) {
            loadhealth();

        },
        "onSuccess": function(data) {
            Apperyio.processMappingAction(Apperyio.mappings["startScreen_rss51_onsuccess_mapping_0"]);
        },
        "onError": function(jqXHR, textStatus, errorThrown) {
            Apperyio.processMappingAction(Apperyio.mappings["startScreen_rss51_onerror_mapping_0"]);
        }
    });

    /*
     * Appery.io Push-notification registration service
     */
    Apperyio.mappings["_pushRegistrationApperyService_onbeforesend"] = {
        "homeScreen": "startScreen",
        "directions": [{
            "from_name": "pushNotificationToken",
            "from_type": "LOCAL_STORAGE",
            "to_name": "_registerPushApperyDS",
            "to_type": "SERVICE_REQUEST",
            "mappings": [{
                "source": "$",
                "target": "$['body']['token']"
            }]
        }, {
            "from_name": "pushNotificationDeviceID",
            "from_type": "LOCAL_STORAGE",
            "to_name": "_registerPushApperyDS",
            "to_type": "SERVICE_REQUEST",
            "mappings": [{
                "source": "$",
                "target": "$['body']['deviceID']"
            }]
        }, {
            "from_name": "deviceTimeZone",
            "from_type": "LOCAL_STORAGE",
            "to_name": "_registerPushApperyDS",
            "to_type": "SERVICE_REQUEST",
            "mappings": [{
                "source": "$",
                "target": "$['body']['timeZone']"
            }]
        }, {
            "to_name": "_registerPushApperyDS",
            "to_type": "SERVICE_REQUEST",
            "mappings": [{
                "target_transformation": function(value) {
                    return Apperyio.getProjectGUID();
                },
                "target": "$['headers']['X-Appery-App-Id']"
            }, {
                "target_transformation": function(value) {
                    return Apperyio.getTargetPlatform();
                },
                "target": "$['body']['type']"
            }]
        }]
    };

    var _registerPushApperyDS = Apperyio.datasources._registerPushApperyDS = new Apperyio.DataSource(_pushRegistrationApperyService, {
        "onBeforeSend": function(jqXHR) {
            Apperyio.processMappingAction(Apperyio.mappings["_pushRegistrationApperyService_onbeforesend"]);
        },
        'onComplete': function(jqXHR, textStatus) {},
        'onSuccess': function(data) {
            console.info('App successfully registered with Appery.io Push service');
            $(document).trigger('pushregistrationsuccess');
        },
        'onError': function(jqXHR, textStatus, errorThrown) {
            $(document).trigger('pushregistrationfail');
        }
    });

    Apperyio.CurrentScreen = 'startScreen';
    _.chain(Apperyio.mappings).filter(function(m) {
        return m.homeScreen === Apperyio.CurrentScreen;
    }).each(Apperyio.UIHandler.hideTemplateComponents);

    /*
     * Events and handlers
     */

    // On Load
    var startScreen_onLoad = function() {
            startScreen_elementsExtraJS();

            var loadload = localStorage.getItem('loadload');
            var region = localStorage.getItem('regionstore');
            var tech = localStorage.getItem('loadtech');
            var bus = localStorage.getItem('loadbus');
            var health = localStorage.getItem('loadhealth');
            var special = localStorage.getItem('loadspecial');
            var pictures = localStorage.getItem('loadpicture');

            setTimeout(function check() {

                if (tech == "false") {
                    Apperyio("techcara").hide();
                    Apperyio("tech").hide();
                } else {
                    loadtech();
                    Apperyio("techcara").show();
                    Apperyio("tech").show();
                }

                if (bus == "false") {
                    Apperyio("buscara").hide();
                    Apperyio("bus").hide();
                } else {
                    loadbusiness();
                    Apperyio("buscara").show();
                    Apperyio("bus").show();

                }

                if (health == "false") {
                    Apperyio("health").hide();
                    Apperyio("healthcara").hide();
                } else {
                    loadhealth();
                    Apperyio("health").show();
                    Apperyio("healthcara").show();

                }

                if (special == "false") {
                    Apperyio("special").hide();
                    Apperyio("specialcara").hide();
                } else {

                    loadspecial();
                    Apperyio("special").show();
                    Apperyio("specialcara").show();

                }

                loadworld();
                loadregional();

            }, 100);
            if (loadload == "false") {
                //alert(1);
            } else {
                if (region == "Asia") {
                    rss12.execute();
                    Apperyio("uk").text("Asia");

                } else if (region == "Africa") {
                    rss13.execute();
                    Apperyio("uk").text("Africa");

                } else if (region == "Europe") {
                    rss14.execute();
                    Apperyio("uk").text("Europe");

                } else if (region == "UsaCanada") {
                    rss15.execute();
                    Apperyio("uk").text("Usa & Canada");

                } else if (region == "LatinAmerica") {
                    rss16.execute();
                    Apperyio("uk").text("Latin America");

                } else if (region == "MiddleEast") {
                    rss17.execute();
                    Apperyio("uk").text("Middle East");

                } else {
                    rss1.execute();

                    Apperyio("uk").text("UK");

                }

                if (tech != "false") {
                    rss3.execute();
                }

                if (bus != "false") {
                    if (region == "UK") {
                        rss4.execute();
                    } else {
                        rss41.execute();
                    }
                }

                if (health != "false") {
                    if (region == "UK") {
                        rss5.execute();
                    } else {
                        rss51.execute();
                    }
                }

                if (special != "false") {

                    rss6.execute();
                }

                setTimeout(function check() {
                    Apperyio("load").popup("open");
                    rss2.execute();

                }, 1000);
                setTimeout(function check() {
                    Apperyio("load").popup("close");
                }, 14000);

            }

            ;
            var toggletech = localStorage.getItem('loadtech');
            var togglebus = localStorage.getItem('loadbus');
            var togglehealth = localStorage.getItem('loadhealth');
            var togglespecial = localStorage.getItem('loadspecial');
            var togglepicture = localStorage.getItem('loadpicture');
            var toggleload = localStorage.getItem('loadload');

            if (toggletech == "false") {

            } else {
                toggletech = "true";
            }
            if (togglehealth == "false") {

            } else {
                togglehealth = "true";
            }
            if (togglebus == "false") {

            } else {
                togglebus = "true";
            }
            if (togglespecial == "false") {

            } else {
                togglespecial = "true";
            }
            if (toggleload == "false") {

            } else {
                toggleload = "true";
            }
            if (togglepicture == "false") {

            } else {
                togglepicture = "true";
            }
            localStorage.setItem('loadtech', toggletech);
            localStorage.setItem('loadbus', togglebus);
            localStorage.setItem('loadhealth', togglehealth);
            localStorage.setItem('loadspecial', togglespecial);
            localStorage.setItem('loadpicture', togglepicture);
            localStorage.setItem('loadload', toggleload);

            startScreen_deviceEvents();
            startScreen_windowEvents();
            startScreen_elementsEvents();
        };

    // screen window events


    function startScreen_windowEvents() {

        $('#startScreen').bind('pageshow orientationchange', function() {
            var _page = this;
            adjustContentHeightWithPadding(_page);
        });
        $('#startScreen').on({
            taphold: function(event) {
                Apperyio('load').popup('close');
            },
            pageshow: function(event) {
                var title11 = localStorage.getItem('title1');
                var title21 = localStorage.getItem('title2');
                var title31 = localStorage.getItem('title3');
                var title41 = localStorage.getItem('title4');

                window.title1 = title11;
                window.title2 = title21;
                window.title3 = title31;
                window.title4 = title41;

                Apperyio('save1').html(window.title1);
                Apperyio('save2').html(window.title2);
                Apperyio('save3').html(window.title3);
                Apperyio('save4').html(window.title4);

                ;
            },
        });

    };

    // device events


    function startScreen_deviceEvents() {
        document.addEventListener("deviceready", function() {

            $(document).bind("pushinit", function() {
                localStorage.setItem('pushNotificationToken', arguments[1].registrationId);
                _registerPushApperyDS.execute({});
            });

            localStorage.setItem('pushNotificationDeviceID', device.uuid);

            var offset = new Date().getTimezoneOffset();
            var hr = parseInt(offset / (-60));
            var min = -offset - hr * 60;
            var tmin = '' + min;
            var timezone = 'UTC' + (hr > 0 ? '+' + hr : hr) + ':' + (tmin.length > 1 ? tmin : '0' + tmin);
            localStorage.setItem('deviceTimeZone', timezone);

            var push = PushNotification.init({
                ios: {
                    alert: true,
                    badge: false,
                    sound: false
                },
                android: {
                    senderID: '258202906791'
                }
            });

            push.on('registration', function(data) {
                $(document).trigger('pushinit', data);
            });

            push.on('notification', function(data) {
                $(document).trigger('push-notification', data);
            });

            push.on('error', function(e) {
                console.log("Error: " + e.message);
            });

        });
    };

    // screen elements extra js


    function startScreen_elementsExtraJS() {
        // screen (startScreen) extra code

        /* worldcara*/
        var worldcara_options = {
            indicatorsListClass: "ui-carousel-indicators",
            showIndicator: false,
            showTitle: false,
            titleBuildIn: false,
            titleIsText: true,
            animationDuration: 250,
            useLegacyAnimation: false,
            enabled: true,
        }
        Apperyio.__registerComponent('worldcara', new Apperyio.ApperyMobileCarouselComponent("startScreen_worldcara", worldcara_options));

        $("#startScreen_mobilecarouselitem_462_61273_61388").attr("reRender", "worldcara");

        $("#startScreen_mobilecarouselitem_463_61280_61395").attr("reRender", "worldcara");

        $("#startScreen_mobilecarouselitem_464_61287_61402").attr("reRender", "worldcara");

        $("#startScreen_mobilecarouselitem_485_61294_61409").attr("reRender", "worldcara");

        $("#startScreen_mobilecarouselitem_486_61301_61416").attr("reRender", "worldcara");

        $("#startScreen_mobilecarouselitem_487_61308_61423").attr("reRender", "worldcara");

        $("#startScreen_mobilecarouselitem_488_61315_61430").attr("reRender", "worldcara");

        $("#startScreen_mobilecarouselitem_489_61322_61437").attr("reRender", "worldcara");

        /* regionalcara*/
        var regionalcara_options = {
            indicatorsListClass: "ui-carousel-indicators",
            showIndicator: false,
            showTitle: false,
            titleBuildIn: false,
            titleIsText: false,
            animationDuration: 250,
            useLegacyAnimation: false,
            enabled: true,
        }
        Apperyio.__registerComponent('regionalcara', new Apperyio.ApperyMobileCarouselComponent("startScreen_regionalcara", regionalcara_options));

        $("#startScreen_mobilecarouselitem_462_61216").attr("reRender", "regionalcara");

        $("#startScreen_mobilecarouselitem_463_61223").attr("reRender", "regionalcara");

        $("#startScreen_mobilecarouselitem_464_61230").attr("reRender", "regionalcara");

        $("#startScreen_mobilecarouselitem_485_61237").attr("reRender", "regionalcara");

        $("#startScreen_mobilecarouselitem_486_61244").attr("reRender", "regionalcara");

        $("#startScreen_mobilecarouselitem_487_61251").attr("reRender", "regionalcara");

        $("#startScreen_mobilecarouselitem_488_61258").attr("reRender", "regionalcara");

        $("#startScreen_mobilecarouselitem_489_61265").attr("reRender", "regionalcara");

        /* techcara*/
        var techcara_options = {
            indicatorsListClass: "ui-carousel-indicators",
            showIndicator: false,
            showTitle: false,
            titleBuildIn: false,
            titleIsText: false,
            animationDuration: 250,
            useLegacyAnimation: false,
            enabled: true,
        }
        Apperyio.__registerComponent('techcara', new Apperyio.ApperyMobileCarouselComponent("startScreen_techcara", techcara_options));

        $("#startScreen_mobilecarouselitem_462_61273_61331").attr("reRender", "techcara");

        $("#startScreen_mobilecarouselitem_463_61280_61338").attr("reRender", "techcara");

        $("#startScreen_mobilecarouselitem_464_61287_61345").attr("reRender", "techcara");

        $("#startScreen_mobilecarouselitem_485_61294_61352").attr("reRender", "techcara");

        $("#startScreen_mobilecarouselitem_486_61301_61359").attr("reRender", "techcara");

        $("#startScreen_mobilecarouselitem_487_61308_61366").attr("reRender", "techcara");

        $("#startScreen_mobilecarouselitem_488_61315_61373").attr("reRender", "techcara");

        $("#startScreen_mobilecarouselitem_489_61322_61380").attr("reRender", "techcara");

        /* buscara*/
        var buscara_options = {
            indicatorsListClass: "ui-carousel-indicators",
            showIndicator: false,
            showTitle: false,
            titleBuildIn: false,
            titleIsText: true,
            animationDuration: 250,
            useLegacyAnimation: false,
            enabled: true,
        }
        Apperyio.__registerComponent('buscara', new Apperyio.ApperyMobileCarouselComponent("startScreen_buscara", buscara_options));

        $("#startScreen_mobilecarouselitem_462_61273_61453").attr("reRender", "buscara");

        $("#startScreen_mobilecarouselitem_463_61280_61460").attr("reRender", "buscara");

        $("#startScreen_mobilecarouselitem_464_61287_61467").attr("reRender", "buscara");

        $("#startScreen_mobilecarouselitem_485_61294_61474").attr("reRender", "buscara");

        $("#startScreen_mobilecarouselitem_486_61301_61481").attr("reRender", "buscara");

        $("#startScreen_mobilecarouselitem_487_61308_61488").attr("reRender", "buscara");

        $("#startScreen_mobilecarouselitem_488_61315_61495").attr("reRender", "buscara");

        $("#startScreen_mobilecarouselitem_489_61322_61502").attr("reRender", "buscara");

        /* healthcara*/
        var healthcara_options = {
            indicatorsListClass: "ui-carousel-indicators",
            showIndicator: false,
            showTitle: false,
            titleBuildIn: false,
            titleIsText: true,
            animationDuration: 250,
            useLegacyAnimation: false,
            enabled: true,
        }
        Apperyio.__registerComponent('healthcara', new Apperyio.ApperyMobileCarouselComponent("startScreen_healthcara", healthcara_options));

        $("#startScreen_mobilecarouselitem_462_61273_61511").attr("reRender", "healthcara");

        $("#startScreen_mobilecarouselitem_463_61280_61518").attr("reRender", "healthcara");

        $("#startScreen_mobilecarouselitem_464_61287_61525").attr("reRender", "healthcara");

        $("#startScreen_mobilecarouselitem_485_61294_61532").attr("reRender", "healthcara");

        $("#startScreen_mobilecarouselitem_486_61301_61539").attr("reRender", "healthcara");

        $("#startScreen_mobilecarouselitem_487_61308_61546").attr("reRender", "healthcara");

        $("#startScreen_mobilecarouselitem_488_61315_61553").attr("reRender", "healthcara");

        $("#startScreen_mobilecarouselitem_489_61322_61560").attr("reRender", "healthcara");

        /* specialcara*/
        var specialcara_options = {
            indicatorsListClass: "ui-carousel-indicators",
            showIndicator: false,
            showTitle: false,
            titleBuildIn: false,
            titleIsText: true,
            animationDuration: 250,
            useLegacyAnimation: false,
            enabled: true,
        }
        Apperyio.__registerComponent('specialcara', new Apperyio.ApperyMobileCarouselComponent("startScreen_specialcara", specialcara_options));

        $("#startScreen_mobilecarouselitem_462_61273_61569").attr("reRender", "specialcara");

        $("#startScreen_mobilecarouselitem_463_61280_61576").attr("reRender", "specialcara");

        $("#startScreen_mobilecarouselitem_464_61287_61583").attr("reRender", "specialcara");

        $("#startScreen_mobilecarouselitem_485_61294_61590").attr("reRender", "specialcara");

        $("#startScreen_mobilecarouselitem_486_61301_61597").attr("reRender", "specialcara");

        $("#startScreen_mobilecarouselitem_487_61308_61604").attr("reRender", "specialcara");

        $("#startScreen_mobilecarouselitem_488_61315_61611").attr("reRender", "specialcara");

        $("#startScreen_mobilecarouselitem_489_61322_61618").attr("reRender", "specialcara");

        /* rateme */
        $("#startScreen_rateme").popup("option", "positionTo", "window");

        /* alert */
        $("#startScreen_alert").popup("option", "positionTo", "[dsid=weekpictures]");

        /* resgionmenu */

        $("#startScreen_resgionmenu").parent().find("a.ui-btn").attr("tabindex", "6");

        /* togglepictures */

        $("#startScreen_togglepictures").parent().find(".ui-flipswitch-on").attr("tabindex", "18");

        /* toggleload */

        $("#startScreen_toggleload").parent().find(".ui-flipswitch-on").attr("tabindex", "22");

        /* toggletech */

        $("#startScreen_toggletech").parent().find(".ui-flipswitch-on").attr("tabindex", "12");

        /* togglebus */

        $("#startScreen_togglebus").parent().find(".ui-flipswitch-on").attr("tabindex", "13");

        /* togglehealth */

        $("#startScreen_togglehealth").parent().find(".ui-flipswitch-on").attr("tabindex", "14");

        /* togglespecial */

        $("#startScreen_togglespecial").parent().find(".ui-flipswitch-on").attr("tabindex", "16");

        /* phoenixsbs */
        $("#startScreen_phoenixsbs").popup("option", "positionTo", "window");

        /* load */
        $("#startScreen_load").popup("option", "positionTo", "window");

        /* pop */
        $("#startScreen_pop").popup("option", "positionTo", "window");

    };

    // screen elements handler


    function startScreen_elementsEvents() {
        $(document).on("click", "a :input,a a,a fieldset label", function(event) {
            event.stopPropagation();
        });

        $(document).off("tap", '#startScreen_mobileheader [name="mobileimage_33"]').on({
            tap: function(event) {
                $('[id="startScreen_menu"]').panel("open");
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobileheader [name="mobileimage_33"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="woi1"]').on({
            tap: function(event) {
                world1();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="woi1"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="woi2"]').on({
            tap: function(event) {
                world2();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="woi2"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="woi3"]').on({
            tap: function(event) {
                world3();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="woi3"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="woi4"]').on({
            tap: function(event) {
                world4();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="woi4"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="woi5"]').on({
            tap: function(event) {
                world5();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="woi5"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="woi6"]').on({
            tap: function(event) {
                world6();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="woi6"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="woi7"]').on({
            tap: function(event) {
                world7();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="woi7"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="woi8"]').on({
            tap: function(event) {
                world8();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="woi8"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="uki1"]').on({
            tap: function(event) {
                uk1();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="uki1"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="uki2"]').on({
            tap: function(event) {
                uk2();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="uki2"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="uki3"]').on({
            tap: function(event) {
                uk3();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="uki3"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="uki4"]').on({
            tap: function(event) {
                uk4();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="uki4"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="uki5"]').on({
            tap: function(event) {
                uk5();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="uki5"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="uki6"]').on({
            tap: function(event) {
                uk6();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="uki6"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="uki7"]').on({
            tap: function(event) {
                uk7();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="uki7"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="uki8"]').on({
            tap: function(event) {
                uk8();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="uki8"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="tei1"]').on({
            tap: function(event) {
                tech1();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="tei1"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="tei2"]').on({
            tap: function(event) {
                tech2();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="tei2"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="tei3"]').on({
            tap: function(event) {
                tech3();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="tei3"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="tei4"]').on({
            tap: function(event) {
                tech4();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="tei4"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="tei5"]').on({
            tap: function(event) {
                tech5();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="tei5"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="tei6"]').on({
            tap: function(event) {
                tech6();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="tei6"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="tei7"]').on({
            tap: function(event) {
                tech7();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="tei7"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="tei8"]').on({
            tap: function(event) {
                tech8();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="tei8"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="bui1"]').on({
            tap: function(event) {
                bus1();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="bui1"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="bui2"]').on({
            tap: function(event) {
                bus2();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="bui2"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="bui3"]').on({
            tap: function(event) {
                bus3();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="bui3"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="bui4"]').on({
            tap: function(event) {
                bus4();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="bui4"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="bui5"]').on({
            tap: function(event) {
                bus5();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="bui5"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="bui6"]').on({
            tap: function(event) {
                bus6();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="bui6"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="bui7"]').on({
            tap: function(event) {
                bus7();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="bui7"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="bui8"]').on({
            tap: function(event) {
                bus8();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="bui8"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="hei1"]').on({
            tap: function(event) {
                health1();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="hei1"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="hei2"]').on({
            tap: function(event) {
                health2();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="hei2"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="hei3"]').on({
            tap: function(event) {
                health3();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="hei3"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="hei4"]').on({
            tap: function(event) {
                health4();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="hei4"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="hei5"]').on({
            tap: function(event) {
                health5();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="hei5"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="hei6"]').on({
            tap: function(event) {
                health6();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="hei6"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="hei7"]').on({
            tap: function(event) {
                health7();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="hei7"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="hei8"]').on({
            tap: function(event) {
                health8();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="hei8"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="spi1"]').on({
            tap: function(event) {
                special1();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="spi1"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="spi2"]').on({
            tap: function(event) {
                special2();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="spi2"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="spi3"]').on({
            tap: function(event) {
                special3();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="spi3"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="spi4"]').on({
            tap: function(event) {
                special4();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="spi4"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="spi5"]').on({
            tap: function(event) {
                special5();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="spi5"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="spi6"]').on({
            tap: function(event) {
                special6();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="spi6"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="spi7"]').on({
            tap: function(event) {
                special7();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="spi7"]');

        $(document).off("tap", '#startScreen_mobilecontainer [name="spi8"]').on({
            tap: function(event) {
                special8();
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_mobilecontainer [name="spi8"]');

        $(document).off("tap", '#startScreen_rateme [name="mobileimage_439"]').on({
            tap: function(event) {
                window.open("https://play.google.com/store/apps/details?id=io.appery.project266531", '_system');
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_rateme [name="mobileimage_439"]');
        $(document).off("tap", '#startScreen_rateme [name="mobileimage_451"]').on({
            tap: function(event) {
                window.open("http://www.windowsphone.com/en-gb/store/app/newsreel/7f790aa3-7218-41ba-bec9-2daddd1e881b", '_system');
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_rateme [name="mobileimage_451"]');
        $(document).off("tap", '#startScreen_rateme [name="mobileimage_440"]').on({
            tap: function(event) {
                window.open("https://marketplace.firefox.com/app/newsreel/", '_system');
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_rateme [name="mobileimage_440"]');
        $(document).off("tap", '#startScreen_rateme [name="ratelabel_play"]').on({
            tap: function(event) {
                window.open("https://play.google.com/store/apps/details?id=io.appery.project266531", '_system');
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_rateme [name="ratelabel_play"]');
        $(document).off("tap", '#startScreen_rateme [name="winlabel"]').on({
            tap: function(event) {
                window.open("http://www.windowsphone.com/en-gb/store/app/newsreel/7f790aa3-7218-41ba-bec9-2daddd1e881b", '_system');
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_rateme [name="winlabel"]');
        $(document).off("tap", '#startScreen_rateme [name="ratelabel_firefox"]').on({
            tap: function(event) {
                window.open("https://marketplace.firefox.com/app/newsreel/", '_system');
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_rateme [name="ratelabel_firefox"]');

        $(document).off("click", '#startScreen_alert [name="mobileimage_410"]').on({
            click: function(event) {
                if (!$(this).attr('disabled')) {
                    Apperyio('alert').popup('close');

                }
            },
        }, '#startScreen_alert [name="mobileimage_410"]');

        $(document).off("click", '#startScreen_alert [name="mobilebutton_442"]').on({
            click: function(event) {
                if (!$(this).attr('disabled')) {
                    Apperyio('alert').popup('close');

                }
            },
        }, '#startScreen_alert [name="mobilebutton_442"]');

        $('#startScreen_menu').off("panelclose").on("panelclose", function(event) {
            var toggletech = Apperyio("toggletech").val();
            var togglebus = Apperyio("togglebus").val();
            var togglehealth = Apperyio("togglehealth").val();
            var togglespecial = Apperyio("togglespecial").val();
            var togglepicture = Apperyio("togglepictures").val();
            var toggleload = Apperyio("toggleload").val();

            if (toggletech == "off") {
                toggletech = "false";
            } else {
                toggletech = "true";
            }

            if (togglehealth == "off") {
                togglehealth = "false";
            } else {
                togglehealth = "true";
            }
            if (togglebus == "off") {
                togglebus = "false";
            } else {
                togglebus = "true";
            }
            if (togglespecial == "off") {
                togglespecial = "false";
            } else {
                togglespecial = "true";
            }
            if (toggleload == "off") {
                toggleload = "false";
            } else {
                toggleload = "true";
            }
            if (togglepicture == "off") {
                togglepicture = "false";
            } else {
                togglepicture = "true";
            }
            localStorage.setItem('loadtech', toggletech);
            localStorage.setItem('loadbus', togglebus);
            localStorage.setItem('loadhealth', togglehealth);
            localStorage.setItem('loadspecial', togglespecial);
            localStorage.setItem('loadpicture', togglepicture);
            localStorage.setItem('loadload', toggleload);
            try {
                $a.c15r("hide", "set", "text", $a.storage["status"].get("$"))
            } catch (e) {
                console.error(e)
            };
            try {
                $a.storage["regionstore"].update("$", $a.c15r($a.UIHandler.resolveGeneratedComponent('hide', this), 'get', 'text'))
            } catch (e) {
                console.error(e)
            };

            var loads = localStorage.getItem('ratecount');

            if (loads > 100) {

                loads++;

            } else if (loads > 4) {
                Apperyio("rateme").popup("open");

                loads = 101;

            } else {
                loads++;
            }
            localStorage.setItem('ratecount', loads);;
        });

        $('#startScreen_menu').off("panelopen").on("panelopen", function(event) {
            setAttribute_('startScreen_toggletech', 'toggled', $a.storage["loadtech"].get("$"));
            $('[id="startScreen_toggletech"]').refresh();
            setAttribute_('startScreen_togglebus', 'toggled', $a.storage["loadbus"].get("$"));
            $('[id="startScreen_togglebus"]').refresh();
            setAttribute_('startScreen_togglehealth', 'toggled', $a.storage["loadhealth"].get("$"));
            $('[id="startScreen_togglehealth"]').refresh();
            setAttribute_('startScreen_toggleload', 'toggled', $a.storage["loadload"].get("$"));
            $('[id="startScreen_toggleload"]').refresh();
            setAttribute_('startScreen_togglespecial', 'toggled', $a.storage["loadspecial"].get("$"));
            $('[id="startScreen_togglespecial"]').refresh();
        });

        $(document).off("click", '#startScreen_menu [name="mobileimage_218"]').on({
            click: function(event) {
                if (!$(this).attr('disabled')) {
                    try {
                        $a.c15r("mobileheader", "set", "text", $a.storage["regionstore"].get("$"))
                    } catch (e) {
                        console.error(e)
                    };

                }
            },
        }, '#startScreen_menu [name="mobileimage_218"]');
        $(document).off("tap", '#startScreen_menu [name="mobilebutton_61626"]').on({
            tap: function(event) {
                $('[id="startScreen_menu"]').panel("close");
                //var region = localStorage.getItem('resionstore');
                var region = Apperyio('hide').text();

                if (region == "Asia") {
                    rss12.execute();
                    // Apperyio("uk").text("Asia");

                } else if (region == "Africa") {
                    rss13.execute();
                    //Apperyio("uk").text("Africa");
                } else if (region == "Europe") {
                    rss14.execute();
                    //Apperyio("uk").text("Africa");
                } else if (region == "UsaCanada") {
                    rss15.execute();
                    //Apperyio("uk").text("Africa");
                } else if (region == "LatinAmerica") {
                    rss16.execute();
                    //Apperyio("uk").text("Africa");
                } else if (region == "MiddleEast") {
                    rss17.execute();
                    //Apperyio("uk").text("Africa");

                } else {
                    rss1.execute();
                    // Apperyio("uk").text("UK");
                }

                var tech = localStorage.getItem('loadtech');
                var bus = localStorage.getItem('loadbus');
                var health = localStorage.getItem('loadhealth');
                var special = localStorage.getItem('loadspecial');
                if (tech == "false") {
                    Apperyio("tech").hide();
                    Apperyio("techcara").hide();
                } else {
                    rss3.execute();
                }

                if (bus == "false") {
                    Apperyio("bus").hide();
                    Apperyio("buscara").hide();
                    Apperyio("specialcara").show();
                } else if (region == "UK") {
                    rss4.execute();
                } else {
                    rss41.execute();
                }

                if (health == "false") {
                    Apperyio("health").hide();
                    Apperyio("healthcara").hide();
                } else if (region == "UK") {
                    rss5.execute();
                } else {
                    rss51.execute();
                }

                if (special == "false") {
                    Apperyio("special").hide();
                    Apperyio("specialcara").hide();
                } else {
                    rss6.execute();
                }
                setTimeout(function check() {
                    Apperyio("load").popup("open");
                    rss2.execute();

                }, 1000);

                setTimeout(function check() {
                    Apperyio("load").popup("close");
                }, 20000);;
                event.stopPropagation();
                return false;
            },
        }, '#startScreen_menu [name="mobilebutton_61626"]');
        $(document).off("change", '#startScreen_menu [name="resgionmenu"]').on({
            change: function(event) {
                try {
                    $a.storage["status"].update("$", $a.c15r($a.UIHandler.resolveGeneratedComponent('resgionmenu', this), 'get', 'selectedMenuItem'))
                } catch (e) {
                    console.error(e)
                };
                try {
                    $a.c15r("z", "set", "text", $a.storage["status"].get("$"))
                } catch (e) {
                    console.error(e)
                };
            },
        }, '#startScreen_menu [name="resgionmenu"]');

        $(document).off("vclick", '#startScreen_menu [name="save1"]').on({
            vclick: function(event) {
                try {
                    $a.storage["topic"].update("$", "save1")
                } catch (e) {
                    console.error(e)
                };
                Apperyio.navigateTo('feed', {
                    transition: 'fade',
                    reverse: false
                });
            },
        }, '#startScreen_menu [name="save1"]');

        $(document).off("vclick", '#startScreen_menu [name="save2"]').on({
            vclick: function(event) {
                try {
                    $a.storage["topic"].update("$", "save2")
                } catch (e) {
                    console.error(e)
                };
                Apperyio.navigateTo('feed', {
                    transition: 'fade',
                    reverse: false
                });
            },
        }, '#startScreen_menu [name="save2"]');

        $(document).off("vclick", '#startScreen_menu [name="save3"]').on({
            vclick: function(event) {
                try {
                    $a.storage["topic"].update("$", "save3")
                } catch (e) {
                    console.error(e)
                };
                Apperyio.navigateTo('feed', {
                    transition: 'fade',
                    reverse: false
                });
            },
        }, '#startScreen_menu [name="save3"]');

        $(document).off("vclick", '#startScreen_menu [name="save4"]').on({
            vclick: function(event) {
                try {
                    $a.storage["topic"].update("$", "save4")
                } catch (e) {
                    console.error(e)
                };
                Apperyio.navigateTo('feed', {
                    transition: 'fade',
                    reverse: false
                });
            },
        }, '#startScreen_menu [name="save4"]');

        $(document).off("click", '#startScreen_phoenixsbs [name="mobileimage_435"]').on({
            click: function(event) {
                if (!$(this).attr('disabled')) {
                    window.top.location = 'https://play.google.com/store/apps/details?id=phoenixsbs.xappy';

                }
            },
        }, '#startScreen_phoenixsbs [name="mobileimage_435"]');

        $(document).off("click", '#startScreen_phoenixsbs [name="mobilelabel_437"]').on({
            click: function(event) {
                if (!$(this).attr('disabled')) {
                    window.top.location = 'https://play.google.com/store/apps/details?id=phoenixsbs.xappy';

                }
            },
        }, '#startScreen_phoenixsbs [name="mobilelabel_437"]');

    };

    $(document).off("pagebeforeshow", "#startScreen").on("pagebeforeshow", "#startScreen", function(event, ui) {
        Apperyio.CurrentScreen = "startScreen";
        _.chain(Apperyio.mappings).filter(function(m) {
            return m.homeScreen === Apperyio.CurrentScreen;
        }).each(Apperyio.UIHandler.hideTemplateComponents);
    });

    startScreen_onLoad();
};

$(document).off("pagecreate", "#startScreen").on("pagecreate", "#startScreen", function(event, ui) {
    Apperyio.processSelectMenu($(this));
    startScreen_js();
});

function feed_js() {

    /* Object & array with components "name-to-id" mapping */
    var n2id_buf = {
        'mobilegrid_318': 'feed_mobilegrid_318',
        'mobilegridcell_319': 'feed_mobilegridcell_319',
        'mobilegrid_313': 'feed_mobilegrid_313',
        'mobilegridcell_314': 'feed_mobilegridcell_314',
        'mobileimage_8': 'feed_mobileimage_8',
        'titleHTML': 'feed_titleHTML',
        'titlelabel': 'feed_titlelabel',
        'html3': 'feed_html3',
        'bbc_244': 'feed_bbc_244',
        'bbc_244_mobilegrid_275': 'feed_bbc_244_mobilegrid_275',
        'bbc_244_mobilegridcell_276': 'feed_bbc_244_mobilegridcell_276',
        'bbc_244_bbc': 'feed_bbc_244_bbc',
        'mobileimage_243': 'feed_mobileimage_243',
        'mobilebutton_323': 'feed_mobilebutton_323',
        'mobilebutton_312': 'feed_mobilebutton_312',
        'mobilegrid_210_211': 'feed_mobilegrid_210_211',
        'mobilegridcell_211_212': 'feed_mobilegridcell_211_212',
        'mobilegridcell_246': 'feed_mobilegridcell_246',
        'savetitle_234': 'feed_savetitle_234',
        'mobilegridcell_213_233': 'feed_mobilegridcell_213_233',
        'mobileimage_307_308': 'feed_mobileimage_307_308',
        'mobilegridcell_247': 'feed_mobilegridcell_247',
        'save1': 'feed_save1',
        'mobilegridcell_215_235': 'feed_mobilegridcell_215_235',
        'mobileimage_307_309': 'feed_mobileimage_307_309',
        'mobilegridcell_248': 'feed_mobilegridcell_248',
        'save2': 'feed_save2',
        'mobilegridcell_216_237': 'feed_mobilegridcell_216_237',
        'mobileimage_307_310': 'feed_mobileimage_307_310',
        'mobilegridcell_249': 'feed_mobilegridcell_249',
        'save3': 'feed_save3',
        'mobilegridcell_217_239': 'feed_mobilegridcell_217_239',
        'mobileimage_307_311': 'feed_mobileimage_307_311',
        'mobilegridcell_250': 'feed_mobilegridcell_250',
        'save4': 'feed_save4',
        'mobilegridcell_230_241': 'feed_mobilegridcell_230_241',
        'mobilegridcell_251': 'feed_mobilegridcell_251',
        'delete': 'feed_delete'
    };

    if ("n2id" in window && window.n2id !== undefined) {
        $.extend(n2id, n2id_buf);
    } else {
        window.n2id = n2id_buf;
    }

    /*
     * Nonvisual components
     */

    Apperyio.mappings = Apperyio.mappings || {};

    Apperyio.datasources = Apperyio.datasources || {};

    Apperyio.CurrentScreen = 'feed';
    _.chain(Apperyio.mappings).filter(function(m) {
        return m.homeScreen === Apperyio.CurrentScreen;
    }).each(Apperyio.UIHandler.hideTemplateComponents);

    /*
     * Events and handlers
     */

    // On Load
    var feed_onLoad = function() {
            feed_elementsExtraJS();

            feed_deviceEvents();
            feed_windowEvents();
            feed_elementsEvents();
        };

    // screen window events


    function feed_windowEvents() {

        $('#feed').bind('pageshow orientationchange', function() {
            var _page = this;
            adjustContentHeightWithPadding(_page);
        });
        $('#feed').on({
            swipeleft: function(event) {
                var arraytitle = ["World", "UK", "Technology", "Business", "Health", "Special Report"];
                var arraystorage = ["worldoffline", "ukoffline", "techoffline", "businessoffline", "healthoffline", "specialoffline"];

                var title = localStorage.getItem('topic');

                var i = arraytitle.indexOf(title);

                var cat = arraystorage[i];

                var arrayart = localStorage.getItem(cat);
                var article = JSON.parse(arrayart);

                var keyArray = article.map(function(item) {
                    return item["title"];
                });
                var keyArray2 = article.map(function(item) {
                    return item["article"];
                });
                var keyArray4 = article.map(function(item) {
                    return item["link"];
                });

                var identify = localStorage.getItem('identify');
                var i = parseInt(identify);

                if (i == 7) {
                    Apperyio.navigateTo('startScreen', {
                        transition: 'none',
                        reverse: false
                    });
                } else {
                    i++;

                    localStorage.setItem('TITLE', keyArray[i]);
                    window.title1 = title + i;
                    Apperyio('mobileheader').text(window.title1);
                    window.news = keyArray2[i];
                    Apperyio('html3').html(window.news);
                    localStorage.setItem('link', keyArray4[i]);
                    localStorage.setItem('identify', i);
                    $('body').scrollTop(0);
                };
            },
            swiperight: function(event) {
                var arraytitle = ["World", "UK", "Technology", "Business", "Health", "Special Report"];
                var arraystorage = ["worldoffline", "ukoffline", "techoffline", "businessoffline", "healthoffline", "specialoffline"];

                var title = localStorage.getItem('topic');

                var i = arraytitle.indexOf(title);

                var cat = arraystorage[i];

                var arrayart = localStorage.getItem(cat);
                var article = JSON.parse(arrayart);

                var keyArray = article.map(function(item) {
                    return item["title"];
                });
                var keyArray2 = article.map(function(item) {
                    return item["article"];
                });
                var keyArray4 = article.map(function(item) {
                    return item["link"];
                });

                var identify = localStorage.getItem('identify');
                var i = parseInt(identify);

                if (i == 0) {
                    Apperyio.navigateTo('startScreen', {
                        transition: 'none',
                        reverse: false
                    });
                } else {
                    i--;
                    localStorage.setItem('TITLE', keyArray[i]);
                    window.title1 = title + i;
                    Apperyio('mobileheader').text(window.title1);
                    window.news = keyArray2[i];
                    Apperyio('html3').html(window.news);
                    localStorage.setItem('link', keyArray4[i]);
                    localStorage.setItem('identify', i);
                    $('body').scrollTop(0);
                };
            },
            pageshow: function(event) {
                var section = localStorage.getItem('topic');

                if (section == "pictures") {
                    var news = localStorage.getItem('rsspichtml');

                    window.news = news;

                    Apperyio('html3').html(window.news);

                } else if (section == "Save 1") {
                    var news = localStorage.getItem('save1');
                    var titlefeed = localStorage.getItem('title1');
                    window.news = news;
                    window.titlefeed = titlefeed;
                    Apperyio('titleHTML').html(window.titlefeed);
                    Apperyio('html3').html(window.news);

                } else if (section == "Save 2") {
                    var news = localStorage.getItem('save2');
                    var titlefeed = localStorage.getItem('title2');
                    window.news = news;
                    window.titlefeed = titlefeed;
                    Apperyio('titleHTML').html(window.titlefeed);
                    Apperyio('html3').html(window.news);

                } else if (section == "Save 3") {
                    var news = localStorage.getItem('save3');
                    var titlefeed = localStorage.getItem('title3');
                    window.news = news;
                    window.titlefeed = titlefeed;
                    Apperyio('titleHTML').html(window.titlefeed);
                    Apperyio('html3').html(window.news);

                } else if (section == "Save 4") {
                    var news = localStorage.getItem('save4');
                    var titlefeed = localStorage.getItem('title4');
                    window.news = news;
                    window.titlefeed = titlefeed;
                    Apperyio('titleHTML').html(window.titlefeed);
                    Apperyio('html3').html(window.news);
                } else {
                    var news = localStorage.getItem('storage');
                    var titlefeed = localStorage.getItem('TITLE');
                    window.news = news;
                    window.titlefeed = titlefeed;
                    Apperyio('titleHTML').html(window.titlefeed);
                    Apperyio('html3').html(window.news);
                };
                try {
                    $a.c15r("mobileheader", "set", "text", $a.storage["topic"].get("$"))
                } catch (e) {
                    console.error(e)
                };
                var title1 = localStorage.getItem('title1');
                var title2 = localStorage.getItem('title2');
                var title3 = localStorage.getItem('title3');
                var title4 = localStorage.getItem('title4');

                window.title1 = title1;
                window.title2 = title2;
                window.title3 = title3;
                window.title4 = title4;

                Apperyio('save1').html(window.title1);
                Apperyio('save2').html(window.title2);
                Apperyio('save3').html(window.title3);
                Apperyio('save4').html(window.title4);
            },
        });

    };

    // device events


    function feed_deviceEvents() {
        document.addEventListener("deviceready", function() {
            $(document).off('backbutton ').on({
                "backbutton": function(event) {
                    Apperyio.navigateTo('startScreen', {
                        reverse: false
                    });
                },
            });

        });
    };

    // screen elements extra js


    function feed_elementsExtraJS() {
        // screen (feed) extra code

    };

    // screen elements handler


    function feed_elementsEvents() {
        $(document).on("click", "a :input,a a,a fieldset label", function(event) {
            event.stopPropagation();
        });

        $(document).off("tap", '#feed_mobileheader [name="mobileimage_8"]').on({
            tap: function(event) {
                $('[id="feed_savemenu"]').panel("open");
                event.stopPropagation();
                return false;
            },
        }, '#feed_mobileheader [name="mobileimage_8"]');

        $(document).off("tap", '#feed_savemenu [name="mobilebutton_323"]').on({
            tap: function(event) {
                Apperyio.navigateTo('startScreen', {
                    transition: 'fade',
                    reverse: false
                });
                event.stopPropagation();
                return false;
            },
        }, '#feed_savemenu [name="mobilebutton_323"]');
        $(document).off("tap", '#feed_savemenu [name="mobilebutton_312"]').on({
            tap: function(event) {
                var link = localStorage.getItem('link');

                window.open(link, '_system', 'location=no');;
                event.stopPropagation();
                return false;
            },
        }, '#feed_savemenu [name="mobilebutton_312"]');

        $(document).off("tap", '#feed_savemenu [name="mobileimage_307_308"]').on({
            tap: function(event) {
                try {
                    $a.c15r("mobileheader", "set", "text", 'Save 1')
                } catch (e) {
                    console.error(e)
                };
                var titleT = localStorage.getItem('TITLE');
                localStorage.setItem('title1', titleT);

                var title1 = localStorage.getItem('title1');
                var title2 = localStorage.getItem('title2');
                var title3 = localStorage.getItem('title3');
                var title4 = localStorage.getItem('title4');

                window.title1 = title1;
                window.title2 = title2;
                window.title3 = title3;
                window.title4 = title4;

                Apperyio('save1').html(window.title1);
                Apperyio('save2').html(window.title2);
                Apperyio('save3').html(window.title3);
                Apperyio('save4').html(window.title4);;
                try {
                    $a.storage["save1"].update("$", $a.c15r($a.UIHandler.resolveGeneratedComponent('html3', this), 'get', 'rawHtml'))
                } catch (e) {
                    console.error(e)
                };
                event.stopPropagation();
                return false;
            },
        }, '#feed_savemenu [name="mobileimage_307_308"]');

        $(document).off("tap", '#feed_savemenu [name="mobileimage_307_309"]').on({
            tap: function(event) {
                try {
                    $a.storage["save2"].update("$", $a.c15r($a.UIHandler.resolveGeneratedComponent('html3', this), 'get', 'rawHtml'))
                } catch (e) {
                    console.error(e)
                };
                var titleT = localStorage.getItem('TITLE');
                localStorage.setItem('title2', titleT);

                var title1 = localStorage.getItem('title1');
                var title2 = localStorage.getItem('title2');
                var title3 = localStorage.getItem('title3');
                var title4 = localStorage.getItem('title4');

                window.title1 = title1;
                window.title2 = title2;
                window.title3 = title3;
                window.title4 = title4;

                Apperyio('save1').html(window.title1);
                Apperyio('save2').html(window.title2);
                Apperyio('save3').html(window.title3);
                Apperyio('save4').html(window.title4);;
                try {
                    $a.c15r("mobileheader", "set", "text", 'Save 2')
                } catch (e) {
                    console.error(e)
                };
                event.stopPropagation();
                return false;
            },
        }, '#feed_savemenu [name="mobileimage_307_309"]');

        $(document).off("tap", '#feed_savemenu [name="mobileimage_307_310"]').on({
            tap: function(event) {
                try {
                    $a.storage["save3"].update("$", $a.c15r($a.UIHandler.resolveGeneratedComponent('html3', this), 'get', 'rawHtml'))
                } catch (e) {
                    console.error(e)
                };
                var titleT = localStorage.getItem('TITLE');
                localStorage.setItem('title3', titleT);

                var title1 = localStorage.getItem('title1');
                var title2 = localStorage.getItem('title2');
                var title3 = localStorage.getItem('title3');
                var title4 = localStorage.getItem('title4');

                window.title1 = title1;
                window.title2 = title2;
                window.title3 = title3;
                window.title4 = title4;

                Apperyio('save1').html(window.title1);
                Apperyio('save2').html(window.title2);
                Apperyio('save3').html(window.title3);
                Apperyio('save4').html(window.title4);
                try {
                    $a.c15r("mobileheader", "set", "text", 'Save 3')
                } catch (e) {
                    console.error(e)
                };
                event.stopPropagation();
                return false;
            },
        }, '#feed_savemenu [name="mobileimage_307_310"]');

        $(document).off("tap", '#feed_savemenu [name="mobileimage_307_311"]').on({
            tap: function(event) {
                try {
                    $a.c15r("mobileheader", "set", "text", 'Save 4')
                } catch (e) {
                    console.error(e)
                };
                var titleT = localStorage.getItem('TITLE');
                localStorage.setItem('title4', titleT);

                var title1 = localStorage.getItem('title1');
                var title2 = localStorage.getItem('title2');
                var title3 = localStorage.getItem('title3');
                var title4 = localStorage.getItem('title4');

                window.title1 = title1;
                window.title2 = title2;
                window.title3 = title3;
                window.title4 = title4;

                Apperyio('save1').html(window.title1);
                Apperyio('save2').html(window.title2);
                Apperyio('save3').html(window.title3);
                Apperyio('save4').html(window.title4);
                try {
                    $a.storage["save4"].update("$", $a.c15r($a.UIHandler.resolveGeneratedComponent('html3', this), 'get', 'rawHtml'))
                } catch (e) {
                    console.error(e)
                };
                event.stopPropagation();
                return false;
            },
        }, '#feed_savemenu [name="mobileimage_307_311"]');

        $(document).off("click", '#feed_savemenu [name="delete"]').on({
            click: function(event) {
                if (!$(this).attr('disabled')) {
                    try {
                        $a.storage["save1"].update("$", $a.c15r($a.UIHandler.resolveGeneratedComponent('html3', this), 'get', 'rawHtml'))
                    } catch (e) {
                        console.error(e)
                    };
                    try {
                        $a.c15r("mobileheader", "set", "text", 'Saved 1')
                    } catch (e) {
                        console.error(e)
                    };
                    $('[id="feed_savemenu"]').panel("close");

                }
            },
        }, '#feed_savemenu [name="delete"]');

    };

    $(document).off("pagebeforeshow", "#feed").on("pagebeforeshow", "#feed", function(event, ui) {
        Apperyio.CurrentScreen = "feed";
        _.chain(Apperyio.mappings).filter(function(m) {
            return m.homeScreen === Apperyio.CurrentScreen;
        }).each(Apperyio.UIHandler.hideTemplateComponents);
    });

    feed_onLoad();
};

$(document).off("pagecreate", "#feed").on("pagecreate", "#feed", function(event, ui) {
    Apperyio.processSelectMenu($(this));
    feed_js();
});