
var actual_seccion = 0;

function graphicsb_data0()
{
    /*---------------------------------------------
    Scroll Bar Images
    ---------------------------------------------*/
	this.up_button = "img/sample2_up.gif";                                          //image path and name only
	this.up_button_roll = "img/sample2_up_roll.gif";                                //image path and name only
	this.down_button = "img/sample2_down.gif";                                      //image path and name only
	this.down_button_roll = "img/sample2_down_roll.gif";                            //image path and name only

	this.slider_tile_bg_style = "background-image:url(img/sample2_slider_bg.gif);"  //image defined as CSS style

	this.bubble_top_cap = "img/sample2_bubble_topcap.gif,2";                        //image path and name, height - (width is automatically set to scroll bar width)
	this.bubble_bottom_cap = "img/sample2_bubble_bottomcap.gif,2";                  //image path and name, height - ""
	this.bubble_center = "img/sample2_bubble_center.gif,7";                         //image path and name, height - ""
	this.bubble_tile_bg_style = "img/sample2_bubble_bg.gif";                        //image path and name only

    /*---------------------------------------------
    Scroll Bar Container and Content
    ---------------------------------------------*/

	this.container_width = 360
	this.container_height = 200

	this.container_bg_color = "";

	this.content_padding = 10;
	this.content_styles = "font-family:Arial;font-weight:normal;font-size:11px; color:##5F5D5C; text-align:justify;";
	this.content_class_name = "texto_scroll";

    /*---------------------------------------------
    Scroll Bar Behaviour and Width
    ---------------------------------------------*/

	this.scroll_bar_width = 17                     //The width of the bar in pixels.
	this.scroll_increment = 20                     //The distance to scroll when clicking the up or down buttons.


	this.allow_hover_scroll = true;                //Auto scroll while hovering over top and bottom buttons.
	this.hover_scroll_delay = 50;                   //Milliseconds (1/1000 second)


	this.use_hand_cursor = true;

}


function graphicsb_data1()
{
    /*---------------------------------------------
    Scroll Bar Images
    ---------------------------------------------*/
	this.up_button = "img/sample2_up.gif";                                          //image path and name only
	this.up_button_roll = "img/sample2_up_roll.gif";                                //image path and name only
	this.down_button = "img/sample2_down.gif";                                      //image path and name only
	this.down_button_roll = "img/sample2_down_roll.gif";                            //image path and name only

	this.slider_tile_bg_style = "background-image:url(../img/sample2_slider_bg.gif);"  //image defined as CSS style

	this.bubble_top_cap = "img/sample2_bubble_topcap.gif,2";                        //image path and name, height - (width is automatically set to scroll bar width)
	this.bubble_bottom_cap = "img/sample2_bubble_bottomcap.gif,2";                  //image path and name, height - ""
	this.bubble_center = "img/sample2_bubble_center.gif,7";                         //image path and name, height - ""
	this.bubble_tile_bg_style = "img/sample2_bubble_bg.gif";                        //image path and name only

    /*---------------------------------------------
    Scroll Bar Container and Content
    ---------------------------------------------*/

	this.container_width  = 360
	this.container_height = 200

	this.container_bg_color = "";

	this.content_padding = 10;
	this.content_styles  = "font-family:Arial;font-weight:normal;font-size:11px; color:##5F5D5C; text-align:justify;";
	this.content_class_name = "texto_scroll";

    /*---------------------------------------------
    Scroll Bar Behaviour and Width
    ---------------------------------------------*/

	this.scroll_bar_width = 17                     //The width of the bar in pixels.
	this.scroll_increment = 20                     //The distance to scroll when clicking the up or down buttons.


	this.allow_hover_scroll = true;                //Auto scroll while hovering over top and bottom buttons.
	this.hover_scroll_delay = 50;                   //Milliseconds (1/1000 second)


	this.use_hand_cursor = true;

}

function graphicsb_data2()
{
    /*---------------------------------------------
    Scroll Bar Images
    ---------------------------------------------*/
	this.up_button = "img/sample2_up.gif";                                          //image path and name only
	this.up_button_roll = "img/sample2_up_roll.gif";                                //image path and name only
	this.down_button = "img/sample2_down.gif";                                      //image path and name only
	this.down_button_roll = "img/sample2_down_roll.gif";                            //image path and name only

	this.slider_tile_bg_style = "background-image:url(../img/sample2_slider_bg.gif);"  //image defined as CSS style

	this.bubble_top_cap = "img/sample2_bubble_topcap.gif,2";                        //image path and name, height - (width is automatically set to scroll bar width)
	this.bubble_bottom_cap = "img/sample2_bubble_bottomcap.gif,2";                  //image path and name, height - ""
	this.bubble_center = "img/sample2_bubble_center.gif,7";                         //image path and name, height - ""
	this.bubble_tile_bg_style = "img/sample2_bubble_bg.gif";                        //image path and name only

    /*---------------------------------------------
    Scroll Bar Container and Content
    ---------------------------------------------*/

	this.container_width = 360
	this.container_height = 200

	this.container_bg_color = "";

	this.content_padding = 10;
	this.content_styles = "font-family:Arial;font-weight:normal;font-size:11px; color:##5F5D5C; text-align:justify";
	this.content_class_name = "texto_scroll";

    /*---------------------------------------------
    Scroll Bar Behaviour and Width
    ---------------------------------------------*/

	this.scroll_bar_width = 17                     //The width of the bar in pixels.
	this.scroll_increment = 20                     //The distance to scroll when clicking the up or down buttons.


	this.allow_hover_scroll = true;                //Auto scroll while hovering over top and bottom buttons.
	this.hover_scroll_delay = 50;                   //Milliseconds (1/1000 second)


	this.use_hand_cursor = true;

}


//marca en negrita la seccion (en el menu) en la que nos encontramos
	function marcar_seccion (nombre){
		if(nombre!="piedra_artificial" && nombre!="escayola" & nombre!="piedra_natural") {
		document.getElementById(nombre).className="negrita";
		document.getElementById('enlace_menu').className="enlaces_menu";
		}
		else document.getElementById('enlace_menu').className="enlaces_menu_peq";
	}
	
	
	
//muestra la subseccion marcada
	var sub_seccion = "calidades";
	function muestra_sub_seccion(nombre){
		//ponemos todas las opciones como deseleccionadas.
		document.getElementById('calidades').className="";
		document.getElementById('trabajos').className="";
		document.getElementById('usos').className="";
		//marcamos la opción seleccionada.
		document.getElementById(nombre).className="negrita";
		
		sub_seccion = nombre;
		

		document.getElementById('texto_calidades').className="no_mostrar";
		document.getElementById('texto_trabajos').className="no_mostrar";
		document.getElementById('texto_usos').className="no_mostrar";
		//marcamos la opción seleccionada.
		nombre = "texto_"+nombre;
		document.getElementById(nombre).className="";
	}



	function checkdata(idioma){
				var em =/^[\w\.]+@(\w+\.)+(\w){2,3}$/;
			 document.contacto.enviar.disabled = true;

			
			 if (document.contacto.nombre.value==""){
					if(idioma=='es')
						mensaje='El campo NOMBRE está vacio. Debes rellenar este campo';
					else
						mensaje='The field NAME is empty.\n  You must fill up this field ';
					alert(mensaje);
					document.contacto.enviar.disabled= false;
					return false;
				}
		
			 	if (document.contacto.mail.value=="" && document.contacto.telefono.value==""){
					if(idioma=='es')
						mensaje="Los campos MAIL y TELÉFONO están vacíos.\n Debes indicar algún medio de contacto";
					else
						mensaje='The fields MAIL and TELEPHONE are empty. \n You must indicate some means of contact';
					
					alert(mensaje);
					document.contacto.enviar.disabled= false;
					return false;
				}	
		
		
				if(document.contacto.mail.value!=""){
					if(idioma=='es')
						mensaje='El formato de la dirección de correo electrónico no es válido.';
					else
						mensaje='The format of the mail direction is not valid .';
					
					if(em.test(document.contacto.mail.value)==false) {
						alert(mensaje);
						document.contacto.enviar.disabled= false;
						return false;
					}				
				}
				
				if (document.contacto.comentario.value==""){
					if(idioma=='es')
						mensaje='El campo OBSERVACIONES está vacío.\nDebes rellenar este campo';
					else
						mensaje='The field observations is empty.\n You must fill up this field';					
					
						alert(mensaje);
						document.contacto.enviar.disabled= false;
						return false;
			  	}	

				return true;
	}
	
	function openBigPhoto(foto) {
		window.open("foto.php?foto="+foto,"ampliacion","top=0,left=0,scrollbars=NO,resizable=yes");
	}