1function clickButton(e, buttonid){ 2 var bt = document.getElementById(buttonid); 3 if (typeof bt == 'object'){ 4 if(navigator.appName.indexOf("Netscape")>(-1)){ 5 if (e.keyCode == 13){ 6 searchKey_onclick(); 7 return false; 8 } 9 } 10 if (navigator.appName.indexOf("Microsoft Internet Explorer")>(-1)){ 11 if (event.keyCode == 13){ 12 searchKey_onclick(); 13 return false; 14 } 15 } 16 } 17} 18 19function faqclickButton(e, buttonid){ 20 var bt = document.getElementById(buttonid); 21 if (typeof bt == 'object'){ 22 if(navigator.appName.indexOf("Netscape")>(-1)){ 23 if (e.keyCode == 13){ 24 faqsearchKey_onclick(); 25 return false; 26 } 27 } 28 if (navigator.appName.indexOf("Microsoft Internet Explorer")>(-1)){ 29 if (event.keyCode == 13){ 30 faqsearchKey_onclick(); 31 return false; 32 } 33 } 34 } 35} 36 37function faqclickButtonBottom(e, buttonid){ 38 var bt = document.getElementById(buttonid); 39 if (typeof bt == 'object'){ 40 if(navigator.appName.indexOf("Netscape")>(-1)){ 41 if (e.keyCode == 13){ 42 faqsearchKeyBottom_onclick(); 43 return false; 44 } 45 } 46 if (navigator.appName.indexOf("Microsoft Internet Explorer")>(-1)){ 47 if (event.keyCode == 13){ 48 faqsearchKeyBottom_onclick(); 49 return false; 50 } 51 } 52 } 53} 54 55 56function setCookie(key, value, expiredays) { 57 var exdate = new Date(); 58 exdate.setDate(exdate.getDate() + expiredays); 59 document.cookie = key + "=" + escape(value) + ((expiredays == null) ? "" : ";expires=" + exdate.toGMTString()); 60} 61 62function getCookie(name) { 63 var str = document.cookie.split("; ") 64 for (var i = 0; i < str.length; i++) { 65 var str2 = str[i].split("="); 66 if (str2[0] == name) { 67 return str2[1]; 68 } 69 } 70} 71function DelCookie(Key) { 72 var expires = new Date(); 73 expires.setTime(expires.getTime() - 1); 74 document.cookie = Key + "= ; expires=" + expires.toGMTString(); 75} 76 77function DrawImage(ImgD, FitWidth, FitHeight) { 78 var image = new Image(); 79 image.src = ImgD.src; 80 if (image.width > 0 && image.height > 0) { 81 if (image.width / image.height >= FitWidth / FitHeight) { 82 if (image.width > FitWidth) { 83 ImgD.width = FitWidth; 84 ImgD.height = (image.height * FitWidth) / image.width; 85 } else { 86 ImgD.width = image.width; 87 ImgD.height = image.height; 88 } 89 } else { 90 if (image.height > FitHeight) { 91 ImgD.height = FitHeight; 92 ImgD.width = (image.width * FitHeight) / image.height; 93 } else { 94 ImgD.width = image.width; 95 ImgD.height = image.height; 96 } 97 } 98 } 99} 100 101function FP_swapImg() {//v1.0 102 var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array(); for(n=2; n<args.length; 103 n+=2) { elm=FP_getObjectByID(args[n]); if(elm) { doc.$imgSwaps[doc.$imgSwaps.length]=elm; 104 elm.$src=elm.src; elm.src=args[n+1]; } } 105} 106 107function FP_preloadImgs() {//v1.0 108 var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array(); 109 for(var i=0; i<a.length; i++) { d.FP_imgs[i]=new Image; d.FP_imgs[i].src=a[i]; } 110} 111 112function FP_getObjectByID(id,o) {//v1.0 113 var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id); 114 else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el; 115 if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c) 116 for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; } 117 f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements; 118 for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el; } } 119 return null; 120} 121 122 123//////Images Swap 124 125function MM_preloadImages() { //v3.0 126 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); 127 var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) 128 if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} 129} 130 131function MM_swapImgRestore() { //v3.0 132 var i,x,a=document.MM_sr;
132 for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; 133} 134 135function MM_findObj(n, d) { //v4.01 136 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { 137 d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} 138 if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; 139 for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); 140 if(!x && d.getElementById) x=d.getElementById(n); return x; 141} 142 143function MM_swapImage() { //v3.0 144 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) 145 if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} 146} 147 148function addFavorite(){ 149 if (window.sidebar && window.sidebar.addPanel) { //Firefox Bookmark 150 window.sidebar.addPanel(document.title, window.location.href, ''); 151 } 152 else if (window.external && window.external.AddFavorite) { // IE Favorite 153 window.external.AddFavorite(location.href, document.title); 154 } 155 else if (window.opera && window.print) { // Opera Hotlist 156 this.title = document.title; 157 return true; 158 } 159 else { // webkit - safari/chrome 160 alert('Press ' + (navigator.userAgent.toLowerCase().indexOf('mac') != - 1 ? 'Command/Cmd' : 'CTRL') + ' + D to bookmark this page.'); 161 } 162} 163 164function searchKey_onclick() { 165if(document.getElementById("searchKey").value!="") 166{ 167 window.location.href="/gsearch.aspx?q="+ document.getElementById("searchKey").value; 168return true; 169} 170else 171{ 172return false; 173} 174} 175function faqsearchKey_onclick() { 176if(document.getElementById("faqsearchKey").value!="") 177{ 178window.location.href="/DynamicFAQFrame.aspx?siteid=1&search="+document.getElementById("faqsearchKey").value; 179return true; 180} 181else 182{ 183return false; 184} 185} 186function faqsearchKeyBottom_onclick() { 187if(document.getElementById("faqsearchKey").value!="") 188{ 189window.location.href="/DynamicFAQFrame.aspx?siteid=1&search="+document.getElementById("faqsearchkeyBottom").value; 190return true; 191} 192else 193{ 194return false; 195} 196} 197 198function voteload(id) 199{ 200 if(getCookie("Survey"+id)!=null)//å·²ç»æè¿ç¥¨ç 201 { 202 ajaxInit(); 203 ajaxSendPost("AjaxSurvey.aspx?action=get&id="+id, null,getback); 204 } 205} 206function getback() 207{ 208 if(ajaxHttpRequest.readyState==4) 209 if(ajaxHttpRequest.status==200||ajaxHttpRequest.status==0) 210 { 211 document.getElementById("SurveyGet").innerHTML=ajaxHttpRequest.responseText; 212 document.getElementById("SurveySet").style.display="none"; 213 document.getElementById("SurveyGet").style.display="block"; 214 } 215} 216function vote() 217{ 218 var id; 219 for(var i=0;i<document.getElementsByName("survey").length;i++) 220 { 221 if(document.getElementsByName("survey")[i].checked) 222 id=document.getElementsByName("survey")[i].value; 223 } 224 if (id==null) 225 alert('Please select an option to vote.'); 226 else 227 { 228 ajaxInit(); 229 ajaxSendPost("AjaxSurvey.aspx?action=set&id="+id, null,setback); 230 } 231} 232function setback() 233{ 234 if (ajaxHttpRequest.readyState == 4) { 235 if (ajaxHttpRequest.status == 200 || ajaxHttpRequest.status == 0) { 236 setCookie("Survey" + ajaxHttpRequest.responseText, "yes", "365"); 237 voteload(ajaxHttpRequest.responseText); 238 } 239 } 240} 241function DrawImage(ImgD,iwidth,iheight){ 242 var image=new Image(); 243 image.src=ImgD.src; 244 if(image.width>0 && image.height>0 && (image.width>iwidth | image.height>iheight)) 245 { 246 if(image.width/image.height>= iwidth/iheight){ 247 ImgD.width=iwidth; 248 ImgD.height=(image.height*iwidth)/image.width; 249 } 250 else{ 251 ImgD.height=iheight; 252 ImgD.width=(image.width*iheight)/image.height; 253 } 254 } 255 256} 257function TreeView_LoadEvent() 258{ 259 jQuery('.tree_nav1 li a.nav1_link').click(function(){ 260 jQuery('.tree_nav1 li').removeClass('tree_nav1_selected'); 261 jQuery('ul.tree_nav2').slideUp('fast'); 262 var sub=jQuery('ul.tree_nav2',this.parentNode); 263 if(jQuery(sub).css('display')=='none'){ 264 jQuery(this).parent().addClass('tree_nav1_selected'); 265 jQuery(sub).slideDown('fast'); 266 } 267 else{ 268 jQuery(this).parent().removeClass('tree_nav1_selected'); 269 jQuery(sub).slideUp('fast'); 270 } 271 });
272 jQuery('.tree_nav2 li a').click(function(){ 273 var sub=jQuery('ul.tree_nav3',this.parentNode); 274 275 if(jQuery(sub).css('display')=='none') 276 { 277 jQuery(this).parent().addClass('tree_nav2_selected'); 278 jQuery(sub).slideDown('fast'); 279 } 280 else 281 { 282 jQuery(this).parent().removeClass('tree_nav2_selected'); 283 jQuery(sub).slideUp('fast'); 284 } 285 }); 286 jQuery('.tree_nav3 li a').click(function(){ 287 jQuery('.tree_nav3 li').removeClass('tree_nav3_selected'); 288 jQuery(this).parent().addClass('tree_nav3_selected'); 289 }); 290} 291 292function SetCookie(name,value)//ä¸¤ä¸ªåæ°ï¼ä¸ä¸ªæ¯cookieçååï¼ä¸ä¸ªæ¯å¼ 293{ 294 var Days = 30; //æ¤ cookie å°è¢«ä¿å 30 天 295 var exp = new Date(); //new Date("December 31, 9998"); 296 exp.setTime(exp.getTime() + Days*24*60*60*1000); 297 document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString(); 298} 299function GetCookie(name)//åcookies彿° 300{ 301 var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)")); 302 if(arr != null) return unescape(arr[2]); return null; 303 304} 305function DelCookie(name)//å é¤cookie 306{ 307 var exp = new Date(); 308 exp.setTime(exp.getTime() - 1); 309 var cval=GetCookie(name); 310 if(cval!=null) document.cookie= name + "="+cval+";expires="+exp.toGMTString(); 311} 312 313jQuery(function () { 314 $("#menuToggle").click(function () { 315 $(this).toggleClass("active"); 316 $(".leftcontainer").slideToggle(200); 317 }); 318 $("#backtop").click(function () { 319 jQuery("html,body").animate({ scrollTop: "0px" }, "slow"); 320 }); 321 $(".expand").bind("click", function () { 322 if ($(".apollo-listing").length) { 323 if ($(".apollo-listing").height() == 220) { 324 var autoHeight = $(".apollo-listing").css('height', 'auto').height(); 325 $(".apollo-listing").height("220px").animate({ height: autoHeight }); 326 $(this).addClass("retract"); 327 } else { $(".apollo-listing").animate({ height: "220px" }); $(this).removeClass("retract") } 328 } 329 if ($(".sentry-listing").length) { 330 if ($(".sentry-listing").height() == 220) { 331 var autoHeight = $(".sentry-listing").css('height', 'auto').height(); 332 $(".sentry-listing").height("220px").animate({ height: autoHeight }); 333 $(this).addClass("retract"); 334 } else { $(".sentry-listing").animate({ height: "220px" }); $(this).removeClass("retract") } 335 } 336 if ($(".estate-swing-listing").length) { 337 if ($(".estate-swing-listing").height() == 220) { 338 var autoHeight = $(".estate-swing-listing").css('height', 'auto').height(); 339 $(".estate-swing-listing").height("220px").animate({ height: autoHeight }); 340 $(this).addClass("retract"); 341 } else { $(".estate-swing-listing").animate({ height: "220px" }); $(this).removeClass("retract") } 342 } 343 if ($(".liftmaster-listing").length) { 344 if ($(".liftmaster-listing").height() == 220) { 345 var autoHeight = $(".liftmaster-listing").css('height', 'auto').height(); 346 $(".liftmaster-listing").height("220px").animate({ height: autoHeight }); 347 $(this).addClass("retract"); 348 } else { $(".liftmaster-listing").animate({ height: "220px" }); $(this).removeClass("retract") } 349 } 350 }); 351 352 $(".liftmasterbanner ").click(function () { 353 layer.open({ 354 type: 2, 355 title: false, 356 skin: 'layui-layer-rim', 357 area: ['600px', '360px'], 358 content: '/liftmaster.html' 359 }); 360 return false; 361 }) 362 363 364 $(window).bind("scroll", function () { 365 var scroll_top = document.documentElement.scrollTop || document.body.scrollTop; 366 if (scroll_top >= 100) { 367 document.getElementById("backtop").style.display = "block"; 368 } 369 else { 370 document.getElementById("backtop").style.display = "none"; 371 } 372 }) 373 374 //menu 375 var $menu = $('#flyout'); 376 var $mask = $("#Mask"); 377 function mobileToggle($li) { 378 var $submenu = $li.children('ul'); 379 380 if ($submenu.is(':visible')) { 381 $submenu.slideUp(200); 382 $li.removeClass('open'); 383 if ($menu.find('li.open').length === 0) { 384 $mask.css("display", "none"); 385 } 386 } else { 387 // å ³éåçº§å ¶ä»åèå 388 $li.siblings().children('ul:visible').slideUp(200).parent().removeClass('open'); 389 $submenu.slideDown(200); 390 $li.addClass('open'); 391 $mask.css("display", "block"); 392 } 393 } 394 395 // ç¹å» fly_img 忢åèå 396 $(".fly").on("click", function (e) { 397 if (window.innerWidth > 900) return; // æ¡é¢ç«¯ä¸å¤ç 398 var $li = $(this).closest("li"); 399 mobileToggle($li); 400 e.stopPropagation(); 401 return false; 402 });
403 404 // ç¹å»ä¸»èåæåä¹å¯å±å¼ï¼ç§»å¨ç«¯ï¼ 405 $("#flyout > li.has-sub > span > a").on("click", function (e) { 406 if (window.innerWidth > 900) return; // æ¡é¢ç«¯ä¸å¤ç 407 e.preventDefault(); // 黿¢è·³è½¬ 408 var $li = $(this).closest("li"); 409 mobileToggle($li); 410 e.stopPropagation(); 411 }); 412 413 // ç¹å»é¡µé¢ç©ºç½å¤å ³éç§»å¨ç«¯åèå 414 $(document).on("click", function () { 415 if (window.innerWidth > 900) return; 416 $menu.find("li.open").removeClass("open").children("ul:visible").slideUp(200); 417 $mask.css("display", "none"); 418 }); 419 420 // 黿¢åèåç¹å»å泡 421 $menu.find("ul").on("click", function (e) { 422 e.stopPropagation(); 423 }); 424 425 // çªå£å¤§å°ååæ¶éæ°åå§å 426 $(window).on("resize", function () { 427 if (window.innerWidth > 900) { 428 $menu.find("ul").removeAttr("style"); 429 $menu.find("li.open").removeClass("open"); 430 } 431 }); 432 433 434 if (window.innerWidth > 768) { 435 $menu.menuAim({ 436 activate: activateSubmenu, 437 deactivate: deactivateSubmenu, 438 exitMenu: exitSubmenu, 439 enter: enterSubmenu 440 441 }); 442 443 function enterSubmenu() { 444 var ul = $(".DeactiveMenu"); 445 ul.removeClass("DeactiveMenu"); 446 ul.addClass("ActiveMenu"); 447 } 448 449 function exitSubmenu() { 450 var ul = $(".ActiveMenu"); 451 ul.removeClass("ActiveMenu"); 452 ul.addClass("DeactiveMenu") 453 } 454 455 function activateSubmenu(row) { 456 var $row = $(row), 457 $submenu = $row.children('ul'); 458 $submenu.css('display', 'block'); 459 $submenu.addClass("ActiveMenu"); 460 461 } 462 463 464 function deactivateSubmenu(row) { 465 var $row = $(row), 466 $submenu = $row.children('ul'); 467 $submenu.removeClass("ActiveMenu"); 468 $submenu.css('display', 'none'); 469 470 } 471 $("#flyoutLi1_ul").hover( 472 function () { 473 $("#flyoutLi1").children("span").removeClass("fly").addClass("flyOn"); 474 $("#Mask").css("display", "block"); 475 476 }, 477 function () { 478 $("#flyoutLi1").children("span").removeClass("flyOn").addClass("fly"); 479 $("#Mask").css("display", "none"); 480 481 } 482 ); 483 484 $("#flyoutLi1 span").hover( 485 function () { 486 $("#Mask").css("display", "block") 487 }, 488 function () { 489 $("#Mask").css("display", "none"); 490 } 491 ); 492 493 $("#flyoutLi2_ul").hover( 494 function () { 495 $("#flyoutLi2").children("span").removeClass("fly").addClass("flyOn"); 496 $("#Mask").css("display", "block"); 497 }, 498 function () { 499 $("#flyoutLi2").children("span").removeClass("flyOn").addClass("fly"); 500 $("#Mask").css("display", "none"); 501 } 502 ); 503 504 $("#flyoutLi2 span").hover( 505 function () { 506 $("#Mask").css("display", "block"); 507 }, 508 function () { 509 $("#Mask").css("display", "none"); 510 } 511 ); 512 513 $("#flyoutLi3_ul").hover( 514 function () { 515 $("#flyoutLi3").children("span").removeClass("fly").addClass("flyOn"); 516 $("#Mask").css("display", "block"); 517 }, 518 function () { 519 $("#flyoutLi3").children("span").removeClass("flyOn").addClass("fly"); 520 $("#Mask").css("display", "none"); 521 } 522 ); 523 524 $("#flyoutLi3 span").hover( 525 function () { 526 $("#Mask").css("display", "block"); 527 }, 528 function () { 529 $("#Mask").css("display", "none"); 530 } 531 ); 532 533 $("#flyoutLi4_ul").hover( 534 function () { 535 $("#flyoutLi4").children("span").removeClass("fly").addClass("flyOn"); 536 $("#Mask").css("display", "block"); 537 }, 538 function () { 539 $("#flyoutLi4").children("span").removeClass("flyOn").addClass("fly"); 540 $("#Mask").css("display", "none"); 541 } 542 ); 543 544 $("#flyoutLi4 span").hover( 545 function () { 546 $("#Mask").css("display", "block"); 547 }, 548 function () { 549 $("#Mask").css("display", "none"); 550 } 551 ); 552 553 $("#flyoutLi5_ul").hover( 554 function () { 555 $("#flyoutLi5").children("span").removeClass("fly").addClass("flyOn"); 556 $("#Mask").css("display", "block"); 557 }, 558 function () { 559 $("#flyoutLi5").children("span").removeClass("flyOn").addClass("fly"); 560 $("#Mask").css("display", "none"); 561 } 562 ); 563 564 $("#flyoutLi5 span").hover( 565 function () { 566 $("#Mask").css("display", "block"); 567 }, 568 function () { 569 $("#Mask").css("display", "none"); 570 } 571 ); 572 573 $("#flyoutLi6_ul").hover( 574 function () { 575 $("#flyoutLi6").children("span").removeClass("fly").addClass("flyOn"); 576 $("#Mask").css("display", "block"); 577 }, 578 function () { 579 $("#flyoutLi6").children("span").removeClass("flyOn").addClass("fly"); 580 $("#Mask").css("display", "none"); 581 } 582 ); 583 584 $("#flyoutLi6 span").hover( 585 function () { 586 $("#Mask").css("display", "block"); 587 }, 588 function () { 589 $("#Mask").css("display", "none"); 590 } 591 ); 592 } 593 594 595 function stopEventBubble(event) { 596 var e = event || window.event; 597 598 if (e && e.stopPropagation) { 599 e.stopPropagation(); 600 } 601 else { 602 e.cancelBubble = true; 603 } 604 } 605 606 607 608}); 609 610
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.