﻿$(document).ready(function() {

    $('.searchInput').keypress(function(e) {
        if ((e.keyCode || e.which) == 13) {
            event.returnValue = false;
            event.cancel = true;
            var href = $('.searchBtn').attr('href');
            if (href) {
                window.location.href = href;
            }
        }
    });

    $('#hpContent').wslide({
        width: 700,		
        height: 185,
        autolink: false,
        fade: true,		
        duration: 1000
    });

    //            var latlng = new google.maps.LatLng(39.275442, -76.805908);
    //            var myOptions = {
    //                zoom: 16,
    //                center: latlng,
    //                mapTypeId: google.maps.MapTypeId.HYBRID,
    //                mapTypeControl: false,
    //                scaleControl: true
    //            };
    //            var map = new google.maps.Map(document.getElementById("mapWrap"), myOptions);

    //            $("#lnkMap").overlay({
    //                top: 132,
    //                effect: 'default',
    //                onLoad: function () {
    //                    google.maps.event.trigger(map, 'resize');
    //                }
    //            });
});


$(function() {
    $("#lnkSmallFont").click(function() {
        changeFontSize(12);
		
    });

    $("#lnkNormalFont").click(function() {
        changeFontSize(14);
		
    });

    $("#lnkLargeFont").click(function() {
        changeFontSize(16);
		
    });
});


function changeFontSize(size) {
    $('p').css('font-size', size);
    $('div').css('font-size', size);
    $('li').css('font-size', size);	
    $('h6').css('font-size', size);
	$('h1').css('font-size',24);
	$('h5').css('font-size',13);
	

    return false;
}



