﻿function showToast(message) {
    $().toastmessage('showNoticeToast', message);


//    soundManager.createSound({
//        id: 'mySound1',
//        url: '/Resources/Sounds/evilaf04.mp3'
//    });
//    soundManager.play('mySound1');
}


function StartUpdates() {    
    getRightPanel();   
    return false;
}

function getRightPanel() {
    var refreshseconds = 30
    var ajaxwait = refreshseconds * 1000;

    $.ajax({
        type: "POST",
        url: "/WebServices/AjaxCalls.asmx/GetRightPanel",
        data: "{}",
        contentType: "application/json; charset=utf-8",
        dataType: "json",
        success: function (msg) {
            $("#RightUpdates").html(msg.d);
        },

        error: function (e) {
            $("#RightUpdates").text('Error: ' + e);
        }
    });


    if (window.innerHeight > 880) {
        $("#RightPanel").css("font-size", "10pt");
        console.log('test');
    }

    setTimeout("getRightPanel()", ajaxwait);
    return false;
}
