maha4india / Willi-Clever-3 showHide

// ==UserScript==
// @name         Willi-Clever-3 showHide
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  Maha Will
// @author       You
// @license      MIT
// @match        *://*.sports.williamhill.com/betting/*
// @grant       GM_notification
// @run-at document-end
// @require      http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js
// ==/UserScript==

(function() {
    'use strict';

    var $ = window.jQuery;

    var strLink;
    // alert('hi');

    //     $(document).on('click touchstart', '.btn.betbutton.oddsbutton', function() {
    //     alert('ok');
    //          event.stopPropagation();
    //         event.preventDefault();
    // });

    var test = $('<button width: 100%; height: 100%; style="height:100px;width:100px;background-color: #4CAF50;">Run Me</button>').click(function () {
        Main();
    });

    var test1 = $('<button width: 100%; height: 100%; style="height:100px;width:100px;background-color: #4CAF50;">odd</button>').click(function () {
        try
        {
            //             $('.odds-format__toggle').trigger('click');
            //             $('.subheader__item.odds-format-filter').toggleClass(".subheader__item odds-format-filter.-opened");
            //             $('.odds-format__toggle').toggleClass(".odds-format__toggle.-expanded");
            //             $('.odds-format__toggle').trigger('click');


            var isFractionClicked = "False";

            $('.odds-format__button').each(function(i){
                var statsValue = $(this).text().toUpperCase();
                //                 alert(statsValue);
                //                 alert(statsValue.indexOf('FRACTION'));
                //                 alert(statsValue.indexOf('DECIMAL'));

                //                 alert(statsValue);
                if (statsValue.indexOf('FRACTION') >= 0)
                {
                    //                     console.log('indise');
                    //                     $(this).trigger('click');
                    $('span:first', $(this)).trigger('click');
                    isFractionClicked = "True";
                }
                if ((statsValue.indexOf('DECIMAL') >= 0) && (isFractionClicked = "True"))
                {
                    //                     alert(statsValue);
                    //                     //                     console.log('indise');
                    $('span:first', $(this)).trigger('click');
                }
            });
        }
        catch(ex)
        {
        }
    });

    var showhide = $('<button width: 100%; height: 100%; style="height:50px;width:50px;background-color: #4CAF50;">SH</button>').click(function () {
        showHide();
    });

    var test2 = $('<button width: 100%; height: 100%; style="height:100px;width:100px;background-color: #4CAF50;">choose few</button>').click(function () {
        mainChoose();
    });

    var test3 = $('<button width: 100%; height: 100%; style="height:100px;width:100px;background-color: #4CAF50;">Clever</button>').click(function () {
        CleverSelect();
    });

    var test4 = $('<button width: 100%; height: 100%; style="height:100px;width:100px;background-color: #4CAF50;">Clean Betslip</button>').click(function () {
        clearBetslip();
    });

    var test5 = $('<button width: 100%; height: 100%; style="height:100px;width:100px;background-color: #4CAF50;">Refresh matches</button>').click(function () {
        RefreshMatches();
    });

    var tableTest;
    tableTest = "<table ID = 'tblParam' bgcolor='#4CAF50' border='3' width='100%'>" +
        "<TR><TD>Max?<input type='text' ID = 'txtMax' value='10' size='2'>" +
        ". W?<select id='sltWhat' style='background-color: #f0f'><option value='Over 0.5'>Over 0.5</option><option value='Over 1.5'>Over 1.5</option><option value='Over 2.5'>Over 2.5</option><option value='BTT'>Yes</option><option value='Under 1.5'>Under 1.5</option><option value='Under 2.5'>Under 2.5</option><option value='BTTNO'>No</option></select></TD>/TR>" +
        "<TR><TD>frm<input type='text' ID = 'txtFromVal' value='1.10' size='3'>. To<input type='text' ID = 'txttoVal' value='1.25' size='3'></TD>/TR>" +
        //                 "<TD>stke?<input type='text' ID = 'txtHowmuch' value='1.00' size='2'>low<input type='checkbox' ID = 'chkLow' size='4'></TD></TR></table>"
        "<TR><TD>cnt ? <input type='checkbox' ID = 'chkContinue' style='width: 70px;height: 70px;'>low<input type='checkbox' ID = 'chkLow' style='width: 70px;height: 70px;'></TD></TR><TR><TD>set odds?<input type='text' ID = 'txtSetOdds' value='1.07,2.00' size='8'>stats<input type='checkbox' ID = 'chkstats'></TD></TR></table>"

    var appendplace = ".sb-header__headerBottom";
    $(appendplace).append('<table><tr><td></td></tr></table>').find("td:eq(0)").append(showhide);
    $(appendplace).append('<table ID = "tblShowHide"><tr><td></td></tr><br><tr><td></td></tr><br><tr><td></td></tr><br><tr><td></td></tr></table>').find("td:eq(1)").append(test);
    $(appendplace).find("td:eq(1)").append(test1);
    $(appendplace).find("td:eq(2)").append(test2);
    $(appendplace).find("td:eq(2)").append(test3);
    $(appendplace).find("td:eq(3)").append(tableTest);
    $(appendplace).find("td:eq(3)").append(test4);
    $(appendplace).find("td:eq(3)").append(test5);
    //     $(".account-tab").find("td:last").append($("#betslip-ui"));


    function showHide()
    {
        if ($('#tblShowHide').is(":visible"))
        {
            $('#tblShowHide').hide();
        }
        else
        {
            $('#tblShowHide').show();
        }
    }
    function RefreshMatches()
    {
        $('.contextual-nav__icon.icon-tennis').trigger('click');
        $('.contextual-nav__icon.icon-football').trigger('click');
    }

    //"<TD>. S?<select id='sltSelect'><option value='blank'></option><option value='Over 0.5'>Over 0.5</option><option value='Over 1.5'>Over 1.5</option><option value='Over 2.5'>Over 2.5</option><option value='BTT'>Yes</option></select></TD></TR></table>"
    function clearBetslip()
    {
        var bsSelection = document.querySelectorAll(".bs-selection");
        var bslip;
        var removeButton;
        var odds;
        var suspended;
        var blnSuspended;

        for (const bslip of bsSelection)
        {
            removeButton = $(bslip).find(".bs-selection-remove");
            odds = $(bslip).find(".bs-bet-price--selected").text();
            suspended = $(bslip).find(".bs-selection-info-container").text();
            blnSuspended = false;
            var stroddsplit;
            var setodds;
            var strminodds;
            var strmaxodds;
            var blnRemove;
            setodds = document.getElementById('txtSetOdds').value;
            //             alert(setodds);
            if (setodds == ""){setodds="0.00,0.00"}
            //             alert(setodds);
            stroddsplit = setodds.split(',');
            //             alert(stroddsplit[0]);
            //             alert(stroddsplit[1]);
            strminodds = "";
            strmaxodds = "";
            strminodds= parseFloat(stroddsplit[0]);
            strmaxodds= parseFloat(stroddsplit[1]);
            odds = parseFloat(odds);

            blnRemove = false;
            if (suspended.toLowerCase().indexOf("susp") >= 0)
            {
                blnRemove = true;
            }
            if(strminodds > 0.00)
            {
                //                 alert(odds + '--' + strminodds + '--' + strmaxodds );
                //                 alert(odds > strmaxodds);
                if ((odds < strminodds) || (odds > strmaxodds))
                {
                    //                     alert(3);
                    blnRemove = true;
                }
            }
            if (blnRemove == true) {
                $(removeButton).trigger('click');
            }

            var stake;
            //             stake = "1.23"
            //             // //             setodds = document.getElementById('txtSetOdds').value;
            //             // //             alert($('.bs-bet-body__column-stake').find('input:first').val());
            //             //             $('.bs-bet-body__column-stake').find('input:first').val("£" + setodds);
            //             $(".bs-bet-stake__value").text(stake);
            //             $('.bs-bet-body__column-stake').find('input:first').attr('placeholder','£' + stake);
            //             $('.bs-bet-body__column-stake').find('input:first').attr('value','£' + stake);
            // //             $('.bs-bet-body__column-stake').find('input:first').trigger("change");
            //             $('.bs-bet-body__column-stake').find('input:first').toggleClass('bs-bet-stake__input.bs-bet-stake__input.focus-visible');
            //             $('.bs-bet-body__column-stake').find('input:first').find('span:first').toggleClass('bs-bet-stake__value-wrapper.is-focused');
            //             $('.bs-bet-body__column-stake').find('input:first').data("value");
            //             $('.bs-bet-body__column-stake').find('input:first').data("data-focus-visible-added");
            // //             $('.bs-bet-body__column-stake').find('input:first').focus().val('£' + setodds).blur();
            //             $('.bs-bet-body__column-stake').find('input:first').attr('placeholder','£' + setodds);

            //             alert($('.bs-bet-body__column-stake').find('input:first').val());

            //             bs-bet-stake__value-wrapper bs-bet-stake__value-wrapper--empty is-focused
        }
    }

    var strid;
    strid="a";
    var strWhat;
    var strMinOdds;
    var strMaxOdds;
    var strHowmuch;
    var dataodds;
    strWhat = "";

    var intCont;
    var intMax;
    intMax = 0;
    intCont = 1;

    var storeelement;
    var eventID = "";
    storeelement = "";

    var buttonQuery = "";
    var buttonQueryID = "";
    var substr = "";
    var odds = 0.00;
    var blnYes;
    var EventQuery = "";
    var strTime = "";
    var Hscr = "";
    var Ascr = "";
    var hOdds = "";
    var dOdds = "";
    var aOdds = "";
    var Choices= "";
    var FTscr= "";
    var LowABS= parseFloat("1.20").toFixed(2);
    var MedABS= parseFloat("3.20").toFixed(2);
    var ABS = "";
    var ABSVal;
    var Selectedchoice="";
    var selectedID="";
    var team="";

    function CleverSelect()
    {
        intMax = parseInt(document.getElementById('txtMax').value);
        strWhat = $("#sltWhat option:selected").text();
        strMinOdds = parseFloat(document.getElementById('txtFromVal').value).toFixed(2);
        strMaxOdds = parseFloat(document.getElementById('txttoVal').value).toFixed(2);
        //         strHowmuch = parseFloat(document.getElementById('txtHowmuch').value).toFixed(2);

        EventQuery = document.querySelectorAll(".event");
        intCont = 0;
        if ($('#chkContinue').is(":checked")){}else{strid = "";}

        // call json string
        initialiseArray();

        intCont = 0;
        if ($('#chkContinue').is(":checked")){}else{strid = "";}

        for (const buttons of EventQuery)
        {
            buttonQuery = "";
            buttonQueryID = "";
            substr = "";
            odds = "0.00";
            blnYes= "False";
            eventID = $(buttons).attr('id');

            //             alert(eventID);

            strTime = parseFloat($(buttons).find(".wh-label.btmarket__live.go.area-livescore.event__status").text().substr(0,2)).toFixed(0);
            //                          alert(strTime);
            Hscr = $(buttons).find(".btmarket__livescore-item.team-a").text();
            Ascr = $(buttons).find(".btmarket__livescore-item.team-b").text();
            team = $(buttons).find(".btmarket__link-name.btmarket__link-name--ellipsis.show-for-desktop-medium").text();
            hOdds = parseFloat($(buttons).find('.betbutton__odds').eq(0).text()).toFixed(2);
            dOdds = parseFloat($(buttons).find('.betbutton__odds').eq(1).text()).toFixed(2);
            aOdds = parseFloat($(buttons).find('.betbutton__odds').eq(2).text()).toFixed(2);
            FTscr = Hscr + '-' + Ascr;

            //             alert(hOdds);
            //             alert(dOdds);
            //             alert(aOdds);

            ABSVal = 0;
            ABSVal = parseFloat(Math.abs(hOdds - aOdds)).toFixed(2);
            //alert(ABSVal);
            //             alert(LowABS);
            //             alert(MedABS);
            ABS = "";
            if (ABSVal < LowABS){ABS = "Low";}
            else if (ABSVal > MedABS){ABS = "High"}
            else{ABS = "Medium";}

            //             alert('test');

            //alert(Choices.choose.length);

            for (var i = 0; i < Choices.choose.length; i++)
            {

                var start = parseInt(Choices.choose[i].StartTime);
                var end = parseInt(Choices.choose[i].EndTime);
                var hmm = Choices.choose[i].ABS;
                var scr1 = Choices.choose[i].Scr1;
                var scr2 = Choices.choose[i].Scr2;

                //alert(start + '-' + end + '-' + hmm + '-' + scr1 + '-' + scr2 + '------' + strTime + '-' + ABS + '-' + FTscr);

                //                 strTime = parseFloat("07.34".substr(0,2)).toFixed(0);

                // if(start >= strTime && end <= strTime && hmm == ABS && (FTscr == scr1 || FTscr == scr2))
                if(strTime >= start && strTime <= end && hmm == ABS && (FTscr == scr1 || FTscr == scr2))
                {
                    //                     alert(strTime + "-%-" + start + "-%-" + end + "-%-" + hmm + "-%-" + ABS + "-%-" + Choices.choose[i].ID);
                    //                     alert(team + ' === ' + Choices.choose[i].Choose);
                    Selectedchoice = Choices.choose[i].Choose;
                    selectedID= Choices.choose[i].ID;
                    break;
                }
            }

            //alert(team + ' === ' + Selectedchoice);

            buttons.querySelectorAll(".btn.betbutton.oddsbutton").forEach(function (elementButton, index)
                                                                          {
                var strSplit="";
                var strone="";
                var strtwo="";
                var strHtm;
                var searchstr;
                var oddies;

                strSplit = Selectedchoice.split('-');
                strone = "";
                strtwo = "";
                strone=strSplit[0];
                strtwo=strSplit[1];
                strHtm = $(elementButton).html();
                searchstr = "Stupid";

                if (strone != ""){searchstr = "<b>"+ strone + "</b>";}
                //                 oddies = parseFloat($(elementButton).attr('data-odds')).toFixed(2);
                //                 alert(oddies);

                //                 alert(Selectedchoice);
                //                 alert(strone);
                //                 alert(strtwo);
                //                 alert(strHtm);
                //                 alert(searchstr);

                if (strone != "")
                {
                    if ($(elementButton).attr('data-player') == strtwo)
                    {
                        if (strHtm.indexOf(searchstr) >= 0)
                        {
                            if (strid.indexOf(eventID) < 0)
                            {
                                if (intCont <= intMax)
                                {
                                    //                                     alert(Selectedchoice+ '---'+ selectedID + '-----ABS::'+ ABS +'ABS VAL:'+ ABSVal);
                                    $("<B>    .." + strTime + '-'+ selectedID + '-'+ ABS + '-' + strone + "</B>").appendTo($(elementButton));
                                    //$("<B>  --" + selectedID + '-' + strone + "</B>").appendTo($(elementButton));
                                    //                                      alert(strTime);
                                    $('span:first', $(elementButton)).trigger('click');
                                    strid += "," +eventID;
                                    intCont = intCont + 1
                                }
                            }
                        }
                    }
                }

            });
        }
        clearBetslip()
    }
    function mainChoose()
    {
        intMax = parseInt(document.getElementById('txtMax').value);
        strWhat = $("#sltWhat option:selected").text();
        strMinOdds = parseFloat(document.getElementById('txtFromVal').value).toFixed(2);
        strMaxOdds = parseFloat(document.getElementById('txttoVal').value).toFixed(2);
        //         strHowmuch = parseFloat(document.getElementById('txtHowmuch').value).toFixed(2);

        //         alert(intMax);
        //         alert(strWhat);
        //         alert(strMinOdds);
        //         alert(strMaxOdds);

        //alert($('#bets-container-multiples').find('.betslip-selection__stake-container').find('input:first').val());

        //         $('#bets-container-multiples').find('.betslip-selection__stake-container').find('input:first').focus();
        //         $('#bets-container-multiples').find('.betslip-selection__stake-container').find('input:first').val("1.50");
        //         $('.o-btn.o-btn--primary.js-place-bet-button').trigger('click');
        //alert('ih');

        EventQuery = document.querySelectorAll(".event");
        intCont = 0;
        if ($('#chkContinue').is(":checked")){}else{strid = "";}

        for (const buttons of EventQuery)
        {
            buttonQuery = "";
            buttonQueryID = "";
            substr = "";
            odds = "0.00";
            blnYes= "False";
            eventID = $(buttons).attr('id');

            buttons.querySelectorAll(".btn.betbutton.oddsbutton").forEach(function (elementButton, index)
                                                                          {
                // alert($(elementButton).attr('data-player'));
                // alert($(elementButton).attr('data-odds'));
                if ($('#chkLow').is(":checked"))
                {
                    //,Un,Ye,No
                    if (("OV , UN, YE ,NO ").toUpperCase().indexOf($(elementButton).attr('data-player').substr(0,2).toUpperCase()) > -1)
                    {
                        //                         alert($(elementButton).attr('data-player'));

                        //                         alert(parseFloat($(elementButton).attr('data-odds')).toFixed(2));
                        if ((parseFloat($(elementButton).attr('data-odds')).toFixed(2) >= strMinOdds) && (parseFloat($(elementButton).attr('data-odds')).toFixed(2) <= strMaxOdds))
                        {
                            if (strid.indexOf(eventID) < 0)
                            {
                                //alert('inside ;oop');
                                if (intCont <= intMax)
                                {
                                    //                                                                     alert($(elementButton).attr('data-player'));
                                    //alert($(elementButton).attr('data-player'));
                                    if (odds == 0.00)
                                    {
                                        odds = parseFloat($(elementButton).attr('data-odds')).toFixed(2);
                                        buttonQuery = $(elementButton);
                                        buttonQueryID = eventID;
                                        substr = $(elementButton).attr('data-player').substr(0,2).toUpperCase();
                                        blnYes = "True";
                                    }
                                    else
                                    {
                                        //alert('Odds: ' + odds + ' curr odds: ' + parseFloat($(elementButton).attr('data-odds')));
                                        if ( parseFloat($(elementButton).attr('data-odds')) < odds)
                                        {
                                            odds = parseFloat($(elementButton).attr('data-odds')).toFixed(2);
                                            buttonQueryID = eventID;
                                            buttonQuery = $(elementButton);
                                            blnYes = "True";
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
                else
                {
                    if ($(elementButton).attr('data-player') == strWhat)
                    {
                        if (strid.indexOf(eventID) < 0)
                        {
                            if ((parseFloat($(elementButton).attr('data-odds')).toFixed(2) >= strMinOdds) && (parseFloat($(elementButton).attr('data-odds')).toFixed(2) <= strMaxOdds))
                            {
                                //$('#' + $(element).attr('id')).trigger('click');
                                //$(element).trigger('click');
                                if (intCont <= intMax)
                                {
                                    $('span:first', $(elementButton)).trigger('click');
                                    strid += "," +eventID;
                                    intCont = intCont + 1
                                }
                            }
                        }
                    }
                }
            });
            if ($('#chkLow').is(":checked"))
            {
                if (blnYes == "True")
                {
                    blnYes= "False";
                    //
                    //                          alert(strid);
                    //                     alert('before click button query id: ' + buttonQueryID);
                    //                         alert(intCont);
                    //                         alert(intMax);
                    if (intCont <= intMax)
                    {
                        //                         alert('inside trigger');
                        $('span:first', $(buttonQuery)).trigger('click');
                        strid += "," + eventID;

                        intCont = intCont + 1
                    }
                }
            }
        }

        //         document.querySelectorAll('.btn.betbutton.oddsbutton').forEach(function (element, index)
        //         {
        // //             $('span:first', $('#OB_OU2814100924')).trigger('click');
        // //             $('span:first', $('#OB_OU2814100924')).trigger('vclick');
        // //             $('span:first', $('#OB_OU2814100924')).trigger('tap');
        // //             $('span:first', $('#OB_OU2814100924')).trigger('touchstart');
        // //             $('span:first', $('#OB_OU2814100924')).click();
        // //             //alert('jiiiii');
        // //             $('#OB_OU2814100924').trigger('click');


        //             if ($(element).attr('data-player') == strWhat)
        //             {
        //                 if ((parseFloat($(element).attr('data-odds')) >= strMinOdds) && (parseFloat($(element).attr('data-odds')) <= strMaxOdds))
        //                 {
        //                     if (strid.indexOf($(element).closest("div").attr('id')) < 0)
        //                     {
        //                         //$('#' + $(element).attr('id')).trigger('click');
        //                         //$(element).trigger('click');
        //                         if (intCont <= intMax)
        //                         {
        //                             $('span:first', $(element)).trigger('click');
        //                             strid += "," + $(element).closest("div").attr('id');
        //                             intCont = intCont + 1
        //                         }
        //                     }
        //                 }
        //                 //alert($(element).attr('data-player') + '---' + $(element).attr('data-odds'));
        //             }
        //         });


        //         // Place bet after selection
        //         if (strHowmuch > 0)
        //         {

        //             $('#bets-container-multiples').find('.betslip-selection__stake-container').find('input:first').focus();
        //             $('#bets-container-multiples').find('.betslip-selection__stake-container').find('input:first').val(strHowmuch);
        // //             $('#bets-container-multiples').find('.betslip-selection__stake-container').find('input:first').val(strHowmuch).change();
        // //             $('#bets-container-multiples').find('.betslip-selection__stake-container').find('input:first').trigger("change");
        // //             $('#bets-container-multiples').find('.betslip-selection__stake-container').find('input:first').change();
        //                //alert('trigg');

        // //             $('#bets-container-multiples').find('.betslip-selection__stake-container').find('input:first').keyup();
        // //             $('#bets-container-multiples').find('.betslip-selection__stake-container').find('input:first').blur();
        //             //alert('mddet');
        //             var num;
        //             num = 1000;
        //             var check = function()
        //             {
        //                 if(num == 5000)
        //                 {
        //                     // run when condition is met
        //                     //alert('met');
        //                     $('#bets-container-multiples').find('.betslip-selection__stake-container').find('input:first').removeAttr( "disabled" );
        //                     $('#bets-container-multiples').find('.betslip-selection__stake-container').find('input:first').attr('data-ng-init',strHowmuch);

        // //                     $('#bets-container-multiples').find('.betslip-selection__stake-container').find('input:first').focus();
        // //                     var e = $.Event("keydown", { keyCode: 20 });
        // //                     $('#bets-container-multiples').find('.betslip-selection__stake-container').find('input:first').trigger( e );
        //                 }
        //                 else
        //                 {
        //                     num = num + 1000;
        //                     //alert(num);
        //                     setTimeout(check, 1000); // check again in a second
        //                 }
        //             }

        //             check();

        //             $('.o-btn.o-btn--primary.js-place-bet-button').trigger('click');
        //         }
        clearBetslip()
    }

    function Main()
    {
        //         return false;
        // alert('hi');
        var whichone;
        var whcihelement;
        var blnWhat;
        if(($('.event').length)>0)
        {
            whichone ='.event';
            whcihelement = 'id';
            blnWhat = "Live";
        }
        else
        {
            whichone ='.sp-o-market.sp-o-market--default';
            whcihelement = 'data-testid';
            blnWhat = "Schedule";
        }
        // alert($(whichone).length);
        document.querySelectorAll(whichone).forEach(function (element, index) {
            //         element.innerHTML = 'event ' + (index + 1);
            // alert($(element).attr('id'));
            // alert($(element).attr('data-testid'));
            var CleanElement;
            var elementWrite;
            // alert(blnWhat);
            if(blnWhat == 'Live')
            {
                // alert($(element).attr(whcihelement));
                CleanElement = $(element).attr(whcihelement);
                elementWrite = element;
            }
            else
            {
                CleanElement = $(element).attr(whcihelement);
                CleanElement = CleanElement.replace("event-ob-ev", "OB_EV");
                elementWrite = element.getElementsByClassName("sp-o-market__title");
//                event-ob-ev20558736
            }
            // alert(CleanElement);
            var strLink = "https://sports.williamhill.com/betting/en-gb/football/" + CleanElement;
            var availOptions;
            var vntMatchLink = element.getElementsByTagName('a')[1];
            availOptions = $(vntMatchLink).text();
            availOptions = availOptions.replace("+", "");
            availOptions = availOptions.replace(" ", "");
            // alert(strLink);
                   // alert(availOptions);
            //         if (availOptions > 10 )
            //         {


            GetValue(elementWrite,strLink, ".event.three-col-no-titles.events__market-container");

            var scoreLink;
            scoreLink = "https://scoreboardslauncher.williamhill.com/scoreboards/events/" + $(element).attr('id') + "/launch?lang=en-gb&showSuggestions=true"
            //             alert(scoreLink);

            //             var yourFrame = document.getElementById($(element).attr('id'));
            //             yourFrame.addEventListener("load", function() {
            //                 alert('loaded');
            //             });

            if ($('#chkstats').is(":checked"))
            {
                $(element).append('<iframe id=' + $(element).attr('id') + ' width="100%" height="100" src="' + scoreLink + '" frameborder="0">asdfasdfasdfsad</iframe>');
            }
            //             var middle = (($($(element).attr('id')).height()) / 2);
            // $($(element).attr('id')).scrollTop(middle);

            //             $('#' + $(element).attr('id')).ready(function (){
            //                 alert('afret load');
            //                 $("#" + $(element).attr('id')).contents().find("#topContainer").remove();
            //                 $("#" + $(element).attr('id')).contents().find("#court").remove();
            //                 $("#" + $(element).attr('id')).contents().find(".scoreboardWrapper").remove();
            //             } );

            //             var divAll = $("#" + $(element).attr('id')).contents().find(".box_statistics");
            //             alert($(divAll).html());
            //             try
            //             {
            //                 var divs = $('<Div data-title="XXXXXXXX Area"/>');
            //                 divs.load(scoreLink + ' #scoreboard' , function(){attack(divs);});
            //                 return false;
            //             }catch(ex){}

            //             function attack(elem)
            //             {
            //                                                   alert($.parseHTML($(elem).html()));
            //                 //                 $(elem).appendTo(element);
            //                 var html;
            //                 var i, el;
            //                 html = $(elem).html();
            //                 alert(html);
            //                 $(elem).appendTo(element);

            // //                 $($.parseHTML($(elem).html())).find("div").each(function () {
            // //                     alert(22);
            // //                     var myData = $(this).html();
            // //                     alert(myData);
            // //                     console.log(myData);
            // //                 });
            //                 //                 var node = html.querySelector('[title=Dangerous attacks"]');
            //                 //                 alert(node.html());
            //             }

            //         }
            // .querySelectorAll('[data-name='Yes']'

        });

        // set odds to decimal


        function GetValue(strWheretoWrite, strReadLink, strReadAttribute)
        {
            var $ = window.jQuery;
            var temp;
            var strConcat;

            //         alert('inside getvalue');
            strConcat = strReadLink + "  " + strReadAttribute;
            var div = $('<Div/>');
            try
            {
                div.load(strReadLink + ' ' + strReadAttribute, function(){handle(div);});
                return false;
            }
            catch(ex)
            {

            }
            //        alert(strWheretoWrite.find('table').length);
            var html;
            var writetext;
            var searchstring;
            var searchstring1;
            var appendmarket;
            var appendmarket1;
            var a,b,c,d,e,f,g,h,i = "false";
            function handle(element)
            {

                var divT = $('<Table width="95%" border="3" cellspacing="0" cellpadding="6" data-name="myself"/>');
                //  alert($(element).html());
                html = $.parseHTML($(element).html());
                //                 alert(html);
                a = b = c = d = e = f = g = h = i = "false";

                divT.append($('<tr>'));
                $.each( html, function( i, el ) {

                    searchstring = $(el).find(".btmarket__selection").eq(0).html();
                    searchstring1 = $(el).find(".btmarket__selection").eq(1).html();
                    //                     alert(searchstring);
                    //                     alert(searchstring1);
                    a = b = c = d = g = h = i = "false";

                    if ((searchstring.indexOf('data-name="Yes"') >= 0) && (e=="false"))
                    {
                        appendtoOutput($(searchstring),(el));
                        e="true";
                    }
                    if ((searchstring1.indexOf('data-name="Yes"') >= 0) && (e=="false"))
                    {
                        appendtoOutput($(searchstring1),(el));
                        e="true";
                    }
                    if ((searchstring.indexOf('data-name="No"') >= 0) && (f=="false"))
                    {
                        appendtoOutput($(searchstring),(el));
                        f="true";
                    }
                    if ((searchstring1.indexOf('data-name="No"') >= 0) && (f=="false"))
                    {
                        appendtoOutput($(searchstring1),(el));
                        f="true";
                    }
                    if ((searchstring.indexOf('data-name="Over 0.5"') >= 0) && (g=="false"))
                    {
                        appendtoOutput($(searchstring),(el));
                        g="true";
                    }
                    if ((searchstring1.indexOf('data-name="Over 0.5"') >= 0) && (g=="false"))
                    {
                        appendtoOutput($(searchstring1),(el));
                        g="true";
                    }

                    if ((searchstring.indexOf('data-name="Over 1.5"') >= 0) && (a=="false"))
                    {
                        appendtoOutput($(searchstring),(el));
                        a="true";
                    }
                    if ((searchstring1.indexOf('data-name="Over 1.5"') >= 0) && (a=="false"))
                    {
                        appendtoOutput($(searchstring1),(el));
                        a="true";
                    }
                    if ((searchstring.indexOf('data-name="Under 1.5"') >= 0) && (b=="false"))
                    {
                        appendtoOutput($(searchstring),(el));
                        b="true";
                    }
                    if ((searchstring1.indexOf('data-name="Under 1.5"') >= 0) && (b=="false"))
                    {
                        appendtoOutput($(searchstring1),(el));
                        b="true";
                    }
                    if ((searchstring.indexOf('data-name="Over 2.5"') >= 0) && (c=="false"))
                    {
                        appendtoOutput($(searchstring),(el));
                        c="true";
                    }
                    if ((searchstring1.indexOf('data-name="Over 2.5"') >= 0) && (c=="false"))
                    {
                        appendtoOutput($(searchstring1),(el));
                        c="true";
                    }
                    if ((searchstring.indexOf('data-name="Under 2.5"') >= 0) && (d=="false"))
                    {
                        appendtoOutput($(searchstring),(el));
                        d="true";
                    }
                    if ((searchstring1.indexOf('data-name="Under 2.5"') >= 0) && (d=="false"))
                    {
                        appendtoOutput($(searchstring1),(el));
                        d="true";
                    }

                    if ((searchstring.indexOf('data-name="Over 3.5"') >= 0) && (h=="false"))
                    {
                        appendtoOutput($(searchstring),(el));
                        h="true";
                    }
                    if ((searchstring1.indexOf('data-name="Over 3.5"') >= 0) && (h=="false"))
                    {
                        appendtoOutput($(searchstring1),(el));
                        h="true";
                    }
                    if ((searchstring.indexOf('data-name="Over 4.5"') >= 0) && (i=="false"))
                    {
                        appendtoOutput($(searchstring),(el));
                        i="true";
                    }
                    if ((searchstring1.indexOf('data-name="Over 4.5"') >= 0) && (i=="false"))
                    {
                        appendtoOutput($(searchstring1),(el));
                        i="true";
                    }
                    //                                     if ((el.innerHTML.indexOf('data-name="Over"') >= 0) && (g=="false"))
                    //                                     {
                    //                                         divT.append(el.innerHTML);
                    //                                         divT.appendTo(strWheretoWrite);
                    //                                         g="false";
                    //                                     }
                    //                                     if ((el.innerHTML.indexOf('data-name="Under"') >= 0) && (g=="false"))
                    //                                     {
                    //                                         divT.append(el.innerHTML);
                    //                                         divT.appendTo(strWheretoWrite);
                    //                                         g="false";
                    //                                     }

                });


                divT.append($('</tr>'));
                // element.appendTo(strWheretoWrite);
                function appendtoOutput(searchstring, el)
                {
                    //                     alert($(searchstring).html());
                    //                     alert($(el).html());
                    writetext = "";
                    if ($(el).find(".fl").text().indexOf('Match') >= 0)
                    {writetext = "FT";}
                    else if ($(el).find(".fl").text().indexOf('2nd Half') >= 0)
                    {writetext = "2H";}
                    else
                    {writetext = "1H";}+

                        //                     alert($(el).find(".btmarket__selection").find(".btmarket__name").find('span').text());

                        divT.append($('<td border="3">'));
                    //                     divT.append( "<strong>"+ writetext +"</strong>" );
                    $("<B>" + writetext + "</B>").appendTo($(searchstring));
                    divT.append($(searchstring));
                    divT.appendTo(strWheretoWrite);
                    divT.append($('</td>'));
                }
            }
        }

        function HideDIVByID(strName)
        {
            var adSidebar = document.getElementById(strName);
            if (adSidebar) {
                adSidebar.parentNode.removeChild(adSidebar);
            }
        }
    }

    function initialiseArray()
    {
        Choices =
            {
            "choose": [
                {"ID":1,"StartTime": 0,"EndTime": 10,"ABS":"Low","Scr1":"0-0","Scr2":"0-0","Choose":"1H-Over 0.5"},
                {"ID":2,"StartTime": 0,"EndTime": 10,"ABS":"Low","Scr1":"0-1","Scr2":"1-0","Choose":"FT-Yes"},
                {"ID":3,"StartTime": 0,"EndTime": 10,"ABS":"Low","Scr1":"1-1","Scr2":"1-1","Choose":"1H-Over 2.5"},
                {"ID":4,"StartTime": 0,"EndTime": 10,"ABS":"Low","Scr1":"2-0","Scr2":"0-2","Choose":"FT-Yes"},
                {"ID":5,"StartTime": 0,"EndTime": 10,"ABS":"Medium","Scr1":"0-0","Scr2":"0-0","Choose":"FT-Over 0.5"},
                {"ID":6,"StartTime": 0,"EndTime": 10,"ABS":"Medium","Scr1":"0-1","Scr2":"1-0","Choose":"1H-Over 1.5"},
                {"ID":7,"StartTime": 0,"EndTime": 10,"ABS":"Medium","Scr1":"1-1","Scr2":"1-1","Choose":"FT-Over 2.5"},
                {"ID":8,"StartTime": 0,"EndTime": 10,"ABS":"Medium","Scr1":"2-0","Scr2":"0-2","Choose":"FT-Over 2.5"},
                {"ID":9,"StartTime": 0,"EndTime": 10,"ABS":"High","Scr1":"0-0","Scr2":"0-0","Choose":"1H-Over 0.5"},
                {"ID":10,"StartTime": 0,"EndTime": 10,"ABS":"High","Scr1":"0-1","Scr2":"1-0","Choose":"1H-Over 1.5"},
                {"ID":11,"StartTime": 0,"EndTime": 10,"ABS":"High","Scr1":"1-1","Scr2":"1-1","Choose":"FT-Over 3.5"},
                {"ID":12,"StartTime": 0,"EndTime": 10,"ABS":"High","Scr1":"2-0","Scr2":"0-2","Choose":"FT-Over 2.5"},
                {"ID":13,"StartTime": 11,"EndTime": 20,"ABS":"Low","Scr1":"0-0","Scr2":"0-0","Choose":"FT-Over 0.5"},
                {"ID":14,"StartTime": 11,"EndTime": 20,"ABS":"Low","Scr1":"0-1","Scr2":"1-0","Choose":"FT-Yes"},
                {"ID":15,"StartTime": 11,"EndTime": 20,"ABS":"Low","Scr1":"1-1","Scr2":"1-1","Choose":"FT-Over 2.5"},
                {"ID":16,"StartTime": 11,"EndTime": 20,"ABS":"Low","Scr1":"2-0","Scr2":"0-2","Choose":"FT-Yes"},
                {"ID":17,"StartTime": 11,"EndTime": 20,"ABS":"Medium","Scr1":"0-0","Scr2":"0-0","Choose":"1H-Under 1.5"},
                {"ID":18,"StartTime": 11,"EndTime": 20,"ABS":"Medium","Scr1":"0-1","Scr2":"1-0","Choose":"FT-Over 1.5"},
                {"ID":19,"StartTime": 11,"EndTime": 20,"ABS":"Medium","Scr1":"1-1","Scr2":"1-1","Choose":"FT-Over 2.5"},
                {"ID":20,"StartTime": 11,"EndTime": 20,"ABS":"Medium","Scr1":"2-0","Scr2":"0-2","Choose":"FT-Yes"},
                {"ID":21,"StartTime": 11,"EndTime": 20,"ABS":"High","Scr1":"0-0","Scr2":"0-0","Choose":"1H-Over 0.5"},
                {"ID":22,"StartTime": 11,"EndTime": 20,"ABS":"High","Scr1":"0-1","Scr2":"1-0","Choose":"FT-Over 2.5"},
                {"ID":23,"StartTime": 11,"EndTime": 20,"ABS":"High","Scr1":"1-1","Scr2":"1-1","Choose":"FT-Over 2.5"},
                {"ID":24,"StartTime": 11,"EndTime": 20,"ABS":"High","Scr1":"2-0","Scr2":"0-2","Choose":"FT-Over 2.5"},
                {"ID":25,"StartTime": 21,"EndTime": 30,"ABS":"Low","Scr1":"0-0","Scr2":"0-0","Choose":"1H-Under 1.5"},
                {"ID":26,"StartTime": 21,"EndTime": 30,"ABS":"Low","Scr1":"0-1","Scr2":"1-0","Choose":"FT-Over 1.5"},
                {"ID":27,"StartTime": 21,"EndTime": 30,"ABS":"Low","Scr1":"1-1","Scr2":"1-1","Choose":"FT-Over 2.5"},
                {"ID":28,"StartTime": 21,"EndTime": 30,"ABS":"Low","Scr1":"2-0","Scr2":"0-2","Choose":"FT-Yes"},
                {"ID":29,"StartTime": 21,"EndTime": 30,"ABS":"Medium","Scr1":"0-0","Scr2":"0-0","Choose":"1H-Under 1.5"},
                {"ID":30,"StartTime": 21,"EndTime": 30,"ABS":"Medium","Scr1":"0-1","Scr2":"1-0","Choose":"FT-Over 1.5"},
                {"ID":31,"StartTime": 21,"EndTime": 30,"ABS":"Medium","Scr1":"1-1","Scr2":"1-1","Choose":"FT-Over 2.5"},
                {"ID":32,"StartTime": 21,"EndTime": 30,"ABS":"Medium","Scr1":"2-0","Scr2":"0-2","Choose":"FT-Yes"},
                {"ID":33,"StartTime": 21,"EndTime": 30,"ABS":"Medium","Scr1":"2-1","Scr2":"1-2","Choose":"FT-Over 3.5"},
                {"ID":34,"StartTime": 21,"EndTime": 30,"ABS":"High","Scr1":"0-0","Scr2":"0-0","Choose":"FT-Over 0.5"},
                {"ID":35,"StartTime": 21,"EndTime": 30,"ABS":"High","Scr1":"0-1","Scr2":"1-0","Choose":"FT-Over 1.5"},
                {"ID":36,"StartTime": 21,"EndTime": 30,"ABS":"High","Scr1":"1-1","Scr2":"1-1","Choose":"FT-Over 2.5"},
                {"ID":37,"StartTime": 21,"EndTime": 30,"ABS":"High","Scr1":"2-0","Scr2":"0-2","Choose":"FT-Over 2.5"},
                {"ID":38,"StartTime": 31,"EndTime": 44,"ABS":"Low","Scr1":"0-0","Scr2":"0-0","Choose":"1H-Under 1.5"},
                {"ID":39,"StartTime": 31,"EndTime": 44,"ABS":"Low","Scr1":"0-1","Scr2":"1-0","Choose":"FT-Yes"},
                {"ID":40,"StartTime": 31,"EndTime": 44,"ABS":"Low","Scr1":"1-1","Scr2":"1-1","Choose":"1H-Under 3.5"},
                {"ID":41,"StartTime": 31,"EndTime": 44,"ABS":"Low","Scr1":"2-0","Scr2":"0-2","Choose":"FT-Over 2.5"},
                {"ID":42,"StartTime": 31,"EndTime": 44,"ABS":"Low","Scr1":"2-1","Scr2":"1-2","Choose":"FT-Over 3.5"},
                {"ID":43,"StartTime": 31,"EndTime": 44,"ABS":"Medium","Scr1":"0-0","Scr2":"0-0","Choose":"FT-Over 0.5"},
                {"ID":44,"StartTime": 31,"EndTime": 44,"ABS":"Medium","Scr1":"0-1","Scr2":"1-0","Choose":"FT-Over 1.5"},
                {"ID":45,"StartTime": 31,"EndTime": 44,"ABS":"Medium","Scr1":"1-1","Scr2":"1-1","Choose":"FT-Over 2.5"},
                {"ID":46,"StartTime": 31,"EndTime": 44,"ABS":"Medium","Scr1":"2-0","Scr2":"0-2","Choose":"FT-Over 2.5"},
                {"ID":47,"StartTime": 31,"EndTime": 44,"ABS":"Medium","Scr1":"2-1","Scr2":"1-2","Choose":"FT-Over 3.5"},
                {"ID":48,"StartTime": 31,"EndTime": 44,"ABS":"High","Scr1":"0-0","Scr2":"0-0","Choose":"FT-Over 0.5"},
                {"ID":49,"StartTime": 31,"EndTime": 44,"ABS":"High","Scr1":"0-1","Scr2":"1-0","Choose":"FT-Over 0.5"},
                {"ID":50,"StartTime": 31,"EndTime": 44,"ABS":"High","Scr1":"1-1","Scr2":"1-1","Choose":"FT-Over 2.5"},
                {"ID":51,"StartTime": 31,"EndTime": 44,"ABS":"High","Scr1":"2-0","Scr2":"0-2","Choose":""},
                {"ID":52,"StartTime": 31,"EndTime": 44,"ABS":"High","Scr1":"2-1","Scr2":"1-2","Choose":""},
                {"ID":53,"StartTime": 45,"EndTime": 55,"ABS":"Low","Scr1":"0-0","Scr2":"0-0","Choose":"FT-Over 0.5"},
                {"ID":54,"StartTime": 45,"EndTime": 55,"ABS":"Low","Scr1":"0-1","Scr2":"1-0","Choose":"FT-Over 1.5"},
                {"ID":55,"StartTime": 45,"EndTime": 55,"ABS":"Low","Scr1":"1-1","Scr2":"1-1","Choose":""},
                {"ID":56,"StartTime": 45,"EndTime": 55,"ABS":"Low","Scr1":"2-0","Scr2":"0-2","Choose":"FT-Over 2.5"},
                {"ID":57,"StartTime": 45,"EndTime": 55,"ABS":"Low","Scr1":"2-1","Scr2":"1-2","Choose":"FT-Over 3.5"},
                {"ID":58,"StartTime": 45,"EndTime": 55,"ABS":"Medium","Scr1":"0-0","Scr2":"0-0","Choose":"FT-Over 0.5"},
                {"ID":59,"StartTime": 45,"EndTime": 55,"ABS":"Medium","Scr1":"0-1","Scr2":"1-0","Choose":"FT-Over 1.5"},
                {"ID":60,"StartTime": 45,"EndTime": 55,"ABS":"Medium","Scr1":"1-1","Scr2":"1-1","Choose":"FT-Over 2.5"},
                {"ID":61,"StartTime": 45,"EndTime": 55,"ABS":"Medium","Scr1":"2-0","Scr2":"0-2","Choose":"FT-Over 2.5"},
                {"ID":62,"StartTime": 45,"EndTime": 55,"ABS":"Medium","Scr1":"2-1","Scr2":"1-2","Choose":"FT-Over 3.5"},
                {"ID":63,"StartTime": 45,"EndTime": 55,"ABS":"High","Scr1":"0-0","Scr2":"0-0","Choose":"FT-Over 0.5"},
                {"ID":64,"StartTime": 45,"EndTime": 55,"ABS":"High","Scr1":"0-1","Scr2":"1-0","Choose":""},
                {"ID":65,"StartTime": 45,"EndTime": 55,"ABS":"High","Scr1":"1-1","Scr2":"1-1","Choose":"FT-Over 2.5"},
                {"ID":66,"StartTime": 45,"EndTime": 55,"ABS":"High","Scr1":"2-0","Scr2":"0-2","Choose":""},
                {"ID":67,"StartTime": 45,"EndTime": 55,"ABS":"High","Scr1":"2-1","Scr2":"1-2","Choose":""},
                {"ID":68,"StartTime": 55,"EndTime": 65,"ABS":"Low","Scr1":"0-0","Scr2":"0-0","Choose":"FT-Under 2.5"},
                {"ID":69,"StartTime": 55,"EndTime": 65,"ABS":"Low","Scr1":"0-1","Scr2":"1-0","Choose":"FT-Over 1.5"},
                {"ID":70,"StartTime": 55,"EndTime": 65,"ABS":"Low","Scr1":"1-1","Scr2":"1-1","Choose":"FT-Under 4.5"},
                {"ID":71,"StartTime": 55,"EndTime": 65,"ABS":"Low","Scr1":"2-0","Scr2":"0-2","Choose":"FT-Over 2.5"},
                {"ID":72,"StartTime": 55,"EndTime": 65,"ABS":"Low","Scr1":"2-1","Scr2":"1-2","Choose":"FT-Under 4.5"},
                {"ID":73,"StartTime": 55,"EndTime": 65,"ABS":"Medium","Scr1":"0-0","Scr2":"0-0","Choose":"FT-Over 0.5"},
                {"ID":74,"StartTime": 55,"EndTime": 65,"ABS":"Medium","Scr1":"0-1","Scr2":"1-0","Choose":"FT-Over 1.5"},
                {"ID":75,"StartTime": 55,"EndTime": 65,"ABS":"Medium","Scr1":"1-1","Scr2":"1-1","Choose":"FT-Over 2.5"},
                {"ID":76,"StartTime": 55,"EndTime": 65,"ABS":"Medium","Scr1":"2-0","Scr2":"0-2","Choose":"FT-Over 2.5"},
                {"ID":77,"StartTime": 55,"EndTime": 65,"ABS":"Medium","Scr1":"2-1","Scr2":"1-2","Choose":"FT-Over 3.5"},
                {"ID":78,"StartTime": 55,"EndTime": 65,"ABS":"High","Scr1":"0-0","Scr2":"0-0","Choose":"FT-Over 0.5"},
                {"ID":79,"StartTime": 55,"EndTime": 65,"ABS":"High","Scr1":"0-1","Scr2":"1-0","Choose":""},
                {"ID":80,"StartTime": 55,"EndTime": 65,"ABS":"High","Scr1":"1-1","Scr2":"1-1","Choose":"FT-Over 2.5"},
                {"ID":81,"StartTime": 55,"EndTime": 65,"ABS":"High","Scr1":"2-0","Scr2":"0-2","Choose":""},
                {"ID":82,"StartTime": 55,"EndTime": 65,"ABS":"High","Scr1":"2-1","Scr2":"1-2","Choose":""},
                {"ID":83,"StartTime": 65,"EndTime": 75,"ABS":"Low","Scr1":"0-0","Scr2":"0-0","Choose":"FT-Under 2.5"},
                {"ID":84,"StartTime": 65,"EndTime": 75,"ABS":"Low","Scr1":"0-1","Scr2":"1-0","Choose":"FT-Under 3.5"},
                {"ID":85,"StartTime": 65,"EndTime": 75,"ABS":"Low","Scr1":"1-1","Scr2":"1-1","Choose":"FT-Under 4.5"},
                {"ID":86,"StartTime": 65,"EndTime": 75,"ABS":"Low","Scr1":"2-0","Scr2":"0-2","Choose":"FT-Under 4.5"},
                {"ID":87,"StartTime": 65,"EndTime": 75,"ABS":"Low","Scr1":"2-1","Scr2":"1-2","Choose":"FT-Under 4.5"},
                {"ID":88,"StartTime": 65,"EndTime": 75,"ABS":"Medium","Scr1":"0-0","Scr2":"0-0","Choose":"FT-Under 2.5"},
                {"ID":89,"StartTime": 65,"EndTime": 75,"ABS":"Medium","Scr1":"0-1","Scr2":"1-0","Choose":"FT-Over 1.5"},
                {"ID":90,"StartTime": 65,"EndTime": 75,"ABS":"Medium","Scr1":"1-1","Scr2":"1-1","Choose":"FT-Over 2.5"},
                {"ID":91,"StartTime": 65,"EndTime": 75,"ABS":"Medium","Scr1":"2-0","Scr2":"0-2","Choose":"FT-Over 2.5"},
                {"ID":92,"StartTime": 65,"EndTime": 75,"ABS":"Medium","Scr1":"2-1","Scr2":"1-2","Choose":"FT-Under 4.5"},
                {"ID":93,"StartTime": 65,"EndTime": 75,"ABS":"High","Scr1":"0-0","Scr2":"0-0","Choose":"FT-Over 0.5"},
                {"ID":94,"StartTime": 65,"EndTime": 75,"ABS":"High","Scr1":"0-1","Scr2":"1-0","Choose":"FT-Under 2.5"},
                {"ID":95,"StartTime": 65,"EndTime": 75,"ABS":"High","Scr1":"1-1","Scr2":"1-1","Choose":"FT-Over 2.5"},
                {"ID":96,"StartTime": 65,"EndTime": 75,"ABS":"High","Scr1":"2-0","Scr2":"0-2","Choose":"FT-Under 4.5"},
                {"ID":97,"StartTime": 65,"EndTime": 75,"ABS":"High","Scr1":"2-1","Scr2":"1-2","Choose":"FT-Under 5.5"},
                {"ID":98,"StartTime": 75,"EndTime": 85,"ABS":"Low","Scr1":"0-0","Scr2":"0-0","Choose":"FT-Under 1.5"},
                {"ID":99,"StartTime": 75,"EndTime": 85,"ABS":"Low","Scr1":"0-1","Scr2":"1-0","Choose":"FT-Under 2.5"},
                {"ID":100,"StartTime": 75,"EndTime": 85,"ABS":"Low","Scr1":"1-1","Scr2":"1-1","Choose":"FT-Under 3.5"},
                {"ID":101,"StartTime": 75,"EndTime": 85,"ABS":"Low","Scr1":"2-0","Scr2":"0-2","Choose":"FT-Under 4.5"},
                {"ID":102,"StartTime": 75,"EndTime": 85,"ABS":"Low","Scr1":"2-1","Scr2":"1-2","Choose":"FT-Under 4.5"},
                {"ID":103,"StartTime": 75,"EndTime": 85,"ABS":"Medium","Scr1":"0-0","Scr2":"0-0","Choose":"FT-Under 1.5"},
                {"ID":104,"StartTime": 75,"EndTime": 85,"ABS":"Medium","Scr1":"0-1","Scr2":"1-0","Choose":"FT-Under 2.5"},
                {"ID":105,"StartTime": 75,"EndTime": 85,"ABS":"Medium","Scr1":"1-1","Scr2":"1-1","Choose":"FT-Under 3.5"},
                {"ID":106,"StartTime": 75,"EndTime": 85,"ABS":"Medium","Scr1":"2-0","Scr2":"0-2","Choose":"FT-Under 3.5"},
                {"ID":107,"StartTime": 75,"EndTime": 85,"ABS":"Medium","Scr1":"2-1","Scr2":"1-2","Choose":"FT-Under 4.5"},
                {"ID":108,"StartTime": 75,"EndTime": 85,"ABS":"High","Scr1":"0-0","Scr2":"0-0","Choose":"FT-Under 2.5"},
                {"ID":109,"StartTime": 75,"EndTime": 85,"ABS":"High","Scr1":"0-1","Scr2":"1-0","Choose":"FT-Under 3.5"},
                {"ID":110,"StartTime": 75,"EndTime": 85,"ABS":"High","Scr1":"1-1","Scr2":"1-1","Choose":"FT-Under 3.5"},
                {"ID":111,"StartTime": 75,"EndTime": 85,"ABS":"High","Scr1":"2-0","Scr2":"0-2","Choose":"FT-Under 4.5"},
                {"ID":112,"StartTime": 75,"EndTime": 85,"ABS":"High","Scr1":"2-1","Scr2":"1-2","Choose":"FT-Under 4.5"}
            ]
        }
    };
})();