	// APSCardio.org General Javascript Functions
	// by Jay Nason, PrestoWebsite.com
	// v0.1   Feb 2, 2007

      // generic DOM code returns the table element from a child node
      function findTableParent(node) {
        var node = node.parentNode;
        while (node.tagName != "TABLE") {
          node = node.parentNode;
        }
        return node;
      }

      // generic DOM code returns the table element from the document
      // determined by a given index
      function findTableIndexed(theIndex) {
        return (document.getElementsByTagName('TABLE'))[theIndex];
      }

      // trigger function for changing a tables background color
      function changeTableColor(theTable,theColor) {
        theTable.style.backgroundColor = theColor;
      }
      
      function docView(docURL, docTitle) {
      	docViewWindow = window.open('', 'docViewer','menubar=0,toolbar=0,location=0,directories=0,resizable=1,scrollbars=0,channelmode=0,width=740,height=560');
      	docViewWindow.document.writeln('<html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252">'
      		+'<title>'+docTitle+'</title></head><body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0" style="font-family: Arial; font-size: 12px">'
      		+'<iframe name="I1" height="100%" width="100%" src="'+docURL+'" border="0" frameborder="0"><center><font color="red"><b>Your browser does not support inline frames'
      		+' or is currently configured not to display inline frames.</font></b><br><br>Download the file here: <a href="'+docURL
      		+'" class="link02">'+docURL+'</a></iframe></body></html>');
      	docViewWindow.focus();
      }
      

/***********************************************
* Cross browser Marquee II- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

var delayb4scroll=2000 //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)
var marqueespeed=1 //Specify marquee scroll speed (larger is faster 1-10)
var pauseit=1 //Pause marquee onMousever (0=no. 1=yes)?

////NO NEED TO EDIT BELOW THIS LINE////////////

var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var actualheight=''

function scrollmarquee(){
if (parseInt(cross_marquee.style.top)>(actualheight*(-1)+8))
cross_marquee.style.top=parseInt(cross_marquee.style.top)-copyspeed+"px"
else
cross_marquee.style.top=parseInt(marqueeheight)+8+"px"
}

function initializemarquee(){
cross_marquee=document.getElementById("vmarquee")
cross_marquee.style.top=0
marqueeheight=document.getElementById("marqueecontainer").offsetHeight
actualheight=cross_marquee.offsetHeight
if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
cross_marquee.style.height=marqueeheight+"px"
cross_marquee.style.overflow="scroll"
return
}
setTimeout('lefttime=setInterval("scrollmarquee()",30)', delayb4scroll)
}

if (window.addEventListener)
window.addEventListener("load", initializemarquee, false)
else if (window.attachEvent)
window.attachEvent("onload", initializemarquee)
else if (document.getElementById)
window.onload=initializemarquee

    