1var s5_tab_show_started = "no"; 2 3function s5_tab_show_start() { 4if (s5_tab_show_started == "no") { 5s5_tab_show_started = "yes"; 6 //Give a unique ID to each outer wrap 7 var s5_tab_show_mark_outer_id_counter = 1; 8 var s5_tab_show_mark_outer_id = document.getElementsByTagName("DIV"); 9 for (var s5_tab_show_mark_outer_id_y=0; s5_tab_show_mark_outer_id_y<s5_tab_show_mark_outer_id.length; s5_tab_show_mark_outer_id_y++) { 10 if (s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].className == "s5_tab_show_outer_wrap") { 11 if (s5_tab_show_mark_outer_id_counter == 1) { 12 var s5_tab_show_unique_id = s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].id.substr(s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].id.length - 10); 13 var s5_tab_show_duration_id = "s5_tab_show_duration_id" + s5_tab_show_unique_id; 14 var s5_tab_show_duration = document.getElementById(s5_tab_show_duration_id).innerHTML; 15 if (s5_tab_show_duration != "disabled") { 16 s5_tab_show_duration = s5_tab_show_duration * 1000; 17 } 18 s5_tab_show_unique_id = "s5_tab_show_slide1_button_id" + s5_tab_show_unique_id; 19 s5_tab_show_trigger_slide_transition(s5_tab_show_unique_id); 20 if (s5_tab_show_duration != "disabled") { 21 var s5_tab_show_outer_wrap_id1 = setInterval(s5_tab_show_outer_wrap_id1_interval, s5_tab_show_duration); 22 function s5_tab_show_outer_wrap_id1_clear() { clearInterval(s5_tab_show_outer_wrap_id1); } 23 function s5_tab_show_outer_wrap_id1_set() { s5_tab_show_outer_wrap_id1 = setInterval(s5_tab_show_outer_wrap_id1_interval, s5_tab_show_duration); } 24 if (s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].innerHTML.indexOf("5_tab_show_pause_onhover_enabled") >= 0) { 25 document.getElementById(s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].id).addEventListener("mouseover", s5_tab_show_outer_wrap_id1_clear); 26 document.getElementById(s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].id).addEventListener("mouseout", s5_tab_show_outer_wrap_id1_set); 27 } 28 } 29 } 30 else if (s5_tab_show_mark_outer_id_counter == 2) { 31 var s5_tab_show_unique_id = s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].id.substr(s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].id.length - 10); 32 var s5_tab_show_duration_id = "s5_tab_show_duration_id" + s5_tab_show_unique_id; 33 var s5_tab_show_duration = document.getElementById(s5_tab_show_duration_id).innerHTML; 34 if (s5_tab_show_duration != "disabled") { 35 s5_tab_show_duration = s5_tab_show_duration * 1000; 36 } 37 s5_tab_show_unique_id = "s5_tab_show_slide1_button_id" + s5_tab_show_unique_id; 38 s5_tab_show_trigger_slide_transition(s5_tab_show_unique_id); 39 if (s5_tab_show_duration != "disabled") { 40 var s5_tab_show_outer_wrap_id2 = setInterval(s5_tab_show_outer_wrap_id2_interval, s5_tab_show_duration); 41 function s5_tab_show_outer_wrap_id2_clear() { clearInterval(s5_tab_show_outer_wrap_id2); } 42 function s5_tab_show_outer_wrap_id2_set() { s5_tab_show_outer_wrap_id2 = setInterval(s5_tab_show_outer_wrap_id2_interval, s5_tab_show_duration); } 43 if (s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].innerHTML.indexOf("5_tab_show_pause_onhover_enabled") >= 0) { 44 document.getElementById(s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].id).addEventListener("mouseover", s5_tab_show_outer_wrap_id2_clear); 45 document.getElementById(s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].id).addEventListener("mouseout", s5_tab_show_outer_wrap_id2_set); 46 } 47 } 48 } 49 else if (s5_tab_show_mark_outer_id_counter == 3) { 50 var s5_tab_show_unique_id = s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].id.substr(s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].id.length - 10); 51 var s5_tab_show_duration_id = "s5_tab_show_duration_id" + s5_tab_show_unique_id; 52 var s5_tab_show_duration = document.getElementById(s5_tab_show_duration_id).innerHTML; 53 if (s5_tab_show_duration != "disabled") { 54 s5_tab_show_duration = s5_tab_show_duration * 1000; 55 } 56 s5_tab_show_unique_id = "s5_tab_show_slide1_button_id" + s5_tab_show_unique_id; 57 s5_tab_show_trigger_slide_transition(s5_tab_show_unique_id); 58 if (s5_tab_show_duration != "disabled") { 59 var s5_tab_show_outer_wrap_id3 = setInterval(s5_tab_show_outer_wrap_id3_interval, s5_tab_show_duration); 60 function s5_tab_show_outer_wrap_id3_clear() { clearInterval(s5_tab_show_outer_wrap_id3); } 61 function s5_tab_show_outer_wrap_id3_set() { s5_tab_show_outer_wrap_id3 = setInterval(s5_tab_show_outer_wrap_id3_interval, s5_tab_show_duration); } 62 if (s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].innerHTML.indexOf("5_tab_show_pause_onhover_enabled") >= 0) { 63 document.getElementById(s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].id).addEventListener("mouseover", s5_tab_show_outer_wrap_id3_clear); 64 document.getElementById(s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].id).addEventListener("mouseout", s5_tab_show_outer_wrap_id3_set); 65 } 66 } 67 } 68 else if (s5_tab_show_mark_outer_id_counter == 4) { 69 var s5_tab_show_unique_id = s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].id.substr(s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].id.length - 10); 70 var s5_tab_show_duration_id = "s5_tab_show_duration_id" + s5_tab_show_unique_id; 71 var s5_tab_show_duration = document.getElementById(s5_tab_show_duration_id).innerHTML; 72 if (s5_tab_show_duration != "disabled") { 73 s5_tab_show_duration = s5_tab_show_duration * 1000; 74 } 75 s5_tab_show_unique_id = "s5_tab_show_slide1_button_id" + s5_tab_show_unique_id; 76 s5_tab_show_trigger_slide_transition(s5_tab_show_unique_id); 77 if (s5_tab_show_duration != "disabled") { 78 var s5_tab_show_outer_wrap_id4 = setInterval(s5_tab_show_outer_wrap_id4_interval, s5_tab_show_duration); 79 function s5_tab_show_outer_wrap_id4_clear() { clearInterval(s5_tab_show_outer_wrap_id4); } 80 function s5_tab_show_outer_wrap_id4_set() { s5_tab_show_outer_wrap_id4 = setInterval(s5_tab_show_outer_wrap_id4_interval, s5_tab_show_duration); } 81 if (s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].innerHTML.indexOf("5_tab_show_pause_onhover_enabled") >= 0) { 82 document.getElementById(s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].id).addEventListener("mouseover", s5_tab_show_outer_wrap_id4_clear); 83 document.getElementById(s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].id).addEventListener("mouseout", s5_tab_show_outer_wrap_id4_set); 84 } 85 } 86 } 87 else if (s5_tab_show_mark_outer_id_counter == 5) { 88 var s5_tab_show_unique_id = s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].id.substr(s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].id.length - 10); 89 var s5_tab_show_duration_id = "s5_tab_show_duration_id" + s5_tab_show_unique_id; 90 var s5_tab_show_duration = document.getElementById(s5_tab_show_duration_id).innerHTML; 91 if (s5_tab_show_duration != "disabled") { 92 s5_tab_show_duration = s5_tab_show_duration * 1000; 93 } 94 s5_tab_show_unique_id = "s5_tab_show_slide1_button_id" + s5_tab_show_unique_id; 95 s5_tab_show_trigger_slide_transition(s5_tab_show_unique_id); 96 if (s5_tab_show_duration != "disabled") { 97 var s5_tab_show_outer_wrap_id5 = setInterval(s5_tab_show_outer_wrap_id5_interval, s5_tab_show_duration); 98 function s5_tab_show_outer_wrap_id5_clear() { clearInterval(s5_tab_show_outer_wrap_id5); } 99 function s5_tab_show_outer_wrap_id5_set() { s5_tab_show_outer_wrap_id5 = setInterval(s5_tab_show_outer_wrap_id5_interval, s5_tab_show_duration); } 100 if (s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].innerHTML.indexOf("5_tab_show_pause_onhover_enabled") >= 0) { 101 document.getElementById(s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].id).addEventListener("mouseover", s5_tab_show_outer_wrap_id5_clear); 102 document.getElementById(s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].id).addEventListener("mouseout", s5_tab_show_outer_wrap_id5_set); 103 } 104 } 105 } 106 else if (s5_tab_show_mark_outer_id_counter == 6) { 107 var s5_tab_show_unique_id = s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].id.substr(s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].id.length - 10); 108 var s5_tab_show_duration_id = "s5_tab_show_duration_id" + s5_tab_show_unique_id; 109 var s5_tab_show_duration = document.getElementById(s5_tab_show_duration_id).innerHTML; 110 if (s5_tab_show_duration != "disabled") { 111 s5_tab_show_duration = s5_tab_show_duration * 1000; 112 } 113 s5_tab_show_unique_id = "s5_tab_show_slide1_button_id" + s5_tab_show_unique_id; 114 s5_tab_show_trigger_slide_transition(s5_tab_show_unique_id); 115 if (s5_tab_show_duration != "disabled") { 116 var s5_tab_show_outer_wrap_id6 = setInterval(s5_tab_show_outer_wrap_id6_interval, s5_tab_show_duration); 117 function s5_tab_show_outer_wrap_id6_clear() { clearInterval(s5_tab_show_outer_wrap_id6); } 118 function s5_tab_show_outer_wrap_id6_set() { s5_tab_show_outer_wrap_id6 = setInterval(s5_tab_show_outer_wrap_id6_interval, s5_tab_show_duration); } 119 if (s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].innerHTML.indexOf("5_tab_show_pause_onhover_enabled") >= 0) { 120 document.getElementById(s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].id).addEventListener("mouseover", s5_tab_show_outer_wrap_id6_clear); 121 document.getElementById(s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].id).addEventListener("mouseout", s5_tab_show_outer_wrap_id6_set); 122 } 123 } 124 } 125 else if (s5_tab_show_mark_outer_id_counter == 7) { 126 var s5_tab_show_unique_id = s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].id.substr(s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].id.length - 10); 127 var s5_tab_show_duration_id = "s5_tab_show_duration_id" + s5_tab_show_unique_id; 128 var s5_tab_show_duration = document.getElementById(s5_tab_show_duration_id).innerHTML; 129 if (s5_tab_show_duration != "disabled") { 130 s5_tab_show_duration = s5_tab_show_duration * 1000; 131 } 132 s5_tab_show_unique_id = "s5_tab_show_slide1_button_id" + s5_tab_show_unique_id; 133 s5_tab_show_trigger_slide_transition(s5_tab_show_unique_id); 134 if (s5_tab_show_duration != "disabled") { 135 var s5_tab_show_outer_wrap_id7 = setInterval(s5_tab_show_outer_wrap_id7_interval, s5_tab_show_duration); 136 function s5_tab_show_outer_wrap_id7_clear() { clearInterval(s5_tab_show_outer_wrap_id7); } 137 function s5_tab_show_outer_wrap_id7_set() { s5_tab_show_outer_wrap_id7 = setInterval(s5_tab_show_outer_wrap_id7_interval, s5_tab_show_duration); } 138 if (s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].innerHTML.indexOf("5_tab_show_pause_onhover_enabled") >= 0) { 139 document.getElementById(s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].id).addEventListener("mouseover", s5_tab_show_outer_wrap_id7_clear); 140 document.getElementById(s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].id).addEventListener("mouseout", s5_tab_show_outer_wrap_id7_set); 141 } 142 } 143 } 144 else if (s5_tab_show_mark_outer_id_counter == 8) { 145 var s5_tab_show_unique_id = s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].id.substr(s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].id.length - 10); 146 var s5_tab_show_duration_id = "s5_tab_show_duration_id" + s5_tab_show_unique_id; 147 var s5_tab_show_duration = document.getElementById(s5_tab_show_duration_id).innerHTML; 148 if (s5_tab_show_duration != "disabled") { 149 s5_tab_show_duration = s5_tab_show_duration * 1000; 150 } 151 s5_tab_show_unique_id = "s5_tab_show_slide1_button_id" + s5_tab_show_unique_id; 152 s5_tab_show_trigger_slide_transition(s5_tab_show_unique_id); 153 if (s5_tab_show_duration != "disabled") { 154 var s5_tab_show_outer_wrap_id8 = setInterval(s5_tab_show_outer_wrap_id8_interval, s5_tab_show_duration); 155 function s5_tab_show_outer_wrap_id8_clear() { clearInterval(s5_tab_show_outer_wrap_id8); } 156 function s5_tab_show_outer_wrap_id8_set() { s5_tab_show_outer_wrap_id8 = setInterval(s5_tab_show_outer_wrap_id8_interval, s5_tab_show_duration); } 157 if (s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].innerHTML.indexOf("5_tab_show_pause_onhover_enabled") >= 0) { 158 document.getElementById(s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].id).addEventListener("mouseover", s5_tab_show_outer_wrap_id8_clear); 159 document.getElementById(s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].id).addEventListener("mouseout", s5_tab_show_outer_wrap_id8_set); 160 } 161 } 162 } 163 else if (s5_tab_show_mark_outer_id_counter == 9) { 164 var s5_tab_show_unique_id = s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].id.substr(s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].id.length - 10); 165 var s5_tab_show_duration_id = "s5_tab_show_duration_id" + s5_tab_show_unique_id; 166 var s5_tab_show_duration = document.getElementById(s5_tab_show_duration_id).innerHTML; 167 if (s5_tab_show_duration != "disabled") { 168 s5_tab_show_duration = s5_tab_show_duration * 1000; 169 } 170 s5_tab_show_unique_id = "s5_tab_show_slide1_button_id" + s5_tab_show_unique_id; 171 s5_tab_show_trigger_slide_transition(s5_tab_show_unique_id); 172 if (s5_tab_show_duration != "disabled") { 173 var s5_tab_show_outer_wrap_id9 = setInterval(s5_tab_show_outer_wrap_id9_interval, s5_tab_show_duration); 174 function s5_tab_show_outer_wrap_id9_clear() { clearInterval(s5_tab_show_outer_wrap_id9); } 175 function s5_tab_show_outer_wrap_id9_set() { s5_tab_show_outer_wrap_id9 = setInterval(s5_tab_show_outer_wrap_id9_interval, s5_tab_show_duration); } 176 if (s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].innerHTML.indexOf("5_tab_show_pause_onhover_enabled") >= 0) { 177 document.getElementById(s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].id).addEventListener("mouseover", s5_tab_show_outer_wrap_id9_clear); 178 document.getElementById(s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].id).addEventListener("mouseout", s5_tab_show_outer_wrap_id9_set); 179 } 180 } 181 } 182 else if (s5_tab_show_mark_outer_id_counter == 10) { 183 var s5_tab_show_unique_id = s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].id.substr(s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].id.length - 10); 184 var s5_tab_show_duration_id = "s5_tab_show_duration_id" + s5_tab_show_unique_id; 185 var s5_tab_show_duration = document.getElementById(s5_tab_show_duration_id).innerHTML; 186 if (s5_tab_show_duration != "disabled") { 187 s5_tab_show_duration = s5_tab_show_duration * 1000; 188 } 189 s5_tab_show_unique_id = "s5_tab_show_slide1_button_id" + s5_tab_show_unique_id; 190 s5_tab_show_trigger_slide_transition(s5_tab_show_unique_id); 191 if (s5_tab_show_duration != "disabled") { 192 var s5_tab_show_outer_wrap_id10 = setInterval(s5_tab_show_outer_wrap_id10_interval, s5_tab_show_duration); 193 function s5_tab_show_outer_wrap_id10_clear() { clearInterval(s5_tab_show_outer_wrap_id10); } 194 function s5_tab_show_outer_wrap_id10_set() { s5_tab_show_outer_wrap_id10 = setInterval(s5_tab_show_outer_wrap_id10_interval, s5_tab_show_duration); } 195 if (s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].innerHTML.indexOf("5_tab_show_pause_onhover_enabled") >= 0) { 196 document.getElementById(s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].id).addEventListener("mouseover", s5_tab_show_outer_wrap_id10_clear); 197 document.getElementById(s5_tab_show_mark_outer_id[s5_tab_show_mark_outer_id_y].id).addEventListener("mouseout", s5_tab_show_outer_wrap_id10_set); 198 } 199 } 200 } 201 s5_tab_show_mark_outer_id_counter = s5_tab_show_mark_outer_id_counter + 1; 202 } 203 } 204 window.onresize = function(event) { 205 s5_tab_show_resize(); 206 }; 207} 208} 209 210function s5_tab_show_trigger_slide_transition(s5_tab_show_clicked_id) { 211 var s5_tab_show_unique_id = s5_tab_show_clicked_id.substr(s5_tab_show_clicked_id.length - 10); 212 var s5_tab_show_slides_wrap_id = "s5_tab_show_slides_wrap_id" + s5_tab_show_unique_id; 213 var s5_tab_show_outer_wrap_id = "s5_tab_show_outer_wrap_id" + s5_tab_show_unique_id; 214 var s5_tab_show_slide_id = s5_tab_show_clicked_id.split('_'); 215 s5_tab_show_slide_id = s5_tab_show_slide_id[3]; 216 s5_tab_show_sl
216ide_id = s5_tab_show_slide_id.replace(/\D/g,''); 217 s5_tab_show_slide_transition(s5_tab_show_slides_wrap_id,s5_tab_show_slide_id,s5_tab_show_unique_id); 218} 219 220function s5_tab_show_slide_transition(s5_tab_show_slides_wrap_id,s5_tab_show_slide_id,s5_tab_show_unique_id) { 221 set_s5_tab_show_slides_inactive(s5_tab_show_unique_id); 222 var s5_tab_show_slide_active_id = "s5_tab_show_slide" + s5_tab_show_slide_id + "_id" + s5_tab_show_unique_id; 223 document.getElementById(s5_tab_show_slide_active_id).className = "s5_tab_show_slide s5_tab_show_slide_active"; 224 var s5_tab_show_slide_button_active_id = "s5_tab_show_slide" + s5_tab_show_slide_id + "_button_id" + s5_tab_show_unique_id; 225 document.getElementById(s5_tab_show_slide_button_active_id).className = "s5_tab_show_slide_button_active"; 226 var s5_tab_show_count_slides_counter = 0; 227 var s5_tab_show_slide_width = 0; 228 var s5_tab_total_margin = 0; 229 var s5_tab_show_count_slides = document.getElementById(s5_tab_show_slides_wrap_id).getElementsByTagName("DIV"); 230 for (var s5_tab_show_count_slides_y=0; s5_tab_show_count_slides_y<s5_tab_show_count_slides.length; s5_tab_show_count_slides_y++) { 231 if (s5_tab_show_count_slides[s5_tab_show_count_slides_y].className.indexOf("s5_tab_show_slide ") >= 0) { 232 s5_tab_show_count_slides_counter = s5_tab_show_count_slides_counter + 1; 233 s5_tab_show_slide_width = s5_tab_show_count_slides[s5_tab_show_count_slides_y].offsetWidth; 234 var s5_tab_margin_style = s5_tab_show_count_slides[s5_tab_show_count_slides_y].currentStyle || window.getComputedStyle(s5_tab_show_count_slides[s5_tab_show_count_slides_y]); 235 var s5_tab_margin_right = (parseInt(s5_tab_margin_style.marginRight,10)); 236 var s5_tab_margin_left = (parseInt(s5_tab_margin_style.marginLeft,10)); 237 var s5_tab_total_margin = s5_tab_margin_right + s5_tab_margin_left; 238 } 239 } 240 s5_tab_show_slide_id = s5_tab_show_slide_id -1; 241 document.getElementById(s5_tab_show_slides_wrap_id).style.marginLeft = ((s5_tab_show_slide_width * s5_tab_show_slide_id) + (s5_tab_show_slide_id * s5_tab_total_margin)) * -1 + "px"; 242} 243 244function s5_tab_show_resize_reset_class() { 245var s5_tab_show_resize_reset_class = document.getElementsByTagName("DIV"); 246for (var s5_tab_show_resize_reset_class_y=0; s5_tab_show_resize_reset_class_y<s5_tab_show_resize_reset_class.length; s5_tab_show_resize_reset_class_y++) { 247 if (s5_tab_show_resize_reset_class[s5_tab_show_resize_reset_class_y].className.indexOf("s5_tab_show_slides_wrap") >= 0) { 248 s5_tab_show_resize_reset_class[s5_tab_show_resize_reset_class_y].className = "s5_tab_show_slides_wrap"; 249 } 250} 251} 252 253function s5_tab_show_resize() { 254var s5_tab_show_resize = document.getElementsByTagName("DIV"); 255for (var s5_tab_show_resize_y=0; s5_tab_show_resize_y<s5_tab_show_resize.length; s5_tab_show_resize_y++) { 256 if (s5_tab_show_resize[s5_tab_show_resize_y].className.indexOf("s5_tab_show_slides_wrap") >= 0) { 257 s5_tab_show_resize[s5_tab_show_resize_y].className = "s5_tab_show_slides_wrap s5_tab_show_slides_wrap_resize"; 258 window.setTimeout(s5_tab_show_resize_reset_class,1000); 259 var s5_tab_show_resize_active_id = document.getElementById(s5_tab_show_resize[s5_tab_show_resize_y].id).getElementsByTagName("DIV"); 260 for (var s5_tab_show_resize_active_id_y=0; s5_tab_show_resize_active_id_y<s5_tab_show_resize_active_id.length; s5_tab_show_resize_active_id_y++) { 261 if (s5_tab_show_resize_active_id[s5_tab_show_resize_active_id_y].className == "s5_tab_show_slide s5_tab_show_slide_active") { 262 s5_tab_show_trigger_slide_transition(s5_tab_show_resize_active_id[s5_tab_show_resize_active_id_y].id); 263 } 264 } 265 } 266} 267} 268 269function s5_tab_show_trigger_next(s5_tab_show_next_id) { 270 var s5_tab_show_unique_id = s5_tab_show_next_id.substr(s5_tab_show_next_id.length - 10); 271 s5_tab_show_find_and_set_active(s5_tab_show_unique_id); 272} 273 274function s5_tab_show_trigger_prev(s5_tab_show_prev_id) { 275 //Find the previous id 276 var s5_tab_show_unique_id = s5_tab_show_prev_id.substr(s5_tab_show_prev_id.length - 10); 277 var s5_tab_show_slides_wrap_id = "s5_tab_show_slides_wrap_id" + s5_tab_show_unique_id; 278 var s5_tab_show_prev_child_counter = 0; 279 var s5_tab_show_prev = document.getElementById(s5_tab_show_slides_wrap_id).getElementsByTagName("DIV"); 280 var s5_tab_show_prev_children = document.getElementById(s5_tab_show_slides_wrap_id).getElementsByTagName("DIV"); 281 for (var s5_tab_show_prev_children_y=0; s5_tab_show_prev_children_y<s5_tab_show_prev_children.length; s5_tab_show_prev_children_y++) { 282 if (s5_tab_show_prev_children[s5_tab_show_prev_children_y].className.indexOf("s5_tab_show_slide_active") >= 0 || s5_tab_show_prev_children[s5_tab_show_prev_children_y].className.indexOf("s5_tab_show_slide_inactive") >= 0) { 283 s5_tab_show_prev_child_counter = s5_tab_show_prev_child_counter + 1; 284 } 285 } 286 for (var s5_tab_show_prev_y=0; s5_tab_show_prev_y<s5_tab_show_prev.length; s5_tab_show_prev_y++) { 287 if (s5_tab_show_prev[s5_tab_show_prev_y].className.indexOf("s5_tab_show_slide_active") >= 0) { 288 var s5_tab_show_find_active_button_id = s5_tab_show_prev[s5_tab_show_prev_y].id; 289 s5_tab_show_find_active_button_id = s5_tab_show_find_active_button_id.split('_'); 290 s5_tab_show_find_active_button_id = s5_tab_show_find_active_button_id[3]; 291 s5_tab_show_find_active_button_id = s5_tab_show_find_active_button_id.replace(/\D/g,''); 292 s5_tab_show_find_active_button_id = parseInt(s5_tab_show_find_active_button_id); 293 s5_tab_show_find_active_button_id_prev = s5_tab_show_find_active_button_id - 1; 294 var s5_tab_show_slide_prev_id = "s5_tab_show_slide" + s5_tab_show_find_active_button_id_prev + "_button_id" + s5_tab_show_unique_id; 295 if (document.getElementById(s5_tab_show_slide_prev_id)) { 296 s5_tab_show_trigger_slide_transition(s5_tab_show_slide_prev_id); 297 } else{ 298 //If it's the first slide go to the last slide 299 var s5_tab_show_slide_last_id = "s5_tab_show_slide" + s5_tab_show_prev_child_counter + "_button_id" + s5_tab_show_unique_id; 300 s5_tab_show_trigger_slide_transition(s5_tab_show_slide_last_id); 301 } 302 return; 303 } 304 } 305} 306 307function set_s5_tab_show_slides_inactive(s5_tab_show_unique_id) { 308var s5_tab_show_outer_wrap_id = "s5_tab_show_outer_wrap_id" + s5_tab_show_unique_id; 309var s5_tab_show_mark_buttons_inactive = document.getElementById(s5_tab_show_outer_wrap_id).getElementsByTagName("DIV"); 310for (var s5_tab_show_mark_buttons_inactive_y=0; s5_tab_show_mark_buttons_inactive_y<s5_tab_show_mark_buttons_inactive.length; s5_tab_show_mark_buttons_inactive_y++) { 311 if (s5_tab_show_mark_buttons_inactive[s5_tab_show_mark_buttons_inactive_y].className.indexOf("s5_tab_show_slide_active") >= 0 || s5_tab_show_mark_buttons_inactive[s5_tab_show_mark_buttons_inactive_y].className.indexOf("tab_show_slide_inactive") >= 0) { 312 s5_tab_show_mark_buttons_inactive[s5_tab_show_mark_buttons_inactive_y].className = "s5_tab_show_slide s5_tab_show_slide_inactive"; 313 } 314 if (s5_tab_show_mark_buttons_inactive[s5_tab_show_mark_buttons_inactive_y].className.indexOf("s5_tab_show_slide_button") >= 0) { 315 s5_tab_show_mark_buttons_inactive[s5_tab_show_mark_buttons_inactive_y].className = "s5_tab_show_slide_button_inactive"; 316 } 317} 318} 319 320function s5_tab_show_find_and_set_active(s5_tab_show_unique_id) { 321 var s5_tab_show_find_active_button_id = ""; 322 var s5_tab_show_find_active_slides_id = "s5_tab_show_slides_buttons_id" + s5_tab_show_unique_id; 323 var s5_tab_show_mark_button_active_id = document.getElementById(s5_tab_show_find_active_slides_id).getElementsByTagName("DIV"); 324 for (var s5_tab_show_mark_button_active_id_y=0; s5_tab_show_mark_button_active_id_y<s5_tab_show_mark_button_active_id.length; s5_tab_show_mark_button_active_id_y++) { 325 if (s5_tab_show_mark_button_active_id[s5_tab_show_mark_button_active_id_y].className == "s5_tab_show_slide_button_active") { 326 s5_tab_show_find_active_button_id = s5_tab_show_mark_button_active_id[s5_tab_show_mark_button_active_id_y].id; 327 } 328 } 329 set_s5_tab_show_slides_inactive(s5_tab_show_unique_id); 330 s5_tab_show_find_active_button_id = s5_tab_show_find_active_button_id.split('_'); 331 s5_tab_show_find_active_button_id = s5_tab_show_find_active_button_id[3]; 332 s5_tab_show_find_active_button_id = s5_tab_show_find_active_button_id.replace(/\D/g,''); 333 s5_tab_show_find_active_button_id = parseInt(s5_tab_show_find_active_button_id); 334 s5_tab_show_find_active_button_id_next = s5_tab_show_find_active_button_id + 1; 335 var s5_tab_show_slide_next_id = "s5_tab_show_slide" + s5_tab_show_find_active_button_id_next + "_button_id" + s5_tab_show_unique_id; 336 if (document.getElementById(s5_tab_show_slide_next_id)) { 337 s5_tab_show_trigger_slide_transition(s5_tab_show_slide_next_id); 338 } else { 339 var s5_tab_show_slide1_id = "s5_tab_show_slide1_button_id" + s5_tab_show_unique_id; 340 s5_tab_show_trigger_slide_transition(s5_tab_show_slide1_id); 341 } 342} 343 344function s5_tab_show_outer_wrap_id1_interval() { 345 //Find the unique id of the parent wrap 346 var s5_tab_show_unique_id = ""; 347 var s5_tab_show_outer_id_counter = 1; 348 var s5_tab_show_outer_id = document.getElementsByTagName("DIV"); 349 for (var s5_tab_show_outer_id_y=0; s5_tab_show_outer_id_y<s5_tab_show_outer_id.length; s5_tab_show_outer_id_y++) { 350 if (s5_tab_show_outer_id[s5_tab_show_outer_id_y].className == "s5_tab_show_outer_wrap") { 351 if (s5_tab_show_outer_id_counter == 1) { 352 s5_tab_show_unique_id = s5_tab_show_outer_id[s5_tab_show_outer_id_y].id; 353 s5_tab_show_unique_id = s5_tab_show_unique_id.substr(s5_tab_show_unique_id.length - 10); 354 } 355 s5_tab_show_outer_id_counter = s5_tab_show_outer_id_counter + 1; 356 } 357 } 358 //Find the active button 359 s5_tab_show_find_and_set_active(s5_tab_show_unique_id); 360} 361 362function s5_tab_show_outer_wrap_id2_interval() { 363 //Find the unique id of the parent wrap 364 var s5_tab_show_unique_id = ""; 365 var s5_tab_show_outer_id_counter = 1; 366 var s5_tab_show_outer_id = document.getElementsByTagName("DIV"); 367 for (var s5_tab_show_outer_id_y=0; s5_tab_show_outer_id_y<s5_tab_show_outer_id.length; s5_tab_show_outer_id_y++) { 368 if (s5_tab_show_outer_id[s5_tab_show_outer_id_y].className == "s5_tab_show_outer_wrap") { 369 if (s5_tab_show_outer_id_counter == 2) { 370 s5_tab_show_unique_id = s5_tab_show_outer_id[s5_tab_show_outer_id_y].id; 371 s5_tab_show_unique_id = s5_tab_show_unique_id.substr(s5_tab_show_unique_id.length - 10); 372 } 373 s5_tab_show_outer_id_counter = s5_tab_show_outer_id_counter + 1; 374 } 375 } 376 //Find the active button 377 s5_tab_show_find_and_set_active(s5_tab_show_unique_id); 378} 379 380function s5_tab_show_outer_wrap_id3_interval() { 381 //Find the unique id of the parent wrap 382 var s5_tab_show_unique_id = ""; 383 var s5_tab_show_outer_id_counter = 1; 384 var s5_tab_show_outer_id = document.getElementsByTagName("DIV"); 385 for (var s5_tab_show_outer_id_y=0; s5_tab_show_outer_id_y<s5_tab_show_outer_id.length; s5_tab_show_outer_id_y++) { 386 if (s5_tab_show_outer_id[s5_tab_show_outer_id_y].className == "s5_tab_show_outer_wrap") { 387 if (s5_tab_show_outer_id_counter == 3) { 388 s5_tab_show_unique_id = s5_tab_show_outer_id[s5_tab_show_outer_id_y].id; 389 s5_tab_show_unique_id = s5_tab_show_unique_id.substr(s5_tab_show_unique_id.length - 10); 390 } 391 s5_tab_show_outer_id_counter = s5_tab_show_outer_id_counter + 1; 392 } 393 } 394 //Find the active button 395 s5_tab_show_find_and_set_active(s5_tab_show_unique_id); 396} 397 398function s5_tab_show_outer_wrap_id4_interval() { 399 //Find the unique id of the parent wrap 400 var s5_tab_show_unique_id = ""; 401 var s5_tab_show_outer_id_counter = 1; 402 var s5_tab_show_outer_id = document.getElementsByTagName("DIV"); 403 for (var s5_tab_show_outer_id_y=0; s5_tab_show_outer_id_y<s5_tab_show_outer_id.length; s5_tab_show_outer_id_y++) { 404 if (s5_tab_show_outer_id[s5_tab_show_outer_id_y].className == "s5_tab_show_outer_wrap") { 405 if (s5_tab_show_outer_id_counter == 4) { 406 s5_tab_show_unique_id = s5_tab_show_outer_id[s5_tab_show_outer_id_y].id; 407 s5_tab_show_unique_id = s5_tab_show_unique_id.substr(s5_tab_show_unique_id.length - 10); 408 } 409 s5_tab_show_outer_id_counter = s5_tab_show_outer_id_counter + 1; 410 } 411 } 412 //Find the active button 413 s5_tab_show_find_and_set_active(s5_tab_show_unique_id); 414} 415 416function s5_tab_show_outer_wrap_id5_interval() { 417 //Find the unique id of the parent wrap 418 var s5_tab_show_unique_id = ""; 419 var s5_tab_show_outer_id_counter = 1; 420 var s5_tab_show_outer_id = document.getElementsByTagName("DIV"); 421 for (var s5_tab_show_outer_id_y=0; s5_tab_show_outer_id_y<s5_tab_show_outer_id.length; s5_tab_show_outer_id_y++) { 422 if (s5_tab_show_outer_id[s5_tab_show_outer_id_y].className == "s5_tab_show_outer_wrap") { 423 if (s5_tab_show_outer_id_counter == 5) { 424 s5_tab_show_unique_id = s5_tab_show_outer_id[s5_tab_show_outer_id_y].id; 425 s5_tab_show_unique_id = s5_tab_show_unique_id.substr(s5_tab_show_unique_id.length - 10); 426 } 427 s5_tab_show_outer_id_counter = s5_tab_show_outer_id_counter + 1; 428 } 429 } 430 //Find the active button 431 s5_tab_show_find_and_set_active(s5_tab_show_unique_id); 432} 433 434function s5_tab_show_outer_wrap_id6_interval() { 435 //Find the unique id of the parent wrap 436 var s5_tab_show_unique_id = ""; 437 var s5_tab_show_outer_id_counter = 1; 438 var s5_tab_show_outer_id = document.getElementsByTagName("DIV"); 439 for (var s5_tab_show_outer_id_y=0; s5_tab_show_outer_id_y<s5_tab_show_outer_id.length; s5_tab_show_outer_id_y++) { 440 if (s5_tab_show_outer_id[s5_tab_show_outer_id_y].className == "s5_tab_show_outer_wrap") { 441 if (s5_tab_show_outer_id_counter == 6) { 442 s5_tab_show_unique_id = s5_tab_show_outer_id[s5_tab_show_outer_id_y].id; 443 s5_tab_show_unique_id = s5_tab_show_unique_id.substr(s5_tab_show_unique_id.length - 10); 444 } 445 s5_tab_show_outer_id_counter = s5_tab_show_outer_id_counter + 1; 446 } 447 } 448 //Find the active button 449 s5_tab_show_find_and_set_active(s5_tab_show_unique_id); 450} 451 452function s5_tab_show_outer_wrap_id7_interval() { 453 //Find the unique id of the parent wrap 454 var s5_tab_show_unique_id = ""; 455 var s5_tab_show_outer_id_counter = 1; 456 var s5_tab_show_outer_id = document.getElementsByTagName("DIV"); 457 for (var s5_tab_show_outer_id_y=0; s5_tab_show_outer_id_y<s5_tab_show_outer_id.length; s5_tab_show_outer_id_y++) { 458 if (s5_tab_show_outer_id[s5_tab_show_outer_id_y].className == "s5_tab_show_outer_wrap") { 459 if (s5_tab_show_outer_id_counter == 7) { 460 s5_tab_show_unique_id = s5_tab_show_outer_id[s5_tab_show_outer_id_y].id; 461 s5_tab_show_unique_id = s5_tab_show_unique_id.substr(s5_tab_show_unique_id.length - 10); 462 } 463 s5_tab_show_outer_id_counter = s5_tab_show_outer_id_counter + 1; 464 } 465 } 466 //Find the active button 467 s5_tab_show_find_and_set_active(s5_tab_show_unique_id); 468} 469 470function s5_tab_show_outer_wrap_id8_interval() { 471 //Find the unique id of the parent wrap 472 var s5_tab_show_unique_id = ""; 473 var s5_tab_show_outer_id_counter = 1; 474 var s5_tab_show_outer_id = document.getElementsByTagName("DIV"); 475 for (var s5_tab_show_outer_id_y=0; s5_tab_show_outer_id_y<s5_tab_show_outer_id.length; s5_tab_show_outer_id_y++) { 476 if (s5_tab_show_outer_id[s5_tab_show_outer_id_y].className == "s5_tab_show_outer_wrap") { 477 if (s5_tab_show_outer_id_counter == 8) { 478 s5_tab_show_unique_id = s5_tab_show_outer_id[s5_tab_show_outer_id_y].id; 479 s5_tab_show_unique_id = s5_tab_show_unique_id.substr(s5_tab_show_unique_id.length - 10); 480 } 481 s5_tab_show_outer_id_counter = s5_tab_show_outer_id_counter + 1; 482 } 483 } 484 //Find the active button 485 s5_tab_show_find_and_set_active(s5_tab_show_unique_id); 486} 487 488function s5_tab_show_outer_wrap_id9_interval() { 489 //Find the unique id of the parent wrap 490 var s5_tab_show_unique_id = ""; 491 var s5_tab_show_outer_id_counter = 1; 492 var s5_tab_show_outer_id = document.getElementsByTagName("DIV"); 493 for (var s5_tab_show_outer_id_y=0; s5_tab_show_outer_id_y<s5_tab_show_outer_id.length; s5_tab_show_outer_id_y++) { 494 if (s5_tab_show_outer_id[s5_tab_show_outer_id_y].className == "s5_tab_show_outer_wrap") { 495 if (s5_tab_show_outer_id_counter == 9) { 496 s5_tab_show_unique_id = s5_tab_show_outer_id[s5_tab_show_outer_id_y].id; 497 s5_tab_show_unique_id = s5_tab_show_unique_id.substr(s5_tab_show_unique_id.length - 10); 498 } 499 s5_tab_show_outer_id_counter = s5_tab_show_outer_id_counter + 1; 500 } 501 } 502 //Find the active button 503 s5_tab_show_find_and_set_active(s5_tab_show_unique_id); 504} 505 506function s5_tab_show_outer_wrap_id10_inter
506val() { 507 //Find the unique id of the parent wrap 508 var s5_tab_show_unique_id = ""; 509 var s5_tab_show_outer_id_counter = 1; 510 var s5_tab_show_outer_id = document.getElementsByTagName("DIV"); 511 for (var s5_tab_show_outer_id_y=0; s5_tab_show_outer_id_y<s5_tab_show_outer_id.length; s5_tab_show_outer_id_y++) { 512 if (s5_tab_show_outer_id[s5_tab_show_outer_id_y].className == "s5_tab_show_outer_wrap") { 513 if (s5_tab_show_outer_id_counter == 10) { 514 s5_tab_show_unique_id = s5_tab_show_outer_id[s5_tab_show_outer_id_y].id; 515 s5_tab_show_unique_id = s5_tab_show_unique_id.substr(s5_tab_show_unique_id.length - 10); 516 } 517 s5_tab_show_outer_id_counter = s5_tab_show_outer_id_counter + 1; 518 } 519 } 520 //Find the active button 521 s5_tab_show_find_and_set_active(s5_tab_show_unique_id); 522}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.