1function flipBox(b){var a;if(document.images["b_"+b].src.indexOf("_on")==-1){a=document.images["b_"+b].src.replace("_off","_on");document.getElementById("box_"+b).style.display="none";if(document.getElementById("box_"+b+"_diff")){document.getElementById("box_"+b+"_diff").style.display="block"}document.images["b_"+b].src=a;disply="none";now=new Date();now.setTime(now.getTime()+1000*60*60*24*365);expire=(now.toGMTString());document.cookie="fusion_box_"+b+"="+escape(disply)+"; expires="+expire}else{a=document.images["b_"+b].src.replace("_on","_off");document.getElementById("box_"+b).style.display="block";if(document.getElementById("box_"+b+"_diff")){document.getElementById("box_"+b+"_diff").style.display="none"}document.images["b_"+b].src=a;disply="block";now=new Date();now.setTime(now.getTime()+1000*60*60*24*365);expire=(now.toGMTString());document.cookie="fusion_box_"+b+"="+escape(disply)+"; expires="+expire}}function addText(f,i,a,e){if(e==undefined){e="inputform"}if(f==undefined){f="message"}element=document.forms[e].elements[f];element.focus();if(document.selection){var c=document.selection.createRange();var h=c.text.length;c.text=i+c.text+a;return false}else{if(element.setSelectionRange){var b=element.selectionStart,g=element.selectionEnd;var d=element.scrollTop;element.value=element.value.substring(0,b)+i+element.value.substring(b,g)+a+element.value.substring(g);element.setSelectionRange(b+i.length,g+i.length);element.scrollTop=d;element.focus()}else{var d=element.scrollTop;element.value+=i+a;element.scrollTop=d;element.focus()}}}function insertText(f,h,e){if(e==undefined){e="inputform"}if(document.forms[e].elements[f].createTextRange){document.forms[e].elements[f].focus();document.selection.createRange().duplicate().text=h}else{if((typeof document.forms[e].elements[f].selectionStart)!="undefined"){var a=document.forms[e].elements[f];var g=a.selectionEnd;var d=a.value.length;var c=a.value.substring(0,g);var i=a.value.substring(g,d);var b=a.scrollTop;a.value=c+h+i;a.selectionStart=c.length+h.length;a.selectionEnd=c.length+h.length;a.scrollTop=b;a.focus()}else{document.forms[e].elements[f].value+=h;document.forms[e].elements[f].focus()}}}function show_hide(a){document.getElementById(a).style.display=document.getElementById(a).style.display=="none"?"block":"none"}function correctPNG(){if(navigator.appName=="Microsoft Internet Explorer"&&navigator.userAgent.indexOf("Opera")==-1){for(var g=0;g<document.images.length;g++){var d=document.images[g];var f=d.src.toUpperCase();if(f.substring(f.length-3,f.length)=="PNG"){var b=(d.id)?"id='"+d.id+"' ":"";var e=(d.className)?"class='"+d.className+"' ":"";var h=(d.title)?"title='"+d.title+"' ":"title='"+d.alt+"' ";var c="display:inline-block;"+d.style.cssText;if(d.align=="left"){c="float:left;"+c}if(d.align=="right"){c="float:right;"+c}if(d.parentElement.href){c="cursor:hand;"+c}var a="<span "+b+e+h+' style="width:'+d.width+"px; height:"+d.height+"px;"+c+";filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+d.src+"', sizingMethod='scale');\"></span>";d.outerHTML=a;g=g-1}}}}function getStyle(c,b){if(typeof c=="string"){var a=document.getElementById(c)}else{var a=c}if(a.currentStyle){var d=a.currentStyle[b]}else{if(window.getComputedStyle){var d=document.defaultView.getComputedStyle(a,null).getPropertyValue(b)}}return d}; 2 3//modified by wooya 4function addText(elname, strFore, strAft, formname) { 5 if (formname == undefined) formname = 'inputform'; 6 if (elname == undefined) elname = 'message'; 7 element = document.forms[formname].elements[elname]; 8 element.focus(); 9 // for IE 10 if (document.selection) { 11 var oRange = document.selection.createRange(); 12 var numLen = oRange.text.length; 13 oRange.text = strFore + oRange.text + strAft; 14 return false; 15 // for FF and Opera 16 } else if (element.setSelectionRange) { 17 var selStart = element.selectionStart, selEnd = element.selectionEnd; 18 var oldScrollTop = element.scrollTop; 19 element.value = element.value.substring(0, selStart) + strFore + element.value.substring(selStart, selEnd) + strAft + element.value.substring(selEnd); 20 element.setSelectionRange(selStart + strFore.length, selEnd + strFore.length); 21 element.scrollTop = oldScrollTop; 22 element.focus(); 23 } else { 24 var oldScrollTop = element.scrollTop; 25 element.value += strFore + strAft; 26 element.scrollTop = oldScrollTop; 27 element.focus(); 28 } 29} 30 31//modified by Wooya 32function insertText(elname, what, formname) { 33 if (formname == undefined) formname = 'inputform'; 34 if (document.forms[formname].elements[elname].createTextRange) { 35 document.forms[formname].elements[elname].focus(); 36 document.selection.createRange().duplicate().text = what; 37 } else if ((typeof document.forms[formname].elements[elname].selectionStart) != 'undefined') { 38 // for Mozilla 39 var tarea = document.forms[formname].elements[elname]; 40 var selEnd = tarea.selectionEnd; 41 var txtLen = tarea.value.length; 42 var txtbefore = tarea.value.substring(0,selEnd); 43 var txtafter = tarea.value.substring(selEnd, txtLen); 44 var oldScrollTop = tarea.scrollTop; 45 tarea.value = txtbefore + what + txtafter; 46 tarea.selectionStart = txtbefore.length + what.length; 47 tarea.selectionEnd = txtbefore.length + what.length; 48 tarea.scrollTop = oldScrollTop; 49 tarea.focus(); 50 } else { 51 document.forms[formname].elements[elname].value += what; 52 document.forms[formname].elements[elname].focus(); 53 } 54} 55 56//written by Wooya 57NewWindowPopUp = null; 58function OpenWindow(src, wdth, hght, wcenter) { 59 //close previous popup window 60 if (NewWindowPopUp != null) { 61 NewWindowPopUp.close(); 62 NewWindowPopUp = null; 63 } 64 //if center parameter given center opoup window 65 if (wcenter == false) { 66 wtop = 0; 67 wleft = 0; 68 } else { 69 wtop = (screen.availHeight-hght)/2;
70 wleft = (screen.availWidth-wdth)/2; 71 } 72 NewWindowPopUp = window.open(src, "","toolbar=no,menubar=no,location=no,personalbar=no,scrollbars=yes,status=no,directories=no,resizable=yes,height="+hght+",width="+wdth+",top="+wtop+",left="+wleft+""); 73 NewWindowPopUp.focus(); 74} 75 76//modified by Wooya to work properly with Opera 77function correctPNG() { 78 // correctly handle PNG transparency in Win IE 5.5 or higher. 79 if (navigator.appName=="Microsoft Internet Explorer" && navigator.userAgent.indexOf("Opera")==-1) { 80 for(var i=0; i<document.images.length; i++) { 81 var img = document.images[i] 82 var imgName = img.src.toUpperCase() 83 if (imgName.substring(imgName.length-3, imgName.length) == "PNG") { 84 var imgID = (img.id) ? "id='" + img.id + "' " : "" 85 var imgClass = (img.className) ? "class='" + img.className + "' " : "" 86 var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' " 87 var imgStyle = "display:inline-block;" + img.style.cssText 88 if (img.align == "left") imgStyle = "float:left;" + imgStyle 89 if (img.align == "right") imgStyle = "float:right;" + imgStyle 90 if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle 91 var strNewHTML = "<span " + imgID + imgClass + imgTitle 92 + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";" 93 + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader" 94 + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 95 img.outerHTML = strNewHTML 96 i = i-1 97 } 98 } 99 } 100} 101 102function getStyle(el,style) 103{ 104 var element = el; 105 if(typeof el == "string") 106 element = document.getElementById(el); 107 108 var value = document.defaultView.getComputedStyle(element,null).getPropertyValue(style); 109 if (element.currentStyle) 110 value = element.currentStyle[style]; 111 112 return value; 113} 114 115function getOffset(overlay, offsetType) 116{ 117 var totalOffset = (offsetType=='left') ? overlay.offsetLeft : overlay.offsetTop, parentEl = overlay.offsetParent; 118 while(parentEl != null) { 119 if(getStyle(parentEl, "position") != "relative") 120 totalOffset = (offsetType=='left') ? totalOffset + parentEl.offsetLeft : totalOffset + parentEl.offsetTop; 121 122 parentEl = parentEl.offsetParent; 123 } 124 125 return totalOffset; 126} 127 128function overlay(curObj, subObjStr, optPosition) 129{ 130 if(!document.getElementById) 131 return true; 132 133 var subObj = document.getElementById(subObjStr); 134 subObj.style.display = (subObj.style.display != 'block') ? 'block' : 'none'; 135 136 var xpos = getOffset(curObj, 'left') + ((typeof optPosition != 'undefined' && optPosition.indexOf('right') != -1) ? -(subObj.offsetWidth - curObj.offsetWidth) : 0); 137 var ypos = getOffset(curObj, 'top') + ((typeof optPosition != 'undefined' && optPosition.indexOf('bottom') != -1) ? curObj.offsetHeight : 0); 138 139 subObj.style.left = xpos + 'px'; 140 subObj.style.top = ypos + 'px'; 141 return false; 142} 143 144function overlayclose(subObj) 145{ 146 document.getElementById(subObj).style.display = 'none'; 147} 148 149function show_hide(selector, subSelector, onText, offText) 150{ 151 var obj = document.getElementById(selector); 152 if(obj) 153 { 154 obj.style.display = obj.style.display == 'none' ? '' : 'none'; 155 if(subSelector && onText && offText) 156 { 157 var subObj = document.getElementById(subSelector); 158 if(subObj) 159 subObj.innerHTML = content.style.display == 'none' ? onText : offText; 160 } 161 } 162} 163 164function run_time(selector) 165{ 166 var date = new Date(); 167 var hours = date.getHours(), minutes = date.getMinutes(), seconds = date.getSeconds(); 168 169 if(hours == 0) 170 hours = 12; 171 172 if(minutes < 10) 173 minutes = '0' + minutes; 174 175 if(seconds < 10) 176 seconds = '0' + seconds; 177 178 var clock = document.getElementById(selector); 179 if(clock) 180 clock.innerHTML = hours + ':' + minutes + ':' + seconds; 181 182 setTimeout('run_time("' + selector + '")', 1000); 183} 184 185function onLoad() 186{ 187 correctPNG(); 188 //clock(); 189} 190 191window.onload = onLoad;
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.