/* barrosa.js (21/5/01) */

    // convert all characters to lowercase to simplify testing
    var agt=navigator.userAgent.toLowerCase();

    // *** BROWSER VERSION ***
    // Note: On IE5, these return 4, so use is_ie5up to detect IE5.
    var is_major = parseInt(navigator.appVersion);
    var is_minor = parseFloat(navigator.appVersion);

    // Note: Opera and WebTV spoof Navigator.  We do strict client detection.
    // If you want to allow spoofing, take out the tests for opera and webtv.
    var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
                && (agt.indexOf('compatible') == -1) && 
                   (agt.indexOf('opera')==-1)
                && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
    var is_nav2 = (is_nav && (is_major == 2));
    var is_nav3 = (is_nav && (is_major == 3));
    var is_nav4 = (is_nav && (is_major == 4));
    var is_nav4up = (is_nav && (is_major >= 4));
    var is_navonly      = (is_nav && ((agt.indexOf(";nav") != -1) ||
                          (agt.indexOf("; nav") != -1)) );
    var is_nav6 = (is_nav && (is_major == 5));
    var is_nav6up = (is_nav && (is_major >= 5));
    var is_gecko = (agt.indexOf('gecko') != -1);


    var is_ie     = ((agt.indexOf("msie") != -1) && 
                    (agt.indexOf("opera") == -1));
    var is_ie3    = (is_ie && (is_major < 4));
    var is_ie4    = (is_ie && (is_major == 4) && 
                    (agt.indexOf("msie 5")==-1) );
    var is_ie4up  = (is_ie && (is_major >= 4));
    var is_ie5    = (is_ie && (is_major == 4) && 
                    (agt.indexOf("msie 5.0")!=-1) );
    var is_ie5_5  = (is_ie && (is_major == 4) && 
                    (agt.indexOf("msie 5.5") !=-1));
    var is_ie5up  = (is_ie && !is_ie3 && !is_ie4);
    var is_ie5_5up =(is_ie && !is_ie3 && !is_ie4 && !is_ie5);

    // *** JAVASCRIPT VERSION CHECK ***
    var is_js;
    if (is_nav2 || is_ie3) is_js = 1.0;
    else if (is_nav3) is_js = 1.1;
    else if ((is_nav4 && (is_minor <= 4.05)) || is_ie4) is_js = 1.2;
    else if ((is_nav4 && (is_minor > 4.05)) || is_ie5) is_js = 1.3;
    else if (is_nav6 || is_gecko) is_js = 1.5;
    // NOTE: In the future, update this code when newer versions of JS
    // are released. For now, we try to provide some upward compatibility
    // so that future versions of Nav and IE will show they are at
    // *least* JS 1.x capable. Always check for JS version compatibility
    // with > or >=.
    else if (is_nav6up) is_js = 1.5;
    // NOTE: ie5up on mac is 1.4
    else if (is_ie5up) is_js = 1.3

    // HACK: no idea for other browsers; 
    //always check for JS version with > or >=
    else is_js = 0.0;

    // *** PLATFORM ***
    var is_win   = ( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) );
    // NOTE: On Opera 3.0, the userAgent string includes "Windows 95/NT4" 
    //    on all Win32, so you can't distinguish between Win95 and WinNT.
    var is_win95 = ((agt.indexOf("win95")!=-1) || 
                   (agt.indexOf("windows 95")!=-1));

    // is this a 16 bit compiled version?
    var is_win16 = ((agt.indexOf("win16")!=-1) || 
               (agt.indexOf("16bit")!=-1) || 
               (agt.indexOf("windows 3.1")!=-1) || 
               (agt.indexOf("windows 16-bit")!=-1) );  

    var is_win31 = ((agt.indexOf("windows 3.1")!=-1) || 
                    (agt.indexOf("win16")!=-1) ||
                    (agt.indexOf("windows 16-bit")!=-1));

    var is_winme = ((agt.indexOf("win 9x 4.90")!=-1));
    var is_win2k = ((agt.indexOf("windows nt 5.0")!=-1));

    // NOTE: Reliable detection of Win98 may not be possible. It appears that:
    //       - On Nav 4.x and before you'll get plain "Windows" in userAgent.
    //       - On Mercury client, the 32-bit version will return "Win98", but
    //         the 16-bit version running on Win98 will still return "Win95".
    var is_win98 = ((agt.indexOf("win98")!=-1) || 
                   (agt.indexOf("windows 98")!=-1));
    var is_winnt = ((agt.indexOf("winnt")!=-1) || 
                   (agt.indexOf("windows nt")!=-1));
    var is_win32 = (is_win95 || is_winnt || is_win98 || 
                    ((is_major >= 4) && (navigator.platform == "Win32")) ||
                    (agt.indexOf("win32")!=-1) || (agt.indexOf("32bit")!=-1));

    var is_os2   = ((agt.indexOf("os/2")!=-1) || 
                    (navigator.appVersion.indexOf("OS/2")!=-1) ||   
                    (agt.indexOf("ibm-webexplorer")!=-1));

    var is_mac    = (agt.indexOf("mac")!=-1);
    // hack ie5 js version for mac
    if (is_mac && is_ie5up) is_js = 1.4;
    var is_mac68k = (is_mac && ((agt.indexOf("68k")!=-1) || 
                               (agt.indexOf("68000")!=-1)));
    var is_macppc = (is_mac && ((agt.indexOf("ppc")!=-1) || 
                                (agt.indexOf("powerpc")!=-1)));

    var is_sun   = (agt.indexOf("sunos")!=-1);
    var is_sun4  = (agt.indexOf("sunos 4")!=-1);
    var is_sun5  = (agt.indexOf("sunos 5")!=-1);
    var is_suni86= (is_sun && (agt.indexOf("i86")!=-1));
    var is_irix  = (agt.indexOf("irix") !=-1);    // SGI
    var is_irix5 = (agt.indexOf("irix 5") !=-1);
    var is_irix6 = ((agt.indexOf("irix 6") !=-1) || 
                   (agt.indexOf("irix6") !=-1));
    var is_hpux  = (agt.indexOf("hp-ux")!=-1);
    var is_hpux9 = (is_hpux && (agt.indexOf("09.")!=-1));
    var is_hpux10= (is_hpux && (agt.indexOf("10.")!=-1));
    var is_aix   = (agt.indexOf("aix") !=-1);      // IBM
    var is_aix1  = (agt.indexOf("aix 1") !=-1);    
    var is_aix2  = (agt.indexOf("aix 2") !=-1);    
    var is_aix3  = (agt.indexOf("aix 3") !=-1);    
    var is_aix4  = (agt.indexOf("aix 4") !=-1);    
    var is_linux = (agt.indexOf("inux")!=-1);
    var is_sco   = (agt.indexOf("sco")!=-1) || (agt.indexOf("unix_sv")!=-1);
    var is_unixware = (agt.indexOf("unix_system_v")!=-1); 
    var is_mpras    = (agt.indexOf("ncr")!=-1); 
    var is_reliant  = (agt.indexOf("reliantunix")!=-1);
    var is_dec   = ((agt.indexOf("dec")!=-1) || (agt.indexOf("osf1")!=-1) || 
           (agt.indexOf("dec_alpha")!=-1) || 
           (agt.indexOf("alphaserver")!=-1) || 
           (agt.indexOf("ultrix")!=-1) || 
           (agt.indexOf("alphastation")!=-1)); 
    var is_sinix = (agt.indexOf("sinix")!=-1);
    var is_freebsd = (agt.indexOf("freebsd")!=-1);
    var is_bsd = (agt.indexOf("bsd")!=-1);
    var is_unix  = ((agt.indexOf("x11")!=-1) || is_sun || is_irix || 
                 is_hpux || is_sco ||is_unixware || is_mpras || is_reliant || 
                 is_dec || is_sinix || is_aix || is_linux || is_bsd || 
                 is_freebsd);

    var is_vms   = ((agt.indexOf("vax")!=-1) || (agt.indexOf("openvms")!=-1));

/* ------------------------------------------------------------------------ */
   
  var img1=new Image (237,196);
      img1.src="images/barrosa3-med.jpg";
      
  var img2=new Image (237,196);
      img2.src="images/festa-med.jpg";

  var img3=new Image (237,196);
      img3.src="images/registo-med.jpg";

  var img4=new Image (237,196);
      img4.src="images/carne-pacote-med.jpg";

  var img5=new Image (237,196);
      img5.src="images/amiba-big.jpg";

  var img6=new Image (237,196);
      img6.src="images/capolib3.jpg";

  var img7=new Image (237,196);
      img7.src="images/n__e__q.GIF";

  var img8=new Image (237,196);
      img8.src="images/touro2-med.jpg";

  var img30=new Image (489,350);
      img30.src="images/marca-auricular-rz.jpg";

  var img31=new Image (489,350);
      img31.src="images/registo-rz.jpg";

   mac_patt = /Mac/;  linux_patt = /Linux/;  win_patt = /Win/;
   isMac = mac_patt.test (navigator.platform);
   isLinux = linux_patt.test (navigator.platform);
   isWin = win_patt.test (navigator.platform);

   netscape_patt = /Netscape/;  msie_patt = /Internet Explorer/;  
   lynx_patt = /Lynx/;
   isNetscape = netscape_patt.test (navigator.appName);
   isMozilla = is_nav6up;
   isMSIE = msie_patt.test (navigator.appName);
   isLynx = lynx_patt.test (navigator.appName);

   function choose_version (v1, v2, v3) {
     if (isLinux) {
       if (isMozilla) { document.write(v3); }
       else { document.write(v1); } 
     }
     else {
       if (isWin || isMac) { document.write(v2); }
       else { document.write(v3); } 
     }
    }

   var x;
   var y;
   var re_amiba=/amiba/;
   var re_capolib=/capolib/;
   var re_neq=/n__e__q/;
   var re_barrosa=/barrosa/;

   function substitui_pag () {
    if (re_amiba.exec(document.images[6].src))
          window.location="amiba.html"; 
    else { 
      if (re_capolib.exec(document.images[6].src))
           window.location="capolib.html";
      else {
        if (re_neq.exec(document.images[6].src))
         win_nq=window.open("http://www.norteequalidade.pt","",
              "width=800,height=500,resizable=yes,screenX=0,screenY=0");
/*             top.window.location="http://www.norteequalidade.pt"; */
        else {
          if (re_barrosa.exec(document.images[6].src))
               window.location="desc.html";
        }
      }
    }
   }

   function substitui_im (x) {
     var img=new Image(237,196);
     if (x==1) { img.src = img5.src; }
     else { if (x==2) { img.src = img6.src; }
     else { if (x==3) { img.src = img7.src; }
     else { if (x==4) { img.src = img8.src; }
     else { if (x==5) { img.src = img3.src; }
     else { if (x==6) { img.src = img4.src; }
     else { if (x==7) { img.src = img1.src; }
     else { if (x==8) { img.src = img2.src; }
     }}}}}}}
     document.images[6].src=img.src; 
     /* document.getElementById('i1').src=img.src; */
   }

   function substitui_im_rz (x) {
     var img=new Image(489,350);
     if (x==1) { img.src = img31.src; }
     else { if (x==2) { img.src = img30.src; }
     }
     document.images[4].src=img.src; 
   }

  var img10=new Image (300,256);
      img10.src="images/tronco-1.jpg";
  var img11=new Image (300,256);
      img11.src="images/tronco2.jpg";
  var img12=new Image (300,256);
      img12.src="images/tronco-3.jpg";

   function substitui_im_tronco (x) {
     var img=new Image(300,218);
     if (x==1) { img.src = img11.src; }
     else { if (x==2) { img.src = img12.src; }
     else { if (x==3) { img.src = img10.src; }
     }}
     document.images[0].src=img.src; 
   }

  var img13=new Image (300,218);
      img13.src="images/formato--1.jpg";
  var img14=new Image (300,218);
      img14.src="images/formato--3.jpg";

   function substitui_im_formato (x) {
     var img=new Image(300,267);
     if (x==1) { img.src = img14.src; }
     else { if (x==2) { img.src = img13.src; }}
     document.images[0].src=img.src; 
   }

  var img15=new Image (300,224);
      img15.src="images/cor2.jpg";
  var img16=new Image (300,224);
      img16.src="images/cor1.jpg";

   function substitui_im_cor (x) {
     var img=new Image(300,224);
     if (x==1) { img.src = img16.src; }
     else { if (x==2) { img.src = img15.src; }}
     document.images[0].src=img.src; 
   }

  var img17=new Image (300,232);
      img17.src="images/pelo.jpg";
  var img18=new Image (300,232);
      img18.src="images/pele.jpg";

   function substitui_im_pele (x) {
     var img=new Image(300,232);
     if (x==1) { img.src = img18.src; }
     else { if (x==2) { img.src = img17.src; }}
     document.images[0].src=img.src; 
   }

   function ciclo_de_imagens () {
       x=setTimeout("document.images[o].src='images/amiba2.gif'",3000); 
       x=setTimeout("document.images[o].src='images/capolib3.jpg'",6000); 
       x=setTimeout("document.images[o].src='images/neq2.gif'",9000);
       x=setTimeout("document.images[o].src='images/barrosa5.jpg'",12000);
   }

   aux_opened=false;

   var win__desc;

   function show_desc (x,xx) {
     if (x==1) f="cabeca.html";
     else { if (x==2) f="pesc.html";
     else { if (x==3) f="cor.html";
     else { if (x==4) f="extremidades.html";
     else { if (x==5) f="formato.html";
     else { if (x==6) f="mamario.html";
     else { if (x==7) f="pele.html";
     else { if (x==8) f="tronco.html";
     }}}}}}}
     if (!aux_opened) {
         aux_opened=true;
         win__desc=window.open(f,"win_desc",
              "width=500,height=500,resizable=yes,screenX=0,screenY=0");
     }
     else {
         win__desc=window.open(f,"win_desc");
/*         win__desc.focus();*/
/*
         win_desc.location=f; 
*/
     }
     return (win__desc);
  }

function choose_page (p1,p2) {
  if (is_nav4) { document.location = p1; }
  else { document.location = p2; }
}

function move () {
    var x=parseInt(document.getElementById("b2").style.left);
    if (x < 250) {
     document.getElementById("b2").style.left = x+10;
     setTimeout ("move()",100);
    }
    else {
      fase2 ();
    }
}

function fase2 () {
  var x=parseInt(document.getElementById("start").style.top);
  if (x > -40) {
   document.getElementById("start").style.top = x-10;
   setTimeout ("fase2()",100);
  }
  else {
   move_index1();
  }
}

function move_index1 () {
  document.getElementById("b3").style.top = 20;
  document.getElementById("b3").style.visibility = "visible";

  document.getElementById("b4").style.top = 70;
  document.getElementById("b4").style.visibility = "visible";

  move_index2();
}

function move_index2 () {
    var x2=parseInt(document.getElementById("b4").style.top);
    if (x2 < 103) {
      document.getElementById("b4").style.top = x2+5;
      setTimeout ("move_index2()",100);
    }
    else {
      document.getElementById("b5").style.top = 70;
      document.getElementById("b5").style.visibility = "visible";

      move_index3();
    }
}

function move_index3 () {
    var x2=parseInt(document.getElementById("b4").style.top);
    var x3=parseInt(document.getElementById("b5").style.top);
    if (x3 < 103) {
      document.getElementById("b4").style.top = x2+5;
      document.getElementById("b5").style.top = x3+5;
      setTimeout ("move_index3()",100);
    }
    else {
      document.getElementById("b6").style.top = 70;
      document.getElementById("b6").style.visibility = "visible";

      move_index4();
    }
}

function move_index4 () {
    var x2=parseInt(document.getElementById("b4").style.top);
    var x3=parseInt(document.getElementById("b5").style.top);
    var x4=parseInt(document.getElementById("b6").style.top);
    if (x4 < 103) {
      document.getElementById("b4").style.top = x2+5;
      document.getElementById("b5").style.top = x3+5;
      document.getElementById("b6").style.top = x4+5;
      setTimeout ("move_index4()",100);
    }
    else {
      document.getElementById("b7").style.top = 70;
      document.getElementById("b7").style.visibility = "visible";

      move_index5();
    }
}

function move_index5 () {
    var x2=parseInt(document.getElementById("b4").style.top);
    var x3=parseInt(document.getElementById("b5").style.top);
    var x4=parseInt(document.getElementById("b6").style.top);
    var x5=parseInt(document.getElementById("b7").style.top);
    if (x5 < 103) {
      document.getElementById("b4").style.top = x2+5;
      document.getElementById("b5").style.top = x3+5;
      document.getElementById("b6").style.top = x4+5;
      document.getElementById("b7").style.top = x5+5;
      setTimeout ("move_index5()",100);
    }
    else {
      document.getElementById("b8").style.top = 70;
      document.getElementById("b8").style.visibility = "visible";

      move_index6();
    }
}

function move_index6 () {
    var x2=parseInt(document.getElementById("b4").style.top);
    var x3=parseInt(document.getElementById("b5").style.top);
    var x4=parseInt(document.getElementById("b6").style.top);
    var x5=parseInt(document.getElementById("b7").style.top);
    var x6=parseInt(document.getElementById("b8").style.top);
    if (x6 < 103) {
      document.getElementById("b4").style.top = x2+5;
      document.getElementById("b5").style.top = x3+5;
      document.getElementById("b6").style.top = x4+5;
      document.getElementById("b7").style.top = x5+5;
      document.getElementById("b8").style.top = x6+5;
      setTimeout ("move_index6()",100);
    }
    else {
      document.getElementById("b9").style.top = 70;
      document.getElementById("b9").style.visibility = "visible";

      move_index7();
    }
}

function move_index7 () {
    var x2=parseInt(document.getElementById("b4").style.top);
    var x3=parseInt(document.getElementById("b5").style.top);
    var x4=parseInt(document.getElementById("b6").style.top);
    var x5=parseInt(document.getElementById("b7").style.top);
    var x6=parseInt(document.getElementById("b8").style.top);
    var x7=parseInt(document.getElementById("b9").style.top);
    if (x7 < 103) {
      document.getElementById("b4").style.top = x2+5;
      document.getElementById("b5").style.top = x3+5;
      document.getElementById("b6").style.top = x4+5;
      document.getElementById("b7").style.top = x5+5;
      document.getElementById("b8").style.top = x6+5;
      document.getElementById("b9").style.top = x7+5;
      setTimeout ("move_index7()",100);
    }
    else {
      document.getElementById("b10").style.top = 70;
      document.getElementById("b10").style.visibility = "visible";

      move_index8();
    }
}

function move_index8 () {
    var x2=parseInt(document.getElementById("b4").style.top);
    var x3=parseInt(document.getElementById("b5").style.top);
    var x4=parseInt(document.getElementById("b6").style.top);
    var x5=parseInt(document.getElementById("b7").style.top);
    var x6=parseInt(document.getElementById("b8").style.top);
    var x7=parseInt(document.getElementById("b9").style.top);
    var x8=parseInt(document.getElementById("b10").style.top);
    if (x8 < 103) {
      document.getElementById("b4").style.top = x2+5;
      document.getElementById("b5").style.top = x3+5;
      document.getElementById("b6").style.top = x4+5;
      document.getElementById("b7").style.top = x5+5;
      document.getElementById("b8").style.top = x6+5;
      document.getElementById("b9").style.top = x7+5;
      document.getElementById("b10").style.top = x8+5;
      setTimeout ("move_index8()",100);
    }
    else {
      document.getElementById("b11").style.top = 70;
      document.getElementById("b11").style.visibility = "visible";

      move_index9();
    }
}

function move_index9 () {
    var x2=parseInt(document.getElementById("b4").style.top);
    var x3=parseInt(document.getElementById("b5").style.top);
    var x4=parseInt(document.getElementById("b6").style.top);
    var x5=parseInt(document.getElementById("b7").style.top);
    var x6=parseInt(document.getElementById("b8").style.top);
    var x7=parseInt(document.getElementById("b9").style.top);
    var x8=parseInt(document.getElementById("b10").style.top);
    var x9=parseInt(document.getElementById("b11").style.top);
    if (x9 < 103) {
      document.getElementById("b4").style.top = x2+5;
      document.getElementById("b5").style.top = x3+5;
      document.getElementById("b6").style.top = x4+5;
      document.getElementById("b7").style.top = x5+5;
      document.getElementById("b8").style.top = x6+5;
      document.getElementById("b9").style.top = x7+5;
      document.getElementById("b10").style.top = x8+5;
      document.getElementById("b11").style.top = x9+5;
      setTimeout ("move_index9()",100);
    }
    else {
      document.getElementById("b12").style.top = 70;
      document.getElementById("b12").style.visibility = "visible";

      move_index10();
    }
}

function move_index10 () {
    var x2=parseInt(document.getElementById("b4").style.top);
    var x3=parseInt(document.getElementById("b5").style.top);
    var x4=parseInt(document.getElementById("b6").style.top);
    var x5=parseInt(document.getElementById("b7").style.top);
    var x6=parseInt(document.getElementById("b8").style.top);
    var x7=parseInt(document.getElementById("b9").style.top);
    var x8=parseInt(document.getElementById("b10").style.top);
    var x9=parseInt(document.getElementById("b11").style.top);
    var x10=parseInt(document.getElementById("b12").style.top);
    if (x10 < 103) {
      document.getElementById("b4").style.top = x2+5;
      document.getElementById("b5").style.top = x3+5;
      document.getElementById("b6").style.top = x4+5;
      document.getElementById("b7").style.top = x5+5;
      document.getElementById("b8").style.top = x6+5;
      document.getElementById("b9").style.top = x7+5;
      document.getElementById("b10").style.top = x8+5;
      document.getElementById("b11").style.top = x9+5;
      document.getElementById("b12").style.top = x10+5;
      setTimeout ("move_index10()",100);
    }
    else {
      document.getElementById("b13").style.top = 70;
      document.getElementById("b13").style.visibility = "visible";

      move_index11();
    }
}

function move_index11 () {
    var x2=parseInt(document.getElementById("b4").style.top);
    var x3=parseInt(document.getElementById("b5").style.top);
    var x4=parseInt(document.getElementById("b6").style.top);
    var x5=parseInt(document.getElementById("b7").style.top);
    var x6=parseInt(document.getElementById("b8").style.top);
    var x7=parseInt(document.getElementById("b9").style.top);
    var x8=parseInt(document.getElementById("b10").style.top);
    var x9=parseInt(document.getElementById("b11").style.top);
    var x10=parseInt(document.getElementById("b12").style.top);
    var x11=parseInt(document.getElementById("b13").style.top);
    if (x11 < 103) {
      document.getElementById("b4").style.top = x2+5;
      document.getElementById("b5").style.top = x3+5;
      document.getElementById("b6").style.top = x4+5;
      document.getElementById("b7").style.top = x5+5;
      document.getElementById("b8").style.top = x6+5;
      document.getElementById("b9").style.top = x7+5;
      document.getElementById("b10").style.top = x8+5;
      document.getElementById("b11").style.top = x9+5;
      document.getElementById("b12").style.top = x10+5;
      document.getElementById("b13").style.top = x11+5;
      setTimeout ("move_index11()",100);
    }
    setTimeout("move_index12()",550);
}

function move_index12 () {
   document.getElementById("b0").style.top = 53;
   document.getElementById("b0").style.left = 8;
   move_index13();
}

function move_index13() {
    document.getElementById("b2_1").style.visibility="visible";
    var x=parseInt(document.getElementById("b2").style.top);
    if (x > -360) {
      document.getElementById("b2").style.top = x-5;
      setTimeout ("move_index13()",100);
    }
    else { document.getElementById("b2_tn").style.visibility="visible";
           setTimeout ("move_index14()",1750); }
}

function move_index14() {
    document.getElementById("b2_2").style.visibility="visible";
    var x=parseInt(document.getElementById("b2_1").style.top);
    if (x > -360) {
      document.getElementById("b2_1").style.top = x-5;
      setTimeout ("move_index14()",100);
    }
    else { document.getElementById("b2_1_tn").style.visibility="visible";
           setTimeout ("move_index15()",1750); }
}

function move_index15() {
    document.getElementById("b2_3").style.visibility="visible";
    var x=parseInt(document.getElementById("b2_2").style.top);
    if (x > -360) {
      document.getElementById("b2_2").style.top = x-5;
      setTimeout ("move_index15()",100);
    }
    else { document.getElementById("b2_2_tn").style.visibility="visible";
           setTimeout ("move_index16()",1750); }
}

function move_index16() {
    document.getElementById("b2_4").style.visibility="visible";
    var x=parseInt(document.getElementById("b2_3").style.top);
    if (x > -360) {
      document.getElementById("b2_3").style.top = x-5;
      setTimeout ("move_index16()",100);
    }
    else {
     document.getElementById("b2_3_tn").style.visibility="visible";
     document.getElementById("b2_4_tn").style.visibility="visible";
    }
}

var t=0;

function bigPicture (x) {
  t=t+1;
  document.getElementById(x).style.zIndex=t;
  document.getElementById(x).style.top=55;
  document.getElementById(x).style.left=250;
}

function janela_nq () {
  win_nq=window.open("http://www.norteequalidade.pt","",
           "width=800,height=500,resizable=yes,screenX=0,screenY=0");
}



/*
   choose_version (
       '<link rel="stylesheet" type="text/css" href="vacas.css">',
       '<link rel="stylesheet" type="text/css" href="win_vacas.css">',
       '<link rel="stylesheet" type="text/css" href="vacas.css">');
*/


document.write ('<link rel="stylesheet" type="text/css" href="vacas.css">');