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) 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 if(pc=="") 237 { 238 if(cy=="" || st=="") 239 { 240 alert(ICaltgopub.pe_txt1); 241 return false; 242 } 243 } 244 245 246 var fromLocation = sa + "," + cy + "," + st + "," + pc + "," + ct; 247 var toLocation; 248 //pallavi change to send the toAress also to get driving directions 249 var url = action+"?fromLocation="+fromLocation; 250 if (newMap=='true'){ 251 toLocation = street + "," + city + "," + state + "," + zip + "," + country; 252 //WE have toaddress only for new user,old users used Lat and lon. 253 url=url +"&toLocation="+toLocation ; 254 } 255 256 if (direction =='reverse'){ 257 url = action+"?fromLocation=" + toLocation + "&toLocation=" + fromLocation; 258 } 259 popUp(url); 260 261 } 262//------------------------------------------------------------ 263// Called from Map Element: This method will set hidden parameters 264//----------------------------------------------------------- 265 function setToAddress(street,city,state,zip,country,formname) 266 { 267 document.getElementById(formname).toStreet.value=street; 268 document.getElementById(formname).toCity.value=city; 269 document.getElementById(formname).toState.value=state; 270 document.getElementById(formname).toZip.value=zip; 271 document.getElementById(formname).toCountry.value=country; 272 273 274 } 275 276//------------------------------------------------------------ 277// Called from Map Element: This method disables the button Id that is passed 278//----------------------------------------------------------- 279 function disableZoomButton(buttonId,formname,relativepath){ 280 switch(buttonId) 281 { 282 case "minus_three": 283 document.getElementById(formname)[buttonId].src=relativepath+'images/photoalbum/zoom-in.png'; 284 break; 285 case "minus_two": 286 document.getElementById(formname)[buttonId].src=relativepath+'images/photoalbum/zoom-level-button.png'; 287 break; 288 case "minus_one": 289 document.getElementById(formname)[buttonId].src=relativepath+'images/photoalbum/zoom-level-button.png'; 290 break; 291 case "plus_two": 292 document.getElementById(formname)[buttonId].src=relativepath+'images/photoalbum/zoom-level-button.png'; 293 break; 294 case "plus_one": 295 document.getElementById(formname)[buttonId].src=relativepath+'images/photoalbum/zoom-level-button.png'; 296 break; 297 case "center": 298 document.getElementById(formname)[buttonId].src=relativepath+'images/photoalbum/zoom-level-button.png'; 299 break; 300 case "plus_three": 301 document.getElementById(formname)[buttonId].src=relativepath+'images/photoalbum/zoom-out.png'; 302 break; 303 case "original": 304 document.getElementById(formname)[buttonId].src=relativepath+'images/photoalbum/center-map.png'; 305 break; 306 307 } 308 } 309 310//------------------------------------------------------------ 311// Called from Map Element: This method enables all buttons 312//----------------------------------------------------------- 313 function enableAllbutton(formname,relativepath){ 314 document.getElementById(formname).minus_three.src=relativepath+'images/photoalbum/zoom-in-over.png'; 315 document.getElementById(formname).minus_two.src=relativepath+'images/photoalbum/zoom-level-button-up.png'; 316 document.getElementById(formname).minus_one.src=relativepath+'images/photoalbum/zoom-level-button-up.png'; 317 document.getElementById(formname).plus_one.src=relativepath+'images/photoalbum/zoom-level-button-up.png'; 318 document.getElementById(formname).plus_two.src=relativepath+'images/photoalbum/zoom-level-button-up.png'; 319 document.getElementById(formname).plus_three.src=relativepath+'images/photoalbum/zoom-out-over.png'; 320 document.getElementById(formname).original.src=relativepath+'images/photoalbum/center-map-over.png'; 321 document.getElementById(formname).center.src=relativepath+'images/photoalbum/zoom-level-button-up.png'; 322 } 323 //------------------------------------------------------------ 324// Called from Map Element: This is invoked when user clicks zoom buttons or pan buttons 325//----------------------------------------------------------- 326 function genZoomURL(pageId,elementId,action,zoomLevel,symbolName,formname,panDirection,relativepath) 327 { 328 enableAllbutton(formname,relativepath); 329 disableZoomButton(zoomLevel,formname,relativepath); 330 331 var uniqueId = genUniqueId(); 332 var url = action+"page_id="+pageId+"&element_id="+elementId 333 + "&symbolName=" +symbolName+"&zoomLevel=" + zoomLevel 334 + "&panDirection=" + panDirection 335 + "&uniqueId=" +uniqueId; 336 337 //popUp(url); 338 var divImageName= 'mapImage'+ elementId; 339 document.getElementById(divImageName).style.display='none'; 340 var divZoomName= 'zoomDiv'+ elementId; 341 document.getElementById(divZoomName).style.display='block'; 342 var iframeZoomName= 'zoomImageFrame'+ elementId; 343 document.getElementById(iframeZoomName).src=url; 344 345 346 } 347 348 349 350/* 351 Developed by Robert Nyman, http://www.robertnyman.com 352 Code/licensing: http://code.google.com/p/getelementsbyclassname/ 353*/ 354var getElementsByClassName = function (className, tag, elm){ 355 if (document.getElementsByClassName) { 356 getElementsByClassName = function (className, tag, elm) { 357 elm = elm || document; 358 var elements = elm.getElementsByClassName(className), 359 nodeName = (tag)? new RegExp("\\b" + tag + "\\b", "i") : null, 360 returnElements = [], 361 current; 362 for(var i=0, il=elements.length; i<il; i+=1){ 363 current = elements[i]; 364 if(!nodeName || nodeName.test(current.nodeName)) { 365 returnElements.push(current); 366 } 367 } 368 return returnElements; 369 }; 370 } 371 else if (document.evaluate) { 372 getElementsByClassName = function (className, tag, elm) { 373 tag = tag || "*"; 374 elm = elm || document; 375 var classes = className.split(" "), 376 classesToCheck = "", 377 xhtmlNamespace = "http://www.w3.org/1999/xhtml", 378 namespaceResolver = (document.documentElement.namespaceURI === xhtmlNamespace)? xhtmlNamespace : null, 379 returnElements = [], 380 elements, 381 node; 382 for(var j=0, jl=classes.length; j<jl; j+=1){ 383 classesToCheck += "[contains(concat(' ', @class, ' '), ' " + classes[j] + " ')]"; 384 } 385 try { 386 elements = document.evaluate(".//" + tag + classesToCheck, elm, namespaceResolver, 0, null); 387 } 388 catch (e) { 389 elements = document.evaluate(".//" + tag + classesToCheck, elm, null, 0, null); 390 } 391 while ((node = elements.iterateNext())) { 392 returnElements.push(node); 393 } 394 return returnElements; 395 }; 396 } 397 else { 398 getElementsByClassName = function (className, tag, elm) { 399 tag = tag || "*"; 400 elm = elm || document; 401 var classes = className.split(" "), 402 classesToCheck = [], 403 elements = (tag === "*" && elm.all)? elm.all : elm.getElementsByTagName(tag), 404 current, 405 returnElements = [], 406 match; 407 for(var k=0, kl=classes.length; k<kl; k+=1){ 408 classesToCheck.push(new RegExp("(^|\\s)" + classes[k] + "(\\s|$)")); 409 } 410 for(var l=0, ll=elements.length; l<ll; l+=1){ 411 current = elements[l]; 412 match = false;
413 for(var m=0, ml=classesToCheck.length; m<ml; m+=1){ 414 match = classesToCheck[m].test(current.className); 415 if (!match) { 416 break; 417 } 418 } 419 if (match) { 420 returnElements.push(current); 421 } 422 } 423 return returnElements; 424 }; 425 } 426 return getElementsByClassName(className, tag, elm); 427}; 428 429 //Cross Browser Event Attachment 430 function addEvent(el, evType, handle, capture){ 431 432 var bubbleCapture = capture == null ? false : capture; 433 434 if(el.addEventListener)el.addEventListener(evType, handle, bubbleCapture); 435 else if(el.attachEvent){ 436 el["e" + evType + handle] = handle; 437 el[evType + handle] = function(){el["e" + evType + handle](window.event)} 438 439 el.attachEvent("on" + evType, el[evType + handle]); 440 } 441 } 442 443 function getImmediateChildren(node, tagName) 444 { 445 if(!node || !node.childNodes) return; 446 if(!tagName) tagName = "*"; 447 var elements = document.getElementsByTagName(tagName); 448 var nodeCount = elements.length; 449 var children = new Array(); 450 for(var i=0;i<nodeCount;i++) 451 { 452 if(elements[i].parentNode == node) 453 { 454 children[children.length] = elements[i]; 455 } 456 } 457 return children; 458 } 459 460 461 462//----------- 463// BEGIN SCRIPTS FOR NAV MENUS 464//----------- 465 466 var icMenuTimeout = null; //use this to turn off menu 467 468 function initClientMenu(){ 469 470 // showmenu function to show the submenu on mouseover of main menu 471 var showMenu = function() { 472 //get the position of the placeholder element 473 var pos = $(this).offset(); 474 var width = $(this).width();// make width be innerWidth to include padding 475 //var width = $(this).innerWidth(); 476 var height = $(this).innerHeight(); 477 var submenu = $(this).children("div"); 478 var menuFloat = null; 479 480 if($('#wb-layout-sidebar').css("display") != 'none'){ 481 menuFloat = $('#wb-layout-sidebar').css("float"); 482 } 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')) 483 || (($('#wb-layout-top-2').css("display") != 'none') && ($('#wb-header-nav').css("display") != 'none') && ($('#wb-layout-top-header').css("display") != 'none'))){ 484 menuFloat = "top"; 485 }else if($('#wb-header-nav').css("display") != 'none'){ 486 menuFloat = $('#wb-header-nav').css("float")+"New"; 487 }else if($('#wb-layout-top-header').css("display") != 'none'){ 488 if ($('#wb-layout-header-logo-container').css("display") != 'none'){ 489 menuFloat = "topNewWithLogo"; 490 } 491 }else if($('#wb-layout-uppertop-header').css("display") != 'none'){ 492 if ($('#wb-layout-header-logo-container').css("display") != 'none' && (pos.top == 0)){ 493 menuFloat = "uppertopNewWithLogo"; 494 } else { 495 menuFloat = "topNew"; 496 } 497 }else{ 498 menuFloat = "top"; 499 } 500 501 502 503 504 //show the submenu on different position based on main menu's position 505 if(menuFloat == 'left')
506 submenu.css( {"position":"absolute", "left": (pos.left + width) + "px", "top":pos.top + "px", "width": width, "z-index":2000}); 507 else if(menuFloat == 'right') 508 submenu.css( {"position":"absolute", "left": (pos.left - width) + "px", "top":pos.top + "px", "width": width, "z-index":2000}); 509 else if(menuFloat == 'top') 510 submenu.css( {"position":"absolute", "left": (pos.left) + "px", "top":(pos.top + height) + "px", "z-index":2000}); 511 else if(menuFloat == 'leftNew') 512 submenu.css( {"position":"absolute", "left": (width) + "px", "top":pos.top + "px", "width": width, "z-index":2000}); 513 else if(menuFloat == 'rightNew') 514 submenu.css( {"position":"absolute", "left": (- width) + "px", "top":pos.top + "px", "width": width, "z-index":2000}); 515 else if(menuFloat == 'topNew') 516 submenu.css( {"position":"absolute", "left": ($(this).position().left) + "px", "top":(pos.top + height) + "px", "z-index":2000}); 517 else if(menuFloat == 'topNewWithLogo') 518 submenu.css( {"position":"absolute", "left": ($(this).position().left) + "px", "top":(height+10) + "px", "z-index":2000}); 519 else if(menuFloat == 'uppertopNewWithLogo') 520 submenu.css( {"position":"absolute", "left": ($(this).position().left) + "px", "top":(height-2) + "px", "z-index":2000}); 521 522 submenu.show(); 523 } 524 // hidemenu function to hide the submenu 525 var hideMenu = function() { 526 var submenu = $(this).children("div"); 527 setTimeout(function() { 528 submenu.hide(); 529 },300); 530 } 531 532 // get all menu div for superheader menu 533 var superheaderGroup = $('#wb-navigation-bottom-header > div'); 534 // get all menu div for sidebar menu 535 var sidebarGroup = $('#wb-navigation-bottom > div'); 536 // get all menu div for subtop menu 537 var topbarGroup = $('#wb-navigation-subtop > div'); 538 // get all menu div for subtop menu 539 var topheaderbarGroup = $('#wb-navigation-subtop-header > div'); 540 // get all menu div for supertop menu 541 var supertopbarGroup = $('#wb-navigation-supertop > div'); 542 var supsuptopbarGroup = $('#wb-navigation-uppersubtop-header > div'); 543 544 superheaderGroup.hover(showMenu, hideMenu); 545 sidebarGroup.hover(showMenu, hideMenu); 546 topbarGroup.hover(showMenu, hideMenu); 547 topheaderbarGroup.hover(showMenu, hideMenu); 548 supertopbarGroup.hover(showMenu, hideMenu); 549 supsuptopbarGroup.hover(showMenu, hideMenu); 550 551 //hide all submenus after pages loads 552 superheaderGroup.mouseout(); 553 sidebarGroup.mouseout(); 554 topbarGroup.mouseout(); 555 topheaderbarGroup.mouseout(); 556 supertopbarGroup.mouseout(); 557 supsuptopbarGroup.mouseout(); 558 559 return false; 560 } 561 562 function persistMenu(ev) { 563 if (ev == null) { ev = window.event; } 564 evtObj = ev.target != null ? ev.target : ev.srcElement; 565 566 567 window.clearTimeout(icMenuTimeout); 568 569 570 } 571 572 function openMenu(ev) { 573 if (ev == null) { ev = window.event; } 574 evtObj = ev.target != null ? ev.target : ev.srcElement; 575 576 var otherSubmenus = getElementsByClassName('submenu'); 577 578 for(i=0; i<otherSubmenus.length; i+=1) { 579 580 otherSubmenus[i].style.display = 'none'; 581 582 } 583 584 } 585 586 function closeMenus(ev) { 587 if (ev == null) { ev = window.event; } 588 evtObj = ev.target != null ? ev.target : ev.srcElement; 589 590 var submenus = getElementsByClassName('submenu'); 591 592 icMenuTimeout = window.setTimeout(function() { 593 for(j=0; j<submenus.length; j+=1) { 594 submenus[j].style.display = 'none'; 595 } 596 },300); 597 598 } 599 600 //initClientMenu(); 601//----------- 602// END SCRIPTS FOR NAV MENUS 603//----------- 604 605 606 607//var colheightofs = 31; 608var colheightofs = 0; 609var pngXOffset=0; 610var pngYOffset=0; 611function sizeColumns() { 612 613if (window.pngHeight) { 614 pngHeight(); 615} 616 617if (!document.getElementById('column1')){ 618 return; 619} 620 621coldvht1=document.getElementById('column1').offsetHeight; 622coldvht2= document.getElementById('column2') ? document.getElementById('column2').offsetHeight : 0; 623coldvht3=document.getElementById('column3') ? document.getElementById('column3').offsetHeight : 0; 624 625 626if (coldvht1>coldvht2) coldvht2=coldvht1; 627else if (coldvht2>=coldvht1) coldvht1=coldvht2; 628if (coldvht3>=coldvht1) 629{ 630 coldvht1=coldvht3; 631 coldvht2=coldvht3; 632} 633else 634{ 635 coldvht3=coldvht1; 636} 637 638coldvht3=coldvht1; 639coldvht2=coldvht1; 640 641document.getElementById('colbody1').style.height = (coldvht1 - colheightofs) + 'px'; 642
643 if(document.getElementById('colbody2')) { 644 document.getElementById('colbody2').style.height = (coldvht2 - colheightofs) + 'px'; 645 return; 646 } 647 648 if(document.getElementById('colbody3')) { 649 document.getElementById('colbody3').style.height = (coldvht3 - colheightofs) + 'px'; 650 } 651}
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.