/*
 
*/

	function changeImage(image) {
        newImage = "url('thumbnails/index/" + image + "')";
        document.getElementById('site').style.backgroundImage = newImage;
        document.getElementById('site').style.backgroundRepeat = "no-repeat";
      }

$(document).ready(function(){
	$('#cssdropdown li.headlink').hover(
			function() { $('ul', this).css('display', 'block'), $('.title_fondo', document).css('z-index', '10'),
			$('span.main', this).css('background', 'url(img/tab_nav.png)'); },
			function() { $('ul', this).css('display', 'none'), $('.title_fondo', document).css('z-index', '21'),
			$('span.main', this).css('background', 'none'); });
	});

$(document).ready(function(){
	if(document.getElementById('marco_content')==null){
	}
	else{
	var imgh =  document.getElementById('main_image').width;
	document.getElementById('marco_content').style.width = imgh+"px";
	}
});


/*
window.onload = function()
	{
		var lis = document.getElementsByTagName('li');
		for(i = 0; i < lis.length; i++)
		{
			var li = lis[i];
			if (li.className == 'headlink')
			{
				li.onmouseover = function() { this.getElementsByTagName('ul').item(0).style.display = 'block'; }
				li.onmouseout = function() { this.getElementsByTagName('ul').item(0).style.display = 'none'; }
			}
		}
	}
*/

/*$(document).ready(function(){
			var isIE = /*@cc_on!@false;
			alto = document.getElementById("centro_index").offsetHeight;
			alto_total = 110 + alto + 65 + 39;
			if(alto_total>709){
				altura = 709 - alto_total;
			}
			else{
				if(isIE==true){
				altura = "-365px";
				document.getElementById("contenedor_pie").style.marginTop=altura;
				}
				else{
				altura = -65;
				document.getElementById("contenedor_pie").style.marginTop=altura+"px";
				}
			}
			alert(altura);
		});
*/
