function subrayarTexto(id){
		ident = "tit_gra_"+id;
		document.getElementById(ident).className = "titulo_gra texto_blanco_subrayado";
		
		ident = "tit_"+id;
		document.getElementById(ident).className = "texto_verde_subrayado";
	
		
}

function deSubrayarTexto(id){
		ident = "tit_gra_"+id;
		document.getElementById(ident).className = "titulo_gra texto_blanco";
		
		ident = "tit_"+id;
		document.getElementById(ident).className = "texto_verde";
		
		
}

function subrayarTexto2(id){
		ident = "tit_gra_"+id;
		document.getElementById(ident).className = "titulo_med_gra texto_blanco_subrayado";
		
		ident = "tit_"+id;
		document.getElementById(ident).className = "texto_verde_subrayado";
	
		
}

function desubrayarTexto2(id){
		ident = "tit_gra_"+id;
		document.getElementById(ident).className = "titulo_med_gra texto_blanco";
		
		ident = "tit_"+id;
		document.getElementById(ident).className = "texto_verde";
		
		
}


function openBigPhoto(id) {
	num = 	document.getElementById('imagen').value  ;	
	window.open("foto.php?id="+id+"&num="+num,"ampliacion","top=0,left=0,scrollbars=NO,resizable=yes");
}	




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 = 650
	this.container_height = 340

	this.container_bg_color = "";

	this.content_padding = 15;
	this.content_styles = "font-family:Arial;font-weight:normal;font-size:1em; line-height:18px; color:#fff; text-align:justify; ";
	this.content_class_name = "";

    /*---------------------------------------------
    Scroll Bar Behaviour and Width
    ---------------------------------------------*/

	this.scroll_bar_width = 9                     //The width of the bar in pixels.
	this.scroll_increment = 10                     //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 = 70;                   //Milliseconds (1/1000 second)


	this.use_hand_cursor = true;

}

function openBigPhoto2(id) {
	num = 	document.getElementById('imagen').value  ;	
	window.open("foto2.php?id="+id+"&num="+num,"ampliacion","top=0,left=0,scrollbars=NO,resizable=yes");
}	


function subrayarTexto3(id){
		ident = "tit_gra_"+id;
		document.getElementById(ident).className = "titulo_gra texto_blanco_subrayado";
		
		ident = "tit_"+id;
		document.getElementById(ident).className = "texto_naranja_subrayado";
	
		
}

function deSubrayarTexto3(id){
		ident = "tit_gra_"+id;
		document.getElementById(ident).className = "titulo_gra texto_blanco";
		
		ident = "tit_"+id;
		document.getElementById(ident).className = "texto_naranja";
		
		
}



function openBigPhoto3(id) {
	num = 	document.getElementById('imagen').value  ;	
	window.open("foto3.php?id="+id+"&num="+num,"ampliacion","top=0,left=0,scrollbars=NO,resizable=yes");
}

function openBigPhoto4(id) {
	num = 	document.getElementById('imagen').value  ;	
	window.open("foto4.php?id="+id+"&num="+num,"ampliacion","top=0,left=0,scrollbars=NO,resizable=yes");
}


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 = 450
	this.container_height = 370

	this.container_bg_color = "";

	this.content_padding = 15;
	this.content_styles = "font-family:Arial;font-weight:normal;font-size:1em; line-height:18px; color:#fff; text-align:justify; ";
	this.content_class_name = "";

    /*---------------------------------------------
    Scroll Bar Behaviour and Width
    ---------------------------------------------*/

	this.scroll_bar_width = 9                     //The width of the bar in pixels.
	this.scroll_increment = 10                     //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 = 70;                   //Milliseconds (1/1000 second)


	this.use_hand_cursor = true;

}

function graphicsb_data3()
{
    /*---------------------------------------------
    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 = 218;
	this.container_height = 260;

	this.container_bg_color = "";

	this.content_padding = 0;
	this.content_styles = "font-family:Arial;font-weight:normal;font-size:1em; line-height:18px; color:#fff; text-align:justify; ";
	this.content_class_name = "";

    /*---------------------------------------------
    Scroll Bar Behaviour and Width
    ---------------------------------------------*/

	this.scroll_bar_width = 9                     //The width of the bar in pixels.
	this.scroll_increment = 10                     //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 = 70;                   //Milliseconds (1/1000 second)


	this.use_hand_cursor = true;

}

function mostrarBloque(num){
		id = "respuesta_"+num;
		clase = document.getElementById(id).className;
		if(clase=="noMostrar"){
			 document.getElementById(id).className =  "bloque_respuesta";
			 id = "preg_"+num;
			 document.getElementById(id).className =  "enlace_preg_sel";			 
		}
		else{
			 document.getElementById(id).className =  "noMostrar";
			 id = "preg_"+num;
			 document.getElementById(id).className =  "enlace_preg";			 
		}
		
}

/* Función para mostrar/ocultar capas como política de privacidad o promociones en google earth*/
	 var mostrado;
	 function muestrabloque(nombreCapa){
	 	if (mostrado == 0 || mostrado == undefined){
			document.getElementById(nombreCapa).style.display="block";
			mostrado = 1;}
	   else{
	   		document.getElementById(nombreCapa).style.display="none";
			mostrado = 0;}
	   }