//This file controls the Next and Previous buttons on each topic //page of the tutorial. Insert the page names for your tutorial //in order into the array below. Add or remove lines from the //array if needed. Eventually this table will be written dynamically by the build system. // Do not change the comments [topic array] and [end topic array], it is apart of // this file's generation. // [topic array] var myArray = new Array(); myArray[0] = "Learn.htm" myArray[1] = "Starting_a_project.htm" myArray[2] = "Mini_UI.htm" myArray[3] = "Saving_a_project.htm" myArray[4] = "Control_panel.htm" myArray[5] = "Upgrading.htm" myArray[6] = "Media_guide.htm" myArray[7] = "CD_from_discs.htm" myArray[8] = "CD_from_files.htm" myArray[9] = "Jukebox_disc.htm" myArray[10] = "Listen.htm" myArray[11] = "Audio_options.htm" myArray[12] = "Data_disc.htm" myArray[13] = "Bootable.htm" myArray[14] = "Data_image.htm" myArray[15] = "Data_options.htm" myArray[16] = "Exact_copy1.htm" myArray[17] = "Exact_copy2.htm" myArray[18] = "Burn_image.htm" myArray[19] = "Save_image.htm" myArray[20] = "Image_files.htm" myArray[21] = "What_can_be_copied.htm" myArray[22] = "Copying_DVD_discs.htm" myArray[23] = "Copy_DVD_movie.htm" myArray[24] = "Copy_options.htm" myArray[25] = "Watch_movie.htm" myArray[26] = "MyDVD_Express_topic_1.htm" myArray[27] = "CineMagic_topic_1.htm" myArray[28] = "Import_photos.htm" myArray[29] = "Fixing_photos.htm" myArray[30] = "Slideshow.htm" myArray[31] = "Photo_projects.htm" myArray[32] = "Printing_photos.htm" myArray[33] = "Labels.htm" myArray[34] = "Disc_info.htm" myArray[35] = "Erasing_disc.htm" myArray[36] = "Finalize.htm" myArray[37] = "More_help.htm" myArray[38] = "Glossary.htm" // [end topic array] function nextButton() { var linkName=""; var thisTopicPath=""; var lastSlash; var partialPath; var thisTopicName=""; var i; //IE5+ if (window.clipboardData) { thisTopicPath = location.pathname; lastSlash = thisTopicPath.lastIndexOf("\\"); partialPath = thisTopicPath.substr(1,lastSlash); var linkArray = thisTopicPath.split('\\'); var arrayLast = linkArray.length - 1; thisTopicName = linkArray[arrayLast]; for(i=0; i<(myArray.length-1);i++) { if(thisTopicName == myArray[i]) { linkName = partialPath + myArray[i+1]; window.document.location.href = unescape(linkName); break; } if(thisTopicName == myArray[myArray.length - 1]) { linkName = "RH_tutorial_intro.htm"; window.document.location.href = unescape(linkName); } } } //Netscape6+ or Mozilla if(window.sidebar) { thisTopicPath = location.pathname; lastSlash = thisTopicPath.lastIndexOf("/"); partialPath = thisTopicPath.substr(1,lastSlash); var linkArray = thisTopicPath.split('/'); var arrayLast = linkArray.length - 1; thisTopicName = linkArray[arrayLast]; for(i=0; i<(myArray.length-1);i++) { if(thisTopicName == myArray[i]) { linkName = myArray[i+1]; window.document.location.href = unescape(linkName); break; } if(thisTopicName == myArray[myArray.length - 1]) { linkName = "RH_tutorial_intro.htm"; window.document.location.href = unescape(linkName); } } } //Opera7 else { thisTopicPath = location.pathname; lastSlash = thisTopicPath.lastIndexOf("/"); partialPath = thisTopicPath.substr(1,lastSlash); var linkArray = thisTopicPath.split('/'); var arrayLast = linkArray.length - 1; thisTopicName = linkArray[arrayLast]; for(i=0; i<(myArray.length-1);i++) { if(thisTopicName == myArray[i]) { linkName = partialPath + myArray[i+1]; window.document.location.href = unescape(linkName); break; } if(thisTopicName == myArray[myArray.length - 1]) { linkName = partialPath + "RH_tutorial_intro.htm"; window.document.location.href = unescape(linkName); } } } } function previousButton() { var linkName="", thisTopicPath="", lastSlash, partialPath, thisTopicName="",i; //IE5+ if(window.clipboardData) { thisTopicPath = location.pathname; lastSlash = thisTopicPath.lastIndexOf("\\"); partialPath = thisTopicPath.substr(1,lastSlash); var linkArray = thisTopicPath.split('\\'); var arrayLast = linkArray.length - 1; thisTopicName = linkArray[arrayLast]; if(thisTopicName == myArray[0]) { linkName = myArray[myArray.length - 1]; window.document.location.href = unescape(linkName); } for(i=1; i<=(myArray.length-1);i++) { if(thisTopicName == myArray[i]) { linkName = myArray[i-1]; window.document.location.href = unescape(linkName); } } } //Netscape 6+ and Mozilla if(window.sidebar) { thisTopicPath = location.pathname; lastSlash = thisTopicPath.lastIndexOf("/"); partialPath = thisTopicPath.substr(1,lastSlash); var linkArray = thisTopicPath.split('/'); var arrayLast = linkArray.length - 1; thisTopicName = linkArray[arrayLast]; if(thisTopicName == myArray[0]) { linkName = myArray[myArray.length - 1]; window.document.location.href = unescape(linkName); } for(i=1; i<=(myArray.length-1);i++) { if(thisTopicName == myArray[i]) { linkName = myArray[i-1]; window.document.location.href = unescape(linkName); } } } //Opera7 else { thisTopicPath = location.pathname; lastSlash = thisTopicPath.lastIndexOf("/"); partialPath = thisTopicPath.substr(1,lastSlash); var linkArray = thisTopicPath.split('/'); var arrayLast = linkArray.length - 1; thisTopicName = linkArray[arrayLast]; if(thisTopicName == myArray[0]) { linkName = partialPath + myArray[myArray.length - 1]; window.document.location.href = unescape(linkName); } for(i=1; i<=(myArray.length-1);i++) { if(thisTopicName == myArray[i]) { linkName = partialPath + myArray[i-1]; window.document.location.href = unescape(linkName); } } } }