var win= null;
function abrirventana(mypage,myname,w,h,scroll){
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  var settings  ='height='+h+',';
      settings +='width='+w+',';
      settings +='top='+wint+',';
      settings +='left='+winl+',';
      settings +='scrollbars='+scroll+',';
      settings +='resizable=no';
  win=window.open(mypage,myname,settings);
  if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}

function ampliar(img,des) {
document.datos.imagen.value = img
document.datos.descripcion.value = des
//document.datos.titulo.value = tit
var w=600
var h=400
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',menu=0,scrollbars=0,resizable=0,toolbar=0,status=0,location=0,menubar=0'
win = window.open("detalle.asp", "imagen", winprops)
win.blur
if (parseInt(navigator.appVersion) >= 4) {win.window.focus();}
//win.resizeTo(w,h);
//win.moveTo(winl,wint);
}

//mouseover image
function makevisible(cur,which){
strength=(which==0)? 1 : 0.8

if (cur.style.MozOpacity)
cur.style.MozOpacity=strength
else if (cur.filters)
cur.filters.alpha.opacity=strength*100
}

//fade imagen
var baseopacity=0

function slowhigh(which2){
imgobj=which2
browserdetect=which2.filters? "ie" : typeof which2.style.MozOpacity=="string"? "mozilla" : ""
instantset(baseopacity)
highlighting=setInterval("gradualfade(imgobj)",20)
}

function instantset(degree){
if (browserdetect=="mozilla")
imgobj.style.MozOpacity=degree/100
else if (browserdetect=="ie")
imgobj.filters.alpha.opacity=degree
}

function cleartimer(){
if (window.highlighting) clearInterval(highlighting)
}

function gradualfade(cur2){
if (browserdetect=="mozilla" && cur2.style.MozOpacity<1)
cur2.style.MozOpacity=Math.min(parseFloat(cur2.style.MozOpacity)+0.1, 0.99)
else if (browserdetect=="ie" && cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=4
else if (window.highlighting)
clearInterval(highlighting)
}
//-->


function EfectoBoton(x){
Estado=x.className
if (Estado=="invisible"){return;}
if(Estado=="BotonOn"){
	x.className="BotonOff"
}else{
	x.className="BotonOn"
} 
}

