﻿$(document).ready(function () {


    $("input").mouseover(function () {
        //alert("query works!");
        // alert($(this).attr("title"));
    });




    $("#supportedBrowsers").each(function () {

        if ($(this).attr("title") == '') {
            //$(this).qtip("disable");
            //alert($(this).attr("id"));
        }
        else {

            $(this).qtip({
                /* content: {
                url: '../html/browerlist.html',
                method: 'get'
                },*/
                /* content: { url: 'http://just2trade.bptrade.net/html/browserlist.html' }, */
                content: { url: '/html/browserlist.html' },
                
                style: {
                width: 275,
                padding: 5,
                background: '#CCCCCC',
                color: 'black',
                textAlign: 'center',
                tip: true,
                border: {
                width: 3,
                //radius: 5,
                color: '#A2D959'
                }

                },

                

                position: {
                    corner: {
                        target: 'rightMiddle',
                        tooltip: 'leftMiddle'
                    }
                }

            });



        }

        //alert($(this).attr("title"));

    });


    $("input").each(function () {

        if ($(this).attr("title") == '') {
            //$(this).qtip("disable");
            //alert($(this).attr("id"));
        }
        else {

            $(this).qtip({
                content: $(this).title,
                style: {
                    width: 300,
                    padding: 5,
                    background: '#CCCCCC',
                    color: 'black',
                    textAlign: 'center',
                    tip: true,
                    border: {
                        width: 3,
                        //radius: 5,
                        color: '#A2D959'
                    }

                },

                position: {
                    corner: {
                        target: 'rightMiddle',
                        tooltip: 'leftMiddle'
                    }
                }

            });



        }

        //alert($(this).attr("title"));

    })





});
