function fotos(img,txt,vinculo,w,h)
{	var im,texto;
	if (vinculo=="")
	{	texto=txt;	
		im="<img src='"+img+"' width='88' height='56' name='imagen' onMouseOver='makevisible(this,0.2)' onMouseOut='makevisible(this,1)' border='0'>";
	}
	else
	{	texto="<a href="+vinculo+" class='rojo10'>"+txt+"</a>";	
		im="<a href=javascript:NewWindow('"+vinculo+"','name','"+w+"','"+h+"','no','no');><img src='"+img+"' width='88' height='56' name='imagen' onMouseOver='makevisible(this,0.2)' onMouseOut='makevisible(this,1)' border='0'></a>";
	}
	document.write("<table width='111' border='0' cellspacing='0' cellpadding='0'>");
    document.write("<tr>");
	document.write("<td align='center' valign='top'>");
	document.write("<table width='100' height='72' border='0' cellpadding='0' cellspacing='0'>");
	document.write("<tr>");
	document.write("<td align='center' valign='middle' background='images/obras.jpg'>"+im+"</td>");
	document.write("</tr>");
	document.write("</table>");
	document.write("</td>");
	document.write("</tr>");
	document.write("<tr>");
    document.write("<td align='center' class='rojo10' height='24'>"+texto+"</td>");
	document.write("</tr>");
	document.write("</table>");
}

function high(which2)
{	theobject=which2;
	highlighting=setInterval("highlightit(theobject)",50);	
}

function low(which2)
{	clearInterval(highlighting);
	which2.filters.alpha.opacity=50;
}

function highlightit(cur2)
{	if(cur2.filters.alpha.opacity<100)
		cur2.filters.alpha.opacity+=5
	else if(window.highlighting)
		clearInterval(highlighting)
}

var win = null;
function NewWindow(mypage,myname,w,h,scrollbar,resi){
LeftPosition = (screen.width-w)/2
TopPosition = (screen.height-h)/2 
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scrollbar+',resizable='+resi+''
window.open(mypage,myname,settings)
}

function viewFla(ruta,ancho,alto)
{	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='" + ancho + "' height='" +  alto + "'>");
    document.write("<param name='movie' value='" + ruta + "'>");
    document.write("<param name='quality' value='high'>");
    document.write("<embed src='" + ruta + "' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='" + ancho + "' height='" +  alto + "'></embed>");
    document.write("</object>");
}