content['siteCatalog'] = Class.create({

  THREAD_ID: null,
  EXEC_UID: null,
  arrParams:  null,

  initialize: function(arrInstVars, arrParams, arrLang)
  {
     $$('*[name="noPhoto"]').each(function(el)
	 {
		this.createMaps.bind(this, el).defer();
	 }.bind(this));
  
  },
  
  createMaps: function(el)
  {

	if(el.getAttribute('_addressQ')!='')
	{	
      if (GBrowserIsCompatible()) {
		var geocoder = new GClientGeocoder();
		var address = el.getAttribute('_addressQ');
		
		  this.pnt = {x: false, y:false};
		  geocoder.getLatLng(
			address,
			function(point) {
			  if (point) {
			    this.pnt = point;
				
				el.src="http://maps.google.com/staticmap?center="+point.y+","+point.x+"&zoom=11&size=122x92&maptype=mobile\&markers="+point.y+","+point.x+",redc\&key=ABQIAAAAmnFRCzYpgfPZjCDBjwrR-RRZV0JwcVAs3i6Xzl1ib4DSe9JwfBTYINqtoxR2JnS4MYmy-DZiAgYGSQ";
			  }
			  new Ajax.Request('/?call_element=component.rcGeoMapper', 
			  {
				  method: 'post',
				  parameters: {_x: this.pnt.x, _y: this.pnt.y, 
					contentType: el.getAttribute('_contentType'), 
					_id: el.getAttribute('_id')}
			  });			  
			}.bind(this)
		  );

      } 
	}
  }

});
arrJsLoaded['content.siteCatalog.js']=true;init.jsLoaded("content.siteCatalog.js");