1function setActiveStyleSheet(title) { 2 var i, a, main; 3 for(i=0; (a = document.getElementsByTagName("link")[i]); i++) { 4 if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) { 5 a.disabled = true; 6 if(a.getAttribute("title") == title) a.disabled = false; 7 } 8 } 9bnsButtonchanger(title); 10} 11 12function bnsButtonchanger(title){ 13try{ 14 if(title!=null){ 15 document.getElementById('img_big').src="http://www.aic-co.jp/common/img/font_big.gif"; 16 document.getElementById('img_normal').src="http://www.aic-co.jp/common/img/font_normal.gif"; 17 document.getElementById('img_small').src="http://www.aic-co.jp/common/img/font_small.gif"; 18 document.getElementById('img_' + title).src="http://www.aic-co.jp/common/img/font_" + title + "_on.gif"; 19 }; 20}catch(e){ 21}; 22} 23 24 25 26function getActiveStyleSheet() { 27 var i, a; 28 for(i=0; (a = document.getElementsByTagName("link")[i]); i++) { 29 if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && !a.disabled) return a.getAttribute("title"); 30 } 31 return null; 32} 33 34function getPreferredStyleSheet() { 35 var i, a; 36 for(i=0; (a = document.getElementsByTagName("link")[i]); i++) { 37 if(a.getAttribute("rel").indexOf("style") != -1 38 && a.getAttribute("rel").indexOf("alt") == -1 39 && a.getAttribute("title") 40 ) return a.getAttribute("title"); 41 } 42 return null; 43} 44 45function createCookie(name,value,days) { 46 if (days) { 47 var date = new Date(); 48 date.setTime(date.getTime()+(days*24*60*60*1000)); 49 var expires = "; expires="+date.toGMTString(); 50 } 51 else expires = ""; 52 document.cookie = name+"="+value+expires+"; path=/"; 53} 54 55function readCookie(name) { 56 var nameEQ = name + "="; 57 var ca = document.cookie.split(';'); 58 for(var i=0;i < ca.length;i++) { 59 var c = ca[i]; 60 while (c.charAt(0)==' ') c = c.substring(1,c.length); 61 if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); 62 } 63return null; 64} 65 66window.onload = function(e) { 67var cookie = readCookie("style"); 68if(cookie==null){cookie='normal'}; 69var title = cookie ? cookie : getPreferredStyleSheet(); 70 setActiveStyleSheet(title); 71 72bnsButtonchanger(cookie); 73 74} 75 76window.onunload = function(e) { 77 var title = getActiveStyleSheet(); 78 createCookie("style", title, 365); 79} 80 81var cookie = readCookie("style"); 82var title = cookie ? cookie : getPreferredStyleSheet(); 83setActiveStyleSheet(title);
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.