var settings = {endvar: 'sukaloh'} 
window.addEvent('domready', function() {
   new Request({
       url: '/ajax.php',
       method: 'get', 
       noCache: true,
       onSuccess: (function(responseText) {
      		this.endvar = responseText;
			if(this.endvar == 'CL'){$$('td[style*="images/tarot.jpg"]').setStyle('background', 'url(/images/geo/header_cl.jpg)');}
			if(this.endvar == 'AR'){$$('td[style*="images/tarot.jpg"]').setStyle('background', 'url(/images/geo/header_ar.jpg)');}
			if(this.endvar == 'PE'){$$('td[style*="images/tarot.jpg"]').setStyle('background', 'url(/images/geo/header_pe.jpg)');}
			if(this.endvar == 'IT'){$$('td[style*="images/tarot.jpg"]').setStyle('background', 'url(/images/geo/header_it.jpg)');}
			if(this.endvar == 'VE'){$$('td[style*="images/tarot.jpg"]').setStyle('background', 'url(/images/geo/header_ve.jpg)');}
			if(this.endvar == 'US'){$$('td[style*="images/tarot.jpg"]').setStyle('background', 'url(/images/geo/header_us.jpg)');}
			
       }).bind(settings)
   }).send('ipnum=' + ipnum);
});