

			nua=navigator.userAgent;

			saf=(nua.indexOf('Safari')!=-1);

			konq=(!saf && (nua.indexOf('Konqueror')!=-1) ) ? true : false;

			moz=( (!saf && !konq ) && ( nua.indexOf('Gecko')!=-1 ) ) ? true : false;





  function fTopImageHighlight(aselected) {



    aselected.style.backgroundPosition ='0px 82px'; 

    var intBGPos = -6;

    fMoveBG(aselected,intBGPos);



  }



  function fMoveBG(aselected,intBGPos) {



    if (intBGPos<0) {

      zselected=aselected;

      zintBGPos=intBGPos;

      zintBGPos=zintBGPos+1;

        zselected.style.backgroundPosition ='0px '+zintBGPos+'px'; 

        setTimeout("fMoveBG(zselected,zintBGPos)", 50);

    }



  }



		  zTimeOutSpeed = 1;

		  zTimeOutPace = 3;

			if (saf) {

			} 

			else {

         if (moz) {

				    zTimeOutSpeed = 100;

		        zTimeOutPace = 1;

        }

			}







  function fAniFlash() {



    divh = document.getElementById('hiddenflash').offsetHeight;

    zholderheight = divh+10;

    document.getElementById('flashholder').style.height = zholderheight+'px';

    zcurrheight = document.getElementById('flashblock').offsetHeight;

    if (zcurrheight<divh) {



      znewheight = zcurrheight+zTimeOutPace;

      document.getElementById('flashblock').style.height = znewheight+'px';

      setTimeout("fAniFlash()", zTimeOutSpeed);

    }

    else {

      document.getElementById('flashblock').innerHTML = document.getElementById('hiddendnatag').innerHTML;

    }



 }





  function fClearBullets() {



    zholder = document.getElementById('BulletsContainer');

    var lis = zholder.getElementsByTagName('li');  

    for(var i=0; i<lis.length; i++) {       

      lis[i].className = '';    

    }



  }

  function fHighlightBullet(aselected) {

    aselected.className = 'hoverli';

  }



  function fOpenPopWindow(aSelectedSecID,aSectionName,aSectionFileLink) {

    var dynpopwin=dhtmlwindow.open("popbox", "iframe", "http://www.dnaeconomics.com/detailspage.php?zSelectedSectionID="+aSelectedSecID+"&zSectionName="+aSectionName, aSectionName, "width=600px,height=380px,resize=1,scrolling=1,center=1", "recal", aSectionFileLink)

    dynpopwin.onclose=function() { 

      return true;

    }  

    dynpopwin.show();

  }



  function fOpenPrinterFriendly() {

      var zcurrcontent = window.frames["_iframe-popbox"].location.href;

      var zprintcontent = zcurrcontent+'&zPrintVersion=Y';

      window.open(zprintcontent);

  }













