1/* begin Page */ 2 3 4jQuery(function(){jQuery('#art-page-background-glare').css('zoom',1)}); 5 6// css hacks 7(function($) { 8 // fix ie blinking 9 var m = document.uniqueID && document.compatMode && !window.XMLHttpRequest && document.execCommand; 10 try { if (!!m) { m('BackgroundImageCache', false, true); } } 11 catch (oh) { }; 12 // css helper 13 var data = [ 14 {str:navigator.userAgent,sub:'Chrome',ver:'Chrome',name:'chrome'}, 15 {str:navigator.vendor,sub:'Apple',ver:'Version',name:'safari'}, 16 {prop:window.opera,ver:'Opera',name:'opera'}, 17 {str:navigator.userAgent,sub:'Firefox',ver:'Firefox',name:'firefox'}, 18 {str:navigator.userAgent,sub:'MSIE',ver:'MSIE',name:'ie'}]; 19 for (var n=0;n<data.length;n++) { 20 if ((data[n].str && (data[n].str.indexOf(data[n].sub) != -1)) || data[n].prop) { 21 var v = function(s){var i=s.indexOf(data[n].ver);return (i!=-1)?parseInt(s.substring(i+data[n].ver.length+1)):'';}; 22 $('html').addClass(data[n].name+' '+data[n].name+v(navigator.userAgent) || v(navigator.appVersion)); break; 23 } 24 } 25})(jQuery); 26 27var _artStyleUrlCached = null; 28function artGetStyleUrl() { 29 if (null == _artStyleUrlCached) { 30 var ns; 31 _artStyleUrlCached = ''; 32 ns = jQuery('link'); 33 for (var i = 0; i < ns.length; i++) { 34 var l = ns[i].href; 35 if (l && /style\.ie6\.css(\?.*)?$/.test(l)) 36 return _artStyleUrlCached = l.replace(/style\.ie6\.css(\?.*)?$/, ''); 37 } 38 ns = jQuery('style'); 39 for (var i = 0; i < ns.length; i++) { 40 var matches = new RegExp('import\\s+"([^"]+\\/)style\\.ie6\\.css"').exec(ns[i].html()); 41 if (null != matches && matches.length > 0) 42 return _artStyleUrlCached = matches[1]; 43 } 44 } 45 return _artStyleUrlCached; 46} 47 48function artFixPNG(element) {
49 if (jQuery.browser.msie && parseInt(jQuery.browser.version) < 7) { 50 var src; 51 if (element.tagName == 'IMG') { 52 if (/\.png$/.test(element.src)) { 53 src = element.src; 54 element.src = artGetStyleUrl() + 'images/spacer.gif'; 55 } 56 } 57 else { 58 src = element.currentStyle.backgroundImage.match(/url\("(.+\.png)"\)/i); 59 if (src) { 60 src = src[1]; 61 element.runtimeStyle.backgroundImage = 'none'; 62 } 63 } 64 if (src) element.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "')"; 65 } 66} 67 68jQuery(function() { 69 jQuery.each(jQuery('ul.art-hmenu>li:not(.art-hmenu-li-separator),ul.art-vmenu>li:not(.art-vmenu-separator)'), function (i, val) { 70 var l = jQuery(val); var s = l.children('span'); if (s.length == 0) return; 71 var t = l.find('span.t').last(); l.children('a').append(t.html(t.text())); 72 s.remove(); 73 }); 74});/* end Page */ 75 76/* begin Box, Sheet */ 77 78function artFluidSheetComputedWidth(percent, minval, maxval) { 79 percent = parseInt(percent); 80 var val = document.body.clientWidth / 100 * percent; 81 return val < minval ? minval + 'px' : val > maxval ? maxval + 'px' : percent + '%'; 82}/* end Box, Sheet */ 83 84/* begin Menu */ 85jQuery(function () { 86 jQuery('ul.art-hmenu a[href=#]').click(function () { return false; });
87 if (!jQuery.browser.msie || parseInt(jQuery.browser.version) > 6) return; 88 jQuery.each(jQuery('ul.art-hmenu li'), function(i, val) { 89 val.j = jQuery(val); 90 val.UL = val.j.children('ul:first'); 91 if (val.UL.length == 0) return; 92 val.A = val.j.children('a:first'); 93 this.onmouseenter = function() { 94 this.j.addClass('art-hmenuhover'); 95 this.UL.addClass('art-hmenuhoverUL'); 96 this.A.addClass('art-hmenuhoverA'); 97 }; 98 this.onmouseleave = function() { 99 this.j.removeClass('art-hmenuhover'); 100 this.UL.removeClass('art-hmenuhoverUL'); 101 this.A.removeClass('art-hmenuhoverA'); 102 }; 103 }); 104}); 105/* end Menu */ 106 107/* begin Layout */ 108jQuery(function () { 109 var c = jQuery('div.art-content'); 110 if (c.length !== 1) return; 111 var s = c.parent().children('.art-layout-cell:not(.art-content)'); 112 113 if (jQuery.browser.msie && parseInt(jQuery.browser.version) < 8) { 114 115 jQuery(window).bind('resize', function () { 116 var w = 0; 117 c.hide(); 118 s.each(function () { w += this.clientWidth; }); 119 c.w = c.parent().width(); c.css('width', c.w - w + 'px'); 120 c.show(); 121 }) 122 123 var r = jQuery('div.art-content-layout-row').each(function () { 124 this.c = jQuery(this).children('.art-layout-cell:not(.art-content)'); 125 }); 126 127 jQuery(window).bind('resize', function () { 128 r.each(function () { 129 if (this.h == this.clientHeight) return; 130 this.c.css('height', 'auto'); 131 this.h = this.clientHeight; 132 this.c.css('height', this.h + 'px'); 133 }); 134 }); 135 } 136 137 var g = jQuery('.art-layout-glare-image'); 138 jQuery(window).bind('resize', function () { 139 g.each(function () { 140 var i = jQuery(this); 141 i.css('height', i.parents('.art-layout-cell').height() + 'px'); 142 }); 143 }); 144 145 jQuery(window).trigger('resize'); 146});/* end Layout */ 147 148/* begin Button */ 149function artButtonSetup(className) { 150 jQuery.each(jQuery("a." + className + ", button." + className + ", input." + className), function (i, val) { 151 var b = jQuery(val); 152 if (!b.parent().hasClass('art-button-wrapper')) { 153 if (b.is('input')) b.val(b.val().replace(/^\s*/, '')).css('zoom', '1'); 154 if (!b.hasClass('art-button')) b.addClass('art-button'); 155 jQuery("<span class='art-button-wrapper'><span class='art-button-l'> </span><span class='art-button-r'> </span></span>").insertBefore(b).append(b); 156 if (b.hasClass('active')) b.parent().addClass('active'); 157 } 158 b.mouseover(function () { jQuery(this).parent().addClass("hover"); }); 159 b.mouseout(function () { var b = jQuery(this); b.parent().removeClass("hover"); if (!b.hasClass('active')) b.parent().removeClass('active'); }); 160 b.mousedown(function () { var b = jQuery(this); b.parent().removeClass("hover"); if (!b.hasClass('active')) b.parent().addClass('active'); }); 161 b.mouseup(function () { var b = jQuery(this); if (!b.hasClass('active')) b.parent().removeClass('active'); }); 162 }); 163} 164jQuery(function() { artButtonSetup("art-button"); }); 165 166/* end Button */ 167 168/* begin VMenu */ 169jQuery(function () { 170 jQuery('ul.art-vmenu a[href=#]').click(function () { 171 jQuery(this).parents('.art-vmenu').find('.active').removeClass('active'); 172 jQuery(this).addClass('active').next().addClass('active'); 173 jQuery(this).parents('ul.art-vmenu ul').addClass('active').prev().addClass('active'); 174 jQuery(this).parents('ul.art-vmenu li').addClass('active'); 175 return false; 176 }); 177});/* end VMenu */ 178 179 180 181jQuery(function () { 182 artButtonSetup("button"); 183}); 184<!--Array 185( 186 [label01] => 0.00000 187 [label02] => 0.05658 188 [label03] => 0.12103 189 [label04] => 0.12103 190 [label05] => 0.12105 191) 192-->
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.