1// ---------------------------------------------- 2// This function dynamically generates flash file 3// parameters. 4// ----------------------------------------------- 5function viewFlash(src, w, h, loop, play) 6{ 7 var width = parseInt(w); 8 var height = parseInt(h); 9 10//alert('adWidth = '+width+ '\n Height = '+height); 11 12 eval("win = window.open('','Flash', 'toolbar=0,scrollbars=0,location=0,status=0,resizable=1,menubar=0,width="+width+",height="+height+"');"); 13 win.document.writeln('<html>'); 14 win.document.writeln('<head><title>Flash Movie</title></head>'); 15 win.document.writeln('<body>'); 16 17 // for IE users use <object> tag 18 objectTag = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"'; 19 win.document.write(objectTag); 20 win.document.write(' width="'+width+'"'); 21 win.document.writeln(' height="'+height+'">'); 22 win.document.writeln('<param name="movie" value="'+src+'">'); 23 win.document.writeln('<param name="loop" value="'+loop+'">'); 24 win.document.writeln('<param name="play" value="'+play+'">'); 25 26 // for Netscape users use <embed> tag 27 win.document.writeln('<embed src="'+src+'" loop="'+loop+'" play="'+play+'" width="'+width+'" height="'+height+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" />'); 28 win.document.writeln('</object>'); 29 win.document.writeln('</body></html>'); 30 31} 32 33// ---------------------------------------------- 34// This function dynamically generates a chat 35// pop-up. (ASV) 36// ----------------------------------------------- 37function viewChat(instance_id, url) 38{ 39 props = 'toolbar=0,scrollbars=0,location=0,status=0,resizable=1,menubar=0,width=584,height=410'; 40 win = window.open('','Chat',props); 41 win.document.writeln('<html>'); 42 win.document.writeln('<head><title>Chat Room</title></head>'); 43 win.document.writeln('<body>'); 44 win.document.writeln('<applet codebase="'+url+'" archive="multichat.jar" CODE="GUIClient.class" width="562" height="385" align="BOTTOM">'); 45 win.document.writeln('<param name="CABBASE" value="multichat.cab">'); 46 win.document.writeln('<param name="roomid" value="'+instance_id+'">'); 47 win.document.writeln('</applet>'); 48 win.document.writeln('</body></html>'); 49} 50 51//---------------------------------------------------- 52// Create a new pop up window for a given URL and type 53//---------------------------------------------------- 54function popUp(URL, type) 55{ 56 switch(type) 57 { 58 case "guestbook": 59 width = 675; 60 height = 500; 61 break; 62 case "forum": 63 width = 675; 64 height = 500; 65 break; 66 default: 67 width = 550; 68 height = 580; 69 } 70 71 var token = URL.indexOf('?') > -1 ? '&' : '?'; 72 uniqueId = genUniqueId(); 73 URL=URL+genUniqueParam(token); 74 75 var leftPosition = (screen.width - width - 20) / 2; 76 var topPosition = (screen.height - height) / 4; 77 78 //open centered 79 eval("win = window.open(URL, '"+type+"', 'toolbar=0,scrollbars=1,location=0,status=1,resizable=1,menubar=0,width="+width+",height="+height+",left="+leftPosition+",top="+topPosition+"');"); 80 81 if (parseInt(navigator.appVersion) >= 4) 82 { 83 win.window.focus(); 84 } 85} 86 87//---------------------------------------------------- 88 89// Create a new pop up window for a given MLS action 90 91//---------------------------------------------------- 92 93function popUpMLS(id) 94 95{ 96 var winWidth = 550; 97 var winHeight = 510; 98 eval("win = window.open('"+ window.parent.document.getElementById("ic_mls_url"+id).innerHTML +"', name='_blank');"); 99 100} 101//---------------------------------------------------- 102 103// Create a new pop up window for a given referral action 104 105//---------------------------------------------------- 106 107function popUpEReferral(id, http, action, subject) 108 109{ 110 var winWidth = 550; 111 var winHeight = 510; 112 eval("win = window.open('','Referral', 'toolbar=0,scrollbars=1,location=0,status=0,resizable=1,menubar=0,width="+winWidth+",height="+winHeight+"');"); 113 114 // clear the content of the document 115 win.document.open(); 116 win.document.writeln('<html>'); 117 win.document.writeln('<head><title>E-Referral Link</title><script language="JavaScript"> function checkemail(){ var toEmail=document.site_refer.ToEmail.value; fromEmail=document.site_refer.FromEmail.value;
117 var filter=/^([\\w-]+(?:\\.[\\w-]+)*)@((?:[\\w-]+\\.)*\\w[\\w-]{0,66})\\.([a-z]{2,6}(?:\\.[a-z]{2})?)$/i; var toEmailArr = new Array(); toEmailArr = toEmail.split(","); var i=0; for (i=0;i<toEmailArr.length;i++) { if(filter.test(toEmailArr[i].replace(/^\\s\\s*/, "").replace(/\\s\\s*$/, ""))){ continue; }else{ alert("Please enter a valid e-mail address (e.g. [email protected])."); return false; } } if (filter.test(fromEmail)) { return true; } else { alert("Please enter a valid e-mail address (e.g. [email protected])."); return false; } } function onClickForm(){ document.site_refer.return_url.value=window.location.href; alert("Thank you. Your message has been submitted."); self.close(); } </script><style type="text/css"> .fName { display:none; } </style></head>'); 118 win.document.writeln('<body>'); 119 win.document.writeln('<h4>Invite People to this Website</h4>'); 120 win.document.writeln('<h4 style="color:#0000CC">Enter email invitation details</h4>'); 121 win.document.writeln('<center><table border="0">'); 122 win.document.writeln('<form onSubmit="return onClickForm();return false;" name="site_refer" action="' +http+ action +'" method="post">'); 123 win.document.writeln('<input type="hidden" value="" name="return_url"/>'); 124 win.document.writeln('<div class="fName"><input type="text" name="FirstName" value=""></div></br>'); 125 126 win.document.writeln('<table><tr><td><strong>*From Email Address:</strong></td><td><input type="text" style="width:350px;" name="FromEmail" value=""><br/></td></tr>'); 127 win.document.writeln('<tr><td><strong>Name:</strong></td><td><input type="text" style="width:350px;" name="VisitorName" value=""><br/></td></tr>'); 128 win.document.writeln('<tr><td><strong>Subject:</strong></td><td><input type="text" readonly style="width:350px;" name="Subject" value="'+ subject +'"><br/></td></tr>'); 129 win.document.writeln('<tr><td><strong>*To Email Address:</strong></td><td><textarea rows="5" cols="50" style="width:350px;" name="ToEmail"></textarea><br/></td></tr>'); 130 win.document.writeln('<tr><td><strong>Message:</strong></td><td><textarea rows="10" cols="50" style="width:350px;" readonly name="Message">'+window.parent.document.getElementById("ic_ereferral_mesg"+id).innerHTML+" "+ window.parent.document.getElementById("ic_ereferral_url"+id).innerHTML +'</textarea><br/></td></tr>'); 131 //win.document.writeln('<textarea rows="10" cols="50" readonly name="Message" >'+mesg+'</textarea><br>'); 132 //win.document.writeln('<tr><td> </td><td><div style="border: 1px solid #000000; padding: 6px"><b>Subject:</b> '+ subject +'<br><p><b>Message:</b>' + mesg +'</p></div></td></tr>'); 133 win.document.writeln('<br/><tr><td> </td><td><input type="submit" name="Send" value="Send Invite" onclick="return checkemail();"/> <input type="button" name="Cancel" value="Cancel" onclick="javascript:self.close();"/></td></tr></table>'); 134 win.document.writeln('</form></table><small>The email address your provide is being used solely to invite people to the website. Network Solutions will not collect your email address for marketing or any other prurposes.</small></center>'); 135 win.document.writeln('</body></html>'); 136 win.document.close(); 137} 138 139// ---------------------- 140// Generate Unique Id 141// ---------------------- 142function genUniqueId() 143{ 144 day = new Date(); 145 return day.getTime(); 146} 147 148// ------------------------------------------------- 149// Generate Unique parameter to be appended to the URL 150// This will allow us to realod the HTML from the server 151// ------------------------------------------------- 152function genUniqueParam(parameter) 153{ 154 return parameter+'unique_id='+genUniqueId(); 155} 156 157// 158// Display the target image for this thumbnail 159// 160function displayThumb(src, width, height, title) 161{ 162 var winWidth = 650; 163 var winHeight = 510; 164 165 eval("win = window.open('','Thumb', 'toolbar=0,scrollbars=1,location=0,status=0,resizable=1,menubar=0,width="+winWidth+",height="+winHeight+"');"); 166 167 // clear the content of the document 168 win.document.open(); 169 170 win.document.writeln('<html>'); 171 172 if(null != title && title != "") 173 { 174 win.document.writeln('<head><title>' + title + '</title></head>'); 175 } 176 else 177 { 178 win.document.writeln('<head><title>Thumbnail Image</title></head>'); 179 } 180 win.document.writeln('<body>'); 181 182 win.document.writeln('<center><table border="0">'); 183 if (width == 0) 184 { 185 win.document.writeln('<tr><td align="center"><img src="'+src+'"></td></tr>'); 186 } 187 else if (height == 0) 188 { 189 win.document.writeln('<tr><td align="center"><img width="'+width+'" src="'+src+'"></td></tr>'); 190 } 191 else 192 { 193 win.document.writeln('<tr><td align="center"><img width="'+width+'" height="'+height+'" src="'+src+'"></td></tr>'); 194 } 195 196 if(null != title && title != "") 197 { 198 win.document.writeln('<tr><td align="center">
198'+title+'</td></tr>'); 199 } 200 win.document.writeln('</table></center>'); 201 202 win.document.writeln('</body></html>'); 203 win.document.close(); 204} 205//------------------------------------------------------------ 206// Create a URL which is called from a mapquest Map to get Directions 207//----------------------------------------------------------- 208 function genURL(action,formname,newMap, direction,useFromAddress) 209 { 210 var sa = document.getElementById(formname).street_address.value; 211 var cy = document.getElementById(formname).city.value; 212 var st = document.getElementById(formname).state.value; 213 var pc = document.getElementById(formname).postal_code.value; 214 var ct = document.getElementById(formname).country.value; 215 var lat =document.getElementById(formname).latitude.value; 216 var lng =document.getElementById(formname).longitude.value; 217 var uid =document.getElementById(formname).userid.value; 218 var wid =document.getElementById(formname).website_id.value; 219 220 if (newMap=='true'){ 221 // To be added only if the user is a new user. 222 var street=document.getElementById(formname).toStreet.value; 223 var city= document.getElementById(formname).toCity.value; 224 var state=document.getElementById(formname).toState.value; 225 var zip=document.getElementById(formname).toZip.value; 226 var country=document.getElementById(formname).toCountry.value; 227 if(zip=="") 228 { 229 if(city=="" || state=="") 230 { 231 alert("Please select an address by clicking the radio button"); 232 return false; 233 } 234 } 235 } 236 237 if(useFromAddress != 'false'){ 238 if(pc=="") 239 { 240 if(cy=="" || st=="") 241 { 242 alert("Type a City and State, or a Postal/ZIP Code, and then click Continue."); 243 return false; 244 } 245 } 246 } 247 248 249 var fromLocation = sa + "," + cy + "," + st + "," + pc + "," + ct; 250 var toLocation; 251 //pallavi change to send the toAress also to get driving directions 252 var url = action+"?fromLocation="+fromLocation; 253 if (newMap=='true'){ 254 toLocation = street + "," + city + "," + state + "," + zip + "," + country; 255 //WE have toaddress only for new user,old users used Lat and lon. 256 url=url +"&toLocation="+toLocation ; 257 } 258 259 if (direction =='reverse'){ 260 url = action+"?fromLocation=" + toLocation + "&toLocation=" + fromLocation; 261 } 262 popUp(url); 263 264 } 265 266 //------------------------------------------------------------ 267 // switch the iframe to a different map 268 //----------------------------------------------------------- 269 function switchMap(action, mapId, street, city, state, zip, country){ 270 var mapIframeId = mapId + "_0"; 271 272 var currentMapIframe = document.getElementById(mapIframeId); 273 274 var toLocation = street + "," + city + "," + state + "," + zip + "," + country; 275 var newMapUrl = action+'?isMapOnly=true&toLocation=' + toLocation; 276 277 currentMapIframe.src = newMapUrl; 278 } 279 280//------------------------------------------------------------ 281// Called from Map Element: This method will set hidden parameters 282//----------------------------------------------------------- 283 function setToAddress(street,city,state,zip,country,formname) 284 { 285 document.getElementById(formname).toStreet.value=street; 286 document.getElementById(formname).toCity.value=city; 287 document.getElementById(formname).toState.value=state; 288 document.getElementById(formname).toZip.value=zip; 289 document.getElementById(formname).toCountry.value=country; 290 291 292 } 293 294//------------------------------------------------------------ 295// Called from Map Element: This method disables the button Id that is passed 296//----------------------------------------------------------- 297 function disableZoomButton(buttonId,formname,relativepath){ 298 switch(buttonId) 299 { 300 case "minus_three": 301 document.getElementById(formname)[buttonId].src=relativepath+'images/photoalbum/zoom-in.png'; 302 break; 303 case "minus_two": 304 document.getElementById(formname)[buttonId].src=relativepath+'images/photoalbum/zoom-level-button.png'; 305 break; 306 case "minus_one": 307 document.getElementById(formname)[buttonId].src=relativepath+'images/photoalbum/zoom-level-button.png'; 308 break; 309 case "plus_two": 310 document.getElementById(formname)[buttonId].src=relativepath+'images/photoalbum/zoom-level-button.png'; 311 break;
312 case "plus_one": 313 document.getElementById(formname)[buttonId].src=relativepath+'images/photoalbum/zoom-level-button.png'; 314 break; 315 case "center": 316 document.getElementById(formname)[buttonId].src=relativepath+'images/photoalbum/zoom-level-button.png'; 317 break; 318 case "plus_three": 319 document.getElementById(formname)[buttonId].src=relativepath+'images/photoalbum/zoom-out.png'; 320 break; 321 case "original": 322 document.getElementById(formname)[buttonId].src=relativepath+'images/photoalbum/center-map.png'; 323 break; 324 325 } 326 } 327 328//------------------------------------------------------------ 329// Called from Map Element: This method enables all buttons 330//----------------------------------------------------------- 331 function enableAllbutton(formname,relativepath){ 332 document.getElementById(formname).minus_three.src=relativepath+'images/photoalbum/zoom-in-over.png'; 333 document.getElementById(formname).minus_two.src=relativepath+'images/photoalbum/zoom-level-button-up.png'; 334 document.getElementById(formname).minus_one.src=relativepath+'images/photoalbum/zoom-level-button-up.png'; 335 document.getElementById(formname).plus_one.src=relativepath+'images/photoalbum/zoom-level-button-up.png'; 336 document.getElementById(formname).plus_two.src=relativepath+'images/photoalbum/zoom-level-button-up.png'; 337 document.getElementById(formname).plus_three.src=relativepath+'images/photoalbum/zoom-out-over.png'; 338 document.getElementById(formname).original.src=relativepath+'images/photoalbum/center-map-over.png'; 339 document.getElementById(formname).center.src=relativepath+'images/photoalbum/zoom-level-button-up.png'; 340 } 341 //------------------------------------------------------------ 342// Called from Map Element: This is invoked when user clicks zoom buttons or pan buttons 343//----------------------------------------------------------- 344 function genZoomURL(pageId,elementId,action,zoomLevel,symbolName,formname,panDirection,relativepath) 345 { 346 enableAllbutton(formname,relativepath); 347 disableZoomButton(zoomLevel,formname,relativepath); 348 349 var uniqueId = genUniqueId(); 350 var url = action+"page_id="+pageId+"&element_id="+elementId 351 + "&symbolName=" +symbolName+"&zoomLevel=" + zoomLevel 352 + "&panDirection=" + panDirection 353 + "&uniqueId=" +uniqueId; 354 355 //popUp(url); 356 var divImageName= 'mapImage'+ elementId; 357 document.getElementById(divImageName).style.display='none'; 358 var divZoomName= 'zoomDiv'+ elementId; 359 document.getElementById(divZoomName).style.display='block'; 360 var iframeZoomName= 'zoomImageFrame'+ elementId; 361 document.getElementById(iframeZoomName).src=url; 362 363 364 } 365 366 367 368/* 369 Developed by Robert Nyman, http://www.robertnyman.com 370 Code/licensing: http://code.google.com/p/getelementsbyclassname/ 371*/ 372var getElementsByClassName = function (className, tag, elm){ 373 if (document.getElementsByClassName) { 374 getElementsByClassName = function (className, tag, elm) { 375 elm = elm || document; 376 var elements = elm.getElementsByClassName(className), 377 nodeName = (tag)? new RegExp("\\b" + tag + "\\b", "i") : null, 378 returnElements = [], 379 current; 380 for(var i=0, il=elements.length; i<il; i+=1){ 381 current = elements[i]; 382 if(!nodeName || nodeName.test(current.nodeName)) { 383 returnElements.push(current); 384 } 385 } 386 return returnElements; 387 }; 388 } 389 else if (document.evaluate) { 390 getElementsByClassName = function (className, tag, elm) { 391 tag = tag || "*"; 392 elm = elm || document; 393 var classes = className.split(" "), 394 classesToCheck = "", 395 xhtmlNamespace = "http://www.w3.org/1999/xhtml", 396 namespaceResolver = (document.documentElement.namespaceURI === xhtmlNamespace)? xhtmlNamespace : null, 397 returnElements = [], 398 elements, 399 node; 400 for(var j=0, jl=classes.length; j<jl; j+=1){ 401 classesToCheck += "[contains(concat(' ', @class, ' '), ' " + classes[j] + " ')]"; 402 } 403 try { 404 elements = document.evaluate(".//" + tag + classesToCheck, elm, namespaceResolver, 0, null); 405 } 406 catch (e) { 407 elements = document.evaluate(".//" + tag + classesToCheck, elm, null, 0, null); 408 } 409 while ((node = elements.iterateNext())) { 410 returnElements.push(node); 411 } 412 return returnElements; 413 }; 414 } 415 else { 416 getElementsByClassName = function (className, tag, elm) { 417 tag = tag || "*"; 418 elm = elm || document; 419 var classes = className.split(" "), 420 classesToCheck = [], 421 elements = (tag === "*" && elm.all)? elm.all : elm.getElementsByTagName(tag), 422 current, 423 returnElements = [], 424 match; 425 for(var k=0, kl=classes.length; k<kl; k+=1){ 426 classesToCheck.push(new RegExp("(^|\\s)" + classes[k] + "(\\s|$)")); 427 } 428 for(var l=0, ll=elements.length; l<ll; l+=1){ 429 current = elements[l]; 430 match = false;
431 for(var m=0, ml=classesToCheck.length; m<ml; m+=1){ 432 match = classesToCheck[m].test(current.className); 433 if (!match) { 434 break; 435 } 436 } 437 if (match) { 438 returnElements.push(current); 439 } 440 } 441 return returnElements; 442 }; 443 } 444 return getElementsByClassName(className, tag, elm); 445}; 446 447 //Cross Browser Event Attachment 448 function addEvent(el, evType, handle, capture){ 449 450 var bubbleCapture = capture == null ? false : capture; 451 452 if(el.addEventListener)el.addEventListener(evType, handle, bubbleCapture); 453 else if(el.attachEvent){ 454 el["e" + evType + handle] = handle; 455 el[evType + handle] = function(){el["e" + evType + handle](window.event)} 456 457 el.attachEvent("on" + evType, el[evType + handle]); 458 } 459 } 460 461 function getImmediateChildren(node, tagName) 462 { 463 if(!node || !node.childNodes) return; 464 if(!tagName) tagName = "*"; 465 var elements = document.getElementsByTagName(tagName); 466 var nodeCount = elements.length; 467 var children = new Array(); 468 for(var i=0;i<nodeCount;i++) 469 { 470 if(elements[i].parentNode == node) 471 { 472 children[children.length] = elements[i]; 473 } 474 } 475 return children; 476 } 477 478 479 480//----------- 481// BEGIN SCRIPTS FOR NAV MENUS 482//----------- 483 484 var icMenuTimeout = null; //use this to turn off menu 485 486 function initClientMenu(){ 487 488 // showmenu function to show the submenu on mouseover of main menu 489 var showMenu = function() { 490 //get the position of the placeholder element 491 var pos = $(this).offset(); 492 var width = $(this).width();// make width be innerWidth to include padding 493 //var width = $(this).innerWidth(); 494 var height = $(this).innerHeight(); 495 var submenu = $(this).children("div"); 496 var menuFloat = null; 497 498 if($('#wb-layout-sidebar').css("display") != 'none'){ 499 menuFloat = $('#wb-layout-sidebar').css("float"); 500 } else if((($('#wb-layout-top-2').css("display") != 'none') && ($('#wb-header-nav').css("display") == 'none') && ($('#wb-layout-top-header').css("display") == 'none')&& ($('#wb-layout-uppertop-header').css("display") == 'none')) 501 || (($('#wb-layout-top-2').css("display") != 'none') && ($('#wb-header-nav').css("display") != 'none') && ($('#wb-layout-top-header').css("display") != 'none'))){ 502 menuFloat = "top"; 503 }else if($('#wb-header-nav').css("display") != 'none'){ 504 menuFloat = $('#wb-header-nav').css("float")+"New"; 505 }else if($('#wb-layout-top-header').css("display") != 'none'){ 506 if ($('#wb-layout-header-logo-container').css("display") != 'none'){ 507 menuFloat = "topNewWithLogo"; 508 } 509 }else if($('#wb-layout-uppertop-header').css("display") != 'none'){ 510 if ($('#wb-layout-header-logo-container').css("display") != 'none' && (pos.top == 0)){ 511 menuFloat = "uppertopNewWithLogo"; 512 } else { 513 menuFloat = "topNew"; 514 } 515 }else{ 516 menuFloat = "top"; 517 } 518 519 520 521 522 //show the submenu on different position based on main menu's position 523 if(menuFloat == 'left')
524 submenu.css( {"position":"absolute", "left": (pos.left + width) + "px", "top":pos.top + "px", "width": width, "z-index":2000}); 525 else if(menuFloat == 'right') 526 submenu.css( {"position":"absolute", "left": (pos.left - width) + "px", "top":pos.top + "px", "width": width, "z-index":2000}); 527 else if(menuFloat == 'top') 528 submenu.css( {"position":"absolute", "left": (pos.left) + "px", "top":(pos.top + height) + "px", "z-index":2000}); 529 else if(menuFloat == 'leftNew') 530 submenu.css( {"position":"absolute", "left": (width) + "px", "top":pos.top + "px", "width": width, "z-index":2000}); 531 else if(menuFloat == 'rightNew') 532 submenu.css( {"position":"absolute", "left": (- width) + "px", "top":pos.top + "px", "width": width, "z-index":2000}); 533 else if(menuFloat == 'topNew') 534 submenu.css( {"position":"absolute", "left": ($(this).position().left) + "px", "top":(pos.top + height) + "px", "z-index":2000}); 535 else if(menuFloat == 'topNewWithLogo') 536 submenu.css( {"position":"absolute", "left": ($(this).position().left) + "px", "top":(height+10) + "px", "z-index":2000}); 537 else if(menuFloat == 'uppertopNewWithLogo') 538 submenu.css( {"position":"absolute", "left": ($(this).position().left) + "px", "top":(height-2) + "px", "z-index":2000}); 539 540 submenu.show(); 541 } 542 // hidemenu function to hide the submenu 543 var hideMenu = function() { 544 var submenu = $(this).children("div"); 545 setTimeout(function() { 546 submenu.hide(); 547 },300); 548 } 549 550 // get all menu div for superheader menu 551 var superheaderGroup = $('#wb-navigation-bottom-header > div'); 552 // get all menu div for sidebar menu 553 var sidebarGroup = $('#wb-navigation-bottom > div'); 554 // get all menu div for subtop menu 555 var topbarGroup = $('#wb-navigation-subtop > div'); 556 // get all menu div for subtop menu 557 var topheaderbarGroup = $('#wb-navigation-subtop-header > div'); 558 // get all menu div for supertop menu 559 var supertopbarGroup = $('#wb-navigation-supertop > div'); 560 var supsuptopbarGroup = $('#wb-navigation-uppersubtop-header > div'); 561 562 superheaderGroup.hover(showMenu, hideMenu); 563 sidebarGroup.hover(showMenu, hideMenu); 564 topbarGroup.hover(showMenu, hideMenu); 565 topheaderbarGroup.hover(showMenu, hideMenu); 566 supertopbarGroup.hover(showMenu, hideMenu); 567 supsuptopbarGroup.hover(showMenu, hideMenu); 568 569 //hide all submenus after pages loads 570 superheaderGroup.mouseout(); 571 sidebarGroup.mouseout(); 572 topbarGroup.mouseout(); 573 topheaderbarGroup.mouseout(); 574 supertopbarGroup.mouseout(); 575 supsuptopbarGroup.mouseout(); 576 577 return false; 578 } 579 580 function persistMenu(ev) { 581 if (ev == null) { ev = window.event; } 582 evtObj = ev.target != null ? ev.target : ev.srcElement; 583 584 585 window.clearTimeout(icMenuTimeout); 586 587 588 } 589 590 function openMenu(ev) { 591 if (ev == null) { ev = window.event; } 592 evtObj = ev.target != null ? ev.target : ev.srcElement; 593 594 var otherSubmenus = getElementsByClassName('submenu'); 595 596 for(i=0; i<otherSubmenus.length; i+=1) { 597 598 otherSubmenus[i].style.display = 'none'; 599 600 } 601 602 } 603 604 function closeMenus(ev) { 605 if (ev == null) { ev = window.event; } 606 evtObj = ev.target != null ? ev.target : ev.srcElement; 607 608 var submenus = getElementsByClassName('submenu'); 609 610 icMenuTimeout = window.setTimeout(function() { 611 for(j=0; j<submenus.length; j+=1) { 612 submenus[j].style.display = 'none'; 613 } 614 },300); 615 616 } 617 618 //initClientMenu(); 619//----------- 620// END SCRIPTS FOR NAV MENUS 621//----------- 622 623 624 625//var colheightofs = 31; 626var colheightofs = 0; 627var pngXOffset=0; 628var pngYOffset=0; 629function sizeColumns() { 630 631if (window.pngHeight) { 632 pngHeight(); 633} 634 635if (!document.getElementById('column1')){ 636 return; 637} 638 639coldvht1=document.getElementById('column1').offsetHeight; 640coldvht2= document.getElementById('column2') ? document.getElementById('column2').offsetHeight : 0; 641coldvht3=document.getElementById('column3') ? document.getElementById('column3').offsetHeight : 0; 642 643 644if (coldvht1>coldvht2) coldvht2=coldvht1; 645else if (coldvht2>=coldvht1) coldvht1=coldvht2; 646if (coldvht3>=coldvht1) 647{ 648 coldvht1=coldvht3; 649 coldvht2=coldvht3; 650} 651else 652{ 653 coldvht3=coldvht1; 654} 655 656coldvht3=coldvht1; 657coldvht2=coldvht1; 658 659document.getElementById('colbody1').style.height = (coldvht1 - colheightofs) + 'px'; 660
661 if(document.getElementById('colbody2')) { 662 document.getElementById('colbody2').style.height = (coldvht2 - colheightofs) + 'px'; 663 return; 664 } 665 666 if(document.getElementById('colbody3')) { 667 document.getElementById('colbody3').style.height = (coldvht3 - colheightofs) + 'px'; 668 } 669} 670
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.