﻿$(document).ready(function() {
    //$(":text").round();
});

function findInArray(arrToLookIn, valToFind, isMultiDimensional, valIndex) {
    if (arrToLookIn) {
        for (itemIndex = 0; itemIndex < arrToLookIn.length; itemIndex++) {
            if (isMultiDimensional) {
                if (arrToLookIn[itemIndex][valIndex] == valToFind) return itemIndex;
            }
            else {
                if (arrToLookIn[itemIndex] == valToFind) return itemIndex;
            }
        }
    }

    return -1;
}

function bindTips() {
    $("[tip]").each(function() {
        $(this).qtip({
            content: $(this).attr("tip"),
            style: {
                name: 'blue',
                tip: 'bottomLeft',
                border: {
                    width: 1,
                    radius: 4,
                    color: '#6699CC'
                }
            },
            position: {
                corner: {
                    target: 'topRight',
                    tooltip: 'bottomLeft'
                }
            }
        });
    });
}