﻿initializei = function() {


    // If ClientLocation was filled in by the loader, use that info instead
    if (google.loader.ClientLocation) {
	

        if (google.loader.ClientLocation.address.country_code == "US" &&
             google.loader.ClientLocation.address.region) {
            var str_city = google.loader.ClientLocation.address.city;
            var str_state = google.loader.ClientLocation.address.region.toUpperCase();

            var data = {
                'city': str_city,
                'state': str_state

            }



            $.post(
                        '/ajax/location.ashx', data);

            $(document).trigger('locationKnown', { 'city': str_city, 'state': str_state });


        } 
    } else {
	
}

}
