function formatItem(row) {
	return row[0] + " (<strong>" + row[1] + "</strong>)";
}
function formatResult(row) {
	return row[0].replace(/(<.+?>)/gi, '');
}
// JavaScript Document setcode
var J = jQuery.noConflict();
J(document).ready(function(){   
   	J("input[title^='body_autocomplete']").autocomplete(keyword_links, { multiple: true, mustMatch: false, autoFill: true });
	//J("input[title^='body_autocomplete']").autocomplete(url+'admin/keyword_links_list.php', { multiple: true, mustMatch: false, autoFill: true, formatItem: formatItem, formatResult: formatResult	});
  	J("a[rel^='prettyPhoto']").prettyPhoto();
	J('#header').click(function(){ window.location=url_link});
	J('#header,img.favonot').css({cursor:'pointer'});
	J('img.favonot').click(function(){ this.src=url+'images/favorito.png'; });
	Nifty("div.tab_name_escort","top 11px");
	Nifty("div.features_escort","tr bottom 11px height");
	MM_preloadImages(url+contact_img_in,url+'images/'+create_img_in,url+'images/'+clients_img_in,url+'images/'+city_img_in);					   
	J('img.contactenos').mouseover(function(){  this.src=url+'images/'+contact_img_in;	 });
	J('img.contactenos').mouseout(function(){ this.src=url+'images/'+contact_img_at;	 });
	J('img.anunciate').mouseover(function(){	 this.src=url+'images/'+create_img_in;	 });
	J('img.anunciate').mouseout(function(){	 this.src=url+'images/'+create_img_at;	 });
	J('img.sel_clientes').mouseover(function(){	 this.src=url+'images/'+clients_img_in;	 });
	J('img.sel_clientes').mouseout(function(){	 this.src=url+'images/'+clients_img_at;	 });
	J('img.sel_ciudad').mouseover(function(){	 this.src=url+'images/'+city_img_in;	 });
	J('img.sel_ciudad').mouseout(function(){	 this.src=url+'images/'+city_img_at;	 });
	J('img.sel_ciudad').click(function(){ J('div.ciudades').slideToggle('slow'); });
	J('div#header').click(function(){ window.location=url;});
	///INCLUIR LLAMADO Y ALISTAR EL DOM PARA REDONDEAR IMAGENES corner.js
	var cornerOnload = window.onload;
	window.onload = function () { if(cornerOnload) cornerOnload(); if(isIE){addIECorners(); }else {addCorners();}}	
	//LLAMADO AL FANCYBOX DEL CARRUSEL
	//J("li a.simg ").fancybox({ 'zoomSpeedIn': 0, 'zoomSpeedOut': 0, 'overlayShow': true }); 
	//LLAMADO AL CARRUSEL
	J('#slider').jcarousel({scroll:4})	
});

