//Counter
var CounterLinkHTML1 = "<a style='left:-45px; top:90px; position:absolute;' class='more' href='taser-products-save-lives'>Learn More</a>";
var CounterLinkHTML2 = "<a style='left:500px; top:250px; position:absolute;' class='more' href='taser-products-save-lives/times-police-have-used-taser-ecds-in-the-field'>See The Numbers Yourself</a>";


function dcountup(startingdate, baseunit) {
    this.currentTime = new Date()
    this.startingdate = new Date(startingdate)
    this.timesup = false
    this.baseunit = baseunit
    this.start()
}

dcountup.prototype.oncountup = function() { } //default action for "oncountup"

dcountup.prototype.start = function() {
    var thisobj = this
    this.currentTime.setSeconds(this.currentTime.getSeconds() + 1)
    var timediff = (this.currentTime - this.startingdate) / 1000 //difference btw target date and current date, in seconds
    var oneMinute = 60 //minute unit in seconds
    var oneHour = 60 * 60 //hour unit in seconds
    var oneDay = 60 * 60 * 24 //day unit in seconds
    var dayfield = Math.floor(timediff / oneDay)
    var hourfield = Math.floor((timediff - dayfield * oneDay) / oneHour)
    var minutefield = Math.floor((timediff - dayfield * oneDay - hourfield * oneHour) / oneMinute)
    var secondfield = Math.floor((timediff - dayfield * oneDay - hourfield * oneHour - minutefield * oneMinute))
    if (this.baseunit == "hours") { //if base unit is hours, set "hourfield" to be topmost level
        hourfield = dayfield * 24 + hourfield
        dayfield = "n/a"
    }
    else if (this.baseunit == "minutes") { //if base unit is minutes, set "minutefield" to be topmost level
        minutefield = dayfield * 24 * 60 + hourfield * 60 + minutefield
        dayfield = hourfield = "n/a"
    }
    else if (this.baseunit == "seconds") { //if base unit is seconds, set "secondfield" to be topmost level
        var secondfield = timediff
        dayfield = hourfield = minutefield = "n/a"
    }
    var result = { days: dayfield, hours: hourfield, minutes: minutefield, seconds: secondfield }
    this.oncountup(result)
    setTimeout(function() { thisobj.start() }, 1000) //update results every second
}


// Global Variables
var i, y;
var hash = window.location.hash;
var pathName = window.location.pathname;
var path = pathName.split('/');
var host = window.location.host;
var homeBannerTimeout;
var productTimeout;
var counter = 2;
var limit = 50;
var allSerialsValidated = 1;

function homeBannerSlideshow(timeout) {
    clearTimeout(homeBannerTimeout);
    homeBannerTimeout = setTimeout(function() {
        if ($('.controlsShell .active').next().length === 0) {
            $('.controlsShell .controls').first().trigger('click');
        } else {
            $('.controlsShell .active').next().trigger('click');
        }

        homeBannerSlideshow(timeout);
    }, timeout);
}

function productSlideshow(timeout) {
    clearTimeout(productTimeout);
    productTimeout = setTimeout(function() {
        if ($('.internalBannerThumb .active').next().length === 0) {
            $('.internalBannerThumb a').first().trigger('click');
        } else {
            $('.internalBannerThumb .active').next().trigger('click');
        }

        productSlideshow(timeout);
    }, timeout);
}

function videoPagination(parent, amountPerPage) {
    var videoItems = parent.children('.videoItem').length;
    var totalPages = Math.ceil(videoItems / amountPerPage);

    for (i = 0; i <= amountPerPage - 1; i++) {
        parent.children('.videoItem:eq(' + i + ')').show();
    }

    if (totalPages > 1 && $('.paginate').length === 0) {
        parent.append('<div class="paginate"></div>');
        for (y = 1; y <= totalPages; y++) {
            $('.paginate').append('<a href="#" id="' + y + '">' + y + '</a>');
        }
    }

    $('.paginate a').click(function(e) {
        e.preventDefault();
        var pageNumber = $(this).attr('id');
        parent.children('.videoItem').hide();
        var limit = 0;

        for (a = ((amountPerPage * pageNumber) - (amountPerPage - 1)) - 1; a <= videoItems + 1; a++) {
            limit++;
            parent.children('.videoItem:eq(' + a + ')').show();
            if (limit === amountPerPage) {
                break;
            }
        }
    });
}

function videoFilter(hash) {
    var hashID = hash.replace('Videos', '');
    var selector = $('.videoFilter[href="' + hash + '"]');
    var section = $(hashID);
    var sectionCount = $('.menu_basic .videoFilter').length - 1;
    var videoSection;
    var videoChildren;

    $('.videoFilter').css({ 'font-weight': 'normal', 'color': '#0054A6' });

    if ($('.paginate').length > 0) {
        $('.paginate').remove();
    }

    if (hashID === '#all' || !hash) {
        $('.videos:hidden').show();
        $('.videoItem').show();
        $('.viewAll').show();

        if ($('.paginate').length > 0) {
            $('.paginate').remove();
        }

        $('.videoFilter[href="#allVideos"]').css({ 'font-weight': 'bold', 'color': '#273343' });

        for (i = 0; i <= sectionCount; i++) {
            videoSection = $('.videos:eq(' + i + ')').attr('id');
            videoChildren = $('#' + videoSection).children('.videoItem').length + 2;

            for (y = 6; y <= videoChildren; y++) {
                $('#' + videoSection + ' .videoItem:nth-child(' + y + ')').hide();
            }
        }
    } else {
        $('.videos').not(hashID).hide();
        $('.viewAll').hide();
        section.show();
        $(section).children('.videoItem').hide();
        videoPagination(section, 9);
        selector.css({ 'font-weight': 'bold', 'color': '#273343' });
    }
}

function validate() {
    var error = 0;
    var required = $('form .required');

    $.each(required, function() {
        var label = $('label[for="' + $(this).attr('id') + '"]').html();

        if ($(this).val() === '' || ($(this).val() === 'none' && $(this).is(':visible'))) {
            alert(label + ' is required!');
            error = 1;
            return false;
        }

        if ($(this).attr('type') === 'checkbox' && !$(this).attr('checked')) {
            alert(label + ' is required!');
            error = 1;
            return false;
        }

        if ($(this).hasClass('requiredEmail') && error === 0 && $(this).val().search(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i) === -1) {
            alert('Please enter a valid email address!');
            error = 1;
            return false;
        }

    });

    if ($('.requiredCheckbox').length > 0 && error !== 1) {
        if ($('.requiredCheckbox:checked').length === 0) {
            alert($('.requiredCheckbox').parent().parent().prev('.fieldTitle').text() + ' is required!');
            error = 1;
            return false;
        }
    }

    return error;
}

function validateMask(serialNum, countNum) {
    var validated = 0;
    var t;
    var maskArray = new Array(
		/(([Xx]\d{2})|([Xx][Cc][Ee]))-\w{6}/
		, /[Vv]\d{2}-\w{6}/
		, /[Pp][2]-\w{6}/
		, /[Ff]\d{2}-\w{7}/
		, /[Hh]\d{2}-\w{6}/
		, /[Ll]\d{2}-\w{6}/
		, /[Ss]\d{2}-\w{6}/
		, /[Xx][0][5]-\w{7}/
		, /(([Xx]\d{2})|([Xx][Cc][Ee]))-\w{6}/
		, /(([Qq]\d{2})|([Cc]\d{2}))-?\w{6}/
		, /[Tt][7]\w{7}/
		, /[Tt][7]([1]|[2])\w{6}/
		, /[Cc][7][2]\d{6}/
		, /[Cc][7][4]\d{6}/
		, /[Cc][7][5]\d{6}/
		, /[Cc][7][3]\d{6}/
		, /[Cc][7][5]\d{6}/
		, /[Tt][7]\w{7}/
		, /[Ff]\d{8}/
		, /[FfTt][01][1234567890]-\d{6}/
		, /[FfTt][01][1234567890]-\d{7}/
		, /[AaBbCcDdMm]\d{5}/
		, /(([Tt][Ii]\d{4}))-?\w{4}/
		, /(([Tt][Ii]\d{4}))-?\w{5}/
		, /(([Tt][Ii]\d{4}))-?\w{6}/
		, /(([Tt][Ii]\d{4}))-?\w{7}/
		, /(([Tt][Ii]\d{4}))-?\w{8}/
		, /[Kk]\d{1}-\w{7}/
		, /[Xx][2][9]\w{6}/
		, /[Xx][3][0]\w{6}/
		, /[Xx][2][0]\w{6}/
		, /[Xx][2][8]\w{6}/
		, /[Zz][Zz][Xx]([2][9]|[3][0])\w{4}/
		, /[Xx]([2][9]|[3][0])\w{6}/
		, /[Cc]\d{2}\w{6}/
		, /[Ff]\d{8}/
		, /[FfTt][01][3456780]-\d{6}/
		, /[FfTt][01][3456780]-\d{7}/
		, /[AaBbCcDdMm]\d{5}/
		, /[CcLlPp]\w{1}-\w{6}/
		, /[Tt][8]-\w{7}/
	);

    //In this table, add the length of each line of the table above in the same order 
    var maskArrayLength = new Array(10, 10, 9, 11, 10, 10, 10, 11, 10, 10, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 11, 6, 11, 12, 13, 14, 15, 10, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 6, 9, 10);


    for (x = 0; x <= maskArray.length - 1; x++) {
        if ((serialNum.match(maskArray[x])) && (serialNum.length == maskArrayLength[x])) {
            break;
        }
        else if (validated == 0 && x == maskArray.length - 1) {
            if (serialNum == '') {
                break;
            }
            else {
                alert('Serial ' + countNum + ' (Value Entered: ' + serialNum + ') is not a valid format or is not a product that may be registered here. Please re-enter or remove it from the list.');
                allSerialsValidated = 0;
                break;
            }
        }
    }
}

// Prototypes
Array.prototype.inArray = function(value) {
    for (i = 0; i < this.length; i++) {
        if (this[i] === value) {
            return true;
        }
    }
    return false;
};

$(document).ready(function() {
    // Product Registration
    if ($('#addSerial').length > 0) {
        $('#addSerial').click(function() {
            if (counter === limit + 1) {
                alert("You have reached the limit of adding " + limit + " Serial Numbers");
            } else {
                $('#dynamicInput').append('<div><label for="serial">Serial ' + counter + ' </label><input type="text" id="serial" class="myInputs required" name="serial" /> <span class="requiredStar">*</span><a href="#" mce_href="#" class="removeSerial"> Remove</a></div>')
                counter++;
            }
        });

        $('.removeSerial').live('click', function(e) {
            e.preventDefault();
            $(this).parent().remove();
            allSerialsValidated = 1;
            counter--;
        })

        $('#registerForm').submit(function() {
            var serials = '';

            for (i = 0; i <= $('.myInputs').length - 1; i++) {
                if (i !== $('.myInputs').length - 1) {
                    validateMask($('.myInputs:eq(' + i + ')').val(), i + 1);
                    serials += $('.myInputs:eq(' + i + ')').val() + '|';
                } else {
                    validateMask($('.myInputs:eq(' + i + ')').val(), i + 1);
                    serials += $('.myInputs:eq(' + i + ')').val();
                }
            }
            if (allSerialsValidated == 1) {
                $('#serials').val(serials);
            }
            else {
                allSerialsValidated = 1;
                return false;
            }

        });
    }

    // Contact Us
    if ($('.contactFields').length > 0) {
        $('#salesInquiries').submit(function() {
            var address = $('input[name="street"]').val();
            var city = $('input[name="city"]').val();
            var country = $('select[name="country"]').val();
            var postalCode = $('input[name="zip"]').val();
            var state = $('select[name="state"]').val();

          //  $('.contactFields').val('Address: ' + address + ', City: ' + city + ', Country: ' + country + ', Postal Code: ' + postalCode + ', State: ' + state);
        });
    }


    // Form Validation
    if ($('.validateForm').length > 0) {
        $('.validateForm').submit(function() {
            if (validate($(this)) === 0) {
                var question1 = $('#question1').val();
                var question2 = $('#question2').val();
                var question3 = $('#question3').val();
                var question4 = $('#question4').val();
                var question5 = $('#question5').val();
                var question6 = $('#question6').val();
                var question7 = $('#question7').val();
                var question8 = $('#question8').val();
                var question9 = $('#question9').val();
                var question10 = $('#question10').val();
                var question11 = $('#question11').val();
                var Explanation = $('#question12').val();
                var question13 = ($('.question13').is(':checked')) ? $('.question13').val() : '';
                var question14 = ($('.question14').is(':checked')) ? $('.question14').val() : '';
                var question15 = ($('.question15').is(':checked')) ? $('.question15').val() : '';
                var description;

                if ($('.ecd:checked').length > 0 && $('.axon:checked').length === 0) {
                    description = 'Currently carry ECDs: ' + question1 + ', Plan to replace ECDs in next ' + question2 + ', ECDs ages: ' + question3 + ', ECD T&E critical for budget: ' + question4 + ', ECD immediate action/contact required: ' + question5 + ', Explanation: ' + Explanation;
                } else if ($('.axon:checked').length > 0 && $('.ecd:checked').length === 0) {
                    description = 'Currently have a video Evidence Capture System: ' + question6 + ', Type of video ' + question7 + ', Plan to replace or upgrade: ' + question8 + ', How old is your current video system: ' + question9 + ', AXON T&E critical for budget: ' + question10 + ', AXON immediate action/contact required: ' + question11 + ', Explanation: ' + Explanation;
                } else if ($('.ecd:checked').length > 0 && $('.axon:checked').length > 0) {
                    description = 'Currently carry ECDs: ' + question1 + ', Plan to replace ECDs in next ' + question2 + ', ECDs ages: ' + question3 + ', ECD T&E critical for budget: ' + question4 + ', ECD immediate action/contact required: ' + question5 + ', Currently have a video Evidence Capture System: ' + question6 + ', Type of video ' + question7 + ', Plan to replace or upgrade: ' + question8 + ', How old is your current video system: ' + question9 + ', AXON T&E critical for budget: ' + question10 + ', AXON immediate action/contact required: ' + question11 + ', Explanation: ' + Explanation;
                } else if ($('.webcast').length > 0) {
                    description = 'Please provide your t-shirt size: ' + question1 + ', Does your department currently carry TASER¨ ECDs: ' + question2 + ', How old are your current ECDs: ' + question3 + ', Is your department interested in replacing or upgrading your TASER¨ ECDÕs: ' + question4 + ', Is your agency interested in doing a test & evaluation of the new TASER¨ X2: ' + question5 + ', Is a test and evaluation critical for your budgeting purposes: ' + question6 + ', Is your request for a test & evaluation time sensitive? Do you require immediate action/follow up: ' + question7 + ', Additional Notes: ' + Explanation;
                } else if ($('.conference').length > 0) {
                    description = 'Distributor Website URL: ' + question1 + ', Selling capabilities: ' + question2 + ', Program interested in: ' + question3 + ', Additional notes: ' + question4;
					
				} else if ($('.howtobuyform').length > 0) {
                    description = 'Do you currently deploy TASER CAMs: ' + question1 + ', When are you interested in acquiring : ' + question2 + ', Do you currently have budget for TASER CAMs: ' + question3 + ', Additional notes: ' + question4;                
				}


                $('#formDesc').attr('value', description);

                return true;
            } else {
                return false;
            }
        });
    }

    // Thank You
    if ($('.distributorInfo').length > 0) {
        if (hash === '#AZ' || hash === '#CA' || hash === '#NM' || hash === '#CO' || hash === '#UT' || hash === '#NV' || hash === '#MT' || hash === '#WA' || hash === '#AK' || hash === '#ID' || hash === '#WY') {
            $('#AZ').show();
        } else if (hash === '#DC' || hash === '#DE' || hash === '#MD' || hash === '#NJ') {
            $('#MD').show();
        } else if (hash === '#MA' || hash === '#NH') {
            $('#MA').show();
        } else if (hash === '#CT' || hash === '#RI') {
            $('#CT').show();
        } else if (hash === '#PA' || hash === '#VT' || hash === '#ME') {
            $('#PA').show();
        } else if (hash === '#WI' || hash === '#IL' || hash === '#IN') {
            $('#IL').show();
        } else if (hash === '#SD' || hash === '#ND' || hash === '#NE' || hash === '#MO' || hash === '#KS' || hash === '#IA') {
            $('#MO').show();
        } else if (hash === '#LA' || hash === '#AR') {
            $('#LA').show();
        } else if (hash === '#OK' || hash === '#TX') {
            $('#TX').show();
        } else if (hash === '#NY' || hash === '#HI') {
            $('#NY').show();
        } else if (hash === '#AL' || hash === '#KY' || hash === '#TN') {
            $('#AL').show();
        } else if (hash === '#FL' || hash === '#GA') {
            $('#FL').show();
        } else {
            $(hash).show();
        }
    }


    // State Drop Down
    if ($('#state').length > 0) {
        if (!$('#retURL').hasClass('webcast') && !$('#retURL').hasClass('register') && !$('#retURL').hasClass('conference') && !$('#retURL').hasClass('howtobuyform')) {
            $('#state').change(function() {
                var state = $(this).val();
                if (!$('#retURL').hasClass('TE')) {
                    var returnURL = 'http://' + host + '/how-to-buy/' + path[2] + '/thank-you#' + state;
                } else {
                    var returnURL = 'http://' + host + '/how-to-buy/' + path[2] + '/le-te-request-page/thank-you#' + state;
                }
                $('#retURL').attr('value', returnURL);
            });
        }
    }



    $('#country').change(function() {
        var val = $(this).val();
        var returnURL;
        if ($('#retURL').hasClass('webcast')) {
            if (val === 'US') {
                $('#US').show();
            } else if (val === 'Canada') {
                $('#US').hide();
            }

            returnURL = 'http://' + host + '/webcast/webcast-application/thank-you';
        } else if ($('#retURL').hasClass('conference')) {
            if (val === 'US') {
                $('#US').show();
            } else if (val === 'US') {
                $('#US').show();
            } else if (val === 'Canada') {
                $('#US').hide();
            } else if (val === 'PR') {
                $('#US').hide();
            }

            returnURL = 'http://' + host + '/conference/thank-you';
        } else if ($('#retURL').hasClass('register')) {
            if (val === 'US') {
                $('#US').show();
            } else {
                $('#US').hide();
            }

            returnURL = 'http://' + host + '/register/thank-you';
        } else {
            if (val === 'US') {
                $('#US').show();
            } else if (val === 'Canada') {
                $('#US').hide();
                returnURL = 'http://' + host + '/how-to-buy/' + path[2] + '/thank-you#CAN';
            } else if (val === 'Puerto Rico') {
                $('#US').hide();
                returnURL = 'http://' + host + '/how-to-buy/' + path[2] + '/thank-you#PR';
            } else {
                $('#US').hide();
            }
        }

        $('#retURL').attr('value', returnURL);
    });





    $('#Follow_Up').change(function() {
        var val = $(this).val();
        var returnURL;

        if ((val === 'Follow_Up_Yes')||(val === '1')) {
            $('#PI').show();
        } else if ((val === 'Follow_Up_No')||(val === '0')) {
            $('#PI').hide();
        }
        

        $('#retURL').attr('value', returnURL);
    });

    $('#recordtype').change(function() {
        var val = $(this).val();
        var returnURL;

        if (val === '0124000000010Id') {
            $('#Militaryproducts').hide();
            $('#Internationalproducts').hide();					
            $('#Consumerproducts').hide();						
            $('#LEproducts').show();
        } else if (val === '0124000000010IT') {
            $('#Militaryproducts').show();
            $('#Internationalproducts').hide();					
            $('#Consumerproducts').hide();						
            $('#LEproducts').hide();
        } else if (val === '0124000000010In') {
            $('#Militaryproducts').hide();
            $('#Internationalproducts').hide();			
            $('#Consumerproducts').show();						
            $('#LEproducts').hide();
        } else  {
		    $('#Militaryproducts').hide();
            $('#Internationalproducts').show();
            $('#Consumerproducts').hide();						
            $('#LEproducts').hide();
        }
        

        $('#retURL').attr('value', returnURL);
    });






    // Auto-check Product Boxes
    if ($('.fieldCheckbox').length > 0) {
        var interested = hash.replace('#', '');
        interested = interested.replace('_', ' ');
        $('input[type="checkbox"][value="' + interested + '"]').attr('checked', 'checked');
    }

    // Notice Page
    if ($('#notice_option1').length > 0) {
        $('#notice_option1').click(function(e) {
            e.preventDefault();
            $(this).parent().next().slideToggle();
        });
    }

    // Toggle Slide
    if ($('.slideNext').length > 0) {
        $('.slideNext').click(function(e) {
            e.preventDefault();
            $(this).parent().next().slideToggle();
        });
    }

    // Truncate sub nav items and add View More link
    for (i = 1; i <= 5; i++) {
        var subCount = $('.module_menu ul li:nth-child(2) ul li:nth-child(' + i + ') ul li').length - 1;
        var viewAllLink = $('.module_menu ul li:nth-child(2) ul').children(':nth-child(' + i + ')').children('a:first').attr('href');

        if (subCount > 6) {
            for (y = 7; y <= subCount + 1; y++) {
                var subItem = $('.module_menu ul li:nth-child(2) ul li:nth-child(' + i + ') ul li:nth-child(' + y + ')').attr('id');

                $('#' + subItem).hide();
            }
            $('.module_menu ul li:nth-child(2) ul li:nth-child(' + i + ') ul').append('<a href="' + viewAllLink + '" class="menuViewAll">+ View All</a>');
        }
    }

    // Products Sub
    $('.module_menu .menu > li:nth-child(2)').last().addClass('productsMenu');
    $('.module_menu .menu > li:nth-child(3)').last().addClass('howToBuyMenu');
    $('.module_menu .menu > li:nth-child(4)').last().addClass('researchMenu');
    $('.module_menu .menu > li:nth-child(5)').last().addClass('trainingMenu');
    $('.module_menu .menu > li:nth-child(6)').last().addClass('supportMenu');
    $('.module_menu .menu > li:nth-child(7)').last().addClass('videoMenu');
    $('.module_menu .menu > li:nth-child(8)').last().addClass('webMenu');

    // Public
    $('.module_menu ul li:nth-child(2) ul').children(':nth-child(1)').children('a:first').parent().append('<a href="/products/personal-safety" 			class="learnMoreLeft">Learn More</a><a href="http://store.taser.com" class="learnMoreRight">Buy Now</a>');

    // Law Enforcement
    $('.module_menu ul li:nth-child(2) ul').children(':nth-child(2)').children('a:first').parent().append('<a href="/products/law-enforcement" class="learnMore">All LE Solutions</a>');

    // Military
    $('.module_menu ul li:nth-child(2) ul').children(':nth-child(3)').children('a:first').parent().append('<a href="/products/on-officer-video" class="learnMore">On-officer video solutions</a>');

    // Wildlife
    $('.module_menu ul li:nth-child(2) ul').children(':nth-child(4)').children('a:first').parent().append('<a href="/products/digital-evidence-management/evidence" class="learnMore">Digital Evidence Management</a>');

    /* International
    $('.module_menu ul li:nth-child(2) ul').children(':nth-child(5)').children('a:first').parent().append('<div class="intMenuText">TASER International Provides Solutions which can Help the World. Learn more about TASER\'s International solutions.</div><a href="/products/international" class="menuViewAll">+ Learn More</a>');*/

    $('.module_menu ul li:nth-child(2) ul').children(':nth-child(5)').children('a:first').parent().append('<a href="/products/military" class="learnMore">Military Solutions</a>');

    // Products Nav Hover
    $('.productsMenu ul li ul li a').hover(function() {
        var productName = $(this).attr('href').split('/');
        var separatorSrc = $(this).parent().siblings().filter(':first').find('img').attr('src').split('/');
        var separatorAlt = $(this).parent().siblings().filter(':first').find('img').attr('alt').replace(/-/g, '_');
        var separator = $(this).parent().siblings().filter(':first').find('img');

        if (productName[3] == null) {
            separator.attr('src', separatorSrc[0] + '/' + separatorSrc[1] + '/' + separatorSrc[2] + '/' + separatorAlt + '_' + productName[2] + '.png');
        }
        else {
            separator.attr('src', separatorSrc[0] + '/' + separatorSrc[1] + '/' + separatorSrc[2] + '/' + separatorAlt + '_' + productName[3] + '.png');
        }
    });

    // Home Banner
    if ($('.homeBanner').length > 0) {
        var bannerCount = $('.bannerSlide').length;

        if (bannerCount > 1) {
            for (i = 1; i <= bannerCount; i++) {
                $('.controlsBody').append('<a href="#" name="' + i + '" class="controls"></a>');
            }
            $('.controls:first').addClass('active');
            $('.controlsShell').fadeIn();
        } else {
            $('.controlsShell').hide();
        }

        homeBannerTimeout = setTimeout(function() {
            homeBannerSlideshow(10000);
        }, 0);

        $('.controls').live('click', function(e) {
            e.preventDefault();

            if (!$(this).hasClass('active')) {
                var activeControl = $(this).attr('name') - 1;

                $('.controlsShell .active').removeClass('active');
                $(this).addClass('active');
                $('.bannerSlide:visible').fadeOut(function() {
                    $('.bannerSlide:eq(' + activeControl + ')').fadeIn();
                });
            }
            $(this).addClass('active');
            homeBannerSlideshow(10000);
        });
    }

    // Home Featured
    if ($('.featuredItem').length > 0) {
        var featuredCount = $('.featuredItem').not('.static').length - 1;
        var featuredArray = [];
        var featured, first, second, third;

        for (i = 0; i <= $('.static').length - 1; i++) {
            featuredArray[i] = $('.static:eq(' + i + ')').index('.featuredItem');
        }

        for (i = featuredArray.length; i <= 2; i++) {
            featured = Math.floor(Math.random() * featuredCount);
            if (!featuredArray.inArray(featured)) {
                featuredArray[i] = featured;
            } else {
                i--;
            }
        }

        first = ($('.static').length >= 1) ? $('.static:eq(0)').html() : $('.featuredItem:eq(' + featuredArray[0] + ')').html();
        second = ($('.static').length >= 2) ? $('.static:eq(1)').html() : $('.featuredItem:eq(' + featuredArray[1] + ')').html();
        third = ($('.static').length >= 3) ? $('.static:eq(2)').html() : $('.featuredItem:eq(' + featuredArray[2] + ')').html();

        $('.featuredItem:nth-child(1)').html(first);
        $('.featuredItem:nth-child(2)').html(second);
        $('.featuredItem:nth-child(3)').html(third);
        $('.featuredItem:nth-child(1), .featuredItem:nth-child(2), .featuredItem:nth-child(3)').fadeIn('slow');
    }

    // Internal Banner
    if ($('.internalBanner').length > 0) {
        var length = $('.internalBannerItems span').length;
        $('.internalBannerItems').width(730 * length + 'px');
        $('.internalBannerThumb a:first').addClass('active');

        productTimeout = setTimeout(function() {
            productSlideshow(10000);
        }, 0);

        $('.internalBannerThumb a').click(function(e) {
            e.preventDefault();
            var thumb = $(this).children().attr('name');
            var image = $('.internalBannerItems img[name="' + thumb + '"]').parent().position().left;
            $('.internalBannerThumb .active').removeClass('active');
            $(this).addClass('active');
            $('.internalBannerItems').animate({
                left: '-' + image + 'px'
            });
            productSlideshow(10000);
        });
    }

    // Executive Bios
    if ($('.executiveMore').length > 0) {
        $('.ricksmith').click(function(e) {
            e.preventDefault();
            var bio = $(this).attr('name');
            $('#' + bio).toggle();

            if ($(this).html() === '+ More About Rick Smith') {
                $(this).html('- Less About Rick Smith');
            } else {
                $(this).html('+ More About Rick Smith');
            }

        });

        $('.thomassmith').click(function(e) {
            e.preventDefault();
            var bio = $(this).attr('name');
            $('#' + bio).toggle();

            if ($(this).html() === '+ More About Tom Smith') {
                $(this).html('- Less About Tom Smith');
            } else {
                $(this).html('+ More About Tom Smith');
            }

        });

        $('.douglasklint').click(function(e) {
            e.preventDefault();
            var bio = $(this).attr('name');
            $('#' + bio).toggle();

            if ($(this).html() === '+ More About Doug Klint') {
                $(this).html('- Less About Doug Klint');
            } else {
                $(this).html('+ More About Doug Klint');
            }

        });

        $('.danielbehrendt').click(function(e) {
            e.preventDefault();
            var bio = $(this).attr('name');
            $('#' + bio).toggle();

            if ($(this).html() === '+ More About Dan Behrendt') {
                $(this).html('- Less About Dan Behrendt');
            } else {
                $(this).html('+ More About Dan Behrendt');
            }

        });

        $('.raymondrivera').click(function(e) {
            e.preventDefault();
            var bio = $(this).attr('name');
            $('#' + bio).toggle();

            if ($(this).html() === '+ More About Ray Rivera') {
                $(this).html('- Less About Ray Rivera');
            } else {
                $(this).html('+ More About Ray Rivera');
            }

        });

        $('.jasondroege').click(function(e) {
            e.preventDefault();
            var bio = $(this).attr('name');
            $('#' + bio).toggle();

            if ($(this).html() === '+ More About Jason Droege') {
                $(this).html('- Less About Jason Droege');
            } else {
                $(this).html('+ More About Jason Droege');
            }

        });

        $('.jeffkukowski').click(function(e) {
            e.preventDefault();
            var bio = $(this).attr('name');
            $('#' + bio).toggle();

            if ($(this).html() === '+ More About Jeff Kukowski') {
                $(this).html('- Less About Jeff Kukowski');
            } else {
                $(this).html('+ More About Jeff Kukowski');
            }

        });
    }

    // Videos
    if ($('.videos').length > 0) {
        var newHash;
        videoFilter(hash);

        $('.videoMenu ul a').click(function() {
            newHash = $(this).attr('href').replace('/videos', '');
            videoFilter(newHash);
        });

        $('.menu_basic .videoFilter, .videos .viewAll').click(function() {
            newHash = '#' + $(this).attr('name') + 'Videos';
            videoFilter(newHash);
        });
    }

    // FAQ
    if ($('.faq_slide').length > 0) {
        $('.faq_slide a').click(function(e) {
            e.preventDefault();
            $(this).next().slideToggle('fast');
        });
    }

    // Product Nav
    if ($('.module_product').length > 0) {
        //$('.menu_product ul li a img').tooltip();
    }

    // Evidence Markers
    if ($('.evidenceMarkers').length > 0) {
        $('.evidenceMap').tooltip({ className: 'evidenceTooltip' });
    }

    // Corporate History
    if ($('.taser_timeline').length > 0) {
        $('.timeline_left a').tooltip();
    }

    // Taser Solutions
    if ($('.solutionsChart').length > 0) {
        $('.solutionsChart a').hover(function() {
            $('.solutionsChart .active').removeClass('active');
            $(this).addClass('active');
        });
    }

    // Internal Menu
    setTimeout(function() {
        if ($('.intContentMenuShell').length > 0) {

            var firstName = $('.intContentMenu a:first').attr('href');
            var firstNameClass = firstName.replace('#', '.');
            $('#activity').hide();
            if (hash) {
                $('.intContentMenu a[href="' + hash + '"]').addClass('active');
                var hashClass = hash.replace('#', '.');
                $(hash).fadeIn();
                if ($(hashClass).length > 0) {
                    $(hashClass).fadeIn();
                }
            } else {
                $('.intContentMenu a:first').addClass('active');
                $(firstName).fadeIn();
                if ($(firstNameClass).length > 0) {
                    $(firstNameClass).fadeIn();
                }
            }

            $('.intContentMenu a').click(function() {
                var tabName = $(this).attr('href');
                var tabNameClass = tabName.replace('#', '.');
                if ($(this).attr('class') !== 'active') {
                    $('.intContentMenu .active').removeClass('active');
                    $(this).addClass('active');
                    $('.internalContent .contentTab:visible').fadeOut('fast', function() {
                        $(tabName).fadeIn();
                        if ($(tabNameClass).length > 0) {
                            $(tabNameClass).fadeIn();
                        }
                    });
                }
            });
        }
    }, 200);

    // LE T&E
    if ($('.ecd').length > 0) {
        if ($('.ecd:checked').length > 0) {
            $('#ecdQuestions').show();
        }

        if ($('.axon:checked').length > 0) {
            $('#axonQuestions').show();
        }
		
        if ($('.tcamhd:checked').length > 0) {
            $('#tcamhdQuestions').show();
        }		

        $('.ecd').click(function() {
            if ($('.ecd:checked').length > 0) {
                $('#ecdQuestions').show();
            } else {
                $('#ecdQuestions').hide();
            }
        });

        $('.axon').click(function() {
            if ($('.axon:checked').length > 0) {
                $('#axonQuestions').show();
            } else {
                $('#axonQuestions').hide();
            }
        });

        $('.tcamhd').click(function() {
            if ($('.tcamhd:checked').length > 0) {
                $('#tcamhdQuestions').show();
            } else {
                $('#tcamhdQuestions').hide();
            }
        });		

    }

    // X2 Product Video
    if ($('#x2ProductVideo').length > 0) {
        $('#x2ProductLink').click(function(e) {
            e.preventDefault();

            if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)) {
                $('#x2ProductVideo').html('<a class="videoClose" href="#"></a><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="485" height="272" id="V2Player"><param name="allowScriptAccess" value="sameDomain" /><param name="allowFullScreen" value="true" /><param name="movie" value="http://http.vitalstreamcdn.com/flashskins/V2Player.swf" /><param name="quality" value="high" /><param name="wmode" value="opaque" /><param name="flashvars" value="stream1=Taser.com 2011/x2_landing&autoPlay=True&serverAppInstName=rtmp://ecd.flash.internapcdn.net/ecd_vitalstream_com/_definst_&debug=false" /><embed src="http://http.vitalstreamcdn.com/flashskins/V2Player.swf" flashvars="stream1=Taser.com 2011/x2_landing&autoPlay=True&serverAppInstName=rtmp://ecd.flash.internapcdn.net/ecd_vitalstream_com/_definst_&debug=false" quality="high" width="485" height="272" name="V2Player" allowScriptAccess="sameDomain" allowFullScreen="true" wmode="opaque" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
            } else {
                $('#x2ProductVideo').html('<a class="videoClose" href="#"></a><video id="x2ProductVideoTag" controls="controls" preload="none" poster="http://www.taser.com/images/x2_poster.png" width="485" height="272"><source src="http://ecd.http.internapcdn.net/ecd_vitalstream_com/Taser.com 2011/x2_landing.mp4" type="video/mp4" /><object type="application/x-shockwave-flash" data="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" width="485" height="272"><param name="movie" value="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" /><param name="allowFullScreen" value="true" /><param name="wmode" value="transparent" /><param name="flashVars" value="config={\'playlist\':[\'http%3A%2F%2Fwww.taser.com%2Fimages%2Fx2_poster.png\',{\'url\':\'http%3A%2F%2Fecd.http.internapcdn.net%2Fecd_vitalstream_com%2FTaser.com+2011%2Fx2_landing.mp4\',\'autoPlay\':false, \'autoBuffering\':true}]}" /><img alt="TASER X2 Demo" src="http://www.taser.com/images/x2_poster.png" width="485" height="272" title="No video playback capabilities, please download the video below" /></object></video>');
            }

            $('#x2ProductVideo').show();
            $('#x2ProductThumb').hide();
            $('#x2JourneyThumb').hide();
            $('#x2WebcastThumb').hide();
        });

        $('#x2JourneyLink').click(function(e) {
            e.preventDefault();

            if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)) {
                $('#x2ProductVideo').html('<a class="videoClose" href="#"></a><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="485" height="272" id="V2Player"><param name="allowScriptAccess" value="sameDomain" /><param name="allowFullScreen" value="true" /><param name="movie" value="http://http.vitalstreamcdn.com/flashskins/V2Player.swf" /><param name="quality" value="high" /><param name="wmode" value="opaque" /><param name="flashvars" value="stream1=Taser.com 2011/x2_journey&autoPlay=True&serverAppInstName=rtmp://ecd.flash.internapcdn.net/ecd_vitalstream_com/_definst_&debug=false" /><embed src="http://http.vitalstreamcdn.com/flashskins/V2Player.swf" flashvars="stream1=Taser.com 2011/x2_journey&autoPlay=True&serverAppInstName=rtmp://ecd.flash.internapcdn.net/ecd_vitalstream_com/_definst_&debug=false" quality="high" width="485" height="272" name="V2Player" allowScriptAccess="sameDomain" allowFullScreen="true" wmode="opaque" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
            } else {
                $('#x2ProductVideo').html('<a class="videoClose" href="#"></a><video id="x2JourneyVideoTag" controls="controls" preload="none" poster="http://www.taser.com/images/x2_journey_poster.png" width="485" height="272"><source src="http://ecd.http.internapcdn.net/ecd_vitalstream_com/Taser.com 2011/x2_journey.mp4" type="video/mp4" /><object type="application/x-shockwave-flash" data="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" width="485" height="272"><param name="movie" value="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" /><param name="allowFullScreen" value="true" /><param name="wmode" value="transparent" /><param name="flashVars" value="config={\'playlist\':[\'http%3A%2F%2Fwww.taser.com%2Fimages%2Fx2_journey_poster.png\',{\'url\':\'http%3A%2F%2Fecd.http.internapcdn.net%2Fecd_vitalstream_com%2FTaser.com+2011%2Fx2_journey.mp4\',\'autoPlay\':false, \'autoBuffering\':true}]}" /><img alt="TASER X2 Demo" src="http://www.taser.com/images/x2_journey_poster.png" width="485" height="272" title="No video playback capabilities, please download the video below" /></object></video>');

            }
            $('#x2ProductVideo').show();
            $('#x2JourneyThumb').hide();
            $('#x2ProductThumb').hide();
            $('#x2WebcastThumb').hide();
        });

        $('#x2IntroductionWebcastLink').click(function(e) {
            e.preventDefault();

            if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)) {
                $('#x2ProductVideo').html('<a class="videoClose" href="#"></a><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="485" height="272" id="V2Player"><param name="allowScriptAccess" value="sameDomain" /><param name="allowFullScreen" value="true" /><param name="movie" value="http://http.vitalstreamcdn.com/flashskins/V2Player.swf" /><param name="quality" value="high" /><param name="wmode" value="opaque" /><param name="flashvars" value="stream1=Taser.com 2011/x2-intro-webcast-05042011&autoPlay=True&serverAppInstName=rtmp://ecd.flash.internapcdn.net/ecd_vitalstream_com/_definst_&debug=false" /><embed src="http://http.vitalstreamcdn.com/flashskins/V2Player.swf" flashvars="stream1=Taser.com 2011/x2-intro-webcast-05042011&autoPlay=True&serverAppInstName=rtmp://ecd.flash.internapcdn.net/ecd_vitalstream_com/_definst_&debug=false" quality="high" width="485" height="272" name="V2Player" allowScriptAccess="sameDomain" allowFullScreen="true" wmode="opaque" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
            } else {
                $('#x2ProductVideo').html('<a class="videoClose" href="#"></a><video id="x2WebcastVideoTag controls="controls" preload="none" poster="http://www.taser.com/images/x2_webcast_poster.png" width="485" height="272"><source src="http://ecd.http.internapcdn.net/ecd_vitalstream_com/Taser.com 2011/x2-intro-webcast-05042011.mp4" type="video/mp4" /><object type="application/x-shockwave-flash" data="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" width="485" height="272"><param name="movie" value="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" /><param name="allowFullScreen" value="true" /><param name="wmode" value="transparent" /><param name="flashVars" value="config={\'playlist\':[\'http%3A%2F%2Fwww.taser.com%2Fimages%2Fx2_webcast_poster.png\',{\'url\':\'http%3A%2F%2Fecd.http.internapcdn.net%2Fecd_vitalstream_com%2FTaser.com+2011%2Fx2-intro-webcast-05042011.mp4\',\'autoPlay\':false, \'autoBuffering\':true}]}" /><img alt="TASER X2 Demo" src="http://www.taser.com/images/x2_webcast_poster.png" width="485" height="272" title="No video playback capabilities, please download the video below" /></object></video>');
            }
            $('#x2ProductVideo').show();
            $('#x2JourneyThumb').hide();
            $('#x2ProductThumb').hide();
            $('#x2WebcastThumb').hide();
        });

        $('.videoClose').live('click', function(e) {
            e.preventDefault();

            if (navigator.appName !== "Microsoft Internet Explorer") {
                $.each($('video'), function() {
                    var x2Movie = document.getElementById($(this).attr('id'));
                    x2Movie.pause();
                });
            }

            if (navigator.appName !== "Microsoft Internet Explorer") {
                $.each($('video'), function() {
                    var x2Movie = document.getElementById($(this).attr('id'));
                    x2Movie.pause();
                });
            }

            $('#x2ProductVideo').html('');

            $('#x2ProductVideo').hide();
            $('#x2ProductThumb').show();
            $('#x2JourneyThumb').show();
            $('#x2WebcastThumb').show();
        });
    }

    if ($('#x2ProductLanding').length > 0) {

        if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)) {
            $('#x2LandingVideoShell').html('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="485" height="272" id="V2Player"><param name="allowScriptAccess" value="sameDomain" /><param name="allowFullScreen" value="true" /><param name="movie" value="http://http.vitalstreamcdn.com/flashskins/V2Player.swf" /><param name="quality" value="high" /><param name="wmode" value="opaque" /><param name="flashvars" value="stream1=Taser.com 2011/x2_journey&autoPlay=True&serverAppInstName=rtmp://ecd.flash.internapcdn.net/ecd_vitalstream_com/_definst_&debug=false" /><embed src="http://http.vitalstreamcdn.com/flashskins/V2Player.swf" flashvars="stream1=Taser.com 2011/x2_journey&autoPlay=True&serverAppInstName=rtmp://ecd.flash.internapcdn.net/ecd_vitalstream_com/_definst_&debug=false" quality="high" width="485" height="272" name="V2Player" allowScriptAccess="sameDomain" allowFullScreen="true" wmode="opaque" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
        }

        $('#x2ProductLanding').click(function(e) {
            e.preventDefault();

            $('.videoActive').removeClass('videoActive');
            $(this).parent().addClass('videoActive');

            if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)) {
                $('#x2LandingVideoShell').html('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="485" height="272" id="V2Player"><param name="allowScriptAccess" value="sameDomain" /><param name="allowFullScreen" value="true" /><param name="movie" value="http://http.vitalstreamcdn.com/flashskins/V2Player.swf" /><param name="quality" value="high" /><param name="wmode" value="opaque" /><param name="flashvars" value="stream1=Taser.com 2011/x2_landing&autoPlay=True&serverAppInstName=rtmp://ecd.flash.internapcdn.net/ecd_vitalstream_com/_definst_&debug=false" /><embed src="http://http.vitalstreamcdn.com/flashskins/V2Player.swf" flashvars="stream1=Taser.com 2011/x2_landing&autoPlay=True&serverAppInstName=rtmp://ecd.flash.internapcdn.net/ecd_vitalstream_com/_definst_&debug=false" quality="high" width="485" height="272" name="V2Player" allowScriptAccess="sameDomain" allowFullScreen="true" wmode="opaque" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
            } else {
                $('#x2LandingVideoShell').html('<video controls="controls" preload="none" poster="http://www.taser.com/images/promotions-and-campaigns/x2/images/x2_poster.png" width="485" height="272"><source src="http://ecd.http.internapcdn.net/ecd_vitalstream_com/Taser.com 2011/x2_landing.mp4" type="video/mp4" /><object type="application/x-shockwave-flash" data="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" width="485" height="272"><param name="movie" value="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" /><param name="allowFullScreen" value="true" /><param name="wmode" value="transparent" /><param name="flashVars" value="config={\'playlist\':[\'http://www.taser.com/images/promotions-and-campaigns/x2/images/x2_poster.png\',{\'url\':\'http%3A%2F%2Fecd.http.internapcdn.net%2Fecd_vitalstream_com%2FTaser.com+2011%2Fx2_landing.mp4\',\'autoPlay\':false, \'autoBuffering\':true}]}" /><img alt="TASER X2 Demo" src="http://www.taser.com/images/promotions-and-campaigns/x2/images/x2_poster.png" width="485" height="272" title="No video playback capabilities, please download the video below" /></object></video>');
            }
        });

        $('#x2JourneyLanding').click(function(e) {
            e.preventDefault();

            $('.videoActive').removeClass('videoActive');
            $(this).parent().parent().addClass('videoActive');

            if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)) {
                $('#x2LandingVideoShell').html('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="485" height="272" id="V2Player"><param name="allowScriptAccess" value="sameDomain" /><param name="allowFullScreen" value="true" /><param name="movie" value="http://http.vitalstreamcdn.com/flashskins/V2Player.swf" /><param name="quality" value="high" /><param name="wmode" value="opaque" /><param name="flashvars" value="stream1=Taser.com 2011/x2_journey&autoPlay=True&serverAppInstName=rtmp://ecd.flash.internapcdn.net/ecd_vitalstream_com/_definst_&debug=false" /><embed src="http://http.vitalstreamcdn.com/flashskins/V2Player.swf" flashvars="stream1=Taser.com 2011/x2_journey&autoPlay=True&serverAppInstName=rtmp://ecd.flash.internapcdn.net/ecd_vitalstream_com/_definst_&debug=false" quality="high" width="485" height="272" name="V2Player" allowScriptAccess="sameDomain" allowFullScreen="true" wmode="opaque" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
            } else {
                $('#x2LandingVideoShell').html('<video width="485" height="272" controls="controls" preload="none" poster="http://www.taser.com/images/promotions-and-campaigns/x2/images/x2_journey_poster.png"><source src="http://ecd.http.internapcdn.net/ecd_vitalstream_com/Taser.com 2011/x2_journey.mp4" type="video/mp4"></source><object type="application/x-shockwave-flash" data="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" width="485" height="272"><param name="movie" value="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" /><param name="allowFullScreen" value="true" /><param name="wmode" value="transparent" /><param name="flashVars" value="config={\'playlist\':[\'http://www.taser.com/images/promotions-and-campaigns/x2/images/x2_journey_poster.png\',{\'url\':\'http%3A%2F%2Fecd.http.internapcdn.net%2Fecd_vitalstream_com%2FTaser.com+2011%2Fx2_journey.mp4\',\'autoPlay\':false, \'autoBuffering\':true}]}" /><img alt="TASER X2 Demo" src="http://www.taser.com/images/promotions-and-campaigns/x2/images/x2_journey_poster.png" width="485" height="272" title="No video playback capabilities, please download the video below" /></object></video>');
            }
        });

        $('#x2IntroductionWebcastLanding').click(function(e) {
            e.preventDefault();

            $('.videoActive').removeClass('videoActive');
            $(this).parent().parent().addClass('videoActive');

            if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)) {
                $('#x2LandingVideoShell').html('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="485" height="272" id="V2Player"><param name="allowScriptAccess" value="sameDomain" /><param name="allowFullScreen" value="true" /><param name="movie" value="http://http.vitalstreamcdn.com/flashskins/V2Player.swf" /><param name="quality" value="high" /><param name="wmode" value="opaque" /><param name="flashvars" value="stream1=Taser.com 2011/x2-intro-webcast-05042011&autoPlay=True&serverAppInstName=rtmp://ecd.flash.internapcdn.net/ecd_vitalstream_com/_definst_&debug=false" /><embed src="http://http.vitalstreamcdn.com/flashskins/V2Player.swf" flashvars="stream1=Taser.com 2011/x2-intro-webcast-05042011&autoPlay=True&serverAppInstName=rtmp://ecd.flash.internapcdn.net/ecd_vitalstream_com/_definst_&debug=false" quality="high" width="485" height="272" name="V2Player" allowScriptAccess="sameDomain" allowFullScreen="true" wmode="opaque" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
            } else {
                $('#x2LandingVideoShell').html('<video controls="controls" preload="none" poster="http://www.taser.com/images/promotions-and-campaigns/x2/images/x2_introduction_webcast_poster.png" width="485" height="272"><source src="http://ecd.http.internapcdn.net/ecd_vitalstream_com/Taser.com 2011/x2-intro-webcast-05042011.mp4" type="video/mp4" /><object type="application/x-shockwave-flash" data="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" width="485" height="272"><param name="movie" value="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" /><param name="allowFullScreen" value="true" /><param name="wmode" value="transparent" /><param name="flashVars" value="config={\'playlist\':[\'http://www.taser.com/images/promotions-and-campaigns/x2/images/x2_introduction_webcast_poster.png\',{\'url\':\'http://ecd.http.internapcdn.net/ecd_vitalstream_com/Taser.com+2011/x2-intro-webcast-05042011.mp4\',\'autoPlay\':false, \'autoBuffering\':true}]}" /><img alt="TASER X2 Demo" src="http://www.taser.com/images/promotions-and-campaigns/x2/images/x2_introduction_webcast_poster.png" width="485" height="272" title="No video playback capabilities, please download the video below" /></object></video>');
            }
        });
    }
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
    // AXON FLEX Product Video
    if ($('#x2ProductVideo').length > 0) {
        $('#x2ProductLink').click(function(e) {
            e.preventDefault();

            if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)) {
                $('#x2ProductVideo').html('<a class="videoClose" href="#"></a><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="800" height="451" id="V2Player"><param name="allowScriptAccess" value="sameDomain" /><param name="allowFullScreen" value="true" /><param name="movie" value="http://http.vitalstreamcdn.com/flashskins/V2Player.swf" /><param name="quality" value="high" /><param name="wmode" value="opaque" /><param name="flashvars" value="stream1=Taser.com 2011/flex_promo&autoPlay=True&serverAppInstName=rtmp://ecd.flash.internapcdn.net/ecd_vitalstream_com/_definst_&debug=false" /><embed src="http://http.vitalstreamcdn.com/flashskins/V2Player.swf" flashvars="stream1=Taser.com 2011/flex_promo&autoPlay=True&serverAppInstName=rtmp://ecd.flash.internapcdn.net/ecd_vitalstream_com/_definst_&debug=false" quality="high" width="800" height="451" name="V2Player" allowScriptAccess="sameDomain" allowFullScreen="true" wmode="opaque" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
            } else {
                $('#x2ProductVideo').html('<a class="videoClose" href="#"></a><video id="x2ProductVideoTag" controls="controls" preload="none" poster="http://www.taser.com/images/promotions-and-campaigns/axon_flex/flex_launch_bg.jpg" width="800" height="451"><source src="http://ecd.http.internapcdn.net/ecd_vitalstream_com/Taser.com 2011/flex_promo.mp4" type="video/mp4" /><object type="application/x-shockwave-flash" data="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" width="800" height="451"><param name="movie" value="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" /><param name="allowFullScreen" value="true" /><param name="wmode" value="transparent" /><param name="flashVars" value="config={\'playlist\':[\'http%3A%2F%2Fwww.taser.com%2Fimages%2Fx2_poster.png\',{\'url\':\'http%3A%2F%2Fecd.http.internapcdn.net%2Fecd_vitalstream_com%2FTaser.com+2011%2Fx2_landing.mp4\',\'autoPlay\':false, \'autoBuffering\':true}]}" /><img alt="TASER FLEX Demo" src="http://www.taser.com/images/promotions-and-campaigns/axon_flex/flex_launch_bg.jpg" width="800" height="451" title="No video playback capabilities, please download the video below" /></object></video>');
            }

            $('#x2ProductVideo').show();
            $('#x2ProductThumb').hide();
            $('#x2JourneyThumb').hide();
            $('#x2WebcastThumb').hide();
        });

        $('#x2JourneyLink').click(function(e) {
            e.preventDefault();

            if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)) {
                $('#x2ProductVideo').html('<a class="videoClose" href="#"></a><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="800" height="451" id="V2Player"><param name="allowScriptAccess" value="sameDomain" /><param name="allowFullScreen" value="true" /><param name="movie" value="http://http.vitalstreamcdn.com/flashskins/V2Player.swf" /><param name="quality" value="high" /><param name="wmode" value="opaque" /><param name="flashvars" value="stream1=Taser.com 2011/flex_journey&autoPlay=True&serverAppInstName=rtmp://ecd.flash.internapcdn.net/ecd_vitalstream_com/_definst_&debug=false" /><embed src="http://http.vitalstreamcdn.com/flashskins/V2Player.swf" flashvars="stream1=Taser.com 2011/flex_journey&autoPlay=True&serverAppInstName=rtmp://ecd.flash.internapcdn.net/ecd_vitalstream_com/_definst_&debug=false" quality="high" width="800" height="451" name="V2Player" allowScriptAccess="sameDomain" allowFullScreen="true" wmode="opaque" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
            } else {
                $('#x2ProductVideo').html('<a class="videoClose" href="#"></a><video id="x2JourneyVideoTag" controls="controls" preload="none" poster="http://www.taser.com/images/promotions-and-campaigns/axon_flex/flex_launch_bg.jpg" width="800" height="451"><source src="http://ecd.http.internapcdn.net/ecd_vitalstream_com/Taser.com 2011/flex_journey.mp4" type="video/mp4" /><object type="application/x-shockwave-flash" data="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" width="800" height="451"><param name="movie" value="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" /><param name="allowFullScreen" value="true" /><param name="wmode" value="transparent" /><param name="flashVars" value="config={\'playlist\':[\'http%3A%2F%2Fwww.taser.com%2Fimages%2Fpromotions-and-campaigns%2Faxon_flex%2Fflex_launch_bg.jpg\',{\'url\':\'http%3A%2F%2Fecd.http.internapcdn.net%2Fecd_vitalstream_com%2FTaser.com+2011%2Fflex_journey.mp4\',\'autoPlay\':false, \'autoBuffering\':true}]}" /><img alt="TASER X2 Demo" src="http://www.taser.com/images/promotions-and-campaigns/axon_flex/flex_launch_bg.jpg" width="800" height="451" title="No video playback capabilities, please download the video below" /></object></video>');

            }
            $('#x2ProductVideo').show();
            $('#x2JourneyThumb').hide();
            $('#x2ProductThumb').hide();
            $('#x2WebcastThumb').hide();
        });

        $('#x2IntroductionWebcastLink').click(function(e) {
            e.preventDefault();

            if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)) {
                $('#x2ProductVideo').html('<a class="videoClose" href="#"></a><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="800" height="451" id="V2Player"><param name="allowScriptAccess" value="sameDomain" /><param name="allowFullScreen" value="true" /><param name="movie" value="http://http.vitalstreamcdn.com/flashskins/V2Player.swf" /><param name="quality" value="high" /><param name="wmode" value="opaque" /><param name="flashvars" value="stream1=Taser.com 2011/burnsville_flex&autoPlay=True&serverAppInstName=rtmp://ecd.flash.internapcdn.net/ecd_vitalstream_com/_definst_&debug=false" /><embed src="http://http.vitalstreamcdn.com/flashskins/V2Player.swf" flashvars="stream1=Taser.com 2011/burnsville_flex&autoPlay=True&serverAppInstName=rtmp://ecd.flash.internapcdn.net/ecd_vitalstream_com/_definst_&debug=false" quality="high" width="800" height="451" name="V2Player" allowScriptAccess="sameDomain" allowFullScreen="true" wmode="opaque" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
            } else {
                $('#x2ProductVideo').html('<a class="videoClose" href="#"></a><video id="x2WebcastVideoTag controls="controls" preload="none" poster="http://www.taser.com/images/promotions-and-campaigns/axon_flex/flex_launch_bg.jpg" width="800" height="451"><source src="http://ecd.http.internapcdn.net/ecd_vitalstream_com/Taser.com 2011/burnsville_flex.mp4" type="video/mp4" /><object type="application/x-shockwave-flash" data="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" width="800" height="451"><param name="movie" value="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" /><param name="allowFullScreen" value="true" /><param name="wmode" value="transparent" /><param name="flashVars" value="config={\'playlist\':[\'http%3A%2F%2Fwww.taser.com/images/promotions-and-campaigns/axon_flex/flex_launch_bg.jpg\',{\'url\':\'http%3A%2F%2Fecd.http.internapcdn.net%2Fecd_vitalstream_com%2FTaser.com+2011%2Fburnsville_flex.mp4\',\'autoPlay\':false, \'autoBuffering\':true}]}" /><img alt="TASER X2 Demo" src="http://www.taser.com/images/promotions-and-campaigns/axon_flex/flex_launch_bg.jpg" width="800" height="451" title="No video playback capabilities, please download the video below" /></object></video>');
            }
            $('#x2ProductVideo').show();
            $('#x2JourneyThumb').hide();
            $('#x2ProductThumb').hide();
            $('#x2WebcastThumb').hide();
        });

        $('.videoClose').live('click', function(e) {
            e.preventDefault();

            if (navigator.appName !== "Microsoft Internet Explorer") {
                $.each($('video'), function() {
                    var x2Movie = document.getElementById($(this).attr('id'));
                    x2Movie.pause();
                });
            }

            if (navigator.appName !== "Microsoft Internet Explorer") {
                $.each($('video'), function() {
                    var x2Movie = document.getElementById($(this).attr('id'));
                    x2Movie.pause();
                });
            }

            $('#x2ProductVideo').html('');

            $('#x2ProductVideo').hide();
            $('#x2ProductThumb').show();
            $('#x2JourneyThumb').show();
            $('#x2WebcastThumb').show();
        });
    }

    if ($('#AxonFlexProductLanding').length > 0) {

        if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)) {
            $('#AxonFlexLandingVideoShell').html('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="800" height="451" id="V2Player"><param name="allowScriptAccess" value="sameDomain" /><param name="allowFullScreen" value="true" /><param name="movie" value="http://http.vitalstreamcdn.com/flashskins/V2Player.swf" /><param name="quality" value="high" /><param name="wmode" value="opaque" /><param name="flashvars" value="stream1=Taser.com 2011/flex_journey&autoPlay=True&serverAppInstName=rtmp://ecd.flash.internapcdn.net/ecd_vitalstream_com/_definst_&debug=false" /><embed src="http://http.vitalstreamcdn.com/flashskins/V2Player.swf" flashvars="stream1=Taser.com 2011/flex_journey&autoPlay=True&serverAppInstName=rtmp://ecd.flash.internapcdn.net/ecd_vitalstream_com/_definst_&debug=false" quality="high" width="800" height="451" name="V2Player" allowScriptAccess="sameDomain" allowFullScreen="true" wmode="opaque" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
        }

        $('#AxonFlexProductLanding').click(function(e) {
            e.preventDefault();

            $('.videoActive').removeClass('videoActive');
            $(this).parent().addClass('videoActive');

            if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)) {
                $('#AxonFlexLandingVideoShell').html('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="800" height="451" id="V2Player"><param name="allowScriptAccess" value="sameDomain" /><param name="allowFullScreen" value="true" /><param name="movie" value="http://http.vitalstreamcdn.com/flashskins/V2Player.swf" /><param name="quality" value="high" /><param name="wmode" value="opaque" /><param name="flashvars" value="stream1=Taser.com 2011/flex_promo&autoPlay=True&serverAppInstName=rtmp://ecd.flash.internapcdn.net/ecd_vitalstream_com/_definst_&debug=false" /><embed src="http://http.vitalstreamcdn.com/flashskins/V2Player.swf" flashvars="stream1=Taser.com 2011/flex_promo&autoPlay=True&serverAppInstName=rtmp://ecd.flash.internapcdn.net/ecd_vitalstream_com/_definst_&debug=false" quality="high" width="800" height="451" name="V2Player" allowScriptAccess="sameDomain" allowFullScreen="true" wmode="opaque" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
            } else {
                $('#AxonFlexLandingVideoShell').html('<video controls="controls" preload="none" poster="http://www.taser.com/images/promotions-and-campaigns/axon_flex/flex_launch_bg.jpg" width="800" height="451"><source src="http://ecd.http.internapcdn.net/ecd_vitalstream_com/Taser.com 2011/flex_promo.mp4" type="video/mp4" /><object type="application/x-shockwave-flash" data="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" width="800" height="451"><param name="movie" value="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" /><param name="allowFullScreen" value="true" /><param name="wmode" value="transparent" /><param name="flashVars" value="config={\'playlist\':[\'http://www.taser.com/images/promotions-and-campaigns/axon_flex/flex_launch_bg.jpg\',{\'url\':\'http%3A%2F%2Fecd.http.internapcdn.net%2Fecd_vitalstream_com%2FTaser.com+2011%2Fflex_promo.mp4\',\'autoPlay\':false, \'autoBuffering\':true}]}" /><img alt="TASER X2 Demo" src="http://www.taser.com/images/promotions-and-campaigns/axon_flex/flex_launch_bg.jpg" width="800" height="451" title="No video playback capabilities, please download the video below" /></object></video>');
            }
        });

        $('#AxonFlexJourneyLanding').click(function(e) {
            e.preventDefault();

            $('.videoActive').removeClass('videoActive');
            $(this).parent().parent().addClass('videoActive');

            if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)) {
                $('#AxonFlexLandingVideoShell').html('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="800" height="451" id="V2Player"><param name="allowScriptAccess" value="sameDomain" /><param name="allowFullScreen" value="true" /><param name="movie" value="http://http.vitalstreamcdn.com/flashskins/V2Player.swf" /><param name="quality" value="high" /><param name="wmode" value="opaque" /><param name="flashvars" value="stream1=Taser.com 2011/flex_journey&autoPlay=True&serverAppInstName=rtmp://ecd.flash.internapcdn.net/ecd_vitalstream_com/_definst_&debug=false" /><embed src="http://http.vitalstreamcdn.com/flashskins/V2Player.swf" flashvars="stream1=Taser.com 2011/flex_journey&autoPlay=True&serverAppInstName=rtmp://ecd.flash.internapcdn.net/ecd_vitalstream_com/_definst_&debug=false" quality="high" width="800" height="451" name="V2Player" allowScriptAccess="sameDomain" allowFullScreen="true" wmode="opaque" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
            } else {
                $('#AxonFlexLandingVideoShell').html('<video width="800" height="451" controls="controls" preload="none" poster="http://www.taser.com/images/promotions-and-campaigns/axon_flex/flex_launch_bg.jpg"><source src="http://ecd.http.internapcdn.net/ecd_vitalstream_com/Taser.com 2011/flex_journey.mp4" type="video/mp4"></source><object type="application/x-shockwave-flash" data="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" width="800" height="451"><param name="movie" value="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" /><param name="allowFullScreen" value="true" /><param name="wmode" value="transparent" /><param name="flashVars" value="config={\'playlist\':[\'http://www.taser.com/images/promotions-and-campaigns/axon_flex/flex_launch_bg.jpg\',{\'url\':\'http%3A%2F%2Fecd.http.internapcdn.net%2Fecd_vitalstream_com%2FTaser.com+2011%2Fflex_journey.mp4\',\'autoPlay\':false, \'autoBuffering\':true}]}" /><img alt="TASER X2 Demo" src="http://www.taser.com/images/promotions-and-campaigns/axon_flex/flex_launch_bg.jpg" width="800" height="451" title="No video playback capabilities, please download the video below" /></object></video>');
            }
        });

        $('#axonFlexIntroductionWebcastLanding').click(function(e) {
            e.preventDefault();

            $('.videoActive').removeClass('videoActive');
            $(this).parent().parent().addClass('videoActive');

            if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)) {
                $('#AxonFlexLandingVideoShell').html('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="800" height="451" id="V2Player"><param name="allowScriptAccess" value="sameDomain" /><param name="allowFullScreen" value="true" /><param name="movie" value="http://http.vitalstreamcdn.com/flashskins/V2Player.swf" /><param name="quality" value="high" /><param name="wmode" value="opaque" /><param name="flashvars" value="stream1=Taser.com 2011/burnsville_flex&autoPlay=True&serverAppInstName=rtmp://ecd.flash.internapcdn.net/ecd_vitalstream_com/_definst_&debug=false" /><embed src="http://http.vitalstreamcdn.com/flashskins/V2Player.swf" flashvars="stream1=Taser.com 2011/burnsville_flex&autoPlay=True&serverAppInstName=rtmp://ecd.flash.internapcdn.net/ecd_vitalstream_com/_definst_&debug=false" quality="high" width="800" height="451" name="V2Player" allowScriptAccess="sameDomain" allowFullScreen="true" wmode="opaque" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
            } else {
                $('#AxonFlexLandingVideoShell').html('<video controls="controls" preload="none" poster="http://www.taser.com/images/promotions-and-campaigns/axon_flex/flex_launch_bg.jpg" width="800" height="451"><source src="http://ecd.http.internapcdn.net/ecd_vitalstream_com/Taser.com 2011/burnsville_flex.mp4" type="video/mp4" /><object type="application/x-shockwave-flash" data="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" width="800" height="451"><param name="movie" value="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" /><param name="allowFullScreen" value="true" /><param name="wmode" value="transparent" /><param name="flashVars" value="config={\'playlist\':[\'http://www.taser.com/images/promotions-and-campaigns/axon_flex/flex_launch_bg.jpg\',{\'url\':\'http://ecd.http.internapcdn.net/ecd_vitalstream_com/Taser.com+2011/burnsville_flex.mp4\',\'autoPlay\':false, \'autoBuffering\':true}]}" /><img alt="TASER X2 Demo" src="http://www.taser.com/images/promotions-and-campaigns/axon_flex/flex_launch_bg.jpg" width="800" height="451" title="No video playback capabilities, please download the video below" /></object></video>');
            }
        });
    }	
	
	

    // Fancy Box Popup
    $(".pops").fancybox({
        'titleShow': false,
        'transitionIn': 'none',
        'transitionOut': 'none'
    });

   

});

