﻿$(function () {
    var sfEls = document.getElementById("ie6NavFix").getElementsByTagName("LI");
    for (var i = 0; i < sfEls.length; i++) {
        sfEls[i].onmouseover = function () {
            this.className += " sfhover";
        }
        sfEls[i].onmouseout = function () {
            this.className = this.className.replace(new RegExp(" sfhover\\b"), "");
        }
    }

    var submitSearch = function () {
        var form = $('<form action="/searchresults.aspx"></form>').html($('#cse-search-box input').clone());
        form.hide().appendTo($('body')).submit();
        return false;
    }

    $('#searchBtn').click(submitSearch);
    $('#searchBox').keypress(function (e) {
        if (e.which == 13) {
            return submitSearch();
        }
    });
});


$(document).ready(function() 
{
   $('area').each(function()
   {
      $(this).qtip(
      {
         content: $(this).attr('alt'), // Use the ALT attribute of the area map
		
   position: {
      corner: {
         tooltip: 'bottomLeft',
         target: 'topRight',
		 tip: 'bottomLeft'
      }
   },
    style: {
             background: '#cde3fe',
      color: 'black',

            border: {
               width: 0, 
               radius: 4 ,
			   color: '#a9cae9'
			   

            }, 
            tip: true // Apply a tip at the default tooltip corner
         }


      });
   });

});

