// Create the slideshow object ss = new slideshow("ss"); // Set the delay between slides, 1000 = 1 sec ss.timeout = 4000; // By default, all of the slideshow images are prefetched. // If you have a large number of slides you can limit the // number of images that are prefetched. // ss.prefetch = 1; // By default the slideshow will repeat when you get to the end. // ss.repeat = false; // Create the slides and add them to the slideshow. s = new slide(); s.src = 'showmedia/996/staff_ce79d79b_display.jpg'; var str = 'http://www.nymf.org/index.php?module=ShowManager&func=display_media&mdid=2205'; s.link = str.replace(/&/g, "&"); s.title = 'Medication Time in Ward 9'; s.text = ''; ss.add_slide(s); s = new slide(); s.src = 'showmedia/996/Beethovan2_4fbc52d8_display.jpg'; var str = 'http://www.nymf.org/index.php?module=ShowManager&func=display_media&mdid=2147'; s.link = str.replace(/&/g, "&"); s.title = 'Patient: Beethoven '; s.text = ''; ss.add_slide(s); s = new slide(); s.src = 'showmedia/996/Bobby2_a8f3bdd9_display.jpg'; var str = 'http://www.nymf.org/index.php?module=ShowManager&func=display_media&mdid=2144'; s.link = str.replace(/&/g, "&"); s.title = 'Patient: Bobby Fischer'; s.text = ''; ss.add_slide(s); s = new slide(); s.src = 'showmedia/996/Howard2_2740ea6a_display.jpg'; var str = 'http://www.nymf.org/index.php?module=ShowManager&func=display_media&mdid=2145'; s.link = str.replace(/&/g, "&"); s.title = 'Patient: Howard Hughes'; s.text = ''; ss.add_slide(s); s = new slide(); s.src = 'showmedia/996/Nijinsky2_cb3685d6_display.jpg'; var str = 'http://www.nymf.org/index.php?module=ShowManager&func=display_media&mdid=2179'; s.link = str.replace(/&/g, "&"); s.title = 'Patient: Nijinsky '; s.text = ''; ss.add_slide(s); s = new slide(); s.src = 'showmedia/996/Sylvia2_9a192ef6_display.jpg'; var str = 'http://www.nymf.org/index.php?module=ShowManager&func=display_media&mdid=2177'; s.link = str.replace(/&/g, "&"); s.title = 'Patient: Sylvia Plath'; s.text = ''; ss.add_slide(s); s = new slide(); s.src = 'showmedia/996/VanGogh2_a79dc463_display.jpg'; var str = 'http://www.nymf.org/index.php?module=ShowManager&func=display_media&mdid=2146'; s.link = str.replace(/&/g, "&"); s.title = 'Patient: Van Gogh'; s.text = ''; ss.add_slide(s); s = new slide(); s.src = 'showmedia/996/Vivian2_5e5a764f_display.jpg'; var str = 'http://www.nymf.org/index.php?module=ShowManager&func=display_media&mdid=2178'; s.link = str.replace(/&/g, "&"); s.title = 'Patient: Vivian Leigh'; s.text = ''; ss.add_slide(s); s = new slide(); s.src = 'showmedia/996/postcard1_63e1741c_display.jpg'; var str = 'http://www.nymf.org/index.php?module=ShowManager&func=display_media&mdid=2140'; s.link = str.replace(/&/g, "&"); s.title = 'Postcard1'; s.text = ''; ss.add_slide(s); s = new slide(); s.src = 'showmedia/996/postcard2_625e654c_display.jpg'; var str = 'http://www.nymf.org/index.php?module=ShowManager&func=display_media&mdid=2141'; s.link = str.replace(/&/g, "&"); s.title = 'Postcard2'; s.text = ''; ss.add_slide(s); s = new slide(); s.src = 'showmedia/996/NYMFpress-3888_1c334f92_display.jpg'; var str = 'http://www.nymf.org/index.php?module=ShowManager&func=display_media&mdid=2251'; s.link = str.replace(/&/g, "&"); s.title = 'Press Conference'; s.text = ''; ss.add_slide(s); s = new slide(); s.src = 'showmedia/996/NYMFpress-3931_0997b585_display.jpg'; var str = 'http://www.nymf.org/index.php?module=ShowManager&func=display_media&mdid=2252'; s.link = str.replace(/&/g, "&"); s.title = 'Press Conference'; s.text = ''; ss.add_slide(s); s = new slide(); s.src = 'showmedia/996/NYMFpress-6048_f34de109_display.jpg'; var str = 'http://www.nymf.org/index.php?module=ShowManager&func=display_media&mdid=2253'; s.link = str.replace(/&/g, "&"); s.title = 'Press Conference'; s.text = ''; ss.add_slide(s); s = new slide(); s.src = 'showmedia/996/NYMFpress-6038_66b21f49_display.jpg'; var str = 'http://www.nymf.org/index.php?module=ShowManager&func=display_media&mdid=2254'; s.link = str.replace(/&/g, "&"); s.title = 'Press Conference'; s.text = ''; ss.add_slide(s); s = new slide(); s.src = 'showmedia/996/NYMFpress-5897_408f1f12_display.jpg'; var str = 'http://www.nymf.org/index.php?module=ShowManager&func=display_media&mdid=2255'; s.link = str.replace(/&/g, "&"); s.title = 'Press Conference'; s.text = ''; ss.add_slide(s); s = new slide(); s.src = 'showmedia/996/IMG_0331-cropped_be407dcd_display.jpg'; var str = 'http://www.nymf.org/index.php?module=ShowManager&func=display_media&mdid=2046'; s.link = str.replace(/&/g, "&"); s.title = 'The Cast of WARD 9'; s.text = ''; ss.add_slide(s); s = new slide(); s.src = 'showmedia/996/creative team_e9651460_display.jpg'; var str = 'http://www.nymf.org/index.php?module=ShowManager&func=display_media&mdid=2018'; s.link = str.replace(/&/g, "&"); s.title = 'Ward 9 Creative Staff'; s.text = ''; ss.add_slide(s); s = new slide(); s.src = 'showmedia/996/w9poster-LOGO_8f71daed_display.jpg'; var str = 'http://www.nymf.org/index.php?module=ShowManager&func=display_media&mdid=2139'; s.link = str.replace(/&/g, "&"); s.title = 'Ward 9 Logo'; s.text = ''; ss.add_slide(s); s = new slide(); s.src = 'showmedia/996/NYMFpress-391zxc_4bdf8b71_display.jpg'; var str = 'http://www.nymf.org/index.php?module=ShowManager&func=display_media&mdid=2250'; s.link = str.replace(/&/g, "&"); s.title = 'Ward 9 Press Conference'; s.text = ''; ss.add_slide(s); // The following loop sets an attribute for all of the slides. // This is easier than setting the attributes individually. /* for (var i=0; i < ss.slides.length; i++) { s = ss.slides[i]; s.target = "ss_popup"; s.attr = "width=500,height=500,resizable=yes,scrollbars=yes"; } */ //document.body.onload = "ss.restore_position('SS_POSITION'); ss.update();"; //document.body.onunload = "ss.save_position('SS_POSITION');"; ss.textarea = document.ss_form.ss_textarea; // Finish defining and activating the slideshow // Set up the select list with the slide titles function config_ss_select() { var selectlist = document.ss_form.ss_select; selectlist.options.length = 0; for (var i = 0; i < ss.slides.length; i++) { selectlist.options[i] = new Option(); selectlist.options[i].text = (i + 1) + '. ' + ss.slides[i].title; } selectlist.selectedIndex = ss.current; } // If you want some code to be called before or // after the slide is updated, define the functions here ss.pre_update_hook = function() { return; } ss.post_update_hook = function() { // For the select list with the slide titles, // set the selected item to the current slide document.ss_form.ss_select.selectedIndex = this.current; return; } if (document.images) { // Tell the slideshow which image object to use ss.image = document.images.ss_img; // Tell the slideshow the ID of the element // that will contain the text for the slide ss.textid = "ss_text"; // Randomize the slideshow? // ss.shuffle(); // Set up the select list with the slide titles config_ss_select(); // Update the image and the text for the slideshow ss.update(); // Auto-play the slideshow //ss.play(); } var play_on = false; function rollover(image_elt) { switch(image_elt.id) { case 'ss_prev_image': image_elt.src= "themes/NYMF09/images/back_on.gif"; break; case 'ss_play_image': image_elt.src= "themes/NYMF09/images/play_on.gif"; break; case 'ss_pause_image': image_elt.src= "themes/NYMF09/images/pause_on.gif"; break; case 'ss_next_image': image_elt.src= "themes/NYMF09/images/forward_on.gif"; break; } } function rollout(image_elt) { switch(image_elt.id) { case 'ss_prev_image': image_elt.src= "themes/NYMF09/images/back_off.gif"; break; case 'ss_play_image': image_elt.src= "themes/NYMF09/images/play_off.gif"; break; case 'ss_pause_image': image_elt.src= "themes/NYMF09/images/pause_off.gif"; break; case 'ss_next_image': image_elt.src= "themes/NYMF09/images/forward_off.gif"; break; } } function switch_pause_play() { if(play_on) { setStyleById('ss_start', 'display', 'none'); setStyleById('ss_stop', 'display', 'inline'); play_on = false; } else { setStyleById('ss_start', 'display', 'inline'); setStyleById('ss_stop', 'display', 'none'); play_on = true; } }