function MM_reloadPage(init){if(init==true)with(navigator){if((appName=="Netscape")&&(parseInt(appVersion)==4)){document.MM_pgW=innerWidth;document.MM_pgH=innerHeight;onresize=MM_reloadPage;}}
else if(innerWidth!=document.MM_pgW||innerHeight!=document.MM_pgH)location.reload();}
MM_reloadPage(true);function NewWindoweng(mypage,myname,w,h,al,an,scroll){var winl=(screen.width-491)/2;var wint=(screen.height-405)/2;winprops='top='+wint+',left='+winl+', width=491,height=405, scrollbars='+scroll+',resizable'
win=window.open("http://www.sananton.com.es/eng/contactos.asp","Contac us",winprops)
if(parseInt(navigator.appVersion)>=4){win.window.focus();}}
function NewWindowesp(mypage,myname,w,h,al,an,scroll){var winl=(screen.width-491)/2;var wint=(screen.height-405)/2;winprops='top='+wint+',left='+winl+', width=491,height=405, scrollbars='+scroll+',resizable'
win=window.open("http://www.sananton.com.es/esp/contactos.asp","Contactos",winprops)
if(parseInt(navigator.appVersion)>=4){win.window.focus();}}
var ventana
var cont=0
var titulopordefecto="Photos"
function afoto(cual,titulo)
{if(cont==1){ventana.close();ventana=null}
if(titulo==null){titulo=titulopordefecto}
ventana=window.open('','ventana','resizable=yes, scrollbars=no, width=100, height=100')
ventana.document.write('<html><head><title>'+titulo+'</title></head><body style="overflow:hidden" marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" scroll="no" onUnload="opener.cont=0"><img src="'+cual+'" onLoad="opener.redimensionar(this.width, this.height)">')
ventana.document.close()
cont++}
function redimensionar(ancho,alto)
{ventana.resizeTo(ancho+12,alto+38)
ventana.moveTo((screen.width-ancho)/2,(screen.height-alto)/2)}
function maximaLongitud(texto,maxlong){var tecla,in_value,out_value;if(texto.value.length>maxlong){in_value=texto.value;out_value=in_value.substring(0,maxlong);texto.value=out_value;return false;}
return true;}
function applyLightFilter()
{if(g_fApplyFilterToImage)
{var oElement=event.srcElement;if(typeof(document)=='object'&&typeof(document.activeElement)=='object')
{if(!(document.activeElement.sourceIndex==(oElement.sourceIndex-1)))
{oElement.style.filter="progid:DXImageTransform.Microsoft.Light()";oElement.filters.item("DXImageTransform.Microsoft.Light").addAmbient(255,255,255,100);oElement.filters.item("DXImageTransform.Microsoft.Light").addAmbient(255,255,255,25);}}}}
function removeLightFilter()
{if(g_fApplyFilterToImage)
{var oElement=event.srcElement;if(typeof(document)=='object'&&typeof(document.activeElement)=='object')
{if(!(document.activeElement.sourceIndex==(oElement.sourceIndex-1)))
{oElement.style.filter="progid:DXImageTransform.Microsoft.Alpha(Opacity=100, FinishOpacity=20, Style=1, StartX=0, StartY=0, FinishX=0, FinishY=100)";}}}}
function resetImage()
{if(g_fApplyFilterToImage)
{resetImageOnObject(event.srcElement.firstChild);}}
function resetImageOnObject(obj)
{obj.style.filter="progid:DXImageTransform.Microsoft.Alpha(Opacity=100, FinishOpacity=20, Style=1, StartX=0, StartY=0, FinishX=0, FinishY=200)";}
function SetNormal()
{fSlideShow=false;if(g_fApplyFilterToImage)
{removeLightFilter();event.srcElement.style.filter=''}}