<!--
$(function() {
$("#slider").slider({value:25,min: 10, max: 70,step: 5,stop: function(event, ui) {            
$("#amount").val(ui.value);
document.getElementById('CocinaSearch').hiddenprecio.value=ui.value;	
RellenarSearch(document.getElementById('CocinaSearch').hiddenlocalidad.value,document.getElementById('CocinaSearch').hiddenzona.value);                 		   
}
}			              
);
$("#amount").val(25);
});
function mapa(i_codigo,nombre)
{            
var url = "http://www.restaurantes.com/mapa/gomap.php?c=" + i_codigo;
var titulo="Mapa restaurante " + nombre;
Shadowbox.open({player:'iframe',title:titulo,content:url,height:420,width:680},{animate: false,slideshowDelay:0});
Mapa_Restaurante(i_codigo);
};
function ofertas(i_codigo){
var url = 'http://www.restaurantes.com/ofertas.php?codigo=' + i_codigo;
Shadowbox.open({player:'iframe',title:'Ofertas',content:url,height:375,width:725},{animate: false,slideshowDelay:0});
};	
function Video(url_video,i_codigo,tipo,restaurante){
var url = "http://www.restaurantes.com/videohd_process.php?url_video=" + url_video + "&id=" + i_codigo + "&tipo=" + tipo;    	 
Shadowbox.open({player:'iframe',title:restaurante, content:url,height:385,width:640},{animate: false,slideshowDelay:0});
};
function Video_Hd(url_video,i_codigo,tipo,restaurante){
var url = "http://www.restaurantes.com/videocalidad_process.php?url_video=" + url_video + "&id=" + i_codigo + "&tipo=" + tipo;
Shadowbox.open({player:'iframe',title:restaurante,content:url,height:442,width:743},{animate: false,slideshowDelay:0});
};	
function Boletin(){
var correo=document.getElementById('frm_alta_boletin').email_boletin.value;
var provincia=document.getElementById('frm_alta_boletin').provincia_boletin.value;

var url = "http://www.restaurantes.com/boletin_process.php?correo=" + correo + "&provincia="+ provincia;
Shadowbox.open({player:'iframe',title:'Alta boletin',content:url,height:385,width:640},{animate: false,slideshowDelay:0});
};
function setLinks()
{
if (!document.getElementsByTagName) return false;
var links = document.getElementsByTagName("a");
if (links.length == 0) return false;
for (var i = 0; i < links.length; i++)
{
var relation = links[i].getAttribute("rel");
if (relation == "external") 
{
links[i].onclick = function() 
{
 return !window.open(this.href);
}
}     
}
}
function cookie_process()
{
var b_cookie=0;
if (document.getElementById('frmcookieprov').chk_recordar.checked)
{
b_cookie=1;
}
try
{
ajax3=new XMLHttpRequest();
}
catch(error)
{
try
{
ajax3=new ActiveXObject("Microsoft.XMLHTTP");
}
catch(error)
{
ajax3=null;return false;
}
}
ajax3.open("GET","/cookie_process.php?id="+b_cookie);
ajax3.onreadystatechange=function(){if(ajax3.readyState==4){}}
ajax3.send(null);}
-->
