/* * ------- * :ATTRIBUTION NOTICE BEGINS * * The following JSMsg functions are: * * (C) Copyright 2002 - 2004, Creativyst, Inc. * ALL RIGHTS RESERVED * * For more information go to: * http://www.Creativyst.com/Doc/Std/JSMsg/JSMsg.htm * or email: * Support@Creativyst.com * * Licensed under the Open Software License version 1.1 * * END ATTRIBUTION NOTICE: * ------- * * The following version token is * required by aggregators * ------- * JSMsgVersion:1.0a * ------- * * Made by: JSMFeed.pl v1.0e */ /* JSCpragma:StartCompress */ /* These functions are free software; you can redistribute * them and/or modify them under the terms of the Open * Software License (OSL) version 1.1 as published by * the Open Source Initiative; * * This program is distributed in the hope that it will * be useful, but WITHOUT ANY WARRANTY; without even the * implied warranty of MERCHANTABILITY or FITNESS FOR A * PARTICULAR PURPOSE. See the Open Software License * version 1.1 for more details. * * For the complete details of the Open Software License * please visit the Open Source Initiative website. * * * These functions are part of a shared convention. * called JSMsg. Please see the JSMsg document * for more details. * * www.creativyst.com/Doc/Std/JSMsg/JSMsg.htm * * ------------------------------------------- * Parts of this code were automatically * generated and may contain copyrighted * content from other sources as well. * Such content may not be used without * first obtaining explicit permissions * from their sources. * * */ function nn_JSMsg() { this.Title = Array([this.ShortListSize]); this.Desc = Array([this.ShortListSize]); this.Link = Array([this.ShortListSize]); this.DateN = Array([this.ShortListSize]); this.MetaKeys = Array([4]); this.MetaVals = Array([4]); this.ShortListSize = 19; this.BeenLoaded = 0; this.dispNumb; this.Msg = function(msgPart, msgOffset) { document.write( this.Get(msgPart, msgOffset) ); } this.MsgDay = function(msgPart) { document.write( this.GetDay(msgPart) ); } this.MsgN = function(msgPart, msgNumber) { document.write( this.GetN(msgPart, msgNumber) ); } this.Get = function(msgPart, msgOffset) { if(!msgOffset) { msgOffset = 0; } if(!this.BeenLoaded) { this.BeenLoaded = 1; dispNumb = this.getRandInt(this.ShortListSize); } return( this.GetN(msgPart, (dispNumb + msgOffset)) ); } this.GetMsgN = function() { return(this.ShortListSize); } this.GetDay = function(msgPart) { var d = new Date(); var x = d.getDate(); return( this.GetN(msgPart, x) ); } this.GetN = function(msgPart, msgNumber) { return( this.GetNCore(msgPart, msgNumber) ); } this.GetNCore = function(msgPart, msgNumber) { var myTmp; if(!msgPart) { msgPart = "Body"; } if(!msgNumber) { msgNumber = 0; } if(msgNumber >= this.ShortListSize) { msgNumber = msgNumber % this.ShortListSize; } if( this.ok(msgPart,"Type") ) { return(this.Type[msgNumber]); } if( this.ok(msgPart,"Title") ) { return(this.Title[msgNumber]); } if( this.ok(msgPart, "Desc Description Content") ) { return(this.Desc[msgNumber]); } if( this.ok(msgPart,"Body") ) { return(this.Body[msgNumber]); } if( this.ok(msgPart, "Attrib Attribute Source") ) { return(this.Attrib[msgNumber]); } if( this.ok(msgPart, "Author") ) { if(!this.Author[msgNumber]) { return(this.Attrib[msgNumber]); } return(this.Author[msgNumber]); } if( this.ok(msgPart,"DayN Day2N Day") ) { myTmp = this.DateN[msgNumber]; if(myTmp.length) { myTmp = myTmp.substr(6,2); if( this.ok(msgPart,"Day2N") ) { return(myTmp); } if(myTmp.charAt(0) == "0") { return(myTmp.substr(1,1)) } return(myTmp); } } if( this.ok(msgPart, "MonthN Month2N") ) { myTmp = this.DateN[msgNumber]; if(myTmp.length) { myTmp = myTmp.substr(4,2) if( this.ok(msgPart,"Month2N") ) { return(myTmp); } if(myTmp.charAt(0) == "0") { return(myTmp.substr(1,1)) } return(myTmp); } } if( this.ok(msgPart, "Year2N Year4N YearN Year") ) { if(this.DateN[msgNumber].length) { if( this.ok(msgPart,"Year2N") ) { return(this.DateN[msgNumber].substr(2,2)); } return(this.DateN[msgNumber].substr(0,4)); } } if( this.ok(msgPart,"Time") ) { myTmp = this.DateN[msgNumber]; return(myTmp.substr(8,6)); } if( this.ok(msgPart,"Hour2N") ) { myTmp = this.DateN[msgNumber]; return(myTmp.substr(8,2)); } if( this.ok(msgPart,"Minute2N") ) { myTmp = this.DateN[msgNumber]; return(myTmp.substr(10,2)); } if( this.ok(msgPart,"Link") ) { return(this.Link[msgNumber]); } if( this.ok(msgPart,"LinkTitle") ) { if(this.MetaMsg(msgPart,"Link") && this.MetaMsg(msgPart,"Title") ) { if( !this.Link[msgNumber] ) { return(this.Title[msgNumber]); } if( !this.Title[msgNumber] ) { this.Title[msgNumber] = this.Link[msgNumber]; } myTmp = '\n'; myTmp = myTmp + this.Title[msgNumber] + '\n'; return(myTmp); } if( this.MetaMsg(msgPart,"Title") ) { return(this.Title[msgNumber]); } if( this.MetaMsg(msgPart,"Link") ) { if( this.Link[msgNumber] ) { myTmp = "\n"; myTmp = myTmp + this.Link[msgNumber] + "\n"; return(myTmp); } } return(""); } if( this.ok(msgPart,"Cat Category Subject") ) { return(this.Cat[msgNumber]); } if( this.ok(msgPart,"Thumb") ) { return(this.Thumb[msgNumber]); } if( this.ok(msgPart,"Alt") ) { return(this.Alt[msgNumber]); } return(""); } this.getRandInt = function(RandSz) { var t, t2, t3; t = 0; while(t < .000001) { t = Math.random(); t = Math.abs(t); } t2 = t * 1000000; t2 = Math.round(t2); t3 = t2 % RandSz; return(t3); } this.ok = function(a, b) { var t, t2; if(!this.is(a,b)) { return(0); } return(this.MetaMsg(a)); } this.is = function(a, b) { var t, t2; t = a + " "; t2 = b + " "; t2 = t2.toUpperCase(); t = t.toUpperCase(); if(t2.indexOf(t) == -1) { return(0); } return(1); } this.MetaMsg = function(msgCmd) { var i,l; if( this.is(msgCmd, "Title LinkTitle Desc Description Link LinkTitle DayN Day2N MonthN Month2N Year2N Year4N YearN Year Time Hour2N Minute2N ") ) { return(1); } else if( this.is(msgCmd, "MetaCount") ) { return(19); } else { if(this.MetaKeys) { l = this.MetaKeys.length; for(i = 0;i < l;i++) { if(this.MetaKeys[i] == msgCmd) { return(this.MetaVals[i]); } } } return(0); } } } nn = new nn_JSMsg(); /* how slow is the with statement */ with( nn ) { /* Meta values */ MetaKeys[0] = "MetaTitle"; MetaVals[0] = "National Institutes of Health (NIH) News Releases"; MetaKeys[1] = "MetaLink"; MetaVals[1] = "http://www.nih.gov/news/"; MetaKeys[2] = "MetaLinkTitle"; MetaVals[2] = "National Institutes of Health (NIH) News Releases"; MetaKeys[3] = "MetaDesc"; MetaVals[3] = "News Releases from the National Institutes of Health (NIH)"; /* content vaues: */ Title[0] = "Elias A. Zerhouni, M.D., NIH Director, Announces New NIH CIO"; Desc[0] = "Bethesda, Maryland October 7, 2008 — Elias A. Zerhouni, M.D., Director of the National Institutes of Health (NIH), U.S. Department of Health and Human Services, is pleased to announce the appointment of John F. "Jack" Jones, Ph.D., as NIH Chief Information Officer (CIO), effective June 22, 2008. "; Link[0] = "http://www.nih.gov/news/health/oct2008/od-07.htm"; DateN[0] = "20081007112500"; Title[1] = "Human Microbiome Project Awards Funds for Technology Development, Data Analysis and Ethical Research"; Desc[1] = "The National Institutes of Health (NIH) today announced the first awards for its Human Microbiome Project, which will lay a foundation for efforts to explore how complex communities of microbes interact with the human body to influence health and disease. The funding, estimated to be up to approximately $21.2 million, will support the development of innovative technologies and computational tools, coordination of data analysis, and an examination of some of the ethical, legal and social implications of human microbiome research."; Link[1] = "http://www.nih.gov/news/health/oct2008/nhgri-07.htm"; DateN[1] = "20081007103000"; Title[2] = "NIAID Announces 25 New Awards to Develop Radiation Countermeasures"; Desc[2] = "The National Institute of Allergy and Infectious Diseases (NIAID), part of the National Institutes of Health, has awarded 25 new grants to develop new and better diagnostics and treatments for radiation exposure after a nuclear attack. Several of these grants were awarded under Project Bioshield Authority, legislation that enables NIAID within the Department of Health and Human Services (HHS) to use a rapid award process to help stimulate research on medical countermeasures against chemical, biological, radiological or nuclear (CBRN) threats."; Link[2] = "http://www.nih.gov/news/health/oct2008/niaid-07.htm"; DateN[2] = "20081007091500"; Title[3] = "Anti-Cancer Drug Prevents, Reverses Cardiovascular Damage in Mouse Model of Premature Aging Disorder"; Desc[3] = "An experimental anti-cancer drug can prevent -- and even reverse -- potentially fatal cardiovascular damage in a mouse model of progeria, a rare genetic disorder that causes the mostdramatic form of human premature aging, National Institutes of Health (NIH) researchers reported today."; Link[3] = "http://www.nih.gov/news/health/oct2008/nhgri-06.htm"; DateN[3] = "20081007075500"; Title[4] = "Noted Geriatrician Named Aging Institute Deputy Director"; Desc[4] = "Marie A. Bernard, M.D., a noted geriatrician and educator from the University of Oklahoma, has been named deputy director of the National Institute on Aging (NIA), part of the National Institutes of Health (NIH), effective Oct. 12, 2008. Bernard brings exceptional skills and training as a physician, educator, administrator and investigator to the position at NIA, where she will take a major leadership role in directing the nation’s research program on aging and on age-related cognitive change."; Link[4] = "http://www.nih.gov/news/health/oct2008/nia-06.htm"; DateN[4] = "20081006163000"; Title[5] = "NIH Scientists Identify Link Between Brain Systems Implicated in Schizophrenia"; Desc[5] = "Scientists at the National Institutes of Health have deciphered the complex relationship between three distinct brain circuits implicated in schizophrenia. The researchers determined that one brain circuit acts through an intermediary brain circuit. The intermediary circuit acts like a volume control knob, turning up the electrical activity of still another brain circuit, or turning it down. The finding suggests that schizophrenia could result from a malfunction anywhere in the link between these three brain circuits."; Link[5] = "http://www.nih.gov/news/health/oct2008/nichd-06.htm"; DateN[5] = "20081006113000"; Title[6] = "NIH Launches New Web Site for Parents on Medical Research Studies for Children"; Desc[6] = "A new Web site from the National Institutes of Health (NIH), "Children and Clinical Studies" (www.ChildrenAndClinicalStudies.nhlbi.nih.gov), offers parents and health care providers an insider's guide to children's medical research."; Link[6] = "http://www.nih.gov/news/health/oct2008/nhlbi-06.htm"; DateN[6] = "20081006093000"; Title[7] = "Scientists Identify Gene Variant Involved in Isolated Cleft Lip"; Desc[7] = "About 20 percent of isolated cleft lip, one of the world’s most common birth defects, may be due to a one-letter difference in the DNA sequence of a gene involved in facial development, researchers supported by the National Institutes of Health report. "; Link[7] = "http://www.nih.gov/news/health/oct2008/nidcr-05.htm"; DateN[7] = "20081006093000"; Title[8] = "NIH's National Children's Study Enters Next Phase"; Desc[8] = "The National Institutes of Health announced today that its comprehensive study to examine the effect of genes and the environment on children's health had entered the next phase of operations. At a briefing on the latest developments in the National Children's Study, NIH officials named the study centers funded for 2008."; Link[8] = "http://www.nih.gov/news/health/oct2008/nichd-03.htm"; DateN[8] = "20081003110500"; Title[9] = "DNA of Good Bacteria Drives Intestinal Response to Infection"; Desc[9] = "A new study shows that the DNA of so-called "good bacteria" that normally live in the intestines may help defend the body against infection. The findings, available October 2 online in the journal Immunity, are reported by Yasmine Belkaid, Ph.D., and her colleagues in the Laboratory of Parasitic Diseases at the National Institute of Allergy and Infectious Diseases (NIAID), part of the National Institutes of Health. "; Link[9] = "http://www.nih.gov/news/health/oct2008/niaid-02.htm"; DateN[9] = "20081002161000"; Title[10] = "Millisecond Brain Signals Predict Response to Fast-Acting Antidepressant"; Desc[10] = "In the new study at the National Institutes of Health in Bethesda, MD, depressed patients showed increasing activity in a mood-regulating hub near the front of the brain while viewing flashing frightful faces -- the more the increase, the better their response to an experimental fast-acting medication called ketamine."; Link[10] = "http://www.nih.gov/news/health/oct2008/nimh-02.htm"; DateN[10] = "20081002145000"; Title[11] = "NIDCD Launches Campaign to Protect the Hearing of Tweens"; Desc[11] = "A new campaign to help parents of 8- to 12-year-olds teach their children how to avoid hearing loss from overexposure to loud noise was launched today by the National Institute on Deafness and Other Communication Disorders (NIDCD), part of the National Institutes of Health. "; Link[11] = "http://www.nih.gov/news/health/oct2008/nidcd-02.htm"; DateN[11] = "20081002101000"; Title[12] = "NCI Launches First-Ever Study to Determine if Biomarkers Can Help Guide Treatment for Lung Cancer"; Desc[12] = "This study, sponsored by the National Cancer Institute (NCI), part of the National Institutes of Health, is called MARVEL (Marker Validation for Erlotinib in Lung Cancer) and will attempt to definitively establish the future value of selecting patients for treatment based on the presence or absence of EGFR activation."; Link[12] = "http://www.nih.gov/news/health/oct2008/nci-02.htm"; DateN[12] = "20081002101000"; Title[13] = "NIH Announces Initial Implementation Timeline For Enhancing Peer Review Activity"; Desc[13] = "The National Institutes of Health (NIH) announced today that it will begin implementing changes to enhance its peer review system, after an extensive, year-long review. While the peer review system is a cornerstone of NIH, the increasing complexity and interdisciplinary nature of modern research has created a number of new challenges and demands on the system that merit enhancements in critical areas."; Link[13] = "http://www.nih.gov/news/health/sep2008/od-30a.htm"; DateN[13] = "20080930100000"; Title[14] = "NIH Named to AARP's List of Best Employers for Workers Over 50"; Desc[14] = "The National Institutes of Health has been named to AARP's list of Best Employers for Workers Over 50. NIH is the first federal agency to make the AARP list, placing eleventh in the 2008 rankings."; Link[14] = "http://www.nih.gov/news/health/sep2008/od-30.htm"; DateN[14] = "20080930100000"; Title[15] = "NIDA NewsScan #55"; Desc[15] = "The NIDA NewsScan #55 examines the latest findings on drug abuse on the aging brain as well key issues including the relationship between nicotine addiction and adolescents, effect of parents' sobriety counseling on children's behavior as well as 12-step meetings on sustained abstinence and increased participation in community–based treatment as a result from methadone maintenance before prison release. The National Institute on Drug Abuse (NIDA) is part of the National Institutes of Health (NIH)."; Link[15] = "http://www.nih.gov/news/health/sep2008/ns-55.pdf"; DateN[15] = "20080930092500"; Title[16] = "NIH Announces Funding for New Epigenomics Initiative"; Desc[16] = "The National Institutes of Health (NIH) announces funding for the new NIH Roadmap Epigenomics Program. Epigenetic processes control normal growth and development, and epigenomics is a study of epigenetic processes at a genome-wide scale. The NIH will invest more than $190 million over the next five years to accelerate this emerging field of biomedical research. The first grants will total approximately $18 million in 2008."; Link[16] = "http://www.nih.gov/news/health/sep2008/od-29.htm"; DateN[16] = "20080929165500"; Title[17] = "Dietary Supplements Glucosamine and/or Chondroitin Fare No Better than Placebo in Slowing Structural Damage of Knee Osteoarthritis"; Desc[17] = "The dietary supplements glucosamine and chondroitin sulfate, together or alone, appeared to fare no better than placebo in slowing loss of cartilage in osteoarthritis of the knee, researchers from the Glucosamine/chondroitin Arthritis Intervention Trial (GAIT) team report in the October issue of "Arthritis & Rheumatism." "While these results are of interest, we cannot draw definitive conclusions about the utility of glucosamine or chondroitin in reducing joint space width loss, in part because the placebo group fared better than anticipated based on prior research results," said Josephine P. Briggs, M.D., director of the National Center for Complementary and Alternative Medicine, at the National Institutes of Health (NIH), one of the study’s funders. "; Link[17] = "http://www.nih.gov/news/health/sep2008/nccam-29.htm"; DateN[17] = "20080929145500"; Title[18] = "Parkinson's Disease Information Added to NIHSeniorHealth Web Site"; Desc[18] = "More than half a million Americans suffer from Parkinson's disease, a brain disorder that leads to tremor and difficulty with walking, movement, and coordination. Although not a normal part of aging, Parkinson's occurs most often among people 60 and older, and the risk increases with age. Older adults now can visit the NIHSeniorHealth Web site to learn more about Parkinson's disease at www.nihseniorhealth.gov/parkinsonsdisease/toc.html. The Web site from the National Institutes of Health (NIH) is geared toward older adults and features clear language."; Link[18] = "http://www.nih.gov/news/health/sep2008/nia-29.htm"; DateN[18] = "20080929104500"; } // end with block