
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_timelineGoto(tmLnName, fNew, numGotos) { //v2.0
  //Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004 Macromedia, Inc. All rights reserved.
  var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,lastKeyFr,propNum,theObj;
  if (document.MM_Time == null) MM_initTimelines(); //if *very* 1st time
  tmLn = document.MM_Time[tmLnName];
  if (numGotos != null)
    if (tmLn.gotoCount == null) tmLn.gotoCount = 1;
    else if (tmLn.gotoCount++ >= numGotos) {tmLn.gotoCount=0; return}
  jmpFwd = (fNew > tmLn.curFrame);
  for (i = 0; i < tmLn.length; i++) {
    sprite = (jmpFwd)? tmLn[i] : tmLn[(tmLn.length-1)-i]; //count bkwds if jumping back
    if (sprite.charAt(0) == "s") {
      numKeyFr = sprite.keyFrames.length;
      firstKeyFr = sprite.keyFrames[0];
      lastKeyFr = sprite.keyFrames[numKeyFr - 1];
      if ((jmpFwd && fNew<firstKeyFr) || (!jmpFwd && lastKeyFr<fNew)) continue; //skip if untouchd
      for (keyFrm=1; keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]; keyFrm++);
      for (j=0; j<sprite.values.length; j++) {
        props = sprite.values[j];
        if (numKeyFr == props.length) propNum = keyFrm-1 //keyframes only
        else propNum = Math.min(Math.max(0,fNew-firstKeyFr),props.length-1); //or keep in legal range
        if (sprite.obj != null) {
          if (props.prop2 == null) sprite.obj[props.prop] = props[propNum];
          else        sprite.obj[props.prop2][props.prop] = props[propNum];
      } }
    } else if (sprite.charAt(0)=='b' && fNew == sprite.frame) eval(sprite.value);
  }
  tmLn.curFrame = fNew;
  if (tmLn.ID == 0) eval('MM_timelinePlay(tmLnName)');
}

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_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

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["pillango"] = document.MM_Time[0];
    document.MM_Time[0].MM_Name = "pillango";
    document.MM_Time[0].fps = 15;
    document.MM_Time[0][0] = new String("behavior");
    document.MM_Time[0][0].frame = 136;
    document.MM_Time[0][0].value = "MM_timelineGoto('pillango','1')";
    document.MM_Time[0].lastFrame = 136;
    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;
    }
}
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(2);
    document.MM_Time["pillango"] = document.MM_Time[0];
    document.MM_Time[0].MM_Name = "pillango";
    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["pillango"];
    else if (ns5)
        document.MM_Time[0][0].obj = document.getElementById("pillango");
    else
        document.MM_Time[0][0].obj = document.all ? document.all["pillango"] : null;
    document.MM_Time[0][0].keyFrames = new Array(14, 19, 24, 25, 29, 30, 34, 37, 40, 42, 43, 45, 47, 48, 50, 51, 55, 61, 63, 66, 69, 74, 79, 82, 87, 90, 94, 97, 100, 103, 107, 110, 113, 118, 123, 127, 129, 131, 136);
    document.MM_Time[0][0].values = new Array(3);
    if (ns5 || macIE5)
        document.MM_Time[0][0].values[0] = new Array("-75px", "-34px", "6px", "47px", "90px", "135px", "182px", "227px", "270px", "306px", "335px", "232px", "214px", "201px", "191px", "189px", "257px", "296px", "340px", "385px", "425px", "453px", "467px", "493px", "543px", "598px", "650px", "697px", "717px", "693px", "754px", "815px", "796px", "769px", "748px", "758px", "767px", "712px", "740px", "771px", "809px", "860px", "901px", "939px", "978px", "1015px", "1053px", "1092px", "1054px", "1014px", "1047px", "1082px", "1115px", "1052px", "976px", "902px", "870px", "848px", "830px", "810px", "785px", "760px", "741px", "723px", "704px", "677px", "653px", "641px", "618px", "590px", "567px", "546px", "525px", "501px", "457px", "412px", "362px", "347px", "344px", "340px", "315px", "239px", "158px", "94px", "95px", "123px", "153px", "180px", "210px", "251px", "270px", "280px", "287px", "294px", "305px", "314px", "306px", "260px", "205px", "148px", "140px", "143px", "150px", "156px", "157px", "129px", "111px", "97px", "87px", "82px", "98px", "124px", "152px", "172px", "85px", "2px", "-39px", "-75px", "-80px", "-81px", "-79px", "-77px", "-75px");
    else
        document.MM_Time[0][0].values[0] = new Array(-75,-34,6,47,90,135,182,227,270,306,335,232,214,201,191,189,257,296,340,385,425,453,467,493,543,598,650,697,717,693,754,815,796,769,748,758,767,712,740,771,809,860,901,939,978,1015,1053,1092,1054,1014,1047,1082,1115,1052,976,902,870,848,830,810,785,760,741,723,704,677,653,641,618,590,567,546,525,501,457,412,362,347,344,340,315,239,158,94,95,123,153,180,210,251,270,280,287,294,305,314,306,260,205,148,140,143,150,156,157,129,111,97,87,82,98,124,152,172,85,2,-39,-75,-80,-81,-79,-77,-75);
    document.MM_Time[0][0].values[0].prop = "left";
    if (ns5 || macIE5)
        document.MM_Time[0][0].values[1] = new Array("100px", "80px", "59px", "40px", "26px", "20px", "30px", "49px", "71px", "96px", "123px", "185px", "210px", "237px", "266px", "294px", "361px", "358px", "348px", "330px", "302px", "243px", "176px", "116px", "75px", "47px", "34px", "60px", "103px", "194px", "140px", "84px", "139px", "179px", "122px", "171px", "228px", "130px", "168px", "212px", "257px", "289px", "284px", "268px", "247px", "226px", "206px", "198px", "311px", "407px", "429px", "430px", "414px", "374px", "335px", "310px", "318px", "336px", "357px", "376px", "385px", "368px", "343px", "316px", "289px", "272px", "323px", "381px", "431px", "427px", "411px", "393px", "376px", "360px", "334px", "307px", "296px", "326px", "360px", "396px", "427px", "408px", "369px", "315px", "246px", "189px", "141px", "106px", "79px", "72px", "113px", "161px", "210px", "255px", "299px", "338px", "378px", "397px", "403px", "377px", "326px", "269px", "208px", "152px", "100px", "119px", "148px", "176px", "205px", "237px", "279px", "316px", "354px", "394px", "353px", "318px", "358px", "400px", "351px", "294px", "231px", "165px", "100px");
    else
        document.MM_Time[0][0].values[1] = new Array(100,80,59,40,26,20,30,49,71,96,123,185,210,237,266,294,361,358,348,330,302,243,176,116,75,47,34,60,103,194,140,84,139,179,122,171,228,130,168,212,257,289,284,268,247,226,206,198,311,407,429,430,414,374,335,310,318,336,357,376,385,368,343,316,289,272,323,381,431,427,411,393,376,360,334,307,296,326,360,396,427,408,369,315,246,189,141,106,79,72,113,161,210,255,299,338,378,397,403,377,326,269,208,152,100,119,148,176,205,237,279,316,354,394,353,318,358,400,351,294,231,165,100);
    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][0].values[2] = new Array("visible","visible","visible","visible","visible","visible","visible","visible","visible","visible","visible","visible","visible","visible","visible","visible","visible","visible","visible","visible","visible","visible","visible","visible","visible","visible","visible","visible","visible","visible","visible","visible","visible","visible","visible","visible","visible","visible","visible");
    document.MM_Time[0][0].values[2].prop = "visibility";
    if (!ns4)
        document.MM_Time[0][0].values[2].prop2 = "style";
    document.MM_Time[0][1] = new String("behavior");
    document.MM_Time[0][1].frame = 136;
    document.MM_Time[0][1].value = "MM_timelineGoto('pillango','1')";
    document.MM_Time[0].lastFrame = 136;
    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;
    }
}