/*
* FlInsuranceQuote - New Wave Javascript
*
* Copyright (c) 2010 Internet Quote Services
*/


    // AJAX call ID
    var iCallID01;
    var iCallID02;
    var iCallID03;

    var insurance_type_param = "HOME";
    var s_form_name_first = "NONE";
    var s_form_name_last = "NONE";
    var s_form_lead_type = "NONE";
    var s_form_email = "NONE";
    var s_form_zipcode = "NONE";
    var s_form_ziparea = "NONE";
    var s_form_state = "NONE";
    var s_form_zipservice = "NONE";
    
    var i_onlinehelp_first_time = 0;

    function onLoad() {
        init();
    }

    function init() {

        insurance_type_param = gup('insure_type');
        SetUpForm_onclick();
        setmyDelay();
        //Test_JSon();

        // Create an instance of the web service and name it o_MapWebService
        //service.useService("http://www.flinsurancequote.com/InsuranceService.asmx?WSDL", "InsuranceService");
        service.useService("../InsuranceService.asmx?WSDL", "InsuranceService");
    }
//    function Test_JSon() {
//        alert("testing");
//        $.ajax({
//            type: "POST",
//            url: "http://www.flinsurancequote.com/InsuranceService.asmx/GetProductsJson",
//            data: "{'parm1':'A','parm2':'123','parm3':'hm'}",
//            contentType: "application/json; charset=utf-8",
//            success: ajaxCallSucceed,
//            dataType: "json",
//            failure: ajaxCallFailed
//        });
//    }
//    function ajaxCallSucceed(response) {
//        var products = eval('(' + response.d + ')');
//        pareseResult(products);
//    }
//    function ajaxCallFailed(error) {
//        alert('error: ' + error);
//    }
//    function pareseResult(products) {
//        var lists = '';
//        for (var i = 0; i < products.length; i++) {
//            if (lists == '') {
//                lists = products[i].ProductName;
//            }
//            else {
//                lists = lists + " <br />" + products[i].ProductName;
//            }
//        }
//        alert('lists: ' + lists);
//    }




    function SetUpForm_onclick() {
    }
    
    function setmyDelay() {
        setTimeout("SetUp_Startup_Avatar()", 7000);
    }

    function SetUp_Startup_Avatar() {


        if (s_site_pagename == "contactUs") {

            //startup audio;
            loadScene(42);
            return;
        }

        if (s_site_pagename == "aboutUs") {
            // startup video
            loadflow_00();

            //startup audio;
            loadScene(52);
            return;
        }

        if (s_site_pagename == "ReferaFriend") {
            // startup video
            loadflow_00();

            //startup audio;
            loadScene(50);
            return;
        }
  
        if (s_site_topic == "Quote") {
            // startup video
            loadflow_3();

            //startup audio;
            loadScene(49);
        }
        if (s_site_topic == "Seguros") {
            // startup video Spanish
            loadflow_11();

            //startup audio;
            loadScene(60);
        }
        if (s_site_topic == "In") {
            // startup video
            loadflow_3();

            //startup audio;
            loadScene(49);
        }

        if (s_site_topic == "Company") {
            // startup video
            loadflow_3();

            //startup audio;
            loadScene(49);
        }

        if (s_site_topic == "Home") {
            // startup video
            loadflow_5();

            //startup audio;
            loadScene(47);
        }

        if (s_site_topic == "Homeowner") {
            // startup video
            loadflow_5();

            //startup audio;
            loadScene(47);
        }

        if (s_site_topic == "Hogar") {
            // startup video Spanish
            loadflow_9();

            //startup audio;
            loadScene(60);
        }

        if (s_site_topic == "Life") {
            // startup video
            loadflow_2();

            //startup audio;
            loadScene(48);
        }

        if (s_site_topic == "Vida") {
            // startup video Spanish
            loadflow_10();

            //startup audio;
            loadScene(60);
        }

        if (s_site_topic == "Auto") {
            // startup video
            loadflow_4();

            //startup audio;
            loadScene(45);
        }

        if (s_site_topic == "Car") {
            // startup video
            loadflow_4();

            //startup audio;
            loadScene(45);
        }

        if (s_site_topic == "Autos") {
            // startup video Spanish
            loadflow_7();

            //startup audio;
            loadScene(60);
        }

        if (s_site_topic == "Health") {
            // startup video
            loadflow_1();

            //startup audio;
            loadScene(46);
        }

        if (s_site_topic == "LongTermCare") {
            // startup video
            loadflow_1();

            //startup audio;
            loadScene(46);
        }

        if (s_site_topic == "Medicos") {
            // startup video Spaniish
            loadflow_8();

            //startup audio;
            loadScene(60);
        }

        if (s_site_topic == "Business") {
            // startup video
            loadflow_3();

            //startup audio;
            loadScene(49);
        }
        
        if (s_site_topic == "Loan") {
            // startup video
            loadflow_6();

            //startup audio;
            loadScene(59);
        }

        if (s_site_topic == "Mortgage") {
            // startup video
            loadflow_6();

            //startup audio;
            loadScene(59);
        }

        if (s_site_topic == "FL Mortgage") {
            // startup video
            loadflow_6();

            //startup audio;
            loadScene(59);
        }

        if (s_site_topic == "FL Loan") {
            // startup video
            loadflow_6();

            //startup audio;
            loadScene(59);
        }

        if (s_site_topic == "Mortgage Rates") {
            // startup video
            loadflow_6();

            //startup audio;
            loadScene(59);
        }

        if (s_site_topic == "Florida Mortgage Rates") {
            // startup video
            loadflow_6();

            //startup audio;
            loadScene(59);
        }

        if (s_site_topic == "ReFinancing") {
            // startup video
            loadflow_6();

            //startup audio;
            loadScene(59);
        }

        if (s_site_topic == "Equity") {
            // startup video
            loadflow_6();

            //startup audio;
            loadScene(59);
        }

        if (s_site_topic == "Home Mortgage") {
            // startup video
            loadflow_6();

            //startup audio;
            loadScene(59);
        }

        if (s_site_topic == "Home Loan") {
            // startup video
            loadflow_6();

            //startup audio;
            loadScene(59);
        }
    }
    
    function Button_Get_Email_onclick() {
        var el = document.getElementById("Text_ZipCode");
        var s_zip_code = el.value;
        if (s_zip_code == "") {
            //alert("Please fill in the 'Zip Code' box.");
            s_form_zipservice = "NONE";
            
            var kkmatch1 = s_site_pagename.indexOf("Spanish")
            if (kkmatch1 == -1) 
            {
                // English
                loadScene(33);
            }
            else 
            {
                //Spanish
                loadScene(63);
            }
            return;
        }

        var numc = s_zip_code.length;
        if (numc < 5) {
            //alert("Please Enter a Valid Zip Code.");
            s_form_zipservice = "NONE";
            var kkmatch1 = s_site_pagename.indexOf("Spanish")
            if (kkmatch1 == -1) {
                // English
                loadScene(33);
            }
            else {
                //Spanish
                loadScene(63);
            }
            return;
        }

        //now valid zip on server
        s_form_zipcode = s_zip_code;
        WebGetZip_Check_Invoke(s_zip_code, s_site_application);
    }

    function Button_Get_Email_Part2() {
        if (s_form_zipservice == "YES") {
            submit_get_quote_full_service();
        }
        else {
            var el = document.getElementById("Text_ZipCode");
            var s_zip_code = el.value;
            if (s_zip_code == "") {
                //alert("Please fill in the 'Zip Code' box.");
                s_form_zipservice = "NONE";
                var kkmatch1 = s_site_pagename.indexOf("Spanish")
                if (kkmatch1 == -1) {
                    // English
                    loadScene(33);
                }
                else {
                    //Spanish
                    loadScene(63);
                }
                return;
            }

            var numc = s_zip_code.length;
            if (numc < 5) {
                //alert("Please Enter a Valid Zip Code.");
                s_form_zipservice = "NONE";
                var kkmatch1 = s_site_pagename.indexOf("Spanish")
                if (kkmatch1 == -1) {
                    // English
                    loadScene(33);
                }
                else {
                    //Spanish
                    loadScene(63);
                }
                return;
            }
            //now valid zip on server
            s_form_zipcode = s_zip_code;
            WebGetZip_Invoke(s_zip_code, s_site_application);
        }
    }

    function submit_get_quote_outside_service() {
        s_form_lead_type = "OUTSIDE";
        s_form_name_first = "OUTSIDE";
        s_form_email = "OUTSIDE";
        var next_email_name = "OUTSIDE";
        var s_phone = "OUTSIDE";

        var lead_status = "NEW_" + s_site_topic;
        var next_email_mins = "1";

        WebAddLead_Invoke(s_form_name_first, s_form_name_last, s_form_email, s_form_zipcode, s_form_lead_type, lead_status, next_email_name, next_email_mins, s_form_state, s_phone, s_form_ziparea);
    }

    function submit_get_quote_full_service() {
        var el = document.getElementById("SelectIsureType");
        var ts = el.selectedIndex;
        if (ts == 0) {
            //alert("Please select the Policy Type.");
            var kkmatch1 = s_site_pagename.indexOf("Spanish")
            if (kkmatch1 == -1) {
                // English
                loadScene(39);
            }
            else {
                //Spanish
                loadScene(66);
            }
            return;
        }
        var tcd = el.selectedIndex;
        var s_lead_type = el[tcd].text;
        s_form_lead_type = s_lead_type;

        var el = document.getElementById("Text_Name_First");
        var s_name_first = el.value;
        if (s_name_first == "") {
            //alert("Please fill in the 'Name' box.");
            var kkmatch1 = s_site_pagename.indexOf("Spanish")
            if (kkmatch1 == -1) {
                // English
                loadScene(35);
            }
            else {
                //Spanish
                loadScene(64);
            }
            return;
        }
        s_form_name_first = s_name_first;

        var el = document.getElementById("Text_Email");
        var s_email = el.value;
        if (s_email == "") {
            //alert("Please fill in the 'Email' box.");
            var kkmatch1 = s_site_pagename.indexOf("Spanish")
            if (kkmatch1 == -1) {
                // English
                loadScene(36);
            }
            else {
                //Spanish
                loadScene(65);
            }
            return;
        }
        var kmatch1 = s_email.indexOf("@")
        if (kmatch1 == -1) {
            //alert("Please Enter a Valid Email.");
            var kkmatch1 = s_site_pagename.indexOf("Spanish")
            if (kkmatch1 == -1) {
                // English
                loadScene(36);
            }
            else {
                //Spanish
                loadScene(65);
            }
            return;
        }
        var kmatch2 = s_email.indexOf(".")
        if (kmatch2 == -1) {
            //alert("Please Enter a Valid Email.");
            var kkmatch1 = s_site_pagename.indexOf("Spanish")
            if (kkmatch1 == -1) {
                // English
                loadScene(36);
            }
            else {
                //Spanish
                loadScene(65);
            }
            return;
        }
        s_form_email = s_email;

        var el = document.getElementById("Text_Phone");
        var s_phonets = el.value;
        if (s_site_pagename != "contactUs") {
            if (s_phonets == "") {
                //alert("Please fill in the 'Contact Phone' box.");
                var kkmatch1 = s_site_pagename.indexOf("Spanish")
                if (kkmatch1 == -1) {
                    // English
                    loadScene(37);
                }
                else {
                    //Spanish
                    loadScene(67);
                }
                return;
            }
        }

        var el = document.getElementById("SelectContact");
        var cs = el.selectedIndex;
        if (s_site_pagename != "contactUs") {
            if (cs == 0) {
                //alert("Please select the Best Way To Contact You.");
                var kkmatch1 = s_site_pagename.indexOf("Spanish")
                if (kkmatch1 == -1) {
                    // English
                    loadScene(38);
                }
                else {
                    //Spanish
                    loadScene(69);
                }
                return;
            }
        }
        var cd = el.selectedIndex;
        var next_email_name = el[cd].text;

        var el = document.getElementById("Text_Phone");
        var s_phone = el.value;

        var lead_status = "NEW_" + s_site_topic;
        var next_email_mins = "1";

        WebAddLead_Invoke(s_form_name_first, s_form_name_last, s_form_email, s_form_zipcode, s_form_lead_type, lead_status, next_email_name, next_email_mins, s_form_state, s_phone, s_form_ziparea);
    }

    function WebAddLead_Invoke(s_typ1, s_typ2, s_typ3, s_typ4, s_typ5, s_typ6, s_typ7, s_typ8, s_typ9, s_typ10, s_typ11) {
        // Call the Web_UserSlots_get_a_slot method on the o_MapWebService web service
        //set_wait_cursor();
        iCallID01 = service.InsuranceService.callService(Results_Service_01, "WebAddLead", s_typ1, s_typ2, s_typ3, s_typ4, s_typ5, s_typ6, s_typ7, s_typ8, s_typ9, s_typ10, s_typ11);
    }

    function WebGetZip_Invoke(s_typ1, s_typ2) {
        // Call the Web_UserSlots_get_a_slot method on the o_MapWebService web service
        //set_wait_cursor();
        iCallID02 = service.InsuranceService.callService(Results_Service_02, "WebGetZip", s_typ1, s_typ2);
    }

    function WebGetZip_Check_Invoke(s_typ1, s_typ2) {
        // Call the Web_UserSlots_get_a_slot method on the o_MapWebService web service
        //set_wait_cursor();
        iCallID03 = service.InsuranceService.callService(Results_Service_03, "WebGetZip", s_typ1, s_typ2);
    }


    function Results_Service_01(result) {
        //Check if the event id is the same
        //set_default_cursor();

        if (iCallID01 != result.id)
            return;

        if (result.error) {
            // Pull the error information
            var faultCode = result.errorDetail.code;
            var faultString = result.errorDetail.string;
            alert("ERROR: Code = " + faultCode + ", Fault String=" + faultString);
        }
        else {
            //Get the resultant value into a local variable
            var pList = new Array();
            pList = result.value;
            var s_tmp = pList[0];
            var s_error = s_tmp;
            var s_tmpout1 = pList[1];
            var s_tmpout2 = pList[2];
            var s_tmpout3 = pList[3];

            pList = null;


            //alert(s_error);
            
            if (s_site_pagename != "contactUs") {

                //alert("Thanks " + s_tmpout2 + " For Your Response! " + "\n" + "\n" + "You Will Be Contacted Shortly Via Email.");
                if (s_site_application == "Insurance") {
                    loadflow_partner3();
                    loadScene(54);
                }
                if (s_site_application == "Seguros") {
                    loadflow_partner5();
                    loadScene(70);
                }
                if (s_site_application == "Loan") {
                    loadflow_partner4();
                    loadScene(55);
                }
            }
            else {
                //alert("Thanks Requestion more information You Will Be Contacted Shortly Via Email.");
                loadScene(41);
            }
        }
    }

    function Results_Service_02(result) {
        //Check if the event id is the same
        //set_default_cursor();

        if (iCallID02 != result.id)
            return;

        if (result.error) {
            // Pull the error information
            var faultCode = result.errorDetail.code;
            var faultString = result.errorDetail.string;
            alert("ERROR: Code = " + faultCode + ", Fault String=" + faultString);
        }
        else {
            //Get the resultant value into a local variable
            var pList = new Array();
            pList = result.value;
            var s_tmp = pList[0];
            var s_error = s_tmp;
            s_form_state = pList[1];
            s_form_ziparea = pList[2];
            s_form_zipservice = pList[3];

            pList = null;
            if (s_form_state == "NONE") {
                //alert("Please fill in the 'Zip Code' box.");
                var el5 = document.getElementById("OnlinePanel");
                el5.style.visibility = "hidden";
                s_form_zipservice = "NONE";
                var kkmatch1 = s_site_pagename.indexOf("Spanish")
                if (kkmatch1 == -1) {
                    // English
                    loadScene(33);
                }
                else {
                    //Spanish
                    loadScene(63);
                }
                return;
            }

            if (s_form_zipservice == "YES") {
                //good zip continue to submit form in service area
                var el4 = document.getElementById("service_area_tbl");
                el4.style.visibility = "visible";
                var el5 = document.getElementById("OnlinePanel");
                el5.style.visibility = "visible";

                //alert("Please select the more data below.");
                var kkmatch1 = s_site_pagename.indexOf("Spanish")
                if (kkmatch1 == -1) {
                    // English
                    loadScene(34);
                }
                else {
                    //Spanish
                    loadScene(68);
                }
            }
            else {
                //good zip continue to submit form outside service area
                if (s_site_pagename != "contactUs") {
                    var el4 = document.getElementById("service_area_tbl");
                    el4.style.visibility = "hidden";
                }
                var el5 = document.getElementById("OnlinePanel");
                el5.style.visibility = "hidden";

                submit_get_quote_outside_service();
            }

        }
    }

    function Results_Service_03(result) {
        //Check if the event id is the same
        //set_default_cursor();

        if (iCallID03 != result.id)
            return;

        if (result.error) {
            // Pull the error information
            var faultCode = result.errorDetail.code;
            var faultString = result.errorDetail.string;
            alert("ERROR: Code = " + faultCode + ", Fault String=" + faultString);
        }
        else {
            //Get the resultant value into a local variable
            var pList = new Array();
            pList = result.value;
            var s_tmp = pList[0];
            var s_error = s_tmp;
            s_form_state = pList[1];
            s_form_ziparea = pList[2];
            var s_form_zipservicetmp = s_form_zipservice;
            s_form_zipservice = pList[3];

            pList = null;
            if (s_form_state == "NONE") {
                if (s_site_pagename != "contactUs") {
                    var el4 = document.getElementById("service_area_tbl");
                    el4.style.visibility = "hidden";
                }
                var el5 = document.getElementById("OnlinePanel");
                el5.style.visibility = "hidden";
                //alert("Please fill in the 'Zip Code' box.");
                s_form_zipservice = "NONE";
                var kkmatch1 = s_site_pagename.indexOf("Spanish")
                if (kkmatch1 == -1) {
                    // English
                    loadScene(33);
                }
                else {
                    //Spanish
                    loadScene(63);
                }
                return;
            }

            if (s_form_zipservice == "YES") {
                //good zip continue to submit form in service area
                var el4 = document.getElementById("service_area_tbl");
                el4.style.visibility = "visible";
                var el5 = document.getElementById("OnlinePanel");
                el5.style.visibility = "visible";
                if (s_form_zipservicetmp != "YES") {
                    //alert("Please select the more data below.");
                    var kkmatch1 = s_site_pagename.indexOf("Spanish")
                    if (kkmatch1 == -1) {
                        // English
                        loadScene(34);
                    }
                    else {
                        //Spanish
                        loadScene(68);
                    }
                }
                else 
                {
                    Button_Get_Email_Part2();
                }
            }
            else {
                //good zip continue to submit form outside service area
                if (s_site_pagename != "contactUs") {
                    var el4 = document.getElementById("service_area_tbl");
                    el4.style.visibility = "hidden";
                }
                var el5 = document.getElementById("OnlinePanel");
                el5.style.visibility = "hidden";

                submit_get_quote_outside_service();
            }
        }
    }

    function gup(name) {
        name = name.replace(/[[]/, "\[").replace(/[]]/, "\]");
        var regexS = "[\?&]" + name + "=([^&#]*)";
        var regex = new RegExp(regexS);
        var results = regex.exec(window.location.href);
        if (results == null)
            return "";
        else
            return results[1];
    }


    // our custom configuration is given in third argument

    function loadflow_partner() {

        var el7 = document.getElementById("playerContainer");
        el7.style.display = "block";

        flowplayer("playerContainer", "http://releases.flowplayer.org/swf/flowplayer-3.1.5.swf",
        {
            clip: { url: 'http://SuperInsuranceQuotes.com/hm_test_partner.flv', autoPlay: true, autoBuffering: true, onFinish: function() {
            var el7 = document.getElementById('playerContainer');
            el7.style.display = 'none';
        }
            },
            plugins: { controls: null },
            onLoad: function() { var x = 1; }
        });
    }


    function loadflow_partner3() {
        var el7 = document.getElementById("playerContainer");
        el7.style.display = "block";

        flowplayer("playerContainer", "http://releases.flowplayer.org/swf/flowplayer-3.1.5.swf",
        {
            clip: { url: 'http://SuperInsuranceQuotes.com/hm_test_partner3.flv', autoPlay: true, autoBuffering: true, onFinish: function() {
                var el7 = document.getElementById('playerContainer');
                el7.style.display = 'none';
            }
            },
            plugins: { controls: null },
            onLoad: function() { var x = 1; }
        });
    }

    function loadflow_partner4() {
        var el7 = document.getElementById("playerContainer");
        el7.style.display = "block";

        flowplayer("playerContainer", "http://releases.flowplayer.org/swf/flowplayer-3.1.5.swf",
        {
            clip: { url: 'http://SuperInsuranceQuotes.com/hm_test_partner4.flv', autoPlay: true, autoBuffering: true, onFinish: function() {
                var el7 = document.getElementById('playerContainer');
                el7.style.display = 'none';
            }
            },
            plugins: { controls: null },
            onLoad: function() { var x = 1; }
        });
    }

    function loadflow_partner5() {
        var el7 = document.getElementById("playerContainer");
        el7.style.display = "block";

        flowplayer("playerContainer", "http://releases.flowplayer.org/swf/flowplayer-3.1.5.swf",
        {
            clip: { url: 'http://SuperInsuranceQuotes.com/hm_test_partner5.flv', autoPlay: true, autoBuffering: true, onFinish: function() {
                var el7 = document.getElementById('playerContainer');
                el7.style.display = 'none';
            }
            },
            plugins: { controls: null },
            onLoad: function() { var x = 1; }
        });
    }

    function loadflow_partner2() {
        var el7 = document.getElementById("playerContainer");
        el7.style.display = "block";

        flowplayer("playerContainer", "http://releases.flowplayer.org/swf/flowplayer-3.1.5.swf",
        {
            clip: { url: 'http://SuperInsuranceQuotes.com/hm_test_partner2.flv', autoPlay: true, autoBuffering: true, onFinish: function() {
                var el7 = document.getElementById('playerContainer');
                el7.style.display = 'none';
            }
            },
            plugins: { controls: null },
            onLoad: function() { var x = 1; }
        });
    }


    function loadflow_00() {
        var el7 = document.getElementById("playerContainer");
        el7.style.display = "block";

        flowplayer("playerContainer", "http://releases.flowplayer.org/swf/flowplayer-3.1.5.swf",
        {
            clip: { url: 'http://SuperInsuranceQuotes.com/hm_test_refer.flv', autoPlay: true, autoBuffering: true, onFinish: function() {
                var el7 = document.getElementById("playerContainer");
                //el7.style.display = "none";
            }
            },
            plugins: { controls: null },
            onLoad: function() { var x = 1; }
        });
    }

    function loadflow_000() {
        var el7 = document.getElementById("playerContainer");
        el7.style.display = "block";

        flowplayer("playerContainer", "http://releases.flowplayer.org/swf/flowplayer-3.1.5.swf",
        {
            clip: { url: 'http://SuperInsuranceQuotes.com/hm_test_loan.flv', autoPlay: true, autoBuffering: true, onFinish: function() {
                var el7 = document.getElementById("playerContainer");
                //el7.style.display = "none";
            }
            },
            plugins: { controls: null },
            onLoad: function() { var x = 1; }
        });
    }

    function loadflow_000_Spanish() {
        var el7 = document.getElementById("playerContainer");
        el7.style.display = "block";

        flowplayer("playerContainer", "http://releases.flowplayer.org/swf/flowplayer-3.1.5.swf",
        {
            clip: { url: 'http://SuperInsuranceQuotes.com/hm_test_refer_Spanish.flv', autoPlay: true, autoBuffering: true, onFinish: function() {
                var el7 = document.getElementById("playerContainer");
                //el7.style.display = "none";
            }
            },
            plugins: { controls: null },
            onLoad: function() { var x = 1; }
        });
    }
    
    function loadflow_0notused() {
        var el7 = document.getElementById("playerContainer");
        el7.style.display = "block";

        flowplayer("playerContainer", "http://releases.flowplayer.org/swf/flowplayer-3.1.5.swf",
        {
            clip: { url: 'http://SuperInsuranceQuotes.com/hm_test_refer.flv', autoPlay: true, autoBuffering: true, onFinish: function() {
            loadflow_0();
        } 
            },
            plugins: { controls: null },
            onLoad: function() { var x = 1; }
        });
    }

    function loadflow_1() {
        var el7 = document.getElementById("playerContainer");
        el7.style.display = "block";

        flowplayer("playerContainer", "http://releases.flowplayer.org/swf/flowplayer-3.1.5.swf",
        {
            clip: { url: 'http://SuperInsuranceQuotes.com/hm_test_health.flv', autoPlay: true, autoBuffering: true, onFinish: function() {
                loadflow_00();
            }
            },
            plugins: { controls: null },
            onLoad: function() { var x = 1; }
        });
    }

    function loadflow_2() {
        var el7 = document.getElementById("playerContainer");
        el7.style.display = "block";

        flowplayer("playerContainer", "http://releases.flowplayer.org/swf/flowplayer-3.1.5.swf",
        {
            clip: { url: 'http://SuperInsuranceQuotes.com/hm_test_life.flv', autoPlay: true, autoBuffering: true, onFinish: function() {
                loadflow_00();
            }
            },
            plugins: { controls: null },
            onLoad: function() { var x = 1; }
        });
    }

    function loadflow_3() {
        var el7 = document.getElementById("playerContainer");
        el7.style.display = "block";

        flowplayer("playerContainer", "http://releases.flowplayer.org/swf/flowplayer-3.1.5.swf",
        {
            clip: { url: 'http://SuperInsuranceQuotes.com/hm_test_quote.flv', autoPlay: true, autoBuffering: true, onFinish: function() {
                loadflow_00();
            }
            },
            plugins: { controls: null },
            onLoad: function() { var x = 1; }
        });
    }

    function loadflow_4() {
        var el7 = document.getElementById("playerContainer");
        el7.style.display = "block";

        flowplayer("playerContainer", "http://releases.flowplayer.org/swf/flowplayer-3.1.5.swf",
        {
            clip: { url: 'http://SuperInsuranceQuotes.com/hm_test_auto.flv', autoPlay: true, autoBuffering: true, onFinish: function() {
                loadflow_00();
            }
            },
            plugins: { controls: null },
            onLoad: function() { var x = 1; }
        });
    }

    function loadflow_5() {
        var el7 = document.getElementById("playerContainer");
        el7.style.display = "block";

        flowplayer("playerContainer", "http://releases.flowplayer.org/swf/flowplayer-3.1.5.swf",
        {
            clip: { url: 'http://SuperInsuranceQuotes.com/hm_test_home.flv', autoPlay: true, autoBuffering: true, onFinish: function() {
                loadflow_00();
            }
            },
            plugins: { controls: null },
            onLoad: function() { var x = 1; }
        });
    }

    function loadflow_6() {
        var el7 = document.getElementById("playerContainer");
        el7.style.display = "block";

        flowplayer("playerContainer", "http://releases.flowplayer.org/swf/flowplayer-3.1.5.swf",
        {
            clip: { url: 'http://SuperInsuranceQuotes.com/hm_test_loanintro.flv', autoPlay: true, autoBuffering: true, onFinish: function() {
                loadflow_000();
            }
            },
            plugins: { controls: null },
            onLoad: function() { var x = 1; }
        });
    }

    function loadflow_7() {
        var el7 = document.getElementById("playerContainer");
        el7.style.display = "block";

        flowplayer("playerContainer", "http://releases.flowplayer.org/swf/flowplayer-3.1.5.swf",
        {
            clip: { url: 'http://SuperInsuranceQuotes.com/hm_test_auto_Spanish.flv', autoPlay: true, autoBuffering: true, onFinish: function() {
            loadflow_000_Spanish();
            }
            },
            plugins: { controls: null },
            onLoad: function() { var x = 1; }
        });
    }

    function loadflow_8() {
        var el7 = document.getElementById("playerContainer");
        el7.style.display = "block";

        flowplayer("playerContainer", "http://releases.flowplayer.org/swf/flowplayer-3.1.5.swf",
        {
            clip: { url: 'http://SuperInsuranceQuotes.com/hm_test_health_Spanish.flv', autoPlay: true, autoBuffering: true, onFinish: function() {
            loadflow_000_Spanish();
            }
            },
            plugins: { controls: null },
            onLoad: function() { var x = 1; }
        });
    }

    function loadflow_9() {
        var el7 = document.getElementById("playerContainer");
        el7.style.display = "block";

        flowplayer("playerContainer", "http://releases.flowplayer.org/swf/flowplayer-3.1.5.swf",
        {
            clip: { url: 'http://SuperInsuranceQuotes.com/hm_test_home_Spanish.flv', autoPlay: true, autoBuffering: true, onFinish: function() {
            loadflow_000_Spanish();
            }
            },
            plugins: { controls: null },
            onLoad: function() { var x = 1; }
        });
    }

    function loadflow_10() {
        var el7 = document.getElementById("playerContainer");
        el7.style.display = "block";

        flowplayer("playerContainer", "http://releases.flowplayer.org/swf/flowplayer-3.1.5.swf",
        {
            clip: { url: 'http://SuperInsuranceQuotes.com/hm_test_life_Spanish.flv', autoPlay: true, autoBuffering: true, onFinish: function() {
            loadflow_000_Spanish();
            }
            },
            plugins: { controls: null },
            onLoad: function() { var x = 1; }
        });
    }

    function loadflow_11() {
        var el7 = document.getElementById("playerContainer");
        el7.style.display = "block";

        flowplayer("playerContainer", "http://releases.flowplayer.org/swf/flowplayer-3.1.5.swf",
        {
            clip: { url: 'http://SuperInsuranceQuotes.com/hm_test_quote_Spanish.flv', autoPlay: true, autoBuffering: true, onFinish: function() {
            loadflow_000_Spanish();
            }
            },
            plugins: { controls: null },
            onLoad: function() { var x = 1; }
        });
    }


