	function makeRequest(url,id) {

					url = url+"?id="+id;
	
					http_request = false;
	
	
					if (window.XMLHttpRequest) { // Mozilla, Safari,...
							http_request = new XMLHttpRequest();
							if (http_request.overrideMimeType) {
									http_request.overrideMimeType('text/xml');
									// Ver nota sobre esta linea al final
							}
					} else if (window.ActiveXObject) { // IE
							try {
									http_request = new ActiveXObject("Msxml2.XMLHTTP");
							} catch (e) {
									try {
											http_request = new ActiveXObject("Microsoft.XMLHTTP");
									} catch (e) {}
							}
					}
	
					if (!http_request) {
							alert('Falla :( No es posible crear una instancia XMLHTTP');
							return false;
					}
	
					http_request.onreadystatechange = alertContents;
					http_request.open('GET', url, true);
					http_request.send(null);
			}
			
			function abrirImagenTrabajos(imagen) {
				document.getElementById('imagen_centro').src = "img/trabajos/med/"+imagen;									
								
				//cambiamos el enlace de la imagen
				document.getElementById('enlace_imagen').href = "img/trabajos/gra/"+imagen;
			}
	
	
			function alertContents() {
	
					if (http_request.readyState == 4) {
							if (http_request.status == 200) {
								var xmldoc = http_request.responseXML;
								
								var titulo_node = xmldoc.getElementsByTagName('titulo').item(0);
								titulo = titulo_node.firstChild.data;
								if(titulo=="#")
									titulo = "";
								document.getElementById('imagen_centro').alt = titulo;
								
								
								document.getElementById('enlace_imagen').title = titulo;																									
								
								var titulo_node = xmldoc.getElementsByTagName('imagen').item(0);
								titulo = titulo_node.firstChild.data;
								if(titulo=="#")
									titulo = "";		
									
								document.getElementById('imagen_centro').src = "img/galeria/med/"+titulo;									
								
								//cambiamos el enlace de la imagen
								document.getElementById('enlace_imagen').href = "img/galeria/gra/"+titulo;																	


								
								

							
							} else {
									alert('Hubo problemas con la petición. ' + http_request.status);
							}
					}
	
			}
			
			
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 = 570
	this.container_height = 395

	this.container_bg_color = "";

	this.content_padding = 0;
	this.content_styles = "  ";
	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;

}			
