/*$(document).ready (function (){
	$('.mas').each(function (i){
		$(this).click(function() {
			$(this).toggleClass('menos');
			$('#apoyo'+$(this).attr('id')).slideToggle('fast');
		});
	});
	
	$('#linkequipos').click(function(){
		$('#submenu').slideToggle('normal');
	});
	
});*/



// para local
//var url_base="http://localhost/segundab-division";

// para web
var url_base="http://segundab.futboldecantabria.com";


function MM_openBrWindow(theURL,winName,features) {
	window.name='principal';
	window.open(theURL,winName,features);
}

function ajaxObject(){
    var ajOb = null;
    if (window.XMLHttpRequest) {
        ajOb = new XMLHttpRequest();
    }
    else {
        ajOb = new ActiveXObject("Microsoft.XMLHTTP");
    }
    return ajOb;
}

function votar_noticia(puntos, idarticulo){
    var ajaxReq = ajaxObject();
    //ajaxReq.open("get", url_base+"/backend/votar_articulo.php?p=" + puntos + "&id=" + idarticulo); // url_base lo utilizo para probar en local. Luego habrá que quitarlo... comprobarlo
	ajaxReq.open("get", "/backend/votar_articulo.php?p=" + puntos + "&id=" + idarticulo); // url_base lo utilizo para probar en local. Luego habrá que quitarlo... comprobarlo
    ajaxReq.onreadystatechange = function(){
        if (ajaxReq.readyState == 4) {
            if (ajaxReq.responseText) {
                gracias = "<div class=label>Gracias por votar</div>";
                document.getElementById('votar_estrellas').innerHTML = gracias;
                get_votos_noticia(idarticulo);
            }
        }
    };
    ajaxReq.send(null);
}

function get_votos_noticia(idarticulo){
    var ajaxReq = ajaxObject();
    //ajaxReq.open("get", url_base+"/backend/votos_articulo.php?id=" + idarticulo); // url_base lo utilizo para probar en local. Luego habrá que quitarlo... comprobarlo
	ajaxReq.open("get", "/backend/votos_articulo.php?id=" + idarticulo); // url_base lo utilizo para probar en local. Luego habrá que quitarlo... comprobarlo
    ajaxReq.onreadystatechange = function(){
        if (ajaxReq.readyState == 4) {
            if (ajaxReq.responseText) {
                datos = ajaxReq.responseText.split(";");
                var numvotos = datos[0];
                var mediavotos = datos[1].split(".");
                
                if (numvotos == 1) {
                    txt = "<div class=label>" + numvotos + " voto</div>";
                }
                else {
                    txt = "<div class=label>" + numvotos + " votos</div>";
                }
                
                for (i = 0; i < mediavotos[0]; i++) {
                    txt += "<img src=\"/img/star_on.gif\" alt=\"" + i + " votos\" />";
                }
                /*if (mediavotos[1] > 49) {
                    txt += "<img src=\"/img/star_med.gif\" alt=\"" + mediavotos[0] + " votos\" />";
                }*/
                document.getElementById('votos_estrellas').innerHTML = txt;
            }
        }
    };
    ajaxReq.send(null);
}

/*function getNumComentarios(idarticulo){
    var ajaxReq = ajaxObject();
    //ajaxReq.open("get", url_base+"/backend/num_comentarios.php?id=" + idarticulo); // url_base lo utilizo para probar en local. Luego habrá que quitarlo... comprobarlo
	ajaxReq.open("get", "/backend/num_comentarios.php?id=" + idarticulo); // url_base lo utilizo para probar en local. Luego habrá que quitarlo... comprobarlo
    ajaxReq.onreadystatechange = function(){
        if (ajaxReq.readyState == 4) {
            if (ajaxReq.responseText) {
                document.getElementById('numcomentarios').innerHTML = '('+ajaxReq.responseText+')';
            }
        }
    };
    ajaxReq.send(null);
}*/


var formatoFecha = 'dd/mm/yyyy'; // Formato de fecha que vamos a utilizar
var arrMeses = Array("Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre");

// Función de validación de email
function emailValido(valor){
    var EmailOk = true;
    var AtSym = valor.indexOf('@');
    var Period = valor.lastIndexOf('.');
    var Space = valor.indexOf(' ');
    var Length = valor.length - 1;
    if ((AtSym < 1) || (Period <= AtSym + 1) || (Period == Length) || (Space != -1)) {
        EmailOk = false;
    }
    return EmailOk;
}

function dniValido(valor){
    var DNIok = true;
    exp_reg = /^[0-9]{8}[a-zA-Z]{1}$/;
    if (exp_reg.test(valor) == false) 
        DNIok = false;
    else {
        numeros = valor.substring(0, 8);
        letra = valor[8];
        letra2 = letraDNI(numeros);
        if (letra.toUpperCase() != letra2.toUpperCase()) 
            DNIok = false;
    }
    return DNIok;
}

function letraDNI(dni){
    cadena = "TRWAGMYFPDXBNJZSQVHLCKET";
    posicion = dni % 23;
    l = cadena.substring(posicion, posicion + 1);
    return l;
}


// Función de validación de fecha
function fechaValida(valor){
    var formatoFechaReg = formatoFecha;
    formatoFechaReg = formatoFechaReg.replace('dd', '([0-2][0-9]|3[0-1])');
    formatoFechaReg = formatoFechaReg.replace('mm', '(0[0-9]|1[0-2])');
    formatoFechaReg = formatoFechaReg.replace(/y/g, '[0-9]');
    formatoFechaReg = "^" + formatoFechaReg + "$";
    var ExpReg = new RegExp(formatoFechaReg);
    var fechaOK = ExpReg.test(valor);
    return fechaOK;
}

// Función de validación de fotos
function fotoValida(valor){
    var formatoFoto = "^(.*)(\\\\|/)[\\w:/_-]+\\.(jpeg|jpg|gif)$";
    var ExpRegFoto = new RegExp(formatoFoto, "i");
    var fotoOK = ExpRegFoto.test(valor);
    return fotoOK;
}

// Función de validación de videos
function videoValido(valor){
    var formatoVideo = "^(.*)(\\\\|/)[\\w:/_-]+\\.(wmv|avi|mov)$";
    var ExpRegVideo = new RegExp(formatoVideo, "i");
    var videoOK = ExpRegVideo.test(valor);
    return videoOK;
}

function checkForm(frm){
    for (i = 0; i < frm.length; i++) {
        campoForm = frm.elements[i];
        if (campoForm.disabled == false) {
            var datosCheck = campoForm.id.split('00');
            texto_explicativo = "";
            if (datosCheck[2]) 
                texto_explicativo = datosCheck[2];
            if (datosCheck[0].indexOf('r') != -1) {
                if (campoForm.value == "") {
                    alert('No has rellenado el campo ' + datosCheck[1].replace('_',' ','g'));
                    campoForm.focus();
                    return false;
                }
            }
            if (datosCheck[0].indexOf('numero') != -1) {
                if (isNaN(campoForm.value)) {
                    alert('El campo ' + datosCheck[1] + ' tiene que ser numérico.' + texto_explicativo);
                    campoForm.focus();
                    return false;
                }
            }
            if (datosCheck[0].indexOf('dni') != -1) {
                if (!dniValido(campoForm.value)) {
                    alert('El DNI es incorrecto');
                    campoForm.focus();
                    return false;
                }
            }
            if (datosCheck[0].indexOf('email') != -1) {
                if (!emailValido(campoForm.value)) {
                    alert('El campo ' + datosCheck[1] + ' tiene que ser un email');
                    campoForm.focus();
                    return false;
                }
            }
            if ((datosCheck[0].indexOf('fecha') != -1) && (campoForm.value != "")) {
                if (!fechaValida(campoForm.value)) {
                    alert('El formato del campo ' + datosCheck[1] + ' no es válido');
                    campoForm.focus();
                    return false;
                }
            }
            if (datosCheck[0].indexOf('checkbox') != -1) {
                if (campoForm.checked == false) {
                    alert('No has rellenado el campo ' + datosCheck[1]);
                    return false;
                }
            }
            if (datosCheck[0].indexOf('radio') != -1) {
                var radioCheck = 0;
                eval('var radioElemento = frm.' + campoForm.name);
                for (j = 0; j < radioElemento.length; j++) {
                    if (radioElemento[j].checked) {
                        radioCheck = 1;
                        break;
                    }
                }
                if (radioCheck == 0) {
                    alert('No has rellenado el campo ' + datosCheck[1]);
                    return false;
                }
            }
            if (datosCheck[0].indexOf('select') != -1) {
                if (campoForm.selectedIndex == 0) {
                    alert('No has rellenado el campo ' + datosCheck[1]);
                    campoForm.focus();
                    return false;
                }
            }
            if (datosCheck[0].indexOf('selectMultiple') != -1) {
                seleccion = 0
                for (j = 1; j < campoForm.length; j++) {
                    if (campoForm.options[j].selected == true) 
                        seleccion = 1
                }
                if (seleccion == 0) {
                    alert('No has rellenado el campo ' + datosCheck[1]);
                    return false;
                }
            }
            var expReg = /[^A-Za-z0-9ñÑáéíóúÁÉÍÓÚüÜ_\s\¿\?\¡\!\<\>\.\,\:\;\(\)\@\#\$\€\%\&\\\/\*\=\+\-\{\}\[\]\ç\º\ª]/i;
            if (datosCheck[0].indexOf('parsear') != -1) {
                if (expReg.test(campoForm.value)) {
                    alert('El campo ' + datosCheck[1] + ' no es válido\n');
                    campoForm.focus();
                    return false;
                }
            }
            if (datosCheck[0].indexOf('min') != -1) {
                posicion = datosCheck[0].indexOf('min') + 3;
                limite = "0";
                while ((!isNaN(datosCheck[0].substring(posicion, posicion + 1))) && (posicion < datosCheck[0].length)) {
                    limite = limite + datosCheck[0].substring(posicion, posicion + 1);
                    posicion = posicion + 1;
                }
                limite = parseInt(limite, 10);
                if (campoForm.value.length < limite) {
                    alert('El campo ' + datosCheck[1] + ' tiene que tener al menos ' + limite + ' caracteres\n');
                    campoForm.focus();
                    return false;
                }
            }
            if (datosCheck[0].indexOf('max') != -1) {
                posicion = datosCheck[0].indexOf('max') + 3;
                limite = "0";
                while ((!isNaN(datosCheck[0].substring(posicion, posicion + 1))) && (posicion < datosCheck[0].length)) {
                    limite = limite + datosCheck[0].substring(posicion, posicion + 1);
                    posicion = posicion + 1;
                }
                limite = parseInt(limite, 10);
                if (campoForm.value.length > limite) {
                    alert('El campo ' + datosCheck[1] + ' tiene que como máximo ' + limite + ' caracteres\n');
                    campoForm.focus();
                    return false;
                }
            }
            if (datosCheck[0].indexOf('foto') != -1) {
                if ((campoForm.value != "") && !fotoValida(campoForm.value)) {
                    alert('El formato de la foto no es correcta. Por favor, verifica que es un JPEG o un GIF o que el nombre no tiene espacios, acentos o caracteres extraños.');
                    campoForm.focus();
                    return false;
                }
            }
            if (datosCheck[0].indexOf('video') != -1) {
                if ((campoForm.value != "") && !videoValido(campoForm.value)) {
                    alert('El formato del vídeo no es correcto. Por favor, verifica que es un WMV o un AVI o un MOV o que el nombre no tiene espacios, acentos o caracteres extraños.');
                    campoForm.focus();
                    return false;
                }
            }
            if (datosCheck[0].indexOf('acepto') != -1) {
                if (campoForm.checked == false) {
                    alert('Te rogamos que leas y aceptes las condiciones de uso antes de continuar');
                    return false;
                }
            }
            if (datosCheck[0].indexOf('precio') != -1) {
                if ((campoForm.value != "") && !precioValido(campoForm.value)) {
                    alert('El formato del precio no es correcto. El formato correcto es 1000,11.');
                    campoForm.focus();
                    return false;
                }
            }
        }
    }
    return true;
}


function enviar(frm){
    return checkForm(frm);
}


function enviarEquipo(){
    var frm = document.frmonceideal;
    var esquema = frm.esquema.value;
    //alert(esquema);
    if (esquema == '442') {
        if (frm.DF1_442.value == frm.DF2_442.value || frm.DF1_442.value == frm.DF3_442.value || frm.DF1_442.value == frm.DF4_442.value || frm.DF2_442.value == frm.DF3_442.value || frm.DF2_442.value == frm.DF4_442.value || frm.DF3_442.value == frm.DF4_442.value) {
            alert("hay defensas repetidos");
            return;
        }
        if (frm.M1_442.value == frm.M2_442.value || frm.M1_442.value == frm.M3_442.value || frm.M1_442.value == frm.M4_442.value || frm.M2_442.value == frm.M3_442.value || frm.M2_442.value == frm.M4_442.value || frm.M3_442.value == frm.M4_442.value) {
            alert("hay medios repetidos");
            return;
        }
        if (frm.DL1_442.value == frm.DL2_442.value) {
            alert("hay delanteros repetidos");
            return;
        }
    }
    else 
        if (esquema == '451') {
            if (frm.DF1_451.value == frm.DF2_451.value || frm.DF1_451.value == frm.DF3_451.value || frm.DF1_451.value == frm.DF4_451.value || frm.DF2_451.value == frm.DF3_451.value || frm.DF2_451.value == frm.DF4_451.value || frm.DF3_451.value == frm.DF4_451.value) {
                alert("hay defensas repetidos");
                return;
            }
            if (frm.M1_451.value == frm.M2_451.value || frm.M1_451.value == frm.M3_451.value || frm.M1_451.value == frm.M4_451.value || frm.M1_451.value == frm.M5_451.value || frm.M2_451.value == frm.M3_451.value || frm.M2_451.value == frm.M4_451.value || frm.M2_451.value == frm.M5_451.value || frm.M3_451.value == frm.M4_451.value || frm.M3_451.value == frm.M5_451.value) {
                alert("hay medios repetidos");
                return;
            }
        }
        else 
            if (esquema == '433') {
                if (frm.DF1_433.value == frm.DF2_433.value || frm.DF1_433.value == frm.DF3_433.value || frm.DF1_433.value == frm.DF4_433.value || frm.DF2_433.value == frm.DF3_433.value || frm.DF2_433.value == frm.DF4_433.value || frm.DF3_433.value == frm.DF4_433.value) {
                    alert("hay defensas repetidos");
                    return;
                }
                if (frm.M1_433.value == frm.M2_433.value || frm.M1_433.value == frm.M3_433.value || frm.M2_433.value == frm.M3_433.value) {
                    alert("hay medios repetidos");
                    return;
                }
                if (frm.DL1_433.value == frm.DL2_433.value || frm.DL1_433.value == frm.DL3_433.value || frm.DL2_433.value == frm.DL3_433.value) {
                    alert("hay delanteros repetidos");
                    return;
                }
            }
    frm.accion.value = 'enviaronceideal';
    frm.submit();
    
}	
function cambiaEsquema(esquema) {
	var frm = document.frmonceideal;
	if(esquema == '442' ){
			frm.esquema.value = '442';	
			document.getElementById("esquema442").style.display = 'block';	  	
		  document.getElementById("esquema451").style.display = 'none';	
		  document.getElementById("esquema433").style.display = 'none';
	}else if(esquema =='451'){
			frm.esquema.value = '451';
			document.getElementById("esquema442").style.display = 'none';	  	
		  document.getElementById("esquema451").style.display = 'block';	
		  document.getElementById("esquema433").style.display = 'none';
	}else{
			frm.esquema.value = '433';
			document.getElementById("esquema442").style.display = 'none';	  	
		  document.getElementById("esquema451").style.display = 'none';	
		  document.getElementById("esquema433").style.display = 'block';
	}	  
}

function nuevoenlace_destacado(){
    var li = document.createElement('li');
	li.style.listStyle="none";
    var numenlaces = document.getElementById('numenlaces').value;
    numenlaces++;
    document.getElementById('numenlaces').value = numenlaces;
	var html = '<input type="text" id="url_enlace[' + numenlaces + ']" name="url_enlace[' + numenlaces + ']" style="width:200px;" value="Url del enlace" onclick="if (this.value==\'Url del enlace\') this.value=\'\';">';
	html += '&nbsp;<input type="text" id="titulo_enlace[' + numenlaces + ']" name="titulo_enlace[' + numenlaces + ']" style="width:200px;" value="Título del enlace" onclick="if (this.value==\'Título del enlace\') this.value=\'\';">';
	html += '&nbsp;<a href="javascript:eliminarenlace_destacado(' + numenlaces + ');"><img src="'+url_base+'/img/borrar.png" style="vertical-align:middle;" border="0" alt="Eliminar"></a>';
	li.innerHTML = html;
    li.setAttribute('id', 'enlace' + numenlaces);
    document.getElementById('lista_enlaces').appendChild(li);
}

function eliminarenlace_destacado(id){
	var numenlaces = document.getElementById('numenlaces').value;
    numenlaces--;
    document.getElementById('numenlaces').value = numenlaces;
    var li = document.getElementById('enlace' + id);
    var ul = li.parentNode;
    ul.removeChild(li);
}

function eliminar_imagen_destacado(id_destacado,imagen){
    if (confirm("¿Seguro que deseas eliminar la imagen?"))
    {
    	$.ajax({
			   async:true,
			   type: "POST",
			   url:"ajax.php",
			   data:"comando=eliminar_imagen_destacado&id_destacado="+id_destacado+"&imagen="+imagen,
			   success:respuesta_eliminar_imagen,
			   timeout:4000
		}); 
    }
    return false;
}

function respuesta_eliminar_imagen(datos)
{
	$('#contenedor_imagen').hide("fast");
}

/**
 * Carga los elementos de estadisticas (nielsen y gAnalytics)
 */
function recargarElementos() {
	recargarNielsen();
	recargarGoogleAnalytics();
	recargarPubli();
}

/**
 * Carga los elementos de estadisticas (gAnalytics)
 */
function recargarGoogleAnalytics() {
	_gaq.push(['_trackPageview']);
}

/**
 * Carga los elementos de estadisticas (nielsen)
 */
function recargarNielsen() {
	var _rsUA = navigator.appName + " " + navigator.appVersion;
	var _rsRUA = navigator.userAgent;
	var _rsWS = window.screen;
	var _rsBV = navigator.appVersion.substring(0, 1);
	var _rsNN = (_rsUA.indexOf('Netscape'));
	var _rsMC = (_rsUA.indexOf('Mac'));
	var _rsIE = (_rsUA.indexOf('MSIE'));
	var _rsOP = (_rsRUA.indexOf('Opera'));
	var _rsIEV = (parseInt(_rsUA.substr(_rsIE + 5)));
	var _rsRP = escape(document.referrer);
	var _rsSR;
	var _rsCD;
	var _rsLG;
	var _rsJE;
	var _rsCK;
	var _rsTZ;
	var _rsCT;
	var _rsHP;
	var _rsTL;
	var _rsSW;
	var _rsSH;
	var _rsFL;
	var _rsQT;
	var _rsRE;
	var _rsWM;
	var _rsJJ;
	var _rsAC;
	if (_rsMP == 0) {
		return;
	}
	_rsJE = (navigator.javaEnabled() == true) ? "y" : "n";
	if (_rsDT == 1) {
		_rsTL = escape(document.title);
	}
	if ((_rsIE > 0) || ((_rsNN != -1) && (_rsBV >= 5))) {
		_rsCK = (navigator.cookieEnabled == true) ? "y" : "n";
	}
	if ((_rsIE >= 0) && (_rsIEV >= 5) && (_rsMC == -1) && (_rsOP == -1)) {
		document.body.addBehavior("#default#clientCaps");
		_rsCT = document.body.connectionType;
		document.body.addBehavior("#default#homePage");
		_rsHP = (document.body.isHomePage(location.href)) ? "y" : "n";
	}
	var _rsD = new Date();
	_rsTZ = _rsD.getTimezoneOffset() / -60;
	if ((typeof (_rsWS) != "undefined") && (_rsWS != null)) {
		_rsSW = _rsWS.width;
		_rsSH = _rsWS.height;
		_rsCD = _rsWS.colorDepth;
		_rsSR = _rsSW + 'x' + _rsSH;
		if ((_rsNN != -1) && (_rsBV >= 4)) {
			_rsCD = _rsWS.pixelDepth;
		}
	}
	if ((_rsNN != -1) && (_rsBV >= 4) || (_rsOP >= 0)) {
		_rsLG = navigator.language;
	}
	if ((_rsIE != -1) && (_rsBV >= 4) && (_rsOP == -1)) {
		_rsLG = navigator.userLanguage;
	}
	var _rsPlugins = _rsPluginDetect();
	var _rsPR = "";
	_rsPR = '<img src="';
	_rsPR = _rsPR + _rsND + 'cgi-bin/m?rnd=' + (new Date()).getTime();
	_rsPR = _rsPR + '&ci=' + _rsCI;
	_rsPR = _rsPR + '&cg=' + escape(_rsCG);
	_rsPR = _rsPR + '&cc=' + _rsCC;
	if (_rsSR != null) {
		_rsPR = _rsPR + '&sr=' + _rsSR;
	}
	if (_rsCD != null) {
		_rsPR = _rsPR + '&cd=' + _rsCD;
	}
	if (_rsLG != null) {
		_rsPR = _rsPR + '&lg=' + _rsLG;
	}
	if (_rsJE != null) {
		_rsPR = _rsPR + '&je=' + _rsJE;
	}
	if (_rsCK != null) {
		_rsPR = _rsPR + '&ck=' + _rsCK;
	}
	if (_rsTZ != null) {
		_rsPR = _rsPR + '&tz=' + _rsTZ;
	}
	if (_rsCT != null) {
		_rsPR = _rsPR + '&ct=' + _rsCT;
	}
	if (_rsHP != null) {
		_rsPR = _rsPR + '&hp=' + _rsHP;
	}
	if (_rsTL != null) {
		_rsPR = _rsPR + '&tl=' + _rsTL;
	}
	if (_rsUT == 1) {
		if (_rsC0 != null) {
			_rsPR = _rsPR + '&c0=' + escape(_rsC0);
		}
		if (_rsC1 != null) {
			_rsPR = _rsPR + '&c1=' + escape(_rsC1);
		}
		if (_rsC2 != null) {
			_rsPR = _rsPR + '&c2=' + escape(_rsC2);
		}
		if (_rsC3 != null) {
			_rsPR = _rsPR + '&c3=' + escape(_rsC3);
		}
		if (_rsC4 != null) {
			_rsPR = _rsPR + '&c4=' + escape(_rsC4);
		}
		if (_rsC5 != null) {
			_rsPR = _rsPR + '&c5=' + escape(_rsC5);
		}
		if (_rsC6 != null) {
			_rsPR = _rsPR + '&c6=' + escape(_rsC6);
		}
		if (_rsC7 != null) {
			_rsPR = _rsPR + '&c7=' + escape(_rsC7);
		}
		if (_rsC8 != null) {
			_rsPR = _rsPR + '&c8=' + escape(_rsC8);
		}
		if (_rsC9 != null) {
			_rsPR = _rsPR + '&c9=' + escape(_rsC9);
		}
	}
	if (_rsPlugins['FL'] != null) {
		_rsPR = _rsPR + '&fl=' + _rsPlugins['FL'];
	}
	if (_rsPlugins['QT'] != null) {
		_rsPR = _rsPR + '&qt=' + _rsPlugins['QT'];
	}
	if (_rsPlugins['RE'] != null) {
		_rsPR = _rsPR + '&re=' + _rsPlugins['RE'];
	}
	if (_rsPlugins['WM'] != null) {
		_rsPR = _rsPR + '&wm=' + _rsPlugins['WM'];
	}
	if (_rsPlugins['JJ'] != null) {
		_rsPR = _rsPR + '&jj=' + _rsPlugins['JJ'];
	}
	if (_rsPlugins['AC'] != null) {
		_rsPR = _rsPR + '&ac=' + _rsPlugins['AC'];
	}
	_rsPR = _rsPR + '&si=' + _rsSI;
	_rsPR = _rsPR + '&rp=' + _rsRP;
	if (_rsIP == 1) {
		_rsPR = _rsPR + '" style="visibility:hidden;position:absolute;left:0px;top:0px;z-index:-1';
	}
	_rsPR = _rsPR + '" width="1" height="1" alt=""/>';
	$(_rsPR).appendTo(document.body);
}

/**
 * Carga los elementos de la publi
 */
function recargarPubli() {
  $("#frame_mega").attr({
	src: "http://segundab.futboldecantabria.com/megabanner.html"
  });
  $("#frame_boton_superior").attr({
	src: "http://segundab.futboldecantabria.com/boton_superior.html"
  });
  $("#frame_boton_inferior").attr({
	src: "http://segundab.futboldecantabria.com/boton_inferior.html"
  });
  $("#frame_robapaginas").attr({
	src: "http://segundab.futboldecantabria.com/robapaginas.html"
  });
  return false;
}
