// funciones javascript

function changestyle(num) {
	document.getElementById("estilos_id").href = "estilos"+num+".css";
}

function CreateControlFlash(divid, objectid, width, height, url, mode) {
	var d = document.getElementById(divid);
	var strHTML = '<object id="' + objectid + '" type="application/x-shockwave-flash" data="' + url + '" width="' + width + '" height="' + height + '">';
	strHTML = strHTML + '<param name="movie" value="' + url + '" />';
	if(mode=='1') { strHTML = strHTML + '<param name="wmode" value="transparent" />'; }
	strHTML = strHTML + '<a href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&amp;Lang=Spanish&amp;P5_Language=Spanish"><img src="flash/noflash.gif" border="0" alt="no tiene flash" /></a>';
	strHTML = strHTML + '</object>';
	d.innerHTML = strHTML;
}

function showpic(id) {
	document.getElementById("imggaleria").src = "images/" + id + ".jpg";
	document.getElementById("divgaleria").style.display = "block";
}

function hidepic() {
	document.getElementById("imggaleria").src = "images/blank.gif";
	document.getElementById("divgaleria").style.display = "none";
}

function showpic2(id) {
	document.getElementById("imggaleria2").src = "images/" + id + ".jpg";
	document.getElementById("divgaleria2").style.display = "block";
}

function hidepic2() {
	document.getElementById("imggaleria2").src = "images/blank.gif";
	document.getElementById("divgaleria2").style.display = "none";
}