1/******* 2Original JS 3******/ 4 5var isVertical = false; 6var l_scr_total_width = screen.width; 7var add_subnavig_type = ''; 8 9 10var subng_variation_flag = "OLDDESIGN"; 11var navigation_align = "hp_design_align"; 12var horizontal_location = "t"; 13var vertical_location = "t"; 14 15var xUA=navigator.userAgent.toLowerCase(); 16 17 xIE4=xUA.indexOf('msie 4')!=-1; 18 xIE5=xUA.indexOf('msie 5')!=-1; 19 xIE6=xUA.indexOf('msie 6')!=-1; 20 21var cursorType= ""; 22 23 if(xIE4 || xIE5) 24 cursorType = 'CURSOR:HAND; ' ; 25 else 26 cursorType = 'cursor: hand; cursor: pointer; '; 27 28// General Data 29 var browser_type = navigator.appName; //browser type 30 var main_cat_arr = main_cat.split("::"); //main navis array 31 var main_cat_length = main_cat_arr.length; //length 32 var main_sub_cat_arr = sub_cat.split(","); //sub navis array 33 var main_sub_cat_length = main_sub_cat_arr.length; //sub navis length 34 var main_sub_cat_ext_arr = sub_cat_ext.split(","); // sub navis array 35 var main_sub_cat_ext_length = main_sub_cat_ext_arr.length; // sub navis length 36 var STR_IE = "Microsoft Internet Explorer"; //ie 37 var STR_NS = "Netscape"; //netscape 38 var STR_GECKO = "Gecko"; //gecko 39 var STR_YES = "yes"; //yew 40 var STR_NO = "no"; //no 41 var STR_OPERA = "Opera"; //Opera 42 43 var f_str_dyn_sub_list = new Array(); 44 45// NS Properties 46 var ns_sub_def_width ; //width 47 var ns_sub_def_height ; //height 48 var ns_sub_def_left; //left 49 var ns_sub_start_top; //top 50 var ns_sub_inc_top; //increment top 51 var ns_top_variance; // variance 52 //IE Properties 53 var ie_sub_def_width; //width 54 var ie_sub_def_height; //height 55 var ie_sub_def_left; //left 56 var ie_sub_start_top; //top 57 var ie_sub_inc_top; //increment top 58 var ie_down_key_status; //key status 59 var ie_current_hid_index; //index 60 61//sub layer position inIE 62 var ie_poistion_details = new Array(); //position list 63 64//BACKGROUND IMAGE 65 var img_over = ""; //image over 66 var img_out = ""; //image out; 67 68// Sub navigation enable 69 var bln_navigation_state = true; //state 70 71// dyn layers height height 72 var ns_layers_height; //height 73 74// common top & left 75 var dyn_top; //top 76 var dyn_left; //left 77 78//current page id & url status 79 var current_page_id = ""; //current page id 80 var current_url_status = ""; //current url 81 var current_url_name = ""; //current url name for external link 82 var current_url_tgt = ""; //current url 83 84//Identify cell No 85 var current_cell = ""; // cell details 86
87 document.write('<style type="text/css">'); 88 document.write('<!--'); 89 document.write('.titlesize {'); 90 document.write('font-family: Verdana, Arial, Helvetica, sans-serif;'); 91 document.write('font-size: 11px;'); 92 document.write('font-weight: normal;'); 93 document.write('text-decoration: none;'); 94 document.write('}'); 95 document.write('-->'); 96 document.write('</style>'); 97 98// style sheet properties for ns 99 document.write('<STYLE TYPE="text/javascript">'); 100 document.write('classes.borderinclass.all.borderWidths("1pt");'); 101 document.write('classes.borderinclass.all.borderStyle="inset";'); 102 document.write('classes.borderinclass.all.borderColor="#b2b2b2";'); 103 document.write('classes.borderoutclass.all.borderWidths("1pt");'); 104 document.write('classes.borderoutclass.all.borderStyle="outset";'); 105 document.write('classes.borderoutclass.all.borderColor="#b2b2b2";'); 106 document.write('</STYLE>'); 107 108//cell properties 109 var l_str_dtable_starts = "<table width='" + l_int_width + "' height='" + l_int_height + "' border='0' cellspacing='0' cellpadding='0'><tr><td valign='" + l_str_ver_align + "' align='" + title_align + "'><font color='" + default_title_color + "' face='" + title_style + "' class='titlesize'> "; //starts table 1 110 var l_str_stable_starts = "<table width='" + l_int_width + "' height='" + l_int_height + "' border='0' cellspacing='0' cellpadding='0'><tr><td valign='" + l_str_ver_align + "' align='"+ title_align +"'><font color='" + scroll_title_color + "' face='" + title_style + "' class='titlesize'> "; //starts table 2 111 var l_str_table_close = " </font></td></tr></table>"; //close the table 112 113// for ns layers 114 var l_str_dtable_starts_org = "<table width='" + l_int_width + "' height='" + l_int_height + "' border='0' cellspacing='0' cellpadding='0'><tr><td valign='middle' align='" + title_align + "'><font color='" + default_title_color + "' face='" + title_style + "' class='titlesize'> "; //starts table 1 115 var l_str_stable_starts_org = "<table width='" + l_int_width + "' height='" + l_int_height + "' border='0' cellspacing='0' cellpadding='0'><tr><td valign='middle' align='"+ title_align +"'><font color='" + scroll_title_color + "' face='" + title_style + "' class='titlesize'> "; //starts table 2 116 117 var _is_gecko_bowser = STR_NO; 118 var _browser_agent_type = navigator.userAgent; 119 120 if( _browser_agent_type != null && _browser_agent_type.indexOf(STR_GECKO) != -1 ) 121 { 122 _is_gecko_bowser = STR_YES; 123 //alert("in if 1"); 124 } 125 126 if( _browser_agent_type != null && _browser_agent_type.indexOf(STR_GECKO) != -1 && _browser_agent_type.indexOf(STR_NS) != -1 && browser_type.indexOf(STR_NS) != -1) 127 _is_gecko_bowser = STR_YES; 128 129 if( _browser_agent_type != null && _browser_agent_type.indexOf(STR_OPERA) != -1 130 && browser_type.indexOf(STR_OPERA) != -1) 131 _is_gecko_bowser = STR_YES; 132 133 if(browser_type == STR_IE) 134 { //starts if 135 136 /*** starts sub navigation property ***/ 137 // temp layers 138 setIEAllSubNavis(); 139 document.onmousedown = getKeyDown; 140 /*** close sub navigation property ***/ 141 } // close if 142 else if(_is_gecko_bowser == STR_YES) // check gecko browser 143 { //starts if 144 // temp layers 145 //alert("isVertical "+isVertical); 146 //if(isVertical) 147 //{ 148 setGeckoAllSubNavisVertical(); 149 //} 150 //else 151 //{ 152 //setGeckoAllSubNavis(); 153 //} 154 document.onmousedown = getKeyDown; 155 } // close if 156 else if(browser_type == STR_NS) 157 { //starts else-if 158 159 /**** starts sub navigation property ****/ 160 document.write("<layer id='tlayer' width=0 height=0 top=0 onMouseover='clearNSSubNavi();' onMouseout='this.visibility=\"hide\";clearNSSubNavi();' left=0 visibility='hide' border-width=0><table width=" + ns_sub_def_width + " border=0 cellPadding=0 cellSpacing=0 height=" + ns_sub_def_height + " ><tr><td> </td></tr></table></layer>"); 161 document.write("<layer id='bglayer' width=0 height=0 top=0 onMouseover='' onMouseout='' left=0 visibility='hide' border-width=0>
161<table width=" + ns_sub_def_width + " border=0 cellPadding=0 cellSpacing=0 height=" + ns_sub_def_height + " ><tr><td> </td></tr></table></layer>"); 162 163 for(var i=0;i<main_sub_cat_length;i++) 164 { // starts for loop 165 var lay = main_sub_cat_arr[i].split(":"); //array 166 var layer_active = 'act_' + lay[1]; //array active 167 // default layer 168 var l_str_data = ''; // strings collection 169 var l_str_arr_data = getNoStrings(lay[2]); // string list 170 var lay_ext = main_sub_cat_ext_arr[i].split("::"); //array 171 for(var k=0;k<l_str_arr_data.length;k++) 172 l_str_data += l_str_arr_data[k] +' '; 173 // default layer class=borderoutclass 174 document.write("<layer id='" + lay[1] + "' width=0 height=0 top=0 left=0 visibility='hide' onMouseOut='' onMouseOver='onSubNaviNSMouseOver(this,\"" + layer_active + "\");' >" + l_str_stable_starts_org + l_str_data + l_str_table_close + "</layer>"); 175 // active layers class=borderinclass 176 document.write("<layer id='" + layer_active + "' width=0 height=0 top=0 left=0 visibility='hide' onMouseOut='onSubNaviNSMouseOver(this,\"" + lay[1] + "\");' onMouseOver='onCurrentNSSubNavis(\"" + layer_active + "\",\"" + lay[3] + "\",\"" + lay_ext[1] + "\",\"" + lay_ext[2] + "\")' >" + l_str_dtable_starts_org + l_str_data + l_str_table_close + "</layer>"); 177 } //close the for loop 178 document.captureEvents(Event.MOUSEDOWN |Event.MOUSEUP); 179 document.onmouseup = getAction; 180 /**** close sub navigation property ****/ 181 } // close else if 182 183 /* clear all sublayer in general */ 184function getTop() 185{ 186 setClearSubLayer(main_sub_cat_length); 187} //close the function 188 189function getSubNavisOnly(main_navi) 190{ 191 var l_str_arr_subnavis = new Array(); //array 192 var l_str_arr_ipnos = new Array(); //array 193 var l_str_arr_result = new Array(); //array 194 var l_int_i = 0; //index 195 for(n=0;n<main_sub_cat_length;n++) 196 { //starts for -1 loop 197 var l_str_arr_temp = main_sub_cat_arr[n].split(':'); //array 198 if(l_str_arr_temp[0] == main_navi) 199 { 200 l_str_arr_subnavis[l_int_i] = l_str_arr_temp[1] + ':' + l_str_arr_temp[4]; 201 l_str_arr_ipnos[l_int_i] = l_str_arr_temp[4]; 202 l_int_i++; 203 } 204 } //close for-1 loop 205 var l_int_cnt = 0 //count 206 if(l_str_arr_ipnos.length>0) 207 { //starts if -non-empyt array 208 l_str_arr_ipnos.sort(); 209 l_str_arr_ipnos.sort(compareNumbers); 210 for(var j=0;j<l_str_arr_ipnos.length;j++) 211 { //starts for -outter; 212 for(var k=0;k < l_str_arr_subnavis.length; k++) 213 { //starts for -inner 214 var l_str_loc_data = l_str_arr_subnavis[k].split(':'); 215 if(l_str_loc_data[1] == l_str_arr_ipnos[j]) 216 l_str_arr_result[l_int_cnt++] = l_str_loc_data[0]; 217 }// inner loop-close 218 }//outter loop -close 219 } //close if 220 221 return l_str_arr_result; 222} // close the function 223 224function setClearSubLayer(slength) 225{ 226 if(browser_type == STR_IE) //if (ie) 227 clearIENavis(); 228 else if(_is_gecko_bowser == STR_YES) 229 clearGeckoNavis(); 230 else //starts else 231 { 232 if(browser_type == STR_NS) //if(ns) 233 setClearNSSubLayer(slength); 234 } //close the else 235} //close the function 236 237/* 238 This function returns list of individual strings about collection strings such as para or 239 line etc. 240*/ 241function getNoStrings(str) 242{ 243 var l_str_arr_strarray = new Array() //temp array 244 if(str != '') //non emty 245 l_str_arr_strarray = str.split(" "); 246 return l_str_arr_strarray; 247} //close the function 248 249function getScreenFixAbove1024(l) 250{ 251// alert(screen.width); 252 var l_width_pixel =eval(l); 253 var _broswertype =navigator.userAgent; // browser type 254 255 if(screen.width > 1024) 256 { 257 258 if(subng_variation_flag == "OLDDESIGN") // condition to old design 259 { 260 261 if(screen.width == 1280) // screen resultion to 1280 262 { 263 if( _broswertype.indexOf("Gecko") != -1 ) 264 l_width_pixel =l_width_pixel + 280; 265 else if( _broswertype.indexOf("MSIE") != -1) 266 l_width_pixel =l_width_pixel + 260; 267 } 268 else if( screen.width ==1152) //screen resultion to 1152 269 { 270 if( _broswertype.indexOf("Gecko") != -1 ) 271 l_width_pixel =l_width_pixel + 150; 272 273 else if( _broswertype.indexOf("MSIE") != -1) 274 l_width_pixel =l_width_pixel + 130; 275 276 } 277 else 278 { 279 l_width_pixel = eval(l+(Math.round(l_int_width/1.255))); 280 } 281 } 282 else if( subng_variation_flag == "NEWDESIGN" )// condtion to new design 283 l_width_pixel =l_width_pixel; 284 else // codition to inner page 285 { 286 if( screen.width == 1280) 287 l_width_pixel = l_width_pixel ; 288 else if(screen.width == 1152 ) 289 l_width_pixel = l_width_pixel ; 290 else 291 l_width_pixel = l_width_pixel ; 292 293 } 294 295 296 // l_width_pixel = eval(l+(Math.round(l_int_width/1.255))); 297 } 298 return l_width_pixel; 299} 300 301function displayMenu(evnt,width,height,nav_pos) 302{ 303 var x=0; 304 var y=0; 305 306 if(evnt==null) 307 evnt=window.event; 308 309 var targ; 310 var isIE=!(navigator.userAgent.indexOf("Gecko")!=-1); 311 if(isIE)
312 targ=evnt.srcElement; 313 else 314 targ=evnt.target; 315 //ObjectNode assign select_obj 316 317 var ObjectNode=targ; 318 //Iterate until ObjectNode is body 319 while(ObjectNode!=null) 320 { 321 //Set x as x+ObjectNode.offsetTop. 322 if(!isNaN(ObjectNode.offsetTop)) 323 y=y+ObjectNode.offsetTop; 324 325 if(!isNaN(ObjectNode.offsetLeft)) 326 x=x+ObjectNode.offsetLeft; 327 328 if(ObjectNode.offsetParent) 329 ObjectNode=ObjectNode.offsetParent; 330 else 331 ObjectNode=ObjectNode.parentNode; 332 } //end Iterate until ObjectNode is HTML 333 334 335 if(nav_pos == "left") 336 { 337 x+=targ.offsetWidth; 338 x = x - ((targ.offsetWidth/100)*30); 339 340 } 341 else if(nav_pos == "right") 342 { 343 if(x > 600 ) 344 { 345 x-=width; 346 347 } 348 else 349 { 350 x+=targ.offsetWidth; 351 x = x - ((targ.offsetWidth/100)*30); 352 } 353 } 354 return x; 355 356} 357 358function displayMenuy(evnt,width,height,nav_pos) 359{ 360 361 var x=0; 362 var y=0; 363 364 if(evnt==null) 365 evnt=window.event; 366 367 var targ; 368 var isIE=!(navigator.userAgent.indexOf("Gecko")!=-1); 369 if(isIE) 370 targ=evnt.srcElement; 371 else 372 targ=evnt.target; 373 //ObjectNode assign select_obj 374 375 var ObjectNode=targ; 376 //Iterate until ObjectNode is body 377 while(ObjectNode!=null) 378 { 379 //Set x as x+ObjectNode.offsetTop. 380 if(!isNaN(ObjectNode.offsetTop)) 381 y=y+ObjectNode.offsetTop; 382 383 if(!isNaN(ObjectNode.offsetLeft)) 384 x=x+ObjectNode.offsetLeft; 385 386 if(ObjectNode.offsetParent) 387 ObjectNode=ObjectNode.offsetParent; 388 else 389 ObjectNode=ObjectNode.parentNode; 390 } //end Iterate until ObjectNode is HTML 391 392 393 394 if(nav_pos == "top") 395 { 396 y+=targ.offsetHeight; 397 } 398 else if(nav_pos == "bottom") 399 { 400 y-=targ.offsetHeight; 401 if(targ.nodeName == "A" || targ.nodeName == "a") 402 { 403 //Text link navigations 404 y-=10; 405 var borderPixel = 2; 406 if(_is_gecko_bowser == STR_YES) 407 { 408 borderPixel = 4; 409 } 410 411 if(subNgCount > 1) 412 { 413 y-= (((subNgCount-1)*subNavigHeight)+((subNgCount+1)*borderPixel)); 414 y-= 1; 415 } 416 else 417 { 418 y-= ((subNgCount+1)*borderPixel); 419 } 420 } 421 } 422 return y; 423 424} 425 426var previousCat; 427var currentCat; 428var subNgCount = 1; 429var subNavigHeight; 430var subNavigWidth; 431function getSubLayers(nav_pos,evnt,curr_cat,index,start_top,start_left,img_default,img_over,height,width,latest_location) 432{ 433 subNavigWidth = width; 434 isVertical = false;
435 if(!latest_location) 436 { 437 //for hand symbol 438 if(nav_pos == "l" || nav_pos == "tl" || nav_pos == "bl") 439 { 440 latest_location = 'l'; 441 } 442 else 443 { 444 latest_location = 'r'; 445 } 446 } 447 if(nav_pos == "l") 448 { 449 vertical_location = nav_pos; 450 nav_pos = "left"; 451 } 452 else if(nav_pos == "r") 453 { 454 vertical_location = nav_pos; 455 nav_pos = "right"; 456 } 457 else if(nav_pos == "tl" || nav_pos == "tr") 458 { 459 horizontal_location = nav_pos; 460 nav_pos = "top"; 461 isVertical = true; 462 } 463 else if(nav_pos == "b" || nav_pos == "br" || nav_pos == "bl") 464 { 465 horizontal_location = nav_pos; 466 nav_pos = "bottom"; 467 isVertical = true; 468 } 469 470 subNavigHeight = height; 471 previousCat = currentCat; 472 if(previousCat) 473 { 474 hidePrevSubNavig(previousCat); 475 } 476 currentCat = curr_cat; 477 var l_str_arr_temp = getSubNavisOnly(curr_cat); //get acti navis 478 subNgCount = l_str_arr_temp.length; 479 480 start_left = displayMenu(evnt,width,height,nav_pos); 481 start_top = displayMenuy(evnt,width,height,nav_pos); 482 483 location_identifier =latest_location; 484 var l_int_ileft = start_left; 485 // if(latest_location == 'r' || navigation_align=="hp_right_align") 486 // l_int_ileft = getScreenFixAbove1024(start_left); 487 488 //f_str_dyn_sub_list =new Array(); 489 //alert("1f_str_dyn_sub_list "+f_str_dyn_sub_list); 490 common_height = height; 491 common_width = width; 492 common_top = start_top; 493 common_left = l_int_ileft; 494 common_inc = height; 495 496// NS Properties 497 ns_sub_def_width = width; 498 ns_sub_def_height = height; 499 ns_sub_inc_top = common_inc; 500// ns_sub_start_top = common_top+ns_top_variance; 501 ns_sub_start_top = common_top; 502// IE Properties 503 ie_sub_def_width = width; 504 ie_sub_def_height = height; 505 ie_sub_def_left = common_left; 506 ie_sub_start_top = common_top; 507 ie_sub_inc_top = common_inc; 508 509 if(_is_gecko_bowser == STR_YES) 510 { //starts if 511 dyn_top = start_top; 512 dyn_left = l_int_ileft; 513 if(isVertical) 514 { 515 setGeckoSubNavisListVertical(curr_cat,index,l_int_ileft,start_top,ie_sub_def_height,ie_sub_def_width); 516 } 517 else 518 { 519 setGeckoSubNavisList(curr_cat,index,l_int_ileft,start_top,ie_sub_def_height,ie_sub_def_width); 520 } 521 } 522 else if(browser_type == STR_IE) 523 { //starts if 524 dyn_top = start_top; 525 dyn_left = l_int_ileft; 526 setIESubNavisList(curr_cat,index,l_int_ileft,start_top,ie_sub_def_height,ie_sub_def_width); 527 } // close if 528 else 529 { //starts outter else 530 if(browser_type == STR_NS) //starts inner if 531 { 532 dyn_top = start_top; 533 dyn_left = l_int_ileft; 534 setNSSubLayers(curr_cat,index,start_top,l_int_ileft,img_default,img_over); 535 } //close the inner if 536 } //close the outter else 537} // close the function 538 539/****************************** Starts list of NS functions ****************************/ 540/* set dummy layers with respect to main/sun */ 541/* dynmic navigation from the main navigation*/ 542function setNSSubLayers(c_cat,index, start_top, start_left, img0, img1) 543{ 544 setClearSubLayer(main_sub_cat_length); 545 document.layers["tlayer"].visibility = "hide"; 546 var temp_sub_arr = getSubNavisOnly(c_cat); // array of sub navis 547 if(main_sub_cat_length > 0) 548 { //starts if-1 atlease on subnavis 549 if(temp_sub_arr.length > 0) 550 { //starts if-3 551 f_str_dyn_sub_list = temp_sub_arr; 552 ns_layers_height = 0; 553 ns_sub_start_top = start_top; 554 var position = index; //index 555 for(var i=0;i<temp_sub_arr.length;i++) 556 { //starts for loop 557 //var lay="sub_layer_"+i; 558 var layer_id = temp_sub_arr[i]; //array -temp 559 var act_layer = 'act_' + layer_id; // active layer 560 document.layers[layer_id].visibility = "show"; 561 document.layers[layer_id].top = ns_sub_start_top; 562 document.layers[act_layer].top = ns_sub_start_top; 563 document.layers[layer_id].left = start_left; 564 document.layers[act_layer].left = start_left; 565 img_over = img1; 566 img_out = img0; 567 document.layers[layer_id].background.src = img0; 568 document.layers[act_layer].background.src = img1; 569// document.layers[layer_id].bgcolor="#12acacac"; 570 document.layers[layer_id].resizeTo(eval(common_width),eval(common_height)); 571 document.layers[act_layer].resizeTo(eval(common_width ),eval(common_height));
572 ns_sub_start_top += ns_sub_inc_top+2; 573 ns_layers_height += ns_sub_def_height + 2; 574 position++; 575 } //close for loop 576 document.layers["tlayer"].visibility = "show"; 577 document.layers["tlayer"].resizeTo(eval(ns_sub_def_width + 40),eval(ns_layers_height + 40)); 578 document.layers["tlayer"].top = start_top - 5; 579// document.layers["tlayer"].left = start_left; 580 if(location_identifier == 'r') 581 document.layers["tlayer"].left = start_left-(eval(ns_sub_def_width/4)); 582 else if(location_identifier == 'l') 583 document.layers["tlayer"].left = start_left; //document.layers["tlayer"].left = start_left - 40; 584 else if(vertical_location == 'l') 585 document.layers["tlayer"].left = start_left; //document.layers["tlayer"].left = start_left - 40; 586 else if(vertical_location == 'r') 587 document.layers["tlayer"].left = start_left-(eval(ns_sub_def_width/4)); 588// document.layers["tlayer"].bgColor="#fafa00"; 589 document.layers["bglayer"].visibility = "show"; 590 document.layers["bglayer"].resizeTo(eval(ns_sub_def_width+4),eval(ns_layers_height+1)); 591 document.layers["bglayer"].top = start_top-1; 592 document.layers["bglayer"].left = start_left-1; 593 document.layers["bglayer"].bgColor='#b2b2b2'; 594 } //close if -3 595 } // over the if -1 596} // over the function 597 598function onSubNaviNSMouseOver(ilayer,slayer) 599{ 600 current_page_id = ''; //current page id 601 current_url_status = ''; //current url 602 current_url_name = ''; //current url for external link 603 current_url_tgt = ''; //current url target 604 605 ilayer.visibility ='hide'; 606 document.layers[slayer].visibility = 'show'; 607 document.layers[slayer].top = ilayer.top; 608 document.layers[slayer].left = ilayer.left; 609 document.layers[slayer].resizeTo(eval(common_width),eval(common_height)); 610} 611/* Click to new link for NS */ 612function getAction() 613{ 614 if (current_url_status == 'y' && current_page_id != '') //cursor points to page id 615 { 616 window.location.href = current_page_id + '.html'; 617 } 618 else if (current_url_status == 'e' && current_url_name != '') //cursor points to page name 619 { 620 if (current_url_tgt == 'y') // open in new window 621 { 622 window.open(replaceTitletoComma(current_url_name)); 623 getTop(); 624 } 625 else 626 { 627 window.location.href = replaceTitletoComma(current_url_name); 628 } 629 } 630 else if (current_url_status == '' && current_page_id == '' )//cursor has no page id 631 getTop(); 632} // close the function 633 634/* clear all sub navigation */ 635function setClearNSSubLayer(slength) 636{ 637 if(slength > 0) 638 { //starts if - more than one navis 639 for(var i=0;i<main_sub_cat_length;i++) 640 { //starts for loop - run navis 641 // var lay="sub_layer_"+i; 642 var lay = main_sub_cat_arr[i].split(":"); // array layers 643 var layi = lay[1]; //at position 2 644 var layiact = 'act_' + lay[1]; //active layer 645 document.layers[layi].visibility = "hide"; 646 document.layers[layiact].visibility = "hide"; 647 } //close the loop 648 document.layers["bglayer"].visibility = "hide"; 649 } //close if 650} // close the function 651 652/* clear navigation with function overloading */ 653function clearNSSubNavi() 654{ 655 setClearNSSubLayer(main_sub_cat_length); 656} // close the function 657 658function onCurrentNSSubNavis(tar_navis, status, url_name, url_tgt) 659{ 660 current_page_id = tar_navis.substr(8); //current page id 661 current_url_status = status; //current url status 662 current_url_name = url_name; //current url name 663 current_url_tgt = url_tgt; //current url target ( '' / 'n' ) 664 665 for(var i=0;i<f_str_dyn_sub_list.length;i++) 666 { //starts for -1 loop 667 var lay = f_str_dyn_sub_list[i]; //array 668 var layer_active = 'act_' + lay; //array active 669 if(layer_active == tar_navis) 670 { 671 document.layers[lay].visibility = 'hide'; 672 document.layers[layer_active].visibility = 'show'; 673 } 674 else 675 { 676 document.layers[lay].visibility = 'show'; 677 document.layers[layer_active].visibility = 'hide'; 678 } 679 } //close for-1 loop 680} 681/****************************** Close list of NS functions ****************************/ 682 683/****************************** Starts list of IE functions *****************************/ 684/*set sub navigations for dummy operation*/ 685function setIEAllSubNavis() 686{ 687 var l_str_data; //data 688 var properties; //properties 689 var active_layer; //active layer 690 var l_str_arr_single_string;
690 //single string 691 document.write("<div id='subdesktop' style='visibility:hidden;background:transparent; position:absolute; clip:auto; top:0; left:0; height:0; width:0;' onMouseover='onIEClearSubs()' onMouseout='this.style.visibility=\"hidden\";onIEClearSubs();'> </div>"); 692 document.write("<div id='bglayer' style='visibility:hidden;background:transparent; position:absolute; clip:auto; top:0; left:0; height:0; width:0;' onMouseover='' onMouseout=''> </div>"); 693 694 for(var i=0;i<main_sub_cat_length;i++) 695 { //starts for loop - run navis 696 properties = main_sub_cat_arr[i].split(':'); 697 active_layer = 'act_'+ properties[1]; 698 l_str_data = ''; 699 l_str_arr_single_string = getNoStrings(properties[2]); 700 var lay_ext = main_sub_cat_ext_arr[i].split("::"); //array 701 for(var k=0;k<l_str_arr_single_string.length;k++) //inner loop - for split indiviual strings from string 702 l_str_data += l_str_arr_single_string[k] + ' '; 703 document.write("<div id='" + properties[1] + "' style=' " +cursorType+" visibility:hidden; background:transparent; position:absolute; border-style:outset;border-width:1px; clip:auto; top:535; left:0; height:0; width:0;background-image: url("+open_scroll_img+");' onMouseover='getActiveNavi(\""+ active_layer +"\",this)' onMouseout=''>" + l_str_stable_starts + l_str_data + l_str_table_close + "</div>"); 704 document.write("<div id='" + active_layer + "' style=' " +cursorType+" visibility:hidden; background:transparent; position:absolute; border-style:inset;border-width:1px; clip:auto; top:535; left:0; height:0; width:0;background-image: url("+ open_static_img +");' onMouseover='onCurrentIEsubNavis(\"" + active_layer + "\",\"" + properties[3] + "\",\"" + lay_ext[1] + "\",\"" + lay_ext[2] + "\");' onMouseout='getActiveNavi(\""+ properties[1] +"\",this);'>"+ l_str_dtable_starts +l_str_data + l_str_table_close +"</div>"); 705 } //close the for loop 706 clearIENavis(); 707} //close the function 708 709/*set sub navigations for dummy operation*/ 710function setGeckoAllSubNavis() 711{ 712 var l_str_data; //data 713 var properties; //properties 714 var active_layer; //active layer 715 var l_str_arr_single_string; //single string 716 document.write("<div id='subdesktop' style='visibility:hidden;background:transparent; position:absolute; clip:auto; top:0; left:0; height:0; width:0;' onMouseover='onGeckoClearSubs();onGeckoClearSubsVertical();' onMouseout='this.style.visibility=\"hidden\";onGeckoClearSubs();onGeckoClearSubsVertical();'> </div>"); 717 document.write("<div id='bglayer' style='visibility:hidden;background:transparent; position:absolute; clip:auto; top:0; left:0; height:0; width:0;' onMouseover='' onMouseout=''> </div>"); 718 719 for(var i=0;i<main_sub_cat_length;i++) 720 { //starts for loop - run navis 721 properties = main_sub_cat_arr[i].split(':'); 722 active_layer = 'act_'+ properties[1]; 723 l_str_data = ''; 724 l_str_arr_single_string = getNoStrings(properties[2]); 725 var lay_ext = main_sub_cat_ext_arr[i].split("::"); //array 726 for(var k=0;k<l_str_arr_single_string.length;k++) //inner loop - for split indiviual strings from string 727 l_str_data += l_str_arr_single_string[k] + ' '; 728 document.write("<div id='" + properties[1] + "' style=' " +cursorType+" visibility:hidden; background:transparent; position:absolute; border-style:outset;border-width:1px; clip:auto; top:535; left:0; height:0; width:0;background-image: url("+open_scroll_img+");' onMouseover='getActiveGeckoNavi(\""+ active_layer +"\",this)' onMouseout=''>" + l_str_stable_starts + l_str_data + l_str_table_close + "</div>"); 729 document.write("<div id='" + active_layer + "' style=' " +cursorType+" visibility:hidden; background:transparent; position:absolute; border-style:inset;border-width:1px; clip:auto; top:535; left:0; height:0; width:0;background-image: url("+ open_static_img +");' onMouseover='onCurrentGeckosubNavis(\"" + active_layer + "\",\"" + properties[3] + "\",\"" + lay_ext[1] + "\",\"" + lay_ext[2] + "\");' onMouseout='getActiveGeckoNavi(\""+ properties[1] +"\",this);'>"+ l_str_dtable_starts +l_str_data + l_str_table_close +"</div>"); 730 } //close the for loop 731// clearGeckoNavis(); 732} //close the function 733 734function clearIENavis() 735{ 736 for(var i=0;i<main_sub_cat_length;i++) 737 { //starts for loop - run navis 738 properties = main_sub_cat_arr[i].split(':'); 739 active_layer = 'act_' + properties[1]; 740 document.all.item(active_layer).style.visibility = 'hidden'; 741 document.all.item(properties[1]).style.visibility = 'hidden'; 742 } //close the for loop 743 bglayer.style.visibility = 'hidden'; 744} //close the function 745 746function clearGeckoNavis() 747{ 748 for(var i=0;i<main_sub_cat_length;i++) 749 { //starts for loop - run navis 750 properties = main_sub_cat_arr[i].split(':'); 751 active_layer = 'act_' + properties[1]; 752 document.getElementById(active_layer).style.visibility = 'hidden'; 753 document.getElementById(properties[1]).style.visibility = 'hidden'; 754 } //close the for loop 755 document.getElementById('bglayer').style.visibility = 'hidden'; 756} //close the function 757 758function setIESubNavisList(c_cat,index,left,top,height,width) 759{ 760 var l_int_left = left; //left 761 var l_int_top = top; //top 762 clearIENavis(); 763 var l_str_arr_temp = getSubNavisOnly(c_cat); //get acti navis 764 f_str_dyn_sub_list = l_str_arr_temp; 765 var l_int_inc_top = l_int_top; //top 766 var l_int_bg_height = (l_str_arr_temp.length)*(height+1)+Math.round((l_str_arr_temp.length)*(1.5)); //get length 767 var l_int_mheight_inc = 0; 768 for(var n=0;n<l_str_arr_temp.length;n++) 769 { //starts for -1 loop 770 document.all.item(l_str_arr_temp[n]).style.top = l_int_inc_top; 771 document.all.item(l_str_arr_temp[n]).style.left = l_int_left; 772 document.all.item(l_str_arr_temp[n]).style.width = width; 773 document.all.item(l_str_arr_temp[n]).style.height = height; 774 document.all.item(l_str_arr_temp[n]).style.visibility = 'visible'; 775 l_int_inc_top += height + 2; 776 l_int_mheight_inc += height; 777 } //close for-1 loop 778 if(l_str_arr_temp.length > 0) //true-more than zero navis 779 setIEOutsideLayer(l_int_left,l_int_inc_top,width,height,l_int_top,l_int_bg_height); 780} //close the function 781 782function setGeckoSubNavisList(c_cat,index,left,top,height,width) 783{ 784 var l_int_left = left; //left 785 var l_int_top = top; //top 786 clearGeckoNavis(); 787 var l_str_arr_temp = getSubNavisOnly(c_cat); //get acti navis 788 f_str_dyn_sub_list = l_str_arr_temp; 789 var l_int_inc_top = l_int_top; //top 790 var l_int_bg_height = (l_str_arr_temp.length)*(height+1)+Math.round((l_str_arr_temp.length)*(1.5)); //get length 791 var l_int_mheight_inc = 0; 792 for(var n=0;n<l_str_arr_temp.length;n++) 793 { //starts for -1 loop 794 document.getElementById(l_str_arr_temp[n]).style.top = l_int_inc_top; 795 document.getElementById(l_str_arr_temp[n]).style.left = l_int_left; 796 document.getElementById(l_str_arr_temp[n]).style.width = width; 797 document.getElementById(l_str_arr_temp[n]).style.height = height; 798 document.getElementById(l_str_arr_temp[n]).style.visibility = 'visible'; 799 800 document.getElementById('b_'+l_str_arr_temp[n]).style.width = width; 801 document.getElementById('img_'+l_str_arr_temp[n]).style.width = width; 802 803 l_int_inc_top += height + 2; 804 l_int_mheight_inc += height; 805 } //close for-1 loop 806 807 document.getElementById('bglayer').style.width = width; 808 document.getElementById('subdesktop').style.width = width; 809 810 811 812 if(l_str_arr_temp.length > 0) //true-more than zero navis 813 setGeckoOutsideLayer(l_int_left,l_int_inc_top,width,height,l_int_top,l_int_bg_height); 814} //close the function 815 816function getActiveNavi(des_navi_name,curr_navi_object) 817{ 818 current_page_id = ""; 819 current_url_status = ""; 820 current_url_name = ""; //current url for external link 821 current_url_tgt = ""; //current url target 822 823 document.all.item(des_navi_name).style.top = parseInt(curr_navi_object.style.top); 824 document.all.item(des_navi_name).style.left = parseInt(curr_navi_object.style.left); 825 document.all.item(des_navi_name).style.width = parseInt(curr_navi_object.style.width); 826 document.all.item(des_navi_name).style.height = parseInt(curr_navi_object.style.height); 827 curr_navi_object.style.visibility = 'hidden' 828 document.all.item(des_navi_name).style.visibility = 'visible'; 829} // close the function 830 831function getActiveGeckoNavi(des_navi_name,curr_navi_object) 832{ 833 current_page_id = ""; 834 current_url_status = ""; 835 current_url_name = ""; //current url for external link 836 current_url_tgt = ""; //current url target 837 838 document.getElementById(des_navi_name).style.top = parseInt(curr_navi_object.style.top); 839 document.getElementById(des_navi_name).style.left = parseInt(curr_navi_object.style.left); 840 document.getElementById(des_navi_name).style.width = parseInt(curr_navi_object.style.width); 841 document.getElementById(des_navi_name).style.height = parseInt(curr_navi_object.style.height); 842 curr_navi_object.style.visibility = 'hidden' 843 document.getElementById(des_navi_name).style.visibility = 'visible'; 844} // close the function 845 846function whenIEMouseOver(id, url, pos, url_name, url_tgt) 847{ 848 current_page_id = id; 849 current_url_status = url; 850 current_url_name = url_name; //current url name 851 current_url_tgt = url_tgt; //current url target ( '' / 'n' ) 852} //close the function 853function whenIEMouseOut() 854{ 855 current_page_id = ''; 856 current_url_status = ''; 857 current_url_name = ''; //current url for external link 858 current_url_tgt = ''; //current url target 859} //close the function 860 861/*set whenmouseover layer onIE formatted layers */ 862function setIEOutsideLayer(left,top,width,height,default_top,total_height) 863{ 864 bglayer.style.top = default_top-1; 865 bglayer.style.left = left-1; 866 bglayer.style.width = width+2; 867 bglayer.style.height = total_height; 868 bglayer.style.visibility = 'visible'; 869 bglayer.style.background = '#b2b2b2'; 870 871 subdesktop.style.top = default_top - height; 872 if(location_identifier == 'l') 873 subdesktop.style.left = left; //subdesktop.style.left = left - (width/2); 874 else if(location_identifier == 'r') 875 subdesktop.style.left = left-(width/2); 876 else if(vertical_location == 'l') 877 subdesktop.style.left = left; //subdesktop.style.left = left - (width/2); 878 else if(vertical_location == 'r') 879 subdesktop.style.left = left-(width/2); 880 subdesktop.style.width = width + (width/2); 881 subdesktop.style.height = total_height + (height*2); 882 subdesktop.style.visibility = 'visible'; 883// document.all.item('subdesktop').style.background = '#ccc000'; 884} //close the function 885 886function setGeckoOutsideLayer(left,top,width,height,default_top,total_height) 887{ 888 document.getElementById('bglayer').style.top = eval(default_top)-1; 889 document.getElementById('bglayer').style.left = eval(left)-1; 890 document.getElementById('bglayer').style.width = eval(width)+2; 891 document.getElementById('bglayer').style.height = eval(total_height); 892 document.getElementById('bglayer').style.visibility = 'visible'; 893 document.getElementById('bglayer').style.background = '#b2b2b2'; 894 895 document.getElementById('subdesktop').style.top = default_top - height; 896 if(location_identifier == 'l') 897 document.getElementById('subdesktop').style.left = left; //subdesktop.style.left = left - (width/2); 898 else if(location_identifier == 'r') 899 document.getElementById('subdesktop').style.left = left-(width/2); 900 else if(vertical_location == 'l') 901 document.getElementById('subdesktop').style.left = left; //subdesktop.style.left = left - (width/2); 902 else if(vertical_location == 'r') 903 document.getElementById('subdesktop').style.left = left-(width/2); 904 document.getElementById('subdesktop').style.width = width + (width/2); 905 document.getElementById('subdesktop').style.height = total_height + (height*2); 906 document.getElementById('subdesktop').style.visibility = 'visible'; 907// document.getElementById('subdesktop').style.background = '#ccc000'; 908} //close the function 909 910 911function getKeyDown() 912{ 913 914/********** sg16.0 changes ************/ 915 916 917 var l_obj_file_list = sub_navig_file_name.split("::"); 918 var l_str_page_id =""; // get the page i d 919 var l_str_file_name =""; // get the file name 920 var _temp_index =0; 921 var current_file_name =current_page_id + '.html'; 922 for(var i =0; i < l_obj_file_list.length; i++) 923 { 924 l_str_file_name = l_obj_file_list[i]; 925 926 if(l_str_file_name.indexOf(":") >0 ) 927 { 928 _temp_index = l_str_file_name.indexOf(":"); 929 l_str_page_id = l_str_file_name.substring(0,_temp_index); 930 l_str_file_name = l_str_file_name.substring(_temp_index+1,l_str_file_name.length); 931 if(current_page_id == l_str_page_id) 932 current_file_name =l_str_file_name; 933 } 934 } 935 936 937 /********** sg16.0 changes ************/ 938 939 940 if (current_url_status == 'y' && current_page_id != '') //cursor points to page id 941 { 942 location.href = current_file_name; 943 } 944 else if (current_url_status == 'e' && current_url_name != '') //cursor points to page name 945 { 946 if (current_url_tgt == 'y') // open in new window 947 { 948 window.open(replaceTitletoComma(current_url_name)); 949 getTop(); 950 } 951 else 952 { 953 location.href = replaceTitletoComma(current_url_name); 954 } 955 } 956 else if (current_url_status == '' && current_page_id == '') // false - empty 957 { 958 if(_is_gecko_bowser == STR_YES) 959 clearGeckoNavis(); 960 else 961 clearIENavis(); 962 } 963} //close the function 964 965function onCurrentIEsubNavis(tar_navis, status, url_name, url_tgt) 966{ 967 current_page_id = tar_navis.substr(8); 968 current_url_status = status; 969 current_url_name = url_name; //current url name 970 current_url_tgt = url_tgt; //current url target ( '' / 'n' ) 971 972 for(var n=0;n < f_str_dyn_sub_list.length;n++) 973 { //starts for -1 loop 974 var l_str_scroll_layer = 'act_'+ f_str_dyn_sub_list[n]; 975 var l_str_static_layer = f_str_dyn_sub_list[n]; 976 if(tar_navis == l_str_scroll_layer) 977 { 978 document.all.item(l_str_scroll_layer).style.visibility = 'visible'; 979 document.all.item(l_str_static_layer).style.visibility = 'hidden'; 980 } 981 else 982 { 983 document.all.item(l_str_scroll_layer).style.visibility = 'hidden'; 984 document.all.item(l_str_static_layer).style.visibility = 'visible'; 985 } 986 } //close for-1 loop 987} 988 989function onCurrentGeckosubNavis(tar_navis, status, url_name, url_tgt) 990{ 991 current_page_id = tar_navis.substr(8); 992 current_url_status = status; 993 current_url_name = url_name; //current url name 994 current_url_tgt = url_tgt; //current url target ( '' / 'n' ) 995 996 for(var n=0;n < f_str_dyn_sub_list.length;n++) 997 { //starts for -1 loop 998 var l_str_scroll_layer = 'act_'+ f_str_dyn_sub_list[n]; 999 var l_str_static_layer = f_str_dyn_sub_list[n]; 1000 if(tar_navis == l_str_scroll_layer) 1001 { 1002 document.getElementById(l_str_scroll_layer).style.visibility = 'visible'; 1003 document.getElementById(l_str_static_layer).style.visibility = 'hidden'; 1004 } 1005 else 1006 { 1007 document.getElementById(l_str_scroll_layer).style.visibility = 'hidden'; 1008 document.getElementById(l_str_static_layer).style.visibility = 'visible'; 1009 } 1010 } //close for-1 loop 1011} 1012 1013function onIEClearSubs() 1014{ 1015 for(var n=0;n <f_str_dyn_sub_list.length;n++) 1016 { //starts for -1 loop 1017 var l_str_scroll_layer = 'act_'+ f_str_dyn_sub_list[n]; 1018 var l_str_static_layer = f_str_dyn_sub_list[n]; 1019 document.all.item(l_str_scroll_layer).style.visibility = 'hidden'; 1020 document.all.item(l_str_static_layer).style.visibility = 'hidden'; 1021 } //close for-1 loop 1022 bglayer.style.visibility = 'hidden'; 1023} 1024 1025function onGeckoClearSubs() 1026{ 1027 for(var n=0;n <f_str_dyn_sub_list.length;n++) 1028 { //starts for -1 loop 1029 var l_str_scroll_layer = 'act_'+ f_str_dyn_sub_list[n]; 1030 var l_str_static_layer = f_str_dyn_sub
1030_list[n]; 1031 document.getElementById(l_str_scroll_layer).style.visibility = 'hidden'; 1032 document.getElementById(l_str_static_layer).style.visibility = 'hidden'; 1033 } //close for-1 loop 1034 document.getElementById('bglayer').style.visibility = 'hidden'; 1035} 1036function compareNumbers(a, b) 1037{ 1038 return a - b; 1039} 1040 1041function replaceTitletoComma(externaltext) 1042{ 1043 externaltext = externaltext.replace(/\~~~/g, ","); 1044 return externaltext; 1045} 1046 1047 1048function setGeckoSubNavisListVertical(c_cat,index,left,top) 1049{ 1050 var l_int_left = left; //left 1051 var l_int_top = top; //top 1052 onGeckoClearSubsVertical(); 1053 var l_str_arr_temp = getSubNavisOnly(c_cat); //get acti navis 1054 f_str_dyn_sub_list = l_str_arr_temp; 1055 var l_int_inc_top = l_int_top; //top 1056 var l_int_mheight_inc = 0; 1057 //var width = l_img_width_list[getImageIndex(c_cat)]; 1058 var width = eval(subNavigWidth)+5; 1059 var height = l_img_height; 1060 var l_int_bg_height = (l_str_arr_temp.length)*(height+1) + (l_str_arr_temp.length)*(1.5); //get length 1061 //if(l_scr_total_width > 1024) 1062 //l_int_left1=getSuitXposi(left); 1063 for(var n=0;n<l_str_arr_temp.length;n++) 1064 { //starts for -1 loop 1065 var l_int_snavi_width = width; 1066 var l_int_snavi_left = l_int_left; 1067 var l_int_snavi_total = eval(l_int_left) + eval(width); 1068 document.getElementById(l_str_arr_temp[n]).style.top = l_int_inc_top; 1069 document.getElementById(l_str_arr_temp[n]).style.left = l_int_left; 1070 document.getElementById(l_str_arr_temp[n]).style.width = width; 1071 document.getElementById(l_str_arr_temp[n]).style.height = height; 1072 document.getElementById(l_str_arr_temp[n]).style.visibility = 'visible'; 1073 document.getElementById('b_'+l_str_arr_temp[n]).style.top = l_int_inc_top; 1074 document.getElementById('b_'+l_str_arr_temp[n]).style.left = l_int_left; 1075 document.getElementById('b_'+l_str_arr_temp[n]).style.width = width; 1076 document.getElementById('b_'+l_str_arr_temp[n]).style.height = height; 1077 document.getElementById('b_'+l_str_arr_temp[n]).style.visibility = 'visible'; 1078 document.getElementById('img_'+l_str_arr_temp[n]).style.top = l_int_inc_top; 1079 document.getElementById('img_'+l_str_arr_temp[n]).style.left = l_int_left; 1080 document.getElementById('img_'+l_str_arr_temp[n]).style.width = width; 1081 document.getElementById('img_'+l_str_arr_temp[n]).style.height = height; 1082 document.getElementById('img_'+l_str_arr_temp[n]).style.visibility = 'visible'; 1083 1084 l_int_inc_top += height + 2; 1085 l_int_mheight_inc += height; 1086 } //close for-1 loop 1087 if(l_str_arr_temp.length > 0) //true-more than zero navis 1088 setGeckoOutsideLayerVertical(l_int_left,l_int_inc_top,width,height,l_int_top,l_int_bg_height); 1089} //close the function 1090 1091/*set whenmouseover layer onIE formatted layers */ 1092function setGeckoOutsideLayerVertical(left,top,width,height,default_top,total_height) 1093{ 1094 document.getElementById('bglayer').style.top = default_top - 2; 1095 document.getElementById('bglayer').style.left = left - 2; 1096 document.getElementById('bglayer').style.width = eval(width) + 4; 1097 document.getElementById('bglayer').style.height = total_height + 2; 1098 document.getElementById('bglayer').style.background = '#cccccc'; 1099 document.getElementById('bglayer').style.visibility = 'visible'; 1100 if(horizontal_location =='b' || add_subnavig_type == 'bl' || add_subnavig_type == 'br') 1101 document.getElementById('subdesktop').style.top = default_top - (height+Math.round(height/2)); 1102 else if(horizontal_location =='t') 1103 document.getElementById('subdesktop').style.top = default_top; 1104 1105 var l_int_sdesk_left = left - Math.round(width/4); 1106 document.getElementById('subdesktop').style.left = l_int_sdesk_left; 1107 var l_int_sdesk_width = eval(width) + eval(Math.round(width/2)); 1108 document.getElementById('subdesktop').style.width = l_int_sdesk_width; 1109 if(horizontal_location =='b' || add_subnavig_type == 'bl' || add_subnavig_type == 'br') 1110 document.getElementById('subdesktop').style.height = total_height + (height*2) - Math.round(height/2); 1111 else if(horizontal_location =='t') 1112 document.getElementById('subdesktop').style.height = total_height + (height*2); 1113 1114 var l_max_pixel_left = l_int_sdesk_left + l_int_sdesk_width; 1115 document.getElementById('subdesktop').style.visibility = 'visible'; 1116// document.getElementById('subdesktop').style.background = '#cccccc'; 1117} //close the function 1118 1119function getImageIndex(main_cat) 1120{ 1121 var l_arr_temp_sub = new Array(); 1122 var l_int_count = 0; 1123 var l_int_layer_noofchars = 0; 1124 var l_int_layer_img_index = 0; 1125 if(l_img_scroll_list.length ==3) 1126 { 1127 for(var i=0;i<main_sub_cat_length;i++) 1128 { //starts for loop - 1129 var l_arr_properties = main_sub_cat_arr[i].split(':'); 1130 if(l_arr_properties[0] == main_cat)
1131 l_arr_temp_sub[l_int_count++] = l_arr_properties[2]; 1132 } 1133 for(var j=0;j<l_arr_temp_sub.length;j++) 1134 { //starts for loop - run navis 1135 var l_int_len = l_arr_temp_sub[j].length; 1136 if(l_int_layer_noofchars < l_int_len) 1137 l_int_layer_noofchars = l_int_len; 1138 } 1139 if(l_int_layer_noofchars<8) //if 7chars sub navis 1140 l_int_layer_img_index = 0; 1141 else if(l_int_layer_noofchars<12) 1142 l_int_layer_img_index = 1; 1143 else if(l_int_layer_noofchars>11) 1144 l_int_layer_img_index = 2; 1145 } 1146 else if(l_img_scroll_list.length == 1) 1147 { 1148 l_int_layer_img_index = 0; 1149 } 1150 return l_int_layer_img_index; 1151} 1152 1153function onGeckoClearSubsVertical() 1154{ 1155 for(var n=0;n <f_str_dyn_sub_list.length;n++) 1156 { //starts for -1 loop 1157 var l_str_scroll_layer = 'act_'+ f_str_dyn_sub_list[n]; 1158 var l_str_static_layer = f_str_dyn_sub_list[n]; 1159 var l_str_inamer_scr = 'img_' + l_str_scroll_layer; 1160 var l_str_bname_scr = 'b_' + l_str_scroll_layer; 1161 var l_str_inamer_stc = 'img_' + l_str_static_layer; 1162 var l_str_bname_stc = 'b_' + l_str_static_layer; 1163 1164 document.getElementById(l_str_scroll_layer).style.visibility = 'hidden'; 1165 document.getElementById(l_str_static_layer).style.visibility = 'hidden'; 1166 document.getElementById(l_str_inamer_scr).style.visibility = 'hidden'; 1167 document.getElementById(l_str_inamer_stc).style.visibility = 'hidden'; 1168 document.getElementById(l_str_bname_scr).style.visibility = 'hidden'; 1169 document.getElementById(l_str_bname_stc).style.visibility = 'hidden'; 1170 } //close for-1 loop 1171 document.getElementById('bglayer').style.visibility = 'hidden'; 1172 f_str_dyn_sub_list = new Array(); 1173} 1174 1175/*set sub navigations for gecko's dummy operation*/ 1176function setGeckoAllSubNavisVertical() 1177{ 1178 var l_str_data; //data 1179 var properties; //properties 1180 var active_layer; //active layer 1181 var l_str_arr_single_string; //single string 1182 document.write("<div id='subdesktop' style='visibility:hidden; background:transparent; position:absolute; clip:auto; top:0; left:0; height:0; width:0;' onMouseout='whenIEParamClear();this.style.visibility=\"hidden\";'> </div>"); 1183 document.write("<div id='bglayer' style='visibility:hidden; background:transparent; position:absolute; clip:auto; top:0; left:0; height:0; width:0;' onMouseover='whenIEParamClear()' onMouseout=''> </div>"); 1184 //document.write("<div id='subdesktop' style='visibility:hidden; background:transparent; position:absolute; clip:auto; top:0; left:0; height:0; width:0;' onMouseover='onGeckoClearSubs()' onMouseout='whenIEParamClear();this.style.visibility=\"hidden\";onGeckoClearSubs();'> </div>"); 1185 //document.write("<div id='bglayer' style='visibility:hidden; background:transparent; position:absolute; clip:auto; top:0; left:0; height:0; width:0;' onMouseover='whenIEParamClear()' onMouseout=''> </div>"); 1186 1187 //setGeckoAllSubNavis(); 1188 1189 for(var i=0;i<main_sub_cat_length;i++) 1190 { //starts for loop - run navis 1191 properties = main_sub_cat_arr[i].split(':'); 1192 active_layer = 'act_'+ properties[1]; 1193 l_str_data = ''; 1194 l_str_arr_single_string = getNoStrings(properties[2]); 1195 var lay_ext = main_sub_cat_ext_arr[i].split("::"); //array 1196 for(var k=0;k<l_str_arr_single_string.length;k++) //inner loop - for split indiviual strings from string 1197 l_str_data += l_str_arr_single_string[k] + ' '; 1198 1199 var l_img_scroll_value = l_img_scroll_list[getImageIndex(properties[0])]; 1200 var l_img_static_value = l_img_static_list[getImageIndex(properties[0])]; 1201 var l_img_width_value = l_img_width_list[getImageIndex(properties[0])]; 1202 var l_img_height_value = l_img_height; 1203 1204 var l_str_table_1 = "<table width='" + l_img_width_value + "' height='" + l_img_height_value + "' border='0' cellspacing='0' cellpadding='0'><tr><td valign='" + l_str_ver_align + "' align='" + title_align + "'><font color='" + default_title_color + "' face='" + title_style + "' class='titlesize'> "; //starts table 1 1205 var l_str_table_0 = "<table width='" + l_img_width_value + "' height='" + l_img_height_value + "' border='0' cellspacing='0' cellpadding='0'><tr><td valign='" + l_str_ver_align + "' align='"+ title_align +"'><font color='" + scroll_title_color + "' face='" + title_style + "' class='titlesize'> "; //starts table 2 1206 var l_str_table_00 = " </font></td></tr></table>"; //close the table 1207 1208 document.write("<div id='img_" + properties[1] + "' style=' " +cursorType+" visibility:hidden; background:transparent; position:absolute; clip:auto; top:535; left:0; height:0; width:0;z-index:1;' onMouseover='' onMouseout=''><img src='"+ l_img_static_value +"' height="+l_img_height_value+" width="
1208+ l_img_width_value + " alt='sample'></div>"); 1209 document.write("<div id='" + properties[1] + "' style=' " +cursorType+" visibility:hidden; background:transparent; position:absolute; clip:auto; top:535; left:0; height:0; width:0;z-index:2;overflow:hidden;background-image: url("+open_scroll_img+");' onMouseover='getActiveGeckoNavi(\""+ active_layer +"\",this)' onMouseout=''>" + l_str_table_0 + l_str_data + l_str_table_00 + "</div>"); 1210 1211 document.write("<div id='b_" + properties[1] + "' style=' " +cursorType+" visibility:hidden; background:transparent; position:absolute; clip:auto; top:535; left:0; height:0; width:0;z-index:3;' onMouseover='getGeckoActiveNavi(\""+properties[1]+"\",\""+ active_layer +"\",this)' onMouseout=''>" + l_str_table_1 +"" + l_str_table_00 + "</div>"); 1212 1213 document.write("<div id='img_" + active_layer + "' style=' " +cursorType+" visibility:hidden; background:transparent; position:absolute; clip:auto; top:535; left:0; height:0; width:0;z-index:1;' onMouseover='' onMouseout=''><img src='"+ l_img_scroll_value +"' height="+l_img_height_value+" width=" + l_img_width_value +" alt='sample'></div>"); 1214 document.write("<div id='" + active_layer + "' style=' " +cursorType+" visibility:hidden; background:transparent; position:absolute; clip:auto; top:535; left:0; height:0; width:0;z-index:2;overflow:hidden;background-image: url("+ open_static_img +");' onMouseover='onCurrentGeckosubNavis(\"" + active_layer + "\",\"" + properties[3] + "\",\"" + lay_ext[1] + "\",\"" + lay_ext[2] + "\");' onMouseout='getActiveGeckoNavi(\""+ properties[1] +"\",this);'>"+ l_str_table_1 +l_str_data + l_str_table_00 +"</a></div>"); 1215 document.write("<div id='b_" + active_layer + "' style=' " +cursorType+" visibility:hidden; background:transparent; position:absolute; clip:auto; top:535; left:0; height:0; width:0;z-index:3;' onMouseover='onCurrentGeckosubNavis(\"" + active_layer + "\",\"" + properties[3] + "\",\"" + lay_ext[1] + "\",\"" + lay_ext[2] + "\");' onMouseout='getGeckoActiveNavi(\""+active_layer+"\",\""+ properties[1] +"\",this);'>"+ l_str_table_1 +"" + l_str_table_00 +"</div>"); 1216 } //close the for loop 1217 1218 1219// clearGeckoNavis(); 1220} //close the function 1221 1222function whenIEParamClear() 1223{ 1224 current_page_id = ''; 1225 current_url_status = ''; 1226 current_url_name = ''; //current url for external link 1227 current_url_tgt = ''; //current url target 1228} 1229 1230function getGeckoActiveNavi(curr_navi_name,des_navi_name,curr_navi_object) 1231{ 1232 current_page_id = ""; 1233 current_url_status = ""; 1234 current_url_name = ""; //current url for external link 1235 current_url_tgt = ""; //current url target 1236 1237 var des_navi_blk_name = 'b_' + des_navi_name; 1238 var des_navi_img_name = 'img_' + des_navi_name; 1239 var cur_navi_img_name = 'img_' + curr_navi_name; 1240 1241 document.getElementById(des_navi_name).style.top = parseInt(curr_navi_object.style.top); 1242 document.getElementById(des_navi_name).style.left = parseInt(curr_navi_object.style.left); 1243 document.getElementById(des_navi_name).style.width = parseInt(curr_navi_object.style.width); 1244 document.getElementById(des_navi_name).style.height = parseInt(curr_navi_object.style.height); 1245 document.getElementById(des_navi_name).style.visibility = 'visible'; 1246 1247 document.getElementById(des_navi_blk_name).style.top = parseInt(curr_navi_object.style.top); 1248 document.getElementById(des_navi_blk_name).style.left = parseInt(curr_navi_object.style.left); 1249 document.getElementById(des_navi_blk_name).style.width = parseInt(curr_navi_object.style.width); 1250 document.getElementById(des_navi_blk_name).style.height = parseInt(curr_navi_object.style.height); 1251 document.getElementById(des_navi_blk_name).style.visibility = 'visible'; 1252 1253 document.getElementById(des_navi_img_name).style.top = parseInt(curr_navi_object.style.top); 1254 document.getElementById(des_navi_img_name).style.left = parseInt(curr_navi_object.style.left); 1255 document.getElementById(des_navi_img_name).style.width = parseInt(curr_navi_object.style.width); 1256 document.getElementById(des_navi_img_name).style.height = parseInt(curr_navi_object.style.height); 1257 document.getElementById(des_navi_img_name).style.visibility = 'visible'; 1258 1259 curr_navi_object.style.visibility = 'hidden' 1260 document.getElementById(curr_navi_name).style.visibility = 'hidden'; 1261 document.getElementById(cur_navi_img_name).style.visibility = 'hidden'; 1262} // close the function 1263 1264//Hiding sub navigation displayed 1265function hideSubNavig() 1266{ 1267 var l_str_arr_temp = getSubNavisOnly(currentCat); //get acti navis 1268 for(var n=0;n<l_str_arr_temp.length;n++) 1269 { //starts for -1 loop 1270 1271 document.getElementById(l_str_arr_temp[n]).style.visibility = 'hidden'; 1272 if(_is_gecko_bowser == STR_YES) 1273 { 1274 document.getElementById('b_'+l_str_arr_temp[n]).style.visibility = 'hidden'; 1275 document.getElementById('img_'+l_str_arr_temp[n]).style.visibility = 'hidden'; 1276 } 1277 } //close for-1 loop 1278 1279 document.getElementById('bglayer').style.visibility = 'hidden'; 1280 document.getElementById('subdesktop').style.visibility = 'hidden'; 1281} 1282 1283function hidePrevSubNavig(cat_id) 1284{ 1285 var l_str_arr_temp = getSubNavisOnly(cat_id); //get acti navis 1286 for(var n=0;n<l_str_arr_temp.length;n++) 1287 { //starts for -1 loop 1288 1289 document.getElementById(l_str_arr_temp[n]).style.visibility = 'hidden'; 1290 if(_is_gecko_bowser == STR_YES) 1291 { 1292 document.getElementById('b_'+l_str_arr_temp[n]).style.visibility = 'hidden'; 1293 document.getElementById('img_'+l_str_arr_temp[n]).style.visibility = 'hidden'; 1294 } 1295 } //close for-1 loop 1296 1297 document.getElementById('bglayer').style.visibility = 'hidden'; 1298 document.getElementById('subdesktop').style.visibility = 'hidden'; 1299} 1300 1301if(_is_gecko_bowser == STR_YES) 1302{ 1303//clicking on the document, initiate method for hiding sub navigation displayed 1304 document.addEventListener("mousedown", hideSubNavig, false); 1305}
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.