/*  Prototype JavaScript framework, version 1.7
 *  (c) 2005-2010 Sam Stephenson
 *
 *  Prototype is freely distributable under the terms of an MIT-style license.
 *  For details, see the Prototype web site: http://www.prototypejs.org/
 *
 *--------------------------------------------------------------------------*/
$(document).ready(function() {
		//var url = 'http://192.168.1.51:8080/busquedas/busquedasActuales.do';
		var url = 'ofertasActuales.txt';
		$.ajax({url: url,
				dataType: "text",
				success: function (data){
				var json = eval( "(" + data + ")" );
					var items = [];
					items.push('<ol class="olJobsBox my-new-list" >');
					
					$.each(json, function (key, value) {
						items.push('<li class="liJobsBox" id="' + key + '"><a title="Presione Aqui" href="http://www.firstsystems.com.ar/busquedas/busqueda.do?busqueda.id=' + key + '" class="aJobsBox">' + value + '</a></li>');
					});
					items.push('</ol>');
					$('.contenido').append(items.join(''));
				},
				error: function(xml, error, throwError) {
					alert("Error javascripts first systems!!!! : " +  error + " ; " + " xml: " + xml + "\n\t throwError " + throwError);
				}
		});
	
	});
	
	
