function fichasmall(mypage)
{
	fichawindow = window.open(mypage,'ficha','toolbar=no,location=no,menubar=no,resizable=no,scrollbars=yes,width=500,height=300,dependent=yes');
	fichawindow.focus();
}

function ficha(mypage)
{
	var width = 800 , height = 600 ;
	x = (800 - width)/2, y = (600 - height)/2;

	if (screen) 
	{
		y = (screen.availHeight - height)/2;
		x = (screen.availWidth - width)/2;
	}

	fichawindow = window.open(mypage,'ficha','toolbar=no,location=no,menubar=no,resizable=no,scrollbars=yes,dependent=yes,width='+ width+ ',height='+ height+',screenX='+x+',screenY='+ y +',left='+x+',top='+ y + ',{0}') ;

	fichawindow.focus();
}

function fichaVol(mypage)
{
	fichawindow = window.open(mypage,'_new','toolbar=no,location=no,menubar=no,resizable=yes,scrollbars=yes,width=750,height=550,dependent=yes');
	fichawindow.focus();
}

function h4i2()
{
	window.status = ix2l();
}

function ix2l()
{
	var tb4="@";
	tb4=tb4+"cuba";
	tb4=tb4+"autrement.com";
	tb4="info"+tb4;
	return tb4;
}

function ff()
{
	status="";
}

function ppu()
{
	this.location="mailto:"+ix2l();
	return false;
}

function fch()
{
	var tb4="@";
	tb4=tb4+"cuba";
	tb4=tb4+"autrement.com";
	tb4="info"+tb4;
	return tb4;
}

function writeContact(text)
{
	document.write("<a href='mailto:[antispam_protected]' onMouseOver='h4i2()' onMouseLeave='ff()' onClick='return ppu()' class=texto>"+text+"</a>")
}

function writeMail()
{
	writeContact(fch()) ;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  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();
}

