﻿
//////////////////////////////////////
/////THUMBNAILS DE ALMACENAMIENTO/////
//////////////////////////////////////

//Variables globales
var RutaFlechaOFF = '\'../imagenes/Productos/Deslizadores/flecha.png\''
var RutaFlechaON = '\'../imagenes/Productos/Deslizadores/flecha2.png\''
var RutaImagenFlecha = '../imagenes/Productos/Deslizadores/flecha.png'
var RutaFondoThumbs = '../imagenes/Productos/Deslizadores/fondothumbs.png'
var BTNSubirOFF = '../imagenes/Productos/Deslizadores/subirOFF.jpg'
var BTNBajarOFF = '../imagenes/Productos/Deslizadores/bajarOFF.jpg'
var BTNSubir1 = '../imagenes/Productos/Deslizadores/subir.jpg'
var BTNSubir2 = '../imagenes/Productos/Deslizadores/subir2.jpg'
var BTNBajar1 = '../imagenes/Productos/Deslizadores/bajar.jpg'
var BTNBajar2 = "../imagenes/Productos/Deslizadores/bajar2.jpg"

//////////////////////////////////
//////////////////////////////////
/////                        /////
/////     MENU PRINCIPAL     /////
/////                        /////
//////////////////////////////////
//////////////////////////////////

//Actulizar la botonera
function Botonera(div){
//Variables de imágenenes

var inicioLink = "index.html"
var inicio1 = "imagenes/Cabecera/botonera/roja-inical/redhome1.png"
var inicio2 = "imagenes/Cabecera/botonera/roja-inical/redhome2.png"

var empresaLink = "empresa.html"
var empresa1 = "imagenes/Cabecera/botonera/roja-inical/redempresa1.png"
var empresa2 = "imagenes/Cabecera/botonera/roja-inical/redempresa2.png"

var productosLink = "productos.html"
var productos1 = "imagenes/Cabecera/botonera/roja-inical/redproductos1.png"
var productos2 = "imagenes/Cabecera/botonera/roja-inical/redproductos2.png"

var noticiasLink = "noticias.html"
var noticias1 = "imagenes/Cabecera/botonera/roja-inical/rednoticias1.png"
var noticias2 = "imagenes/Cabecera/botonera/roja-inical/rednoticias2.png"

var comprarLink = "dondecomprar.html"
var comprar1 = "imagenes/Cabecera/botonera/roja-inical/reddondecomprar1.png"
var comprar2 = "imagenes/Cabecera/botonera/roja-inical/reddondecomprar2.png"

var descargasLink = "descargas.html"
var descargas1 = "imagenes/Cabecera/botonera/roja-inical/reddescargas1.png"
var descargas2 = "imagenes/Cabecera/botonera/roja-inical/reddescargas2.png"

var maniaLink = "differomania.html"
var mania1 = "imagenes/Cabecera/botonera/roja-inical/redmania1.png"
var mania2 = "imagenes/Cabecera/botonera/roja-inical/redmania2.png"

var soporteLink = "soporte.html"
var soporte1 = "imagenes/Cabecera/botonera/roja-inical/soporte1.png"
var soporte2 = "imagenes/Cabecera/botonera/roja-inical/soporte2.png"

var contactarLink = "contactar.html"
var contactar1 = "imagenes/Cabecera/botonera/roja-inical/redcontacto1.png"
var contactar2 = "imagenes/Cabecera/botonera/roja-inical/redcontacto2.png"

var botonera = '';
botonera = '<table width="930" style="height:30px" border="0" cellspacing="0" cellpadding="0">'
botonera += '<tr>'
botonera += '<td width="45">'
botonera += '<a href="' + inicioLink + '">' + '<img src="' +inicio1+ '" alt="Ir a Inicio" width="45" height="30" onmouseover="javascript:RolloverImagen(' +  '\'BTNinicio\'' + ',' + '\'' + inicio2 + '\'' +');" onmouseout="javascript:RolloverImagen(' +  '\'BTNinicio\'' + ',' + '\'' + inicio1 + '\'' +');" border="0" class="CursorMano" id="BTNinicio">' + '</a>'
botonera += '</td>'
botonera += '<td width="90">'
botonera += '<a href="' + empresaLink + '">' + '<img src="' +empresa1+ '" alt="Ir a Empresa" width="90" height="30" onmouseover="javascript:RolloverImagen(' +  '\'BTNEmpresa\'' + ',' + '\'' + empresa2 + '\'' +');" onmouseout="javascript:RolloverImagen(' +  '\'BTNEmpresa\'' + ',' + '\'' + empresa1 + '\'' +');" border="0" class="CursorMano" id="BTNEmpresa">' + '</a>'
botonera += '</td>'
botonera += '<td width="120">'
botonera += '<a href="' + productosLink + '">' + '<img src="' +productos1+ '" alt="Ir a Productos" width="120" height="30" onmouseover="javascript:RolloverImagen(' +  '\'BTNProductos\'' + ',' + '\'' + productos2 + '\'' +');" onmouseout="javascript:RolloverImagen(' +  '\'BTNProductos\'' + ',' + '\'' + productos1 + '\'' +');" border="0" class="CursorMano" id="BTNProductos">' + '</a>'
botonera += '</td>'
botonera += '<td width="120">'
botonera += '<a href="' + noticiasLink + '">' + '<img src="' +noticias1+ '" alt="Ir a Noticias" width="120" height="30" onmouseover="javascript:RolloverImagen(' +  '\'BTNNoticias\'' + ',' + '\'' + noticias2 + '\'' +');" onmouseout="javascript:RolloverImagen(' +  '\'BTNNoticias\'' + ',' + '\'' + noticias1 + '\'' +');" border="0" class="CursorMano" id="BTNNoticias">' + '</a>'
botonera += '</td>'
botonera += '<td width="130">'
botonera += '<a href="' + comprarLink + '">' + '<img src="' +comprar1+ '" alt="Ir a Donde Comprar" width="130" height="30" onmouseover="javascript:RolloverImagen(' +  '\'BTNComprar\'' + ',' + '\'' + comprar2 + '\'' +');" onmouseout="javascript:RolloverImagen(' +  '\'BTNComprar\'' + ',' + '\'' + comprar1 + '\'' +');" border="0" class="CursorMano" id="BTNComprar">' + '</a>'
botonera += '</td>'
botonera += '<td width="160">'
botonera += '<a href="' + descargasLink + '">' + '<img src="' +descargas1+ '" alt="Ir a Descargas" width="160" height="30" onmouseover="javascript:RolloverImagen(' +  '\'BTNDescargas\'' + ',' + '\'' + descargas2 + '\'' +');" onmouseout="javascript:RolloverImagen(' +  '\'BTNDescargas\'' + ',' + '\'' + descargas1 + '\'' +');" border="0" class="CursorMano" id="BTNDescargas">' + '</a>'
botonera += '</td>'
botonera += '<td width="120">'
botonera += '<a href="' + soporteLink + '">' + '<img src="' +soporte1+ '" alt="Ir a soporte Differo" width="120" height="30" onmouseover="javascript:RolloverImagen(' +  '\'BTNSoporte\'' + ',' + '\'' + soporte2 + '\'' +');" onmouseout="javascript:RolloverImagen(' +  '\'BTNSoporte\'' + ',' + '\'' + soporte1 + '\'' +');" border="0" class="CursorMano" id="BTNSoporte">' + '</a>'
botonera += '</td>'
botonera += '<td width="145">'
botonera += '<a href="' + contactarLink + '">' + '<img src="' +contactar1+ '" alt="Ir a Contacto" width="145" height="30" onmouseover="javascript:RolloverImagen(' +  '\'BTNContacto\'' + ',' + '\'' + contactar2 + '\'' +');" onmouseout="javascript:RolloverImagen(' +  '\'BTNContacto\'' + ',' + '\'' + contactar1 + '\'' +');" border="0" class="CursorMano" id="BTNContacto">' + '</a>'
botonera += '</td>'
botonera += '</tr></table>'

document.getElementById(div).innerHTML = botonera 
}

////////////////////////////////////////////////////
/////BOTONES MENU PRINCIPAL DESDE LOS PRODUCTOS/////
////////////////////////////////////////////////////

//Actulizar la botonera desde las paginas de productos
function BotoneraDesdeProductos(div){
//Variables de imágenenes

var inicioLink = "../index.html"
var inicio1 = "../imagenes/Cabecera/botonera/roja-inical/redhome1.png"
var inicio2 = "../imagenes/Cabecera/botonera/roja-inical/redhome2.png"

var empresaLink = "../empresa.html"
var empresa1 = "../imagenes/Cabecera/botonera/roja-inical/redempresa1.png"
var empresa2 = "../imagenes/Cabecera/botonera/roja-inical/redempresa2.png"

var productosLink = "../productos.html"
var productos1 = "../imagenes/Cabecera/botonera/roja-inical/redproductos1.png"
var productos2 = "../imagenes/Cabecera/botonera/roja-inical/redproductos2.png"

var noticiasLink = "../noticias.html"
var noticias1 = "../imagenes/Cabecera/botonera/roja-inical/rednoticias1.png"
var noticias2 = "../imagenes/Cabecera/botonera/roja-inical/rednoticias2.png"

var comprarLink = "../dondecomprar.html"
var comprar1 = "../imagenes/Cabecera/botonera/roja-inical/reddondecomprar1.png"
var comprar2 = "../imagenes/Cabecera/botonera/roja-inical/reddondecomprar2.png"

var descargasLink = "../descargas.html"
var descargas1 = "../imagenes/Cabecera/botonera/roja-inical/reddescargas1.png"
var descargas2 = "../imagenes/Cabecera/botonera/roja-inical/reddescargas2.png"

var maniaLink = "../differomania.html"
var mania1 = "../imagenes/Cabecera/botonera/roja-inical/redmania1.png"
var mania2 = "../imagenes/Cabecera/botonera/roja-inical/redmania2.png"

var soporteLink = "../soporte.html"
var soporte1 = "../imagenes/Cabecera/botonera/roja-inical/soporte1.png"
var soporte2 = "../imagenes/Cabecera/botonera/roja-inical/soporte2.png"

var contactarLink = "../contactar.html"
var contactar1 = "../imagenes/Cabecera/botonera/roja-inical/redcontacto1.png"
var contactar2 = "../imagenes/Cabecera/botonera/roja-inical/redcontacto2.png"

var botonera = '';
botonera = '<table width="930" style="height:30px" border="0" cellspacing="0" cellpadding="0">'
botonera += '<tr>'
botonera += '<td width="45">'
botonera += '<a href="' + inicioLink + '">' + '<img src="' +inicio1+ '" alt="Ir a Inicio" width="45" height="30" onmouseover="javascript:RolloverImagen(' +  '\'BTNinicio\'' + ',' + '\'' + inicio2 + '\'' +');" onmouseout="javascript:RolloverImagen(' +  '\'BTNinicio\'' + ',' + '\'' + inicio1 + '\'' +');" border="0" class="CursorMano" id="BTNinicio">' + '</a>'
botonera += '</td>'
botonera += '<td width="90">'
botonera += '<a href="' + empresaLink + '">' + '<img src="' +empresa1+ '" alt="Ir a Empresa" width="90" height="30" onmouseover="javascript:RolloverImagen(' +  '\'BTNEmpresa\'' + ',' + '\'' + empresa2 + '\'' +');" onmouseout="javascript:RolloverImagen(' +  '\'BTNEmpresa\'' + ',' + '\'' + empresa1 + '\'' +');" border="0" class="CursorMano" id="BTNEmpresa">' + '</a>'
botonera += '</td>'
botonera += '<td width="120">'
botonera += '<a href="' + productosLink + '">' + '<img src="' +productos1+ '" alt="Ir a Productos" width="120" height="30" onmouseover="javascript:RolloverImagen(' +  '\'BTNProductos\'' + ',' + '\'' + productos2 + '\'' +');" onmouseout="javascript:RolloverImagen(' +  '\'BTNProductos\'' + ',' + '\'' + productos1 + '\'' +');" border="0" class="CursorMano" id="BTNProductos">' + '</a>'
botonera += '</td>'
botonera += '<td width="120">'
botonera += '<a href="' + noticiasLink + '">' + '<img src="' +noticias1+ '" alt="Ir a Noticias" width="120" height="30" onmouseover="javascript:RolloverImagen(' +  '\'BTNNoticias\'' + ',' + '\'' + noticias2 + '\'' +');" onmouseout="javascript:RolloverImagen(' +  '\'BTNNoticias\'' + ',' + '\'' + noticias1 + '\'' +');" border="0" class="CursorMano" id="BTNNoticias">' + '</a>'
botonera += '</td>'
botonera += '<td width="130">'
botonera += '<a href="' + comprarLink + '">' + '<img src="' +comprar1+ '" alt="Ir a Donde Comprar" width="130" height="30" onmouseover="javascript:RolloverImagen(' +  '\'BTNComprar\'' + ',' + '\'' + comprar2 + '\'' +');" onmouseout="javascript:RolloverImagen(' +  '\'BTNComprar\'' + ',' + '\'' + comprar1 + '\'' +');" border="0" class="CursorMano" id="BTNComprar">' + '</a>'
botonera += '</td>'
botonera += '<td width="160">'
botonera += '<a href="' + descargasLink + '">' + '<img src="' +descargas1+ '" alt="Ir a Descargas" width="160" height="30" onmouseover="javascript:RolloverImagen(' +  '\'BTNDescargas\'' + ',' + '\'' + descargas2 + '\'' +');" onmouseout="javascript:RolloverImagen(' +  '\'BTNDescargas\'' + ',' + '\'' + descargas1 + '\'' +');" border="0" class="CursorMano" id="BTNDescargas">' + '</a>'
botonera += '</td>'
botonera += '<td width="120">'
botonera += '<a href="' + soporteLink + '">' + '<img src="' +soporte1+ '" alt="Ir a Differo Mania" width="120" height="30" onmouseover="javascript:RolloverImagen(' +  '\'BTNSoporte\'' + ',' + '\'' + soporte2 + '\'' +');" onmouseout="javascript:RolloverImagen(' +  '\'BTNSoporte\'' + ',' + '\'' + soporte1 + '\'' +');" border="0" class="CursorMano" id="BTNSoporte">' + '</a>'
botonera += '</td>'
botonera += '<td width="145">'
botonera += '<a href="' + contactarLink + '">' + '<img src="' +contactar1+ '" alt="Ir a Contacto" width="145" height="30" onmouseover="javascript:RolloverImagen(' +  '\'BTNContacto\'' + ',' + '\'' + contactar2 + '\'' +');" onmouseout="javascript:RolloverImagen(' +  '\'BTNContacto\'' + ',' + '\'' + contactar1 + '\'' +');" border="0" class="CursorMano" id="BTNContacto">' + '</a>'
botonera += '</td>'
botonera += '</tr></table>'

document.getElementById(div).innerHTML = botonera 
}

//////////////////
/////NOTICIAS/////
//////////////////

function PintarNoticias(div){
	var noticias = ''
	var longitud = BBDDNoticias.length
	//BBDDNoticias.split(";");
	
	try {
		
	for (i=0;i<BBDDNoticias.length;i++){ 
	var	BBDDNoticiasArray = new Array();
	BBDDNoticiasArray = BBDDNoticias[i].split(";");
	noticias += '<br /><div>' + '• ' + BBDDNoticiasArray[0] + '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' //FECHAS
	noticias += '<span class="CalibriNegro30Bold13">' + BBDDNoticiasArray[1] + '</span></div>'; //CABECERAS
	/*noticias += '<span id="span'+ i +'" style="cursor:pointer;" onmouseover="javascript:IluminarTexto(\'span' + i + '\',\'#177900\');" onmouseout="javascript:IluminarTexto(\'span' + i + '\',\'#1e1e1e\');" onclick="javascript:MostrarOcultarDiv(\'noticia' + i + '\');">' + BBDDNoticiasArray[1] + '</span></div>'; //CABECERAS*/
	noticias += '<div id="noticia'+ i +'" class="CapaContenidoNoticias"><span class="CalibriNegro7013">' + BBDDNoticiasArray[2] + '</span></div>'
	} 
	
	document.getElementById(div).innerHTML = noticias
	
	}catch (Err){
	
	document.getElementById(div).innerHTML = 'Las noticias están siendo actualizadas'
	
	}
	
	
}

/////////////////////////
/////NOTAS DE PRENSA/////
/////////////////////////

function PintarPrensa(div){
	var prensa = ''
	var longitud = BBDDPrensa.length
	
	for (i=0;i<BBDDPrensa.length;i++){ 
	var	BBDDPrensaArray = new Array();
	BBDDPrensasArray = BBDDPrensa[i].split(";");
	prensa += '<div class="CalibriNegro30Bold13">' + '• ' + BBDDPrensasArray[0] + '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>' //FECHAS
	prensa += '<div id="noticia'+ i +'" class="CapaContenidoPrensa"><span class="CalibriNegro7013">' + '<a class="linkprensa" href="' + BBDDPrensasArray[2] + '">' + BBDDPrensasArray[1] + '</a></span></div>'
	} 
	
	document.getElementById(div).innerHTML = prensa
}

///////////////////////
/////VALIDADOR W3C/////
///////////////////////

//Actualizar el enlace del validador w3c
function w3cvalidator(div){
	document.getElementById(div).innerHTML = '<a class="w3c" href="http://validator.w3.org/check?uri=referer">W3C: XHTML 1.0 <span class="VerdanaVerde9">V\xE1lido</span> <img src="http://www.differo.es/imagenes/w3cvalidation.jpg" border="0" alt="w3c" width="10" height="8" /></a>'
}

///////////////////////////////////////////////////
/////NOMINACION PARA EL CONGRESO DE WEBMASTERS/////
///////////////////////////////////////////////////

//Incluir la nominación para el congreso de webmasters
function NominacionCongreso(div){
	document.getElementById(div).innerHTML = ''}
