/* #####################################################################
   This page contains the static content for the Web site, please edit
   it with caution. 
   
   NOTE that any content containing special characters such as double 
   quotes ("), single quote (') or ankle brackets (<, >) must be substituted with browser code
   	" - &quote;
   	' - &rsquo;
   	< - &lt;
   	> - &gt;
   	space - &nbsp;
   ##################################################################### */ 

/**********************
 GENERAL CONTENT 
***********************/
var mainPhoneNumber = "212.871.0227";
var mainEmail = "info@nysleepinstitute.com";
var toPageTop = "Top of page";

//language map - make sure the languageValue and languageDisplay match up
var languageValue = new Array("en","es");
var languageDisplay = new Array("English","Spanish");

// General Links
//var lnkHome = "/";
var lnkHome = "index.shtml"
var lnkMeet = "meet_us.shtml";
var lnkGuide = "guide_overview.shtml";
var lnkGuideOverview = "guide_overview.shtml";
var lnkGuideVisit = "guide_visit.shtml";
var lnkGuideFacilities = "guide_facilities.shtml";
var lnkServices = "services.shtml";
var lnkInfo = "info_sleepaz.shtml";
var lnkCaffeineInfo = "caffeine_info.shtml";
var lnkLightTherapyInfo = "light_therapy_info.shtml";
var lnkSleepHygieneInfo = "sleep_hygiene_info.shtml";
var lnkInfoAZ = "info_sleepaz.shtml";
var lnkInfoLinks = "info_links.shtml";
var lnkSleepApnea = "sleep_apnea.shtml";
var lnkQuiz = "quiz.shtml";
var lnkQuizResult = "quiz_result.php";
var lnkTermUse = "term_use.shtml";
var likContact = "contact_us.php";

// Featured Service - Nocturnal Polysomnogram Diagnosis
var lnkFeaturedServices = lnkServices + "#srvc_NPD"; 

// Top Nav Tooltip
var ttHome = "Go to homepage";
var ttMeet = "Meet our staff";
var ttServices = "Check out our wide range of professional services";
var ttGuide = "Learn more about our mission, billing & time, facilities etc";
var ttGuideOverview = "Institute Overview";
var ttGuideVisit = "About Your Visit";
var ttGuideFacilities = "Our Facilities";
var ttInfo = "Look up sleep topics A-Z and check out links to other sleep resources";
var ttInfoAZ = "Sleep health topics A-Z";
var ttCaffeineInfo = "Caffeine content in beverages, foods and drugs";
var ttLightTherapyInfo = "Light therapy related information";
var ttSleepHygieneInfo = "Sleep hygiene related information";
var ttInfoLinks = "Useful links to sleep-related sites";
var ttSleepApnea = "Sleep apnea resources";
var ttQuiz = "Take a quick online Sleep Quiz";
var ttContact = "Schedule an appointment or request for more information";
var ttJob = "Current Job Openings";

/**********************
 HOMEPAGE 
***********************/
// Content
var welcomeTxt1 = "Proper sleep, in addition to adequate nutrition is essential for health.  The symptoms of sleep disorders, such as chronic insomnia, snoring, sleep apnea, fragmented sleep and daytime sleepiness are common and often ignored.  According to the National Sleep Disorders Research Center, only five percent of these sleep ailments are successfully diagnosed and treated.  The problem stems from the lack of public knowledge about what comprises a sleep disorder.";
var welcomeTxt2 = "Most people are unaware that sleep ailments can be associated with serious medical conditions.  In fact, sleep apnea (often indicated by snoring), a condition causing patients to stop breathing during sleep, is associated with hypertension, heart disease, and stroke.  Common ailments such as insomnia, if chronic and left untreated, can lead to depression and daytime sleepiness, which contribute to motor vehicle accidents.";
var welcomeTxt3 = "Fortunately, sleep disorders are diagnosable and treatable.  The New York Sleep Institute is where you can find the information you need - from our Sleep Health A-Z dictionary to our online sleep survey.  Alternatively, you can call us at <b>" + mainPhoneNumber + "</b> to make an appointment with one of our sleep specialists at our offices located in New York City."

var featuredSrvcTitle = "Nocturnal Polysomnography (Diagnostic)";
var featuredSrvcDetail = "A nocturnal polysomnogram or sleep study is a noninvasive test which records your sleep pattern, breathing, oxygen level, heart rate and rhythm, and muscle tone while you sleep overnight in a private hotel-like room at the New York Sleep Institute.";
var featuredSrvcTitleMoreLink = "Learn more about ";
var featuredSrvcMoreTitle = "Learn More";
var featuredSrvcMore = " +learn More";

var headline1 = "<a href=\"javascript:writeNewsArticle('dyk5');\">An Accredited Center of the American Academy of Sleep Medicine</a>";
var headline2 = "<a href=\"contact_us.php\">Job Opportunities</a>";
var headline3 = "<a href=\"javascript:writeNewsArticle('dyk4');\">VIAGRA WORSENS OBSTRUCTIVE SLEEP ...</a>";
var headline4 = "<a href=\"javascript:writeNewsArticle('dyk1');\">Many of those with obstructive ...</a>";
var headline5 = "<a href=\"javascript:writeNewsArticle('dyk2');\">Iron deficiency may be a cause ...</a>";
var headline6 = "<a href=\"javascript:writeNewsArticle('dyk3');\">Avoiding midnight snacks and alcoholic ...</a>";

var dyk1 = "Many of those with obstructive sleep apnea are overweight, and it's believed that weight loss may help alleviate their sleep problems.";
var dyk2 = "Iron deficiency may be a cause of Restless Legs Syndrome (RLS)";
var dyk3 = "Avoiding midnight snacks and alcoholic beverages can prevent snoring.&nbsp;&nbsp;Drinking alcohol or eating heavily before going to sleep causes muscles to slacken.";
var dyk4 = "<b><u>VIAGRA WORSENS OBSTRUCTIVE SLEEP APNEA</u></b> Obstructive Sleep Apnea (OSA) contributes to erectile dysfunction. A new study has shown that the medication Viagra may worsen Obstructive Sleep Apnea. Viagra causes upper airway congestion, muscle relaxation and pulmonary vasodilatation. A single dose of Viagra showed to worsen respiratory and desaturation events. This article appeared in the Archives of Internal Medicine Journal of September 18th 2006."
var dyk5 = "We are also an accredited center of the <a href=\"http://www.aasmnet.org/\" target=\"_blank\">American Academy of Sleep Medicine</a>, which means we meet and exceed the highest patient care standards in the field of sleep medicine."
var dyk6 = "Join our fast-paced AASM-accredited sleep center.  We offer competitive healthcare and vacation benefits.  Please see our current job openings and apply now!<br/><br/>NYSI is an equal opportunity employer and does not discriminate on the basis of gender, race, color, creed, age, national origin, marital status, disability, religion, sexual orientation or any legally protected status.";

var headlineLink = "<p class=\"more\"><a href=\"javascript:writeHeadlines();\">+headlines</a></p>";

/**********************
 ABOUT US 
***********************/
var pplIntro = "The team of professionals at the New York Sleep Institute consists of board certified sleep specialists, and includes neurologists, pulmonologists and certified sleep technologists."

// Content - Overview
var overviewIntro = pplIntro + "  State of the art technology combines with a beautifully appointed, contemporary setting to provide the ideal environment for your sleep study. The New York Sleep Institute is conveniently located in the attractive Murray Hill section of Manhattan. This state-of-the-art facility has 6 patient testing rooms and offers the latest technology in diagnosing sleep disorders.  We are also an accredited center of the <a href=\"http://www.aasmnet.org/\" target=\"_blank\">American Academy of Sleep Medicine</a>, which means we meet and exceed the highest patient care standards in the field of sleep medicine.";
var missionStmt_label = "Mission Statement";
var missionStmt = "The mission of the New York Sleep Institute is to provide innovative treatment for people with sleep disorders so that they have the opportunity to achieve healthy, productive lives. We aim to be the preferred provider of sleep medicine in the Greater Metropolitan area by offering comprehensive, specialist-based care, superior customer service, and demonstrable outcomes.";

// Content - People
var mbhatt1 = "Dr. Meeta Bhatt, a neurologist and a sleep medicine specialist, received her training in sleep medicine from Dr. Sudhansu Chokroverty, a world renowned sleep specialist and a thought leader in the field.  She has co-authored chapters and presentations with Dr. Chokroverty, and is a co-editor of Atlas of Sleep Medicine, in print.  The areas of sleep medicine that are of special interest to her are diseases of the central and peripheral nervous systems in relation to sleep disorders. Dr. Bhatt is on staff at the NYU Comprehensive Epilepsy Center and is a member of the faculty of NYU's School of Medicine in the Department of Neurology as Assistant Professor of Clinical Neurology. Dr. Bhatt is board certified in neurology, clinical neurophysiology, and sleep medicine.";
var mbhatt2 = "Before joining the New York Sleep Institute, Dr. Bhatt was a Director of EMG Laboratory and Assistant Director of EEG Laboratory in the Department of Neurology at Saint Vincent's Catholic Medical Center, New York, NY.  She also held a joint appointment as an Assistant Professor of Neurology at New York Medical College, Valhalla, NY.  She completed her residency training in neurology and a fellowship in clinical neurophysiology from Saint Vincent's Catholic Medical Center, New York, NY.  During the last year of her residency training, she was appointed the Chief Resident in Neurology.";
var mbhatt3 = "Dr. Bhatt's initial interest and training in neurology and clinical neurophysiology were nurtured in Bombay, India, where she obtained her medical degree and also a Ph.D. in Applied Biology.  She acquired an expertise in the field of electromyography and obtained further training from the Institute of Neurology, Queen Square, London, UK and University Hospital, Uppsala, Sweden, before settling in the US.";
var pwigren = "Dr. Wigren is a clinical psychologist.  She received her Bachelors of Social Sciences from the University of Stockholm, Sweden, an M.A. in Psychology from NYU and a Ph.D. in Clinical Psychology from California School of Professional Psychology.  In addition to working at NYSI, she is currently conducting research related to the biopsychosocial relationship between sleep and breast cancer at Rockefeller University.  Dr. Wigren has worked as a research scientist at NY State Psychiatric Institute, Dept. of Psychiatry College of Physicians and Surgeons at Columbia University/Harvard Medical School, Laboratory of Neurophysiology investigating the relationship between cocaine, sleep, cognition and affect. She has conducted research on bereavement counseling following miscarriage for the Dept. of Epidemiology of Developmental Brain Disorders at NYS PI at Columbia as well.  She has worked as a polysomnographer at sleep disorders institutes in Manhattan.  Dr. Wigren has presented research on the topic of sleep at national conferences and published articles related to psychoanalysis and sleep.  Research interests involve the interactions between sleep, affect and dreams in relationship to women's health and development.  She is fluent in Swedish, French and English.";
var ehanna = "Eric Hanna is a Registered Polysomnographic technologist (RPSGT) and also certified in EEG, Evoked Potentials and Neurophysiologic Intraoperative Monitoring. He was professor of computer science in Ecuador and continued his education studying electronics and updating his knowledge in computer networking. He has worked as a biofeedback therapist, medical technologist and networking specialist for different rehabilitation centers in New York. Also, he has worked as a polysomnographic technologist for several well recognized sleep centers in New York City, New Jersey and Long Island. He had expertise with a wide variety of digital sleep recordings and has vast experience in CPAP, Bi-PAP and O2 titrations. He is currently studying Psychology at Queens College and his main areas of interest are EEG, Epilepsy, and Sleep Disorders.  He is fluent in Spanish and English.";
var wbarr = "Dr. Barr is the Chief of Neuropsychology at the NYU Comprehensive Epilepsy Center and an Associate Professor of Neurology and Psychiatry at the NYU School of Medicine. Among his clinical duties include neuropsychological assessments, Wada tests, and brain mapping procedures on patients undergoing surgical treatment for epilepsy. He has recently initiated a group treatment program, aimed at treating memory disorders in patients with epilepsy. His research interests include memory and other aspects of cognitive and behavioral functioning in epilepsy. He also does research in sports concussion and serves at the neuropsychological consultant to professional sports teams, including the New York Jets, New York Islanders, and New York Dragons.";
var odevinsky = "Dr. Devinsky is Professor of Neurology, Neurosurgery, and Psychiatry at NYU School of Medicine.  He directs the NYU Comprehensive Epilepsy Center, the Staten Island University Hospital Comprehensive Epilepsy Center, and the Saint Barnabas Institute of Neurology and Neurosurgery (INN).  He received his B.S. and M.S. from Yale University, M.D. from Harvard Medical School and interned at Boston's Beth Israel Hospital.  He completed neurology training at the New York Hospital-Cornell Medical Center and his epilepsy fellowship at the NIH.  Dr. Devinsky's epilepsy research interests include quality-of-life, cognitive and behavioral issues in epilepsy, surgical therapy, and new medications.  He has published widely in epilepsy and behavioral neurology, with more than 200 articles and chapters and more than 15 books.  He has chaired several committees of the American Epilepsy Society and has served as a Board member.   He is active in the American Academy of Neurology and the Epilepsy Foundation.  He is the Co-Editor of Epilepsy and Behavior, on the Editorial Board of several journals, and serves as a reviewer for more than 30 journals.";
var rkuzniecky = "Dr. Kuzniecky directs epilepsy research at the NYU Comprehensive Epilepsy Center.  Prior to arriving at NYU, he directed the Epilepsy Center at the University of Alabama at Birmingham.  He received his medical degree at the Universidad de Buenos Aires School of Medicine in Argentina, and did his residency in neurology, epilepsy, and EEG at McGill University in Montreal, Canada.  He has authored over a hundred books, chapters, and journal articles on a number of topics related to epilepsy, and has received epilepsy research grants from the NIH and beyond.  Dr. Kuzniecky has been recognized for his efforts in the \"Best Doctors in America\" in 1995, 1998, and 2002, only one of the many honors that have been bestowed upon him for his tremendous achievements in the field.";;
var jlajoie = "Dr. LaJoie is Assistant Professor of Neurology and Pediatrics at New York University School of Medicine.  She completed her training in Pediatrics at The New York Hospital-Cornell Medical Center and completed her training in Pediatric Neurology and Clinical Neurophysiology at The Albert Einstein College of Medicine in New York.  She practices general pediatric neurology and specializes in pediatric epilepsy.  She is the published author of several journal articles and book chapters on pediatric epilepsy.  She was recently appointed Director of The Tuberous Sclerosis Center here at NYU and serves on the Physicians Advisory Board of the Epilepsy Foundation of New York City.  Her research interests include Epilepsy Surgery and Alternative treatments in Epilepsy.";
var dluciano = "Dr Luciano is the Director of the Clinical Epilepsy Program at the NYU Comprehensive Epilepsy Center and an assistant professor of clinical neurology at the NYU School of Medicine.   Dr. Luciano received a BA in psychology from Cornell University and then an MD degree from the New Jersey Medical School.   He performed a neurology residency and epilepsy fellowship at Mount Sinai Medical Center before joining the NYU Comprehensive Epilepsy Center.  Dr. Luciano's interests include drug and surgical treatment of epilepsy, post-traumatic epilepsy, behavioral aspects of epilepsy and pseudoseizures.  Dr. Luciano is the vice-chairman of the professional advisory board of the Epilepsy Foundation of Southern New York and is also a member of the advisory boards of several traumatic brain injury organizations.";
var dmiles = "Dr. Miles is the director of the pediatric epilepsy program at NYU Medical Center.  He is a graduate of Rutgers Medical School and completed residencies in pediatrics at St. Christopher's Hospital for Children in Philadelphia and neurology at Children's Memorial Hospital/ Northwestern University in Chicago.  He completed fellowship training in epilepsy and neurophysiology at Children's Hospital in Boston.";
var snadkarni = "Dr. Nadkarni is affiliated with the NYU Comprehensive Epilepsy Center.  He graduated from Brown University, with B.A.'s in Biology and Comparative Literature.  He went to medical school at the University of Miami School of Medicine 1993 to 1997, and did a 6 year combined residency training program in Neurology and Psychiatry, and a one year Neurophysiology/Epilepsy fellowship at NYU.  Dr. Nadkarni's interests include the Behavioral and Psychiatric aspects of Epilepsy, Neurophysiology, Behavioral Neurology, Psychiatry, and Neurology, and his research interests include Psychiatric aspects of Epilepsy from a clinical and neurophysiologic perspective.";
var snajjar = "&lt;COMING SOON&gt;";
var spacia = "Dr. Pacia trained in both Neurology and Epilepsy at the Yale University Medical Center.  There he completed a clinical fellowship and was subsequently awarded an Epilepsy Foundation of America research grant to study computer assisted methods of seizure localization within the brain prior to epilepsy surgery. In 1993, Dr. Pacia became an Assistant Professor and Director of Clinical Neurophysiology at the NYU Comprehensive Epilepsy Center (CEC). Since that time Dr. Pacia has become principal investigator for the NYU site of the first multi-center NIH funded project to study epilepsy surgery.  He was also awarded a PACE (Parents Against Childhood Epilepsy) foundation grant to study the neurochemistry of seizure producing brain regions in patients undergoing epilepsy surgery. Dr. Pacia has also initiated a study of low frequency magnetic stimulation, a prospective study of yoga for the reduction of seizures, and numerous studies of the clinical and EEG features of various types of seizure disorders.  Dr. Pacia has authored numerous peer-reviewed articles on the diagnosis and treatment of Epilepsy.";
var arodriguez = "Dr. Rodriguez is assistant professor of Neurology at New York University School of Medicine.  He graduated with honors from the University of Panama Medical School. After his Internal Medicine training at St. Vincent's Hospital in New York he completed a neurology residency at Tufts-New England Medical Center, in Boston, MA.  Subsequently, he completed two years of subspecialty fellowship in EEG/Epilepsy and Sleep Disorders Medicine at Mayo Clinic, Rochester, MN. Dr. Rodriguez is Board certified in Neurology, Internal Medicine and clinical Neurophysiology. He is also board certified in sleep medicine.   His main areas of clinical interest are EEG, Epilepsy, Video-EEG monitoring and Sleep Disorders. His research field involves the interaction of seizures and epilepsy with the different aspects of sleep, especially in children. Dr Rodriguez is fluent in Spanish and English. Dr. Rodriguez holds the rank of Major in the US army.";
var rscott = "Dr. Scott is a sleep specialist at the New York Sleep Institute and an Assistant Research Professor in the NYU School of Medicine.  She is a licensed clinical health psychologist, is board-certified in sleep disorders medicine and is one of a small group of clinicians certified in behavioral sleep medicine.  She graduated with honors from Notre Dame College with a BA in Psychology, and from Yeshiva University with a PhD in Clinical Health Psychology.  She completed her internship and fellowship at The Sleep Disorders Center at Columbia University Medical Center where she went on to become the Associate Director, and the Director of the Cognitive Behavioral Therapy Program for Insomnia.  In addition to her work a NYSI and The Sleep Disorders Center at CUMC, she holds a medical staff appointment at Rockefeller University Hospital where she is part of team investigating the relationship between sleep and cancer.  She has presented research on insomnia, sleepwalking and other areas of sleep at national conferences.  Her primary areas of interest include the psychophysiological, behavioral, physiological and neurochemical underpinnings of various sleep disorders, cognitive behavioral therapy as a treatment modality for sleep problems, and helping reduce or eliminate sleeping aids in those who feel they dependency issues.";
var bvazquez = "Dr. Vazquez is an attending physician in neurology and Director of Clinical Trials and Outpatient Services at the NYU Comprehensive Epilepsy Center.  Dr. Vazquez received her MD from Cayey School of Medicine in Puerto Rico.  Subsequent to her residencies in internal medicine and neurology at St. Michael’s Medical Center in Newark, New Jersey, and the University of Medicine and Dentistry of New Jersey, respectively, Dr. Vazquez completed an epilepsy fellowship at the Comprehensive Epilepsy Center at New York University Medical Center/Mount Sinai Hospital.  Dr. Vazquez has served as Principal Investigator for multiple ongoing clinical trials.  She is the author or coauthor of many articles in peer-reviewed journals.  Dr. Vazquez is the co-chair of the Professional Advisory Board of the Epilepsy Foundation of New York City, and is a member of the Professional Advisory Board at the Epilepsy Foundation of America.  She is the recipient of the Peter Ho Memorial Award for Humanism in Medicine.";
var fsalazar = "Mr. Freddy Salazar has been part of our team for the past five years.  He graduated from the University of Guayaquil in Ecuador with a BA in Chemical Engineering and has gone on to receive his certification as a registered polysomnographic technologist.  He serves as the Chief Technologist and his expertise in sleep monitoring extend to both the adult and pediatric population. His research interests include the impact of Bruxism on sleep and daytime function.";
var mbernbaum = "Dr. Bernbaum joined the New York Sleep Institue in 2008. She is a graduate of the Stony Brook University School of Medicine and completed a Neurology residency at New York University in 2007 where she was also the Chief Resident in Neurology. Dr. Bernbaum completed a fellowship in Clinical Neurophysiology and Epilepsy at New York University in 2008 and joined the staff of the New York Sleep Institute following fellowship. Dr. Bernbaum's clinical interests include polysomnogram, EEG, video EEG monitoring, the clinical management of patients with epilepsy and the management of sleep disorders and improving the quality of life of patients with sleep disorders and epilepsy.  Dr. Bernbaum is board certified in Neurology by the American Board of Psychiatry and Neurology. She is also board certified in the subspecialities of Clinical Neurophysiology and Sleep Medicine.";
var leng = "Dr. Lily Eng is one of the few dentists trained in the treatment of obstructive sleep apnea with oral appliances. She is a member of The American Academy of Dental Sleep Medicine. She received her B.A. degree from NYU in 1988 and Doctor of Dental Surgery degree from Columbia University in 1993 and completed her residency at the Columbia Presbyterian Medical Center the subsequent year.";

// Content - Facilities
var facilityIntro = "Our 6 beautifully appointed sleep testing rooms are equipped with all that you will need to complete a successful sleep study. Our brand-new facility is staffed with a world-class team of professionals and located in the coveted Murray Hill section of New York City.";
var captionReceptionArea = "Reception Area";
var captionPatientTestingRoom = "Patient Testing Room";
var captionSleepConsultation = "Sleep Consultation";

// Tooltip
var ttOverview = "Overview of Institute";
var ttPeople = "Our Team of Professionals";
var ttFacility = "Our State-of-art Facilities";

/**********************
 Our Services
***********************/
// Content
var srvcIntro1 = "The New York Sleep Institute offers a complete evaluation and treatment of all types of sleep disturbances.  Our institution has sleep specialists who are board certified in sleep medicine and are experienced in treating sleep disorders in both adults and children.  We are also an accredited center of the <a href=\"http://www.aasmnet.org/\" target=\"_blank\">American Academy of Sleep Medicine</a>, which means we meet and exceed the highest patient care standards in the field of sleep medicine.  Some of the diagnostic tests and treatments we provide include:";

var srvc_PSG_label = "Diagnostic Polysomnography (PSG)";
var srvc_PSG = "This type of sleep study measures multiple variables during your sleep: heart rate, oxygen saturation, respiratory effort, respiratory flow through nose and mouth and the different sleep stages the patient has.  We also observe the different body positions of the patients during sleep as well as any behavioral abnormalities.  For study preparation instructions and agreement, please click <a href='docs/StudyPreparationInstructions.doc'>here</a>.";
var srvc_CPAP_label = "Continuous Positive Airway Pressure (CPAP)/Bi-level ventilation with or without oxygen";
var srvc_CPAP = "CPAP is the standard treatment for moderate to severe Obstructive Sleep Apnea Syndrome (OSAS).  Some patients may require a more sophisticated type of ventilation called the bi-level ventilation.  The adequate type of ventilation will depend on the severity of the OSAS and co-morbidities.  Sometimes, the patient will require oxygen treatment as well.  For study preparation instructions and agreement, please click <a href='docs/StudyPreparationInstructions.doc'>here</a>.";
var srvc_EEG_label = "Video EEG-Polysomnography";
var srvc_EEG = "Our technician and professional staff is trained in electroencephalography and we have the capabilities to apply and interpret studies with a full EEG combined with a polysomnography (PSG).  In fact, one of the main research interests of our institute is the effect of sleep in patients with seizures, especially in children.";
var srvc_MSLT_label = "Multiple Sleep Latency Test (MSLT)";
var srvc_MSLT = "This study is sometimes referred to as a “nap”.  It is used to verify and quantify sleepiness.  We measure how fast a patient is able to fall asleep and if the patient will reach REM sleep stage.  It is part of the tests used to diagnose narcolepsy.  For study preparation instructions and agreement, please click <a href='docs/StudyPreparationInstructions.doc'>here</a>.";
var srvc_MWT_label = "Maintenance of Wakefulness Test (MWT)";
var srvc_MWT = "This test measures the ability of the patient to stay awake.  It is used to verify the effectiveness of the therapy the patient is being prescribed.";
var srvc_ATG_label = "Actigraphy";
var srvc_ATG = "This is a small portable electronic device that measures the level of activity during day and night.  This instrument is used by Sleep Medicine specialist to monitor sleep disruption during the night and/or to have an idea of the patient circadian rhythm.";
var srvc_HPO_label = "Home Portable Oximetry";
var srvc_HPO = "This is a small electronic device that measures the patient oxygen level and heart rate during the night.  Its main use is as a screening method for obstructive sleep apnea or to verify the CPAP pressure is adequate for a particular patient.";
var srvc_CBT_label = "Cognitive Behavioral Therapy";
var srvc_CBT = "Cognitive behavioral therapy for insomnia (CBT-I) is an 8-12 week treatment program that helps clients identify and then change thought and behavioral patterns that contribute to insomnia. This change is fostered through education about sleep, behavioral strategies, relaxation training and cognitive therapy.  Recent medical studies have found CBT-I to be more effective than sleeping pills in the long term management of insomnia.  CBT-I is effective for all types of insomnia, can be used in combination with sleeping pills and has proven to be a safe and effective method for clients looking to decrease their dependence on sleeping pills and regain confidence in their own natural sleep abilities.";


/**********************
 Guide to Institute
***********************/
// Content
var guideBillTitle = "Billing";
var guideBill = "Most visits made to qualified healthcare providers for the evaluation and treatment of a sleep disorder are covered by private healthcare insurance providers and Medicare. The New York Sleep Institute participates in Medicare and most private managed care programs in the New York metropolitan area. The Institute's staff will assist you and your doctor in obtaining the necessary pre-authorizations from your health plan. Don't let cost cause a delay in diagnosis and treatment. Call today to get the care you need. Individual payment plans can be arranged, under special circumstances.";
var guideTimeTitle = "Time & Duration";
var guideTime = "Routine office consultations for sleep disorders usually take about one hour or less. Depending upon the circumstances, diagnostic sleep laboratory testing is performed on one night or one night and the following day. A second night often is recommended or required for nasal CPAP titration.";

/**********************
 Sleep Health A to Z
***********************/

// DETAILS ARE STORED IN content_sleepaz.js

/**********************
 Links
***********************/
var lnkCats = new Array (	"Organizations/General",
							"Sleep Apnea&nbsp;&nbsp;<a href='sleep_apnea.shtml' class='index' style='font:11px verdana, helvetica, sans-serif;'>[complete resource list]</a>",
							"Restless Legs",
							"Narcolepsy",
							"Insomnia");
							
var lnkCat0Names = new Array (	"National Sleep Foundation",
								"National Center on Sleep Disorders Research",
								"Star Sleeper",
								"National Institute of Neurological Disorders and Stroke (NINDS)",
								"American Academy of Sleep Medicine",
								"SleepEducation.com");
var lnkCat0Urls = new Array ( 	"http://www.sleepfoundation.org/",
								"http://www.nhlbi.nih.gov/about/ncsdr/",
								"http://www.nhlbi.nih.gov/health/public/sleep/starslp/index.htm",
								"http://www.ninds.nih.gov/",
								"http://www.aasmnet.org/",
								"http://www.sleepeducation.com/");

var lnkCat1Names = new Array ( 	"American Sleep Apnea Association",
								"SleepNet's Sleep Apnea Homepage",
								"Sleep Apnea Information & Resources",
								"SleepApneaInfo.com");
var lnkCat1Urls = new Array (	"http://www.sleepapnea.org/",
								"http://www.sleepnet.com/sleepapnea2000.html",
								"http://www.stanford.edu/~dement/apnea.html",
								"http://www.sleepapneainfo.com/");

var lnkCat2Names = new Array (	"Restless Legs Syndrome Foundation",
								"Worldwide Education and Awareness for Movement Disorders");
var lnkCat2Urls = new Array (	"http://www.rls.org/",
								"http://www.wemove.org/rls/");

var lnkCat3Names = new Array(	"Center for Narcolepsy at Stanford University School of Medicine",
								"Narcolepsy Network, Inc.",
								"Narcolepsy Association UK (UKAN)",
								"Center for Narcolepsy Reseach - University of Illinois at Chicago");
var lnkCat3Urls = new Array(	"http://med.stanford.edu/school/Psychiatry/narcolepsy/",
								"http://www.narcolepsynetwork.org/",
								"http://www.narcolepsy.org.uk/",
								"http://www.uic.edu/depts/cnr/");

var lnkCat4Names = new Array("American Insomnia Association (AIA)");
var lnkCat4Urls = new Array("http://www.americaninsomniaassociation.org/home.asp");

/**********************
 Sleep Apnea Resources
***********************/
var lnkSleepCats = new Array (	"Organizations",
																"CPAP Information",
																"Major Companies"
																);
							
var lnkSleepCat0Names = new Array (	
								"American Sleep Apnea Association",
								"Sleepnet.com",
								"National Sleep Foundation",
								"National Center on Sleep Disorders Research",
								"Star Sleeper",
								"National Institute of Neurological Disorders and Stroke (NINDS)",
								"Sleep Apnea Information and Resources",
								"SleepApneaInfo.com",
								"American Academy of Sleep Medicine",
								"SleepEducation.com");
var lnkSleepCat0Urls = new Array ( 	
								"http://www.sleepapnea.org/",
								"http://www.sleepnet.com/sleepapnea2000.html",
								"http://www.sleepfoundation.org/",
								"http://www.nhlbi.nih.gov/about/ncsdr/",
								"http://www.nhlbi.nih.gov/health/public/sleep/starslp/index.htm",
								"http://www.ninds.nih.gov/",
								"http://www.stanford.edu/~dement/apnea.html",
								"http://www.sleepapneainfo.com/",
								"http://www.aasmnet.org/",
								"http://www.sleepeducation.com/");

var lnkSleepCat1Names = new Array ( 	"cpap.com",
								"SleepMarket.com",
								"The American Academy of Otolaryngology ",
								"The CPAP Store");
var lnkSleepCat1Urls = new Array (	"http://www.cpap.com/",
								"http://www.sleepmarket.com/index.php?cPath=27",
								"http://www.entnet.org/healthinfo/snoring/cpap.cfm",
								"http://www.cpapman.com/airsep.html");

var lnkSleepCat2Names = new Array (
								"Respironics",
								"ResMed",
								"Fisher & Paykel Appliances Holdings Limited",
								"Puritan Bennet");
var lnkSleepCat2Urls = new Array (	
								"http://www.respironics.com/",
								"http://resmed.com/portal/site/ResMedUS/index.jsp?front_door=true",
								"http://www.fisherpaykel.com/",
								"http://www.puritanbennett.com/");
								
/**********************
 Take a Sleep Quiz
***********************/
// Content
var quizIntro = "Do you snore so loudly at night that you drive your partner crazy?  Do you sleepwalk or experience other parasomnias?  If you experience disturbed sleep or suffer from excessive daytime sleepiness, you may be suffering from a sleep disorder.  Something as seemingly benign as insomnia when chronic can be a red flag for a sleep disorder.  The sleep quiz provided below may further help you assess your risk.  Your physician can make an appointment for you at the New York Sleep Institute to meet our sleep specialists and schedule a sleep study if needed.  If you do not have a personal physician you can call the New York Sleep Institute directly at " + mainPhoneNumber + ".";
var quizInstru = "<b>Instructions</b>: Answer each question in sections A and B.  If you answered &quot;<b>YES</b>&quot; to any of the questions, please talk to your physician or call us at the number provided above.  The higher the number of positive answers, the greater is the need for you to seek medical help regarding your sleep. ";
var quizRestartButton = "Restart Quiz";
var quizResultButton = "Get Quiz Result";
var quizRetakeButton = "Re-Take Quiz";

var sectionA_label = "Section A - Night Time";
var ntNum = 14;
var nt0 = "Do you snore loudly at night?";
var nt1 = "Does your snoring drive your bed partner crazy?";
var nt2 = "Do you choke or gasp in sleep?";
var nt3 = "Do you repeatedly stop breathing for short periods (reported by a bed partner) at night?";
var nt4 = "Do you hit, kick or thrash around in sleep?";
var nt5 = "Do you walk in sleep?";
var nt6 = "Do you have difficulty falling asleep?";
var nt7 = "Do you wake up frequently at night?";
var nt8 = "Do you feel unrefreshed when you wake up from sleep?";
var nt9 = "Do you experience an urge to move your legs during evening or night, which is worse during periods of rest and is relieved upon movement?";
var nt10 = "Do you experience an &quot;unpleasant sensation&quot; in the legs during evening or night, which is worse during periods of rest and is relieved upon movement?"
var nt11 = "Do you ever feel transiently paralyzed or unable to move, either at sleep onset or when you wake up?";
var nt12 = "Is your sleep pattern misaligned with reference to expected social norms e.g. too early to bed or too late to rise?";
var nt13 = "Have you experienced frightening dreams or intense fear in sleep?";

var sectionB_label = "Section B - Day Time";
var dtNum = 6;
var dt0 = "Do you feel extremely sleepy during the day?";
var dt1 = "Does your daytime sleepiness interfere with your daytime work or performance?";
var dt2 = "Have you ever fallen asleep while driving?";
var dt3 = "Have you fallen asleep in inappropriate places or circumstances e.g. during dinner, bath, talking or sexual intercourse?";
var dt4 = "Do you have trouble maintaining attention and concentration?";
var dt5 = "Do you have brief spells of unexpectedly dropping things, buckling at the knees or drooping of head?";

var errorMsg = "You need to answer all questions before submitting the form. Please amend and try again."

/**********************
 Quiz Result
***********************/
var ttQuizResult = "Quiz Result";
var resultIntro = "If you answered &quot;<b>YES</b>&quot; to any of the questions, you may be suffering from sleep disorders.  To seek medical help, your physician can make an appointment for you at the New York Sleep Institute. If you do not have a personal physician, call the institute at " + mainPhoneNumber + ".";


/**********************
 Light Therapy
***********************/

var lightTitle = "Light Therapy";
var lightIntro1 = "Check out the web sites for pricing and possible sale prices.  Prices range from approximately $160.00 to $ 525.00.  We recommend that you call and ask for a brochure before purchasing.  Both floor stands and desk stands are available for most models."
var lightDetail1 = "For maximal benefits, sit so that you get about 10.000 lux exposure.  If you sit further away, you need to increase your exposure time."
var lightDetail2 = "At 10.000 lux, start with 30 minutes exposure time.  If no effect is seen within one week, go to 45 minutes, then 60 minutes exposure time.  If you feel too “hyper” after the light exposure, decrease exposure time."
var lightDetail3 = "A white reflector (e.g., white paper table cloth) increases illumination."
var lightDetail4 = "You may read, eat, do make-up, etc. while sitting in front of the bright light box.  Once or twice per minute, glance for a few seconds into the bright light; otherwise your eyes can focus elsewhere, but you still need to face the light box."
var lightDetail5 = "Overexposure to bright light manifests in feeling excessively stimulated and agitated, maybe excessively nervous.  In that case, decrease bright light exposure.  If you have eye problems, or if visual aftereffects such as seeing light specks lasting longer than 15 minutes, consult your eye physician.  We recommend the use of these bright light boxes only under the supervision of a professional."
var lightOtherWebsitesHeading = "Other Websites with Light Therapy Information and Products";
var lightTherapyWebsiteHeading = "Light Therapy Websites";

/**********************
 Sleep Hygiene
***********************/

var sleepHygieneIntro = "Habits are as hard to form as to break.  Please practice the helpful hints on at least ten consecutive nights before discarding them as useless.";
var sleepHygienePersonalHabitHeading = "Personal Habits";
var sleepHygienePersonalHabitList = "<li>Get plenty of morning sunlight.  This will help regulate your sleep-wake cycle.  During the winter, you may need to use a <a href='light_therapy_info.shtml'>lightbox</a></li>" +
                                     "<li>Exercise regularly; but avoid strenuous physical exertion after 6:00 p.m.</li>" +
                                     "<li>Reduce or eliminate the use of alcohol; do not drink alcohol later than 4 hours before bedtime.</li>" +
                                     "<li>Reduce or eliminate the use of caffeine; do not consume caffeine after about 3:00 p.m.  <a href='caffeine_info.shtml'>Caffeine Information</a></li>" +
                                     "<li>Reduce or eliminate the use of nicotine; do not smoke within 4 hours of your bedtime.</li>";
var sleepHygieneGettingBedHeading = "Getting Ready for Bed";
var sleepHygieneGettingBedList = "<li>Eat a light carbohydrate snack.  For example, drink Ovaltine which has malt with milk which contains tryptophan.  (High protein foods may induce wakefulness.)</li>" +
																 "<li>Create a comfortable sleep environment:  cool, dark, quiet, comfortable bedding.</li>" +
																 "<li>Keep the bedroom clock out of sight.  This helps to prevent clock watching.</li>" +
																 "<li>Warm bath before retiring (before taking sleeping pills).</li>" +
																 "<li>Relaxing the muscles completely will induce sleep.  Use a relaxation exercise just before going to sleep (muscle relaxation, imagery, massage, etc.)</li>";
var sleepHygieneSleepRoutineHeading = "Sleep Routines";
var sleepHygieneSleepRoutineList = "<li>Go to bed and get up from bed at the same time each day, even on weekends.</li>" + 
																	 "<li>Develop sleep rituals before going to bed.  Do the same thing in the same order before going to bed to cue your body to slow down and relax.</li>" +
																	 "<li>Go to bed when you are sleepy.</li>" +
																	 "<li>If you have difficulty falling asleep in 15 to 20 minutes or wake up shortly after going to sleep, leave the bedroom and read quietly or do some other relaxing activity.</li>" + 
																	 "<li>Use your bed for sleeping and intimacy only.  Often, doing other activities in bed like watching TV, paying bills, or working only serve to initiate worries and concerns.  Let your mind associate the bed with sleeping, relaxing and pleasure.</li>";																 
var sleepHygieneMedicalIssuesHeading = "Medical Issues";
var sleepHygieneMedicalIssuesList = "<li>Take medications as directed.  It is often helpful to take prescribed sleeping pills one hour before bedtime, so they are causing drowsiness when you lie down, or 10 hours before getting up, to avoid daytime drowsiness.</li>" + 
																		"<li>Have medical problems which might interfere with sleep such as asthma, heart burn, angina, arthritis pain or breathlessness under optimal control.</li>";
var sleepHygieneBadSleepHabitHeading = "Avoid Bad Sleep Habits";
var sleepHygieneBadSleepHabitList = "<li>Avoid napping for more than 30 minutes or after 3 p.m.</li>" +
																		"<li>Avoid large meals before going to bed, but also avoid going to bed hungry.</li>" +
																		"<li>Do not go to bed until you are drowsy.</li>" +
																		"<li>Avoid stress and worries at bedtime.  Address tomorrow’s activities, concerns, or distractions earlier in the day.  Certain activities, such as listening to soft music or reading can help you wind down.</li>" + 
																		"<li>Use sleeping aids conservatively and avoid using them for more than one or two nights per month.  Avoid sleeping pills altogether if you have obstructive sleep apnea – it can be a deadly combination.</li>" +
																		"<li>Avoid engaging in stimulating activity just before bed, such as playing a competitive game, watching an exciting program on television or movie, or having an important discussion with a loved one.</li>" + 
																		"<li>Do not take over-the-counter sleeping pills without your doctor’s knowledge.  Tolerance can develop rapidly with these medications.  Diphenhydramine (an ingredient commonly found in over-the-counter sleep medications) can have serious side effects for elderly patients.</li>" + 
																		"<li><i>A word about television</i>.  Many people fall asleep with the television on in their room.  Watching television before bedtime is often a bad idea.  Television is a very engaging medium that tends to keep people up.  We generally recommend that the television not be in the bedroom.  At the appropriate bedtime, the TV should be turned off and the patient should go to bed.  Some people find that the radio helps them go to sleep.  Since radio is a less engaging medium than TV, this is probably a good idea.</li>";
var sleepHygieneDetail1 = "<i>Several physical factors are known to upset sleep</i>.  These include arthritis, acid reflux with heart burn, menstruation, headaches and hot flashes.";
var sleepHygieneDetail2 = "<i>Psychological and mental health problems like depression, anxiety and stress are often associated with sleeping difficulty</i>.  In many cases, difficulty staying asleep may be the only presenting sign of depression.  A physician should be consulted about these issues to help determine the problem and the best treatment.";
var sleepHygieneDetail3 = "<i>Many medications can cause sleeplessness as a side effect</i>.  Ask your doctor or pharmacist if medications you are taking can lead to sleeplessness.";
var sleepHygieneDetail4 = "<i>Always follow the advice of your physician and other healthcare professionals.</i>";

/**********************
 Contact Us
***********************/
var contactIntro = "If you wish to make an appointment with us or to request for additional information, please fill in the following form.  We will get in touch with you as soon as possible."
var firstname_label = "First Name";
var lastname_label = "Last Name";
var phonenumber_label = "Phone Number";
var email_label = "Email Address";
var iwant_label = "I want to";
var sch_appt_label = "Schedule an appointment";
var req_info_label = "Request for more information";
var comment_label = "Comments";
var submit_label = "Submit Form";
var jobIntro = "Join our fast-paced AASM-accredited sleep center.  We offer competitive healthcare and vacation benefits.  Please see our current job openings and apply now!<br/><br/>NYSI is an equal opportunity employer and does not discriminate on the basis of gender, race, color, creed, age, national origin, marital status, disability, religion, sexual orientation or any legally protected status.";

/**********************
 Term of Use
***********************/
// Content
var termIntro = "if you have an urgent, immediate or emergency medical situation, contact your healthcare provider or call 911 or local emergency number immediately.";

var termSecNum = 17;

// Details of Each Term. Array is used to accomodate more than 1 paragraph per section
var term0 = new Array("These Terms of Use describe the nature of this Website and the terms on which you may use it.  BY USING THIS WEBSITE OR ANY INFORMATION PROVIDED ON THIS WEBSITE, YOU AGREE TO BE BOUND BY THESE TERMS OF USE.  Please review the Terms of Use each time you use this Website, since there may be changes and updates from time to time. New York Sleep Institute (referred to herein as &quot;New York Sleep Institute&quot; or &quot;We&quot;) may change, suspend or discontinue any aspect of this Website at any time, including the provisions relating to privacy or the availability of any Website feature, database or content. We may also impose limits on certain features and services or restrict users' access to all or part of this Website without notice or liability.  If you do not agree to these Terms of Use, please do not use this Website.");
var term1 = new Array(	"New York Sleep Institute's Website is intended for use by members of the general public, and healthcare providers. Individuals may use the site to obtain information, locate providers, request appointments, obtain or complete self-rating questionnaires, and review test findings.  Healthcare providers may use the site to obtain information, obtain documents for use in clinical practice, and refer patients.",
			"THIS WEBSITE IS NOT INTENDED TO PROVIDE ADVICE OR GUIDANCE CONCERNING THE MEDICAL TREATMENT OR DIAGNOSIS OF ANY PERSON. Articles, commentary and other information contained on this Website are intended to be for general academic and illustrative purposes; they are not intended to guide the treatment or diagnosis of any individual.  Users of this Website should seek specific examination, advice, evaluation and treatments from healthcare providers of their choice.");
var term2 = new Array("This Website is owned by New York Sleep Institute. All materials contained in this Website (the &quot;Materials&quot;) are either owned by or licensed to New York Sleep Institute. New York Sleep Institute and its licensors retain all proprietary rights to the Materials. This Website is copyright © 2005 by New York Sleep Institute, Inc. All rights are reserved.");
var term3= new Array("New York Sleep Institute is committed to protect the personal information that you provide. Please read the following so you can understand how information is used and the specific measures we take to protect your personal information.");
var term4 = new Array(	"This policy relates to personal information that identifies you, such as your name, address, telephone number, e-mail address, credit card, and similar information.",
			"This policy does not apply to the policies or practices of entities that New York Sleep Institute does not own or control, or to websites that are linked to this Website. You should consult such entity's or website's privacy policy prior to providing your personal information. ");
var term5 = new Array(	"New York Sleep Institute collects and uses personal information when you are registered as a New York Sleep Institute user, when you use certain New York Sleep Institute services, or when you visit New York Sleep Institute's Website. Under certain circumstances, New York Sleep Institute also may receive your personal information from its business partners.",
			"When you submit information to New York Sleep Institute by registering as a user or by completing one of our Web-based questionnaires, you voluntarily provide information which may include one or all of the following: your name, address, city, state, zip code, telephone number, e-mail address, your user-defined password, similar identifying information. We also may request additional information from you at the time you register or complete a Web-based questionnaire, or at some time thereafter. Once you register or submit a Web-based questionnaire to New York Sleep Institute you are not anonymous to us. If you do not wish to provide some or all of the information requested on a screen, or if you have concerns about maintaining the confidentiality of any information, do not provide it.",
			"New York Sleep Institute also receives and records information on our server logs from your browser including your IP address, New York Sleep Institute's cookie information, and the page(s) you view.",
			"New York Sleep Institute uses personal information for three general purposes: to process medical data; to fulfill your requests for information, products, or services; and to contact you with information related to our products and services.");
var term6 = new Array(	"New York Sleep Institute will not sell or rent your personal information to third parties without your consent. Users of this Website who may have access to personal information disclosed by other users are required to (a) treat such information as confidential, and (b) obtain the consent of the disclosing party prior to further disclosing such information to any third party.",
			"New York Sleep Institute may disclose personal information about you to a business partner or other company when:",
			"<ul>",
			"We have obtained your permission to share such information",
			"We need to share such information to arrange for the provision of a product or service that you have requested or to respond to a request for further information",
			"We need to respond to court orders, subpoenas, or other legal requests",
			"We determine that your actions on our Website violate these Terms of Use",
			"</ul>");
var term7 = new Array(	"This Website uses cookies (a small file transferred from a server to a user's hard drive) for general purposes relating to the operation of this Website and may use cookies to identify users and track trends among users who visit this Website.",
			"New York Sleep Institute may allow other companies to set and access their cookies on your computer. The use of cookies by third parties is subject to the respective privacy policies of such entities. You should note that third parties do not have access to New York Sleep Institute' cookies.",
			"New York Sleep Institute may use Web beacons to access our cookies within and outside our network of websites and in connection with New York Sleep Institute products and services. ",
			"You can delete cookies at any time, following the instructions and procedures of your Web browser software.");
var term8 = new Array(	"Personal information that you provide to New York Sleep Institute is protected for your privacy and security. Your personal information may be protected by encryption technology that protects data transmission using protocols that we believe are standard for Internet commerce.",
			"With respect to protecting the confidentiality of any personal information, New York Sleep Institute will take commercially reasonable security measures to protect such information and any other security measures required by applicable United States laws, regulations and rules. Our systems and software will contain technical features enabling healthcare providers to comply with applicable requirements of the Health Insurance Portability and Accountability Act of 1996 (&quot;HIPAA&quot;), when the regulations promulgated under HIPAA become effective. New York Sleep Institute is not responsible for disclosure of personal information due to errors in transmission or unauthorized acts of third parties. In making your decision to provide personal information, you should be aware of the general risks of transmitting information over the Internet. If your communication is sensitive, you may want to send it by postal mail (see address listed on the &quot;Contact Us&quot; page). ");
var term9 = new Array("Our policy is that this Website may only be used by individuals over the age of 18. We urge parents to supervise their children's use of this Website. We do not collect any information from children. However, if a parent learns that a child has submitted personal information to this Website, the parent should contact us and the information will be deleted.");
var term10= new Array(	"The following activities are not permitted on this Website and are a material breach of these Terms of Use:",
			"<ul>",
			"Using this Website for any purpose in violation of local, state, national or international laws",
			"Posting material that infringes on the intellectual property rights or privacy rights of others",
			"Posting material that is threatening, harassing, malicious, hateful, abusive, slanderous, defamatory, obscene, embarrassing to others or otherwise contrary to the purpose of this Website, as determined by New York Sleep Institute in its sole discretion",
			"Posting advertisements or requests for business",
			"Attempting to obtain unauthorized access to this Website or portions thereof that are restricted from general access",
			"Collecting information about others without their written consent",
			"Engaging in any other conduct that is contrary to the purpose of this Website or, as determined by New York Sleep Institute in its sole discretion, exposes New York Sleep Institute to any other person or entity related to this Website to any liability or detriment.",
			"</ul>");
var term11 = new Array("As indicated above, there are general risks associated with transmitting information over the Internet. Although this Website may be encrypted, you are responsible for implementing sufficient procedures and checkpoints to satisfy your requirements for accuracy of data input and output, backing up of data, and protection from &quot;viruses,&quot; &quot;worms,&quot; &quot;trojan horses&quot; or other malicious or damaging computer software.");
var term12 = new Array(	"New York Sleep Institute does not represent or endorse the accuracy or reliability of any advice, opinion, test results, statement or other information displayed, distributed or otherwise accessible on or through this Website. You acknowledge that any reliance upon any such opinion, advice, opinion, test results or information shall be at your sole risk. New York Sleep Institute reserves the right, in its sole discretion, to correct any errors or omissions in any portion of this Website.",
			"New York Sleep Institute may provide links to other websites, for your convenience. However, New York Sleep Institute does not review, endorse or approve the content of linked websites. New York Sleep Institute makes no claim or representation regarding and accepts no responsibility for, the quality, content, nature, accuracy or reliablity of Websites accessible by link from this Website, or websites linking to this Website. The use of any such websites is at the user's risk, and is subject to the terms of use applicable to such websites, including privacy and data-gathering practices of that site. However, New York Sleep Institute reserves the right at all times to disclose any information as necessary to satisfy any law, regulations or government request, or to edit, refuse to post or to remove any information or materials, in whole or in part, that in New York Sleep Institute's sole discretion are objectionable or in violation of these Terms of Use.");
var term13 = new Array(	"NEW YORK SLEEP INSTITUTE MAKES NO WARRANTY OF ANY KIND CONCERNING THE FUNCTIONING OF THIS WEBSITE, THE INFORMATION CONTAINED ON THIS WEBSITE OR ANY OTHER WEBSITES LINKED TO IT IN ANY WAY. NEW YORK SLEEP INSTITUTE ASSUMES NO LIABILITY FOR ANY DECISION MADE OR ACTION TAKEN IN RELIANCE UPON INFORMATION OBTAINED THROUGH USE OF THIS WEBSITE. OPERATION OF THIS WEBSITE AND ANY INFORMATION ON THIS WEBSITE IS PROVIDED &quot;AS IS,&quot; AND TO THE FULLEST EXTENT PERMISSIBLE BY LAW, ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING THE IMPLIED WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY AND WARRANTIES CONCERNING NON-INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS, ARE DISCLAIMED. WITHOUT ANY LIMITATION OF THE FOREGOING, NEW YORK SLEEP INSTITUTE DOES NOT WARRANT THAT THE FUNCTIONS CONTAINED IN THIS WEBSITE OR ANY MATERIALS OR CONTENT CONTAINED THEREIN WILL BE UNINTERRUPTED OR ERROR-FREE, THAT DEFECTS WILL BE CORRECTED, OR THAT THIS WEBSITE OR THE SERVER THAT MAKES IT AVAILABLE IS FREE OF VIRUSES OR OTHER HARMFUL COMPONENTS.  LIMITATION OF REMEDIES.",
			"NEW YORK SLEEP INSTITUTE SHALL NOT BE LIABLE FOR ANY INJURY, LOSS, CLAIM OR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES RESULTING FROM OR IN ANY WAY CONNECTED WITH YOUR USE OF THIS WEBSITE OR ANY INFORMATION ON THIS WEBSITE, EVEN IF NEW YORK SLEEP INSTITUTE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.");
var term14 = new Array("You agree to indemnify, defend and hold New York Sleep Institute harmless from any costs (including reasonable attorneys' fees), losses, expenses, settlements and judgments, to the extent arising from your violation of these Terms of Use, from your violation of the rights of any other person or entity, or from your claim for damages.");
var term15 = new Array("You agree that the courts of New York have exclusive jurisdiction over any dispute you have with New York Sleep Institute, and you expressly consent to personal jurisdiction in such courts in connection with any such dispute or a dispute involving any of New York Sleep Institute's affiliates, subsidiaries, members, officers, directors, employees, agents and contractors. These Terms of Use are subject to the substantive laws of New York, without respect to its conflict of laws principles.");
var term16 = new Array("Questions or suggestions may be submitted to <a href='mailto:" + mainEmail + "'>" + mainEmail + "</a>");

// Term Section Title
var termTitle0 = "Introduction";
var termTitle1 = "Website Services";
var termTitle2 = "Ownership";
var termTitle3= "Privacy Policy";
var termTitle4 = "What Our Privacy Policy Covers";
var termTitle5 = "Information Collection and Use";
var termTitle6 = "Information Sharing and Disclosure";
var termTitle7 = "Cookies";
var termTitle8 = "Security";
var termTitle9 = "Children";
var termTitle10= "Prohibited Activities";
var termTitle11 = "Internet Use";
var termTitle12 = "No Endorsement";
var termTitle13 = "Disclaimer of Warranties";
var termTitle14 = "Indemnification";
var termTitle15 = "Jurisdiction";
var termTitle16 = "Questions or Suggestions";

// Bookmark HREF
var termHref0 = "term0";
var termHref1 = "term1";
var termHref2 = "term2";
var termHref3 = "term3";
var termHref4 = "term4";
var termHref5 = "term5";
var termHref6 = "term6";
var termHref7 = "term7";
var termHref8 = "term8";
var termHref9 = "term9";
var termHref10= "term10";
var termHref11 = "term11";
var termHref12 = "term12";
var termHref13 = "term13";
var termHref14 = "term14";
var termHref15 = "term15";
var termHref16 = "term16"

function generateQuiz(typeId) {
	var numOfQ = eval(typeId + "Num");
	var name;
	var id;
	document.write("<table class=\"quiz\">");
	for (i=0; i<numOfQ; i++) {
		name = typeId + i;
		document.write("<tr>");
		document.write("<td class=\"enum\">" + (i+1) + ".</td>");
		document.write("<td class=\"q\">" + eval(typeId + i) + "</td>");
		document.write("<td>");
		id = name + "a";
		document.write("<input name=\"" + name + "\" id=\"" + id + "\" type=\"radio\" value=\"1\" /><label for=\"" + id + "\">Yes</label>");
		id = name + "b";
		document.write("&nbsp;<input name=\"" + name + "\" id=\"" + id + "\" type=\"radio\" value=\"-1\" /><label for=\"" + id + "\">No</label>");
		document.write("</tr>");
	}
	document.write("</table>");
}

function generateQuizResult() {
	// Get rid of starting question mark
	parseUrlParam(window.location.search.substr(1));
	
	yPercent = quizNumOfYes / (quizNumOfYes + quizNumOfNo);
	nPercent = quizNumOfNo / (quizNumOfYes + quizNumOfNo);
	
	// TODO: NEED TO CONFIRM BUSINESS RULES!\
	// If the number of YES answer is less than 50%, the result is positive; otherwise, it's negative
	document.write("<p>" + resultIntro + "</p>");
	
	document.write("<table class=\"result\">");
	document.write("<tr>");
	document.write("<td class=\"answerYes\" width=\"" + (yPercent*100) + "%\">Yes (" + quizNumOfYes + " - " + (Math.floor(yPercent*100)) + "%)</td>");
	document.write("<td class=\"answerNo\" width=\"" + (nPercent*100) + "%\">No (" + quizNumOfNo + " - " + (Math.floor(nPercent*100)) + "%)</td>");
	document.write("</tr>");
	document.write("</table>");
	document.write("<br/><br/>");
}