1$(document).ready(function() 2{ 3 var shadowbox_options = ';options={animateFade:false,resizeDuration:0}'; 4 5 //---------------------------------------------START CUSTOM JS// 6 7 8 /* 9 recaptcha custom buttons 10 11 $('div#recaptcha_widget div:eq(2) a').addClass('recaptcha_reload'); 12 $('div#recaptcha_widget div:eq(3) a').addClass('recaptcha_audio'); 13 $('div#recaptcha_widget div:eq(4) a').addClass('recaptcha_image'); 14 $('div#recaptcha_widget div:eq(5) a').addClass('recaptcha_help'); 15 $('div#recaptcha_widget div:eq(2)').css('margin','0 0 0 122px'); 16 //('recaptcha_reload'); 17 */ 18 19 if($('fieldset.captcha').length > 0) 20 { 21 $('fieldset.captcha a').unbind().bind('click',function() 22 { 23 $('fieldset.captcha img').attr('src',_root+'captcha.php?rnd='+Math.random()); 24 25 return false; 26 }); 27 } 28 29 $('a[rel*="shadowbox"]').each(function() 30 { 31 $(this).addClass('pirobox_gall'); 32 $(this).attr('rel','gallery'); 33 }); 34 $.piroBox_ext({ 35 piro_speed : 700, 36 bg_alpha : 0.5, 37 piro_scroll : true, 38 piro_drag : false, 39 piro_nav_pos : 'bottom' 40 }); 41 42 43 if($('form#valuation_form').length > 0) 44 { 45 $('form#valuation_form li.other').each(function() 46 { 47 var current_item = $(this).attr('class').split(' '); 48 49 $('select#'+current_item[1]).bind('change', function() 50 { 51 if($(this).val() == 'Other') 52 { 53 $('li.'+current_item[1]).show(); 54 $('li.'+current_item[1]+' label em').remove(); 55 $('input#'+current_item[1]+'_other').focus(); 56 } 57 else 58 { 59 $('li.'+current_item[1]).hide(); 60 } 61 }); 62 }); 63 } 64 65 var browser = { 66 chrome: false, 67 mozilla: false, 68 opera: false, 69 msie: false, 70 safari: false 71 }; 72 var sBrowser, sUsrAg = navigator.userAgent; 73 if(sUsrAg.indexOf("Chrome") > -1) { 74 browser.chrome = true; 75 } else if (sUsrAg.indexOf("Safari") > -1) { 76 browser.safari = true; 77 } else if (sUsrAg.indexOf("Opera") > -1) { 78 browser.opera = true; 79 } else if (sUsrAg.indexOf("Firefox") > -1) { 80 browser.mozilla = true; 81 } else if (sUsrAg.indexOf("MSIE") > -1) { 82 browser.msie = true; 83 } 84 85 86 /*if($.browser.msie && $.browser.version < 8) 87 { 88 $('select').each(function() 89 { 90 $(this).css('marginTop','5px'); 91 }); 92 }*/ 93 94 /* 95 fixed size text areas 96 */ 97 if($('textarea').length > 0) 98 { 99 $('textarea').each(function() 100 { 101 $(this).css('resize','none'); 102 }); 103 } 104 105 106 // Home ads 107 if($('.home_nav_items').length > 0) 108 { 109 $('.item_group').each(function(){ 110 111 var group = $(this); 112 var items = group.children('.item').length; 113 var active = 1; 114 var loop; 115 116 if(items > 1) 117 { 118 loop = setInterval(function(){ 119 120 if(active < items) 121 { 122 active++; 123 } 124 else 125 { 126 active = 1; 127 } 128 129 group.children('.item.active').removeClass('active'); 130 group.children('.item_'+active).addClass('active'); 131 132 },5000); 133 } 134 135 }); 136 } 137 138 //---------------------------------------------END CUSTOM JS// 139 140 $("li.subnav").hover(function() 141 { 142 $(this).addClass("active"); 143 144 if($("a.nav_search").hasClass("active")) 145 { 146 $("a.nav_search").removeClass("active"); 147 $("form.search").animate({ opacity: 0 }, 250); 148 149 search_height_timeout = setTimeout(function() 150 { 151 $("form.search").css("height","0"); 152 }, 1000); 153 } 154 }, 155 function() 156 { 157 $(this).removeClass("active"); 158 }); 159 160 if($("ul#subnav").length > 0) 161 { 162 if(!$.browser.msie || $.browser.version != 5.5) 163 { 164 $("ul#subnav").css("display","none"); 165 } 166 } 167 168 $('a[rel*="external"]').click(function() 169 { 170 open($(this).attr('href')); 171 return false; 172 }); 173 174 175 176 /* 177 $('a[rel*="shadowbox"]').each(function() 178 { 179 if(!$(this).hasClass('page_video')) 180 { 181 var enlarge_img = $(this).attr('rel').split(' '); 182 183 if(enlarge_img != 'undefined' && enlarge_img != '') 184 { 185 $(this).removeAttr('rel'); 186 187 if(enlarge_img[1] != 'undefined') 188 { 189 $(this).attr('rel', 'shadowbox'+shadowbox_options); //enlarge_img[1] 190 } 191 else 192 { 193 $(this).attr('rel', 'shadowbox'+shadowbox_options); //enlarge_img[0] 194 } 195 } 196 } 197 }); 198 */ 199 200 $("ul.thumbs li a img").each(function() 201 { 202 $.preloadImages.add($(this).attr("src").replace("thumb", "mid")); 203 }); 204 205 $("ul.thumbs li a").mouseover(function() 206 { 207 $("img#full").attr("src", ($(this).attr('href')).replace(".full", ".mid")); 208 $("img#full").attr("alt", ($(this).attr('alt'))); 209 $("a#enlarge").attr("href", ($(this).attr('href')).replace(".thumb", ".full")); 210 $("a#enlarge").attr("title", ($(this).attr('title'))); 211 }); 212 213 $("ul.thumbs li:first a").click(function() 214 { 215 $("a#enlarge").click(); 216 }); 217 218 $("ul.thumbs li a").click(function() 219 { 220 $("img#full").attr("src", ($(this).attr('href')).replace(".full", ".mid")); 221 $("img#full").attr("alt", ($(this).attr('alt'))); 222 $("a#enlarge").attr("href", ($(this).attr('href')).replace(".thumb", ".full")); 223 $("a#enlarge").attr("title", ($(this).attr('title'))); 224 return false;
225 }); 226 227 if($('a.page_video').length > 0) 228 { 229 var page_video = $('a.page_video').attr('rel').split(' '); 230 231 if(page_video != 'undefined' && page_video != '') 232 { 233 $('a.page_video').removeAttr('rel'); 234 $('a.page_video').attr('rel', page_video[1]); 235 } 236 } 237 238 if($("li.help a").length > 0) 239 { 240 $("li.help a").click(function() 241 { 242 return false; 243 }); 244 245 var help_timeout = 'undefined'; 246 247 $("li.help a").bind("mouseenter",function() 248 { 249 if(help_timeout != 'undefined') 250 { 251 clearTimeout(help_timeout); 252 } 253 $("li.help div").fadeOut(); 254 $(this).next().addClass('active').fadeIn(); 255 }).bind("mouseleave",function() 256 { 257 help_timeout = setTimeout(function() 258 { 259 $('li.help div.active').removeClass('active').fadeOut(); 260 },2000); 261 }); 262 263 $('input').focus(function() 264 { 265 $('li.help div.active').removeClass('active').fadeOut(); 266 }); 267 268 $('select').focus(function() 269 { 270 $('li.help div.active').removeClass('active').fadeOut(); 271 }); 272 273 $('textarea').focus(function() 274 { 275 $('li.help div.active').removeClass('active').fadeOut(); 276 }); 277 } 278});
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.