var myGoogleMapsObj = null;
			
			function addLoadEvent(func) {
				var oldonload = window.onload;
				if (typeof window.onload != 'function') {
					window.onload = func;
				}
				else {
					window.onload = function() {
						if (oldonload) {
							oldonload();
						}
						func();
					}
				}
			}


			
			if(Browser.Engine.trident == true) {
				addLoadEvent(function() {
					IEfixerGmaps();
				});	
			}
			
			window.addEvent('domready', function() {
				//alert(Browser.Engine.trident);
				if($('searchNoResultsError').value == "true")
					Sexy.alert('<h1>We\'re sorry, no results were found for your search.</h1><br/><p>Please try broadening your search parameters and searching again. Since we couldn\'t find the results you were looking for, we\'re showing you all shops and events in California.</p>');
				
				if(Browser.Engine.trident != true)
					google.load("maps", "2", {"callback" : googleMapsLoadedCallback});

				
				var myShopPaginationObj =  new CoreshopSearchShopResultPaginator({
					pagedItemClassName: 'CurrentRezShopItem',
					numItemsPerPage: 20,
					shopPagCtrlPrefix: 'shopsResultsPagination',
					shopPageCtrlEles: ''});
				
				
			}); 
			
			function IEfixerGmaps() {
				//alert('here');
				google.load("maps", "2", {"callback" : googleMapsLoadedCallback});
				var myShopPaginationObj =  new CoreshopSearchShopResultPaginator({
					pagedItemClassName: 'CurrentRezShopItem',
					numItemsPerPage: 20,
					shopPagCtrlPrefix: 'shopsResultsPagination',
					shopPageCtrlEles: ''});
			}
			
			function googleMapsLoadedCallback() {
				//write core googlemaps class
				myGoogleMapsObj = new GMapsSearchShopEvent({
					mapCanvas: 'map_canvas',
					mapCenterPointLat: $empty,
					mapCenterPointLong: $empty
				});
			}
