var id_layer;

function popup_animado(id)
{
	id_layer = id;
	var left_ = (document.body.clientWidth/2)-125;
	var top_ = (document.body.clientHeight/2);
	
	with(document.getElementById(id_layer).style)
	{
		position = 'absolute';
		left = left_+'px';
		top = top_+'px';
		width = '282px';
		height = '235px';
		zIndex = '99';
	}
	setTimeout('fechar_popup()','16000');
}

function fechar_popup()
{
	document.getElementById(id_layer).style.display = 'none';
}

function MM_timelinePlay(tmLnName, myID) { //v1.2
  //Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004 Macromedia, Inc. All rights reserved.
  var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,propNum,theObj,firstTime=false;
  if (document.MM_Time == null) MM_initTimelines(); //if *very* 1st time
  tmLn = document.MM_Time[tmLnName];
  if (myID == null) { myID = ++tmLn.ID; firstTime=true;}//if new call, incr ID
  if (myID == tmLn.ID) { //if Im newest
    setTimeout('MM_timelinePlay("'+tmLnName+'",'+myID+')',tmLn.delay);
    fNew = ++tmLn.curFrame;
    for (i=0; i<tmLn.length; i++) {
      sprite = tmLn[i];
      if (sprite.charAt(0) == 's') {
        if (sprite.obj) {
          numKeyFr = sprite.keyFrames.length; firstKeyFr = sprite.keyFrames[0];
          if (fNew >= firstKeyFr && fNew <= sprite.keyFrames[numKeyFr-1]) {//in range
            keyFrm=1;
            for (j=0; j<sprite.values.length; j++) {
              props = sprite.values[j]; 
              if (numKeyFr != props.length) {
                if (props.prop2 == null) sprite.obj[props.prop] = props[fNew-firstKeyFr];
                else        sprite.obj[props.prop2][props.prop] = props[fNew-firstKeyFr];
              } else {
                while (keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]) keyFrm++;
                if (firstTime || fNew==sprite.keyFrames[keyFrm-1]) {
                  if (props.prop2 == null) sprite.obj[props.prop] = props[keyFrm-1];
                  else        sprite.obj[props.prop2][props.prop] = props[keyFrm-1];
        } } } } }
      } else if (sprite.charAt(0)=='b' && fNew == sprite.frame) eval(sprite.value);
      if (fNew > tmLn.lastFrame) tmLn.ID = 0;
  } }
}

function MM_initTimelines() { //v4.0
    //MM_initTimelines() Copyright 1997 Macromedia, Inc. All rights reserved.
    var ns = navigator.appName == "Netscape";
    var ns4 = (ns && parseInt(navigator.appVersion) == 4);
    var ns5 = (ns && parseInt(navigator.appVersion) > 4);
    var macIE5 = (navigator.platform ? (navigator.platform == "MacPPC") : false) && (navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4);
    document.MM_Time = new Array(1);
    document.MM_Time[0] = new Array(1);
    document.MM_Time["Timeline1"] = document.MM_Time[0];
    document.MM_Time[0].MM_Name = "Timeline1";
    document.MM_Time[0].fps = 15;
    document.MM_Time[0][0] = new String("sprite");
    document.MM_Time[0][0].slot = 1;
    if (ns4)
        document.MM_Time[0][0].obj = document[id_layer];
    else if (ns5)
        document.MM_Time[0][0].obj = document.getElementById(id_layer);
    else
        document.MM_Time[0][0].obj = document.all ? document.all[id_layer] : null;
    document.MM_Time[0][0].keyFrames = new Array(1, 40, 85, 120);
    document.MM_Time[0][0].values = new Array(2);
    if (ns5 || macIE5)
        document.MM_Time[0][0].values[0] = new Array("150px", "154px", "158px", "163px", "167px", "171px", "175px", "179px", "183px", "188px", "192px", "196px", "200px", "204px", "208px", "213px", "217px", "221px", "225px", "229px", "234px", "238px", "242px", "246px", "250px", "254px", "259px", "263px", "267px", "271px", "275px", "280px", "284px", "288px", "292px", "296px", "300px", "305px", "309px", "313px", "317px", "320px", "324px", "327px", "331px", "334px", "338px", "341px", "345px", "348px", "352px", "355px", "358px", "362px", "365px", "369px", "372px", "375px", "379px", "382px", "385px", "388px", "392px", "395px", "398px", "401px", "405px", "408px", "411px", "414px", "417px", "420px", "424px", "427px", "430px", "433px", "436px", "439px", "442px", "445px", "448px", "451px", "454px", "457px", "460px", "456px", "452px", "449px", "445px", "441px", "437px", "433px", "430px", "426px", "422px", "418px", "415px", "411px", "407px", "404px", "400px", "397px", "393px", "389px", "386px", "382px", "379px", "375px", "372px", "368px", "364px", "361px", "357px", "354px", "350px", "346px", "343px", "339px", "336px", "332px");
    else
        document.MM_Time[0][0].values[0] = new Array(150,154,158,163,167,171,175,179,183,188,192,196,200,204,208,213,217,221,225,229,234,238,242,246,250,254,259,263,267,271,275,280,284,288,292,296,300,305,309,313,317,320,324,327,331,334,338,341,345,348,352,355,358,362,365,369,372,375,379,382,385,388,392,395,398,401,405,408,411,414,417,420,424,427,430,433,436,439,442,445,448,451,454,457,460,456,452,449,445,441,437,433,430,426,422,418,415,411,407,404,400,397,393,389,386,382,379,375,372,368,364,361,357,354,350,346,343,339,336,332);
    document.MM_Time[0][0].values[0].prop = "left";
    if (ns5 || macIE5)
        document.MM_Time[0][0].values[1] = new Array("171px", "170px", "168px", "167px", "165px", "163px", "162px", "160px", "159px", "157px", "156px", "154px", "152px", "151px", "149px", "148px", "146px", "145px", "143px", "142px", "140px", "139px", "137px", "136px", "135px", "133px", "132px", "131px", "130px", "129px", "128px", "127px", "126px", "125px", "124px", "123px", "122px", "122px", "121px", "121px", "121px", "121px", "121px", "121px", "121px", "121px", "122px", "122px", "122px", "123px", "123px", "124px", "124px", "125px", "125px", "126px", "127px", "127px", "128px", "129px", "130px", "130px", "131px", "132px", "133px", "133px", "134px", "135px", "136px", "137px", "138px", "139px", "139px", "140px", "141px", "142px", "143px", "144px", "145px", "146px", "147px", "148px", "149px", "150px", "151px", "151px", "150px", "149px", "149px", "148px", "147px", "147px", "146px", "145px", "145px", "144px", "144px", "143px", "142px", "142px", "141px", "140px", "140px", "139px", "138px", "138px", "137px", "137px", "136px", "135px", "135px", "134px", "133px", "133px", "132px", "132px", "131px", "130px", "130px", "129px");
    else
        document.MM_Time[0][0].values[1] = new Array(171,170,168,167,165,163,162,160,159,157,156,154,152,151,149,148,146,145,143,142,140,139,137,136,135,133,132,131,130,129,128,127,126,125,124,123,122,122,121,121,121,121,121,121,121,121,122,122,122,123,123,124,124,125,125,126,127,127,128,129,130,130,131,132,133,133,134,135,136,137,138,139,139,140,141,142,143,144,145,146,147,148,149,150,151,151,150,149,149,148,147,147,146,145,145,144,144,143,142,142,141,140,140,139,138,138,137,137,136,135,135,134,133,133,132,132,131,130,130,129);
    document.MM_Time[0][0].values[1].prop = "top";
    if (!ns4) {
        document.MM_Time[0][0].values[0].prop2 = "style";
        document.MM_Time[0][0].values[1].prop2 = "style";
    }
    document.MM_Time[0].lastFrame = 120;
    for (i=0; i<document.MM_Time.length; i++) {
        document.MM_Time[i].ID = null;
        document.MM_Time[i].curFrame = 0;
        document.MM_Time[i].delay = 1000/document.MM_Time[i].fps;
    }
}