/******* Original JS ******/ var isVertical = false; var l_scr_total_width = screen.width; var add_subnavig_type = ''; var subng_variation_flag = "OLDDESIGN"; var navigation_align = "hp_design_align"; var horizontal_location = "t"; var vertical_location = "t"; var xUA=navigator.userAgent.toLowerCase(); xIE4=xUA.indexOf('msie 4')!=-1; xIE5=xUA.indexOf('msie 5')!=-1; xIE6=xUA.indexOf('msie 6')!=-1; var cursorType= ""; if(xIE4 || xIE5) cursorType = 'CURSOR:HAND; ' ; else cursorType = 'cursor: hand; cursor: pointer; '; // General Data var browser_type = navigator.appName; //browser type var main_cat_arr = main_cat.split("::"); //main navis array var main_cat_length = main_cat_arr.length; //length var main_sub_cat_arr = sub_cat.split(","); //sub navis array var main_sub_cat_length = main_sub_cat_arr.length; //sub navis length var main_sub_cat_ext_arr = sub_cat_ext.split(","); // sub navis array var main_sub_cat_ext_length = main_sub_cat_ext_arr.length; // sub navis length var STR_IE = "Microsoft Internet Explorer"; //ie var STR_NS = "Netscape"; //netscape var STR_GECKO = "Gecko"; //gecko var STR_YES = "yes"; //yew var STR_NO = "no"; //no var STR_OPERA = "Opera"; //Opera var f_str_dyn_sub_list = new Array(); // NS Properties var ns_sub_def_width ; //width var ns_sub_def_height ; //height var ns_sub_def_left; //left var ns_sub_start_top; //top var ns_sub_inc_top; //increment top var ns_top_variance; // variance //IE Properties var ie_sub_def_width; //width var ie_sub_def_height; //height var ie_sub_def_left; //left var ie_sub_start_top; //top var ie_sub_inc_top; //increment top var ie_down_key_status; //key status var ie_current_hid_index; //index //sub layer position inIE var ie_poistion_details = new Array(); //position list //BACKGROUND IMAGE var img_over = ""; //image over var img_out = ""; //image out; // Sub navigation enable var bln_navigation_state = true; //state // dyn layers height height var ns_layers_height; //height // common top & left var dyn_top; //top var dyn_left; //left //current page id & url status var current_page_id = ""; //current page id var current_url_status = ""; //current url var current_url_name = ""; //current url name for external link var current_url_tgt = ""; //current url //Identify cell No var current_cell = ""; // cell details document.write(''); // style sheet properties for ns document.write(''); //cell properties var l_str_dtable_starts = "
 "; //starts table 1 var l_str_stable_starts = "
 "; //starts table 2 var l_str_table_close = " 
"; //close the table // for ns layers var l_str_dtable_starts_org = "
 "; //starts table 1 var l_str_stable_starts_org = "
 "; //starts table 2 var _is_gecko_bowser = STR_NO; var _browser_agent_type = navigator.userAgent; if( _browser_agent_type != null && _browser_agent_type.indexOf(STR_GECKO) != -1 ) { _is_gecko_bowser = STR_YES; //alert("in if 1"); } 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) _is_gecko_bowser = STR_YES; if( _browser_agent_type != null && _browser_agent_type.indexOf(STR_OPERA) != -1 && browser_type.indexOf(STR_OPERA) != -1) _is_gecko_bowser = STR_YES; if(browser_type == STR_IE) { //starts if /*** starts sub navigation property ***/ // temp layers setIEAllSubNavis(); document.onmousedown = getKeyDown; /*** close sub navigation property ***/ } // close if else if(_is_gecko_bowser == STR_YES) // check gecko browser { //starts if // temp layers //alert("isVertical "+isVertical); //if(isVertical) //{ setGeckoAllSubNavisVertical(); //} //else //{ //setGeckoAllSubNavis(); //} document.onmousedown = getKeyDown; } // close if else if(browser_type == STR_NS) { //starts else-if /**** starts sub navigation property ****/ document.write("
 
"); document.write("
 
"); for(var i=0;i" + l_str_stable_starts_org + l_str_data + l_str_table_close + ""); // active layers class=borderinclass document.write("" + l_str_dtable_starts_org + l_str_data + l_str_table_close + ""); } //close the for loop document.captureEvents(Event.MOUSEDOWN |Event.MOUSEUP); document.onmouseup = getAction; /**** close sub navigation property ****/ } // close else if /* clear all sublayer in general */ function getTop() { setClearSubLayer(main_sub_cat_length); } //close the function function getSubNavisOnly(main_navi) { var l_str_arr_subnavis = new Array(); //array var l_str_arr_ipnos = new Array(); //array var l_str_arr_result = new Array(); //array var l_int_i = 0; //index for(n=0;n0) { //starts if -non-empyt array l_str_arr_ipnos.sort(); l_str_arr_ipnos.sort(compareNumbers); for(var j=0;j 1024) { if(subng_variation_flag == "OLDDESIGN") // condition to old design { if(screen.width == 1280) // screen resultion to 1280 { if( _broswertype.indexOf("Gecko") != -1 ) l_width_pixel =l_width_pixel + 280; else if( _broswertype.indexOf("MSIE") != -1) l_width_pixel =l_width_pixel + 260; } else if( screen.width ==1152) //screen resultion to 1152 { if( _broswertype.indexOf("Gecko") != -1 ) l_width_pixel =l_width_pixel + 150; else if( _broswertype.indexOf("MSIE") != -1) l_width_pixel =l_width_pixel + 130; } else { l_width_pixel = eval(l+(Math.round(l_int_width/1.255))); } } else if( subng_variation_flag == "NEWDESIGN" )// condtion to new design l_width_pixel =l_width_pixel; else // codition to inner page { if( screen.width == 1280) l_width_pixel = l_width_pixel ; else if(screen.width == 1152 ) l_width_pixel = l_width_pixel ; else l_width_pixel = l_width_pixel ; } // l_width_pixel = eval(l+(Math.round(l_int_width/1.255))); } return l_width_pixel; } function displayMenu(evnt,width,height,nav_pos) { var x=0; var y=0; if(evnt==null) evnt=window.event; var targ; var isIE=!(navigator.userAgent.indexOf("Gecko")!=-1); if(isIE) targ=evnt.srcElement; else targ=evnt.target; //ObjectNode assign select_obj var ObjectNode=targ; //Iterate until ObjectNode is body while(ObjectNode!=null) { //Set x as x+ObjectNode.offsetTop. if(!isNaN(ObjectNode.offsetTop)) y=y+ObjectNode.offsetTop; if(!isNaN(ObjectNode.offsetLeft)) x=x+ObjectNode.offsetLeft; if(ObjectNode.offsetParent) ObjectNode=ObjectNode.offsetParent; else ObjectNode=ObjectNode.parentNode; } //end Iterate until ObjectNode is HTML if(nav_pos == "left") { x+=targ.offsetWidth; x = x - ((targ.offsetWidth/100)*30); } else if(nav_pos == "right") { if(x > 600 ) { x-=width; } else { x+=targ.offsetWidth; x = x - ((targ.offsetWidth/100)*30); } } return x; } function displayMenuy(evnt,width,height,nav_pos) { var x=0; var y=0; if(evnt==null) evnt=window.event; var targ; var isIE=!(navigator.userAgent.indexOf("Gecko")!=-1); if(isIE) targ=evnt.srcElement; else targ=evnt.target; //ObjectNode assign select_obj var ObjectNode=targ; //Iterate until ObjectNode is body while(ObjectNode!=null) { //Set x as x+ObjectNode.offsetTop. if(!isNaN(ObjectNode.offsetTop)) y=y+ObjectNode.offsetTop; if(!isNaN(ObjectNode.offsetLeft)) x=x+ObjectNode.offsetLeft; if(ObjectNode.offsetParent) ObjectNode=ObjectNode.offsetParent; else ObjectNode=ObjectNode.parentNode; } //end Iterate until ObjectNode is HTML if(nav_pos == "top") { y+=targ.offsetHeight; } else if(nav_pos == "bottom") { y-=targ.offsetHeight; if(targ.nodeName == "A" || targ.nodeName == "a") { //Text link navigations y-=10; var borderPixel = 2; if(_is_gecko_bowser == STR_YES) { borderPixel = 4; } if(subNgCount > 1) { y-= (((subNgCount-1)*subNavigHeight)+((subNgCount+1)*borderPixel)); y-= 1; } else { y-= ((subNgCount+1)*borderPixel); } }else if((targ.nodeName).toLowerCase()=="img" ) { //y-=10; var tempy=y; var borderPixel = 2; if(_is_gecko_bowser == STR_YES) { borderPixel = 4; } if(subNgCount > 1) { y-= (((subNgCount-1)*subNavigHeight)+((subNgCount+1)*borderPixel)); y += ((targ.offsetHeight/2)-subNgCount); } else { y-= ((subNgCount+1)*borderPixel)-10;; } if( y<0 ) y=tempy+targ.offsetHeight+25; } } return y; } var previousCat; var currentCat; var subNgCount = 1; var subNavigHeight; var subNavigWidth; function getSubLayers(nav_pos,evnt,curr_cat,index,start_top,start_left,img_default,img_over,height,width,latest_location) { subNavigWidth = width; isVertical = false; if(!latest_location) { //for hand symbol if(nav_pos == "l" || nav_pos == "tl" || nav_pos == "bl") { latest_location = 'l'; } else { latest_location = 'r'; } } if(nav_pos == "l") { vertical_location = nav_pos; nav_pos = "left"; } else if(nav_pos == "r") { vertical_location = nav_pos; nav_pos = "right"; } else if(nav_pos == "tl" || nav_pos == "tr") { horizontal_location = nav_pos; nav_pos = "top"; isVertical = true; } else if(nav_pos == "b" || nav_pos == "br" || nav_pos == "bl") { horizontal_location = nav_pos; nav_pos = "bottom"; isVertical = true; } subNavigHeight = height; previousCat = currentCat; if(previousCat) { hidePrevSubNavig(previousCat); } currentCat = curr_cat; var l_str_arr_temp = getSubNavisOnly(curr_cat); //get acti navis subNgCount = l_str_arr_temp.length; start_left = displayMenu(evnt,width,height,nav_pos); start_top = displayMenuy(evnt,width,height,nav_pos); location_identifier =latest_location; var l_int_ileft = start_left; // if(latest_location == 'r' || navigation_align=="hp_right_align") // l_int_ileft = getScreenFixAbove1024(start_left); //f_str_dyn_sub_list =new Array(); //alert("1f_str_dyn_sub_list "+f_str_dyn_sub_list); common_height = height; common_width = width; common_top = start_top; common_left = l_int_ileft; common_inc = height; // NS Properties ns_sub_def_width = width; ns_sub_def_height = height; ns_sub_inc_top = common_inc; // ns_sub_start_top = common_top+ns_top_variance; ns_sub_start_top = common_top; // IE Properties ie_sub_def_width = width; ie_sub_def_height = height; ie_sub_def_left = common_left; ie_sub_start_top = common_top; ie_sub_inc_top = common_inc; if(_is_gecko_bowser == STR_YES) { //starts if dyn_top = start_top; dyn_left = l_int_ileft; if(isVertical) { setGeckoSubNavisListVertical(curr_cat,index,l_int_ileft,start_top,ie_sub_def_height,ie_sub_def_width); } else { setGeckoSubNavisList(curr_cat,index,l_int_ileft,start_top,ie_sub_def_height,ie_sub_def_width); } } else if(browser_type == STR_IE) { //starts if dyn_top = start_top; dyn_left = l_int_ileft; setIESubNavisList(curr_cat,index,l_int_ileft,start_top,ie_sub_def_height,ie_sub_def_width); } // close if else { //starts outter else if(browser_type == STR_NS) //starts inner if { dyn_top = start_top; dyn_left = l_int_ileft; setNSSubLayers(curr_cat,index,start_top,l_int_ileft,img_default,img_over); } //close the inner if } //close the outter else } // close the function /****************************** Starts list of NS functions ****************************/ /* set dummy layers with respect to main/sun */ /* dynmic navigation from the main navigation*/ function setNSSubLayers(c_cat,index, start_top, start_left, img0, img1) { setClearSubLayer(main_sub_cat_length); document.layers["tlayer"].visibility = "hide"; var temp_sub_arr = getSubNavisOnly(c_cat); // array of sub navis if(main_sub_cat_length > 0) { //starts if-1 atlease on subnavis if(temp_sub_arr.length > 0) { //starts if-3 f_str_dyn_sub_list = temp_sub_arr; ns_layers_height = 0; ns_sub_start_top = start_top; var position = index; //index for(var i=0;i 0) { //starts if - more than one navis for(var i=0;i "); document.write(""); for(var i=0;i" + l_str_stable_starts + l_str_data + l_str_table_close + ""); document.write("
"+ l_str_dtable_starts +l_str_data + l_str_table_close +"
"); } //close the for loop clearIENavis(); } //close the function /*set sub navigations for dummy operation*/ function setGeckoAllSubNavis() { var l_str_data; //data var properties; //properties var active_layer; //active layer var l_str_arr_single_string; //single string document.write(""); document.write(""); for(var i=0;i" + l_str_stable_starts + l_str_data + l_str_table_close + ""); document.write("
"+ l_str_dtable_starts +l_str_data + l_str_table_close +"
"); } //close the for loop // clearGeckoNavis(); } //close the function function clearIENavis() { for(var i=0;i 0) //true-more than zero navis setIEOutsideLayer(l_int_left,l_int_inc_top,width,height,l_int_top,l_int_bg_height); } //close the function function setGeckoSubNavisList(c_cat,index,left,top,height,width) { var l_int_left = left; //left var l_int_top = top; //top clearGeckoNavis(); var l_str_arr_temp = getSubNavisOnly(c_cat); //get acti navis f_str_dyn_sub_list = l_str_arr_temp; var l_int_inc_top = l_int_top; //top var l_int_bg_height = (l_str_arr_temp.length)*(height+1)+Math.round((l_str_arr_temp.length)*(1.5)); //get length var l_int_mheight_inc = 0; for(var n=0;n 0) //true-more than zero navis setGeckoOutsideLayer(l_int_left,l_int_inc_top,width,height,l_int_top,l_int_bg_height); } //close the function function getActiveNavi(des_navi_name,curr_navi_object) { current_page_id = ""; current_url_status = ""; current_url_name = ""; //current url for external link current_url_tgt = ""; //current url target document.all.item(des_navi_name).style.top = parseInt(curr_navi_object.style.top); document.all.item(des_navi_name).style.left = parseInt(curr_navi_object.style.left); document.all.item(des_navi_name).style.width = parseInt(curr_navi_object.style.width); document.all.item(des_navi_name).style.height = parseInt(curr_navi_object.style.height); curr_navi_object.style.visibility = 'hidden' document.all.item(des_navi_name).style.visibility = 'visible'; } // close the function function getActiveGeckoNavi(des_navi_name,curr_navi_object) { current_page_id = ""; current_url_status = ""; current_url_name = ""; //current url for external link current_url_tgt = ""; //current url target document.getElementById(des_navi_name).style.top = parseInt(curr_navi_object.style.top); document.getElementById(des_navi_name).style.left = parseInt(curr_navi_object.style.left); document.getElementById(des_navi_name).style.width = parseInt(curr_navi_object.style.width); document.getElementById(des_navi_name).style.height = parseInt(curr_navi_object.style.height); curr_navi_object.style.visibility = 'hidden' document.getElementById(des_navi_name).style.visibility = 'visible'; } // close the function function whenIEMouseOver(id, url, pos, url_name, url_tgt) { current_page_id = id; current_url_status = url; current_url_name = url_name; //current url name current_url_tgt = url_tgt; //current url target ( '' / 'n' ) } //close the function function whenIEMouseOut() { current_page_id = ''; current_url_status = ''; current_url_name = ''; //current url for external link current_url_tgt = ''; //current url target } //close the function /*set whenmouseover layer onIE formatted layers */ function setIEOutsideLayer(left,top,width,height,default_top,total_height) { bglayer.style.top = default_top-1; bglayer.style.left = left-1; bglayer.style.width = width+2; bglayer.style.height = total_height; bglayer.style.visibility = 'visible'; bglayer.style.background = '#b2b2b2'; subdesktop.style.top = default_top - height; if(location_identifier == 'l') subdesktop.style.left = left; //subdesktop.style.left = left - (width/2); else if(location_identifier == 'r') subdesktop.style.left = left-(width/2); else if(vertical_location == 'l') subdesktop.style.left = left; //subdesktop.style.left = left - (width/2); else if(vertical_location == 'r') subdesktop.style.left = left-(width/2); subdesktop.style.width = width + (width/2); subdesktop.style.height = total_height + (height*2); subdesktop.style.visibility = 'visible'; // document.all.item('subdesktop').style.background = '#ccc000'; } //close the function function setGeckoOutsideLayer(left,top,width,height,default_top,total_height) { document.getElementById('bglayer').style.top = eval(default_top)-1; document.getElementById('bglayer').style.left = eval(left)-1; document.getElementById('bglayer').style.width = eval(width)+2; document.getElementById('bglayer').style.height = eval(total_height); document.getElementById('bglayer').style.visibility = 'visible'; document.getElementById('bglayer').style.background = '#b2b2b2'; document.getElementById('subdesktop').style.top = default_top - height; if(location_identifier == 'l') document.getElementById('subdesktop').style.left = left; //subdesktop.style.left = left - (width/2); else if(location_identifier == 'r') document.getElementById('subdesktop').style.left = left-(width/2); else if(vertical_location == 'l') document.getElementById('subdesktop').style.left = left; //subdesktop.style.left = left - (width/2); else if(vertical_location == 'r') document.getElementById('subdesktop').style.left = left-(width/2); document.getElementById('subdesktop').style.width = width + (width/2); document.getElementById('subdesktop').style.height = total_height + (height*2); document.getElementById('subdesktop').style.visibility = 'visible'; // document.getElementById('subdesktop').style.background = '#ccc000'; } //close the function function getKeyDown() { /********** sg16.0 changes ************/ var l_obj_file_list = sub_navig_file_name.split("::"); var l_str_page_id =""; // get the page i d var l_str_file_name =""; // get the file name var _temp_index =0; var current_file_name =current_page_id + '.html'; for(var i =0; i < l_obj_file_list.length; i++) { l_str_file_name = l_obj_file_list[i]; if(l_str_file_name.indexOf(":") >0 ) { _temp_index = l_str_file_name.indexOf(":"); l_str_page_id = l_str_file_name.substring(0,_temp_index); l_str_file_name = l_str_file_name.substring(_temp_index+1,l_str_file_name.length); if(current_page_id == l_str_page_id) current_file_name =l_str_file_name; } } /********** sg16.0 changes ************/ if (current_url_status == 'y' && current_page_id != '') //cursor points to page id { location.href = current_file_name; } else if (current_url_status == 'e' && current_url_name != '') //cursor points to page name { if (current_url_tgt == 'y') // open in new window { window.open(replaceTitletoComma(current_url_name)); getTop(); } else { location.href = replaceTitletoComma(current_url_name); } } else if (current_url_status == '' && current_page_id == '') // false - empty { if(_is_gecko_bowser == STR_YES) clearGeckoNavis(); else clearIENavis(); } } //close the function function onCurrentIEsubNavis(tar_navis, status, url_name, url_tgt) { current_page_id = tar_navis.substr(8); current_url_status = status; current_url_name = url_name; //current url name current_url_tgt = url_tgt; //current url target ( '' / 'n' ) for(var n=0;n < f_str_dyn_sub_list.length;n++) { //starts for -1 loop var l_str_scroll_layer = 'act_'+ f_str_dyn_sub_list[n]; var l_str_static_layer = f_str_dyn_sub_list[n]; if(tar_navis == l_str_scroll_layer) { document.all.item(l_str_scroll_layer).style.visibility = 'visible'; document.all.item(l_str_static_layer).style.visibility = 'hidden'; } else { document.all.item(l_str_scroll_layer).style.visibility = 'hidden'; document.all.item(l_str_static_layer).style.visibility = 'visible'; } } //close for-1 loop } function onCurrentGeckosubNavis(tar_navis, status, url_name, url_tgt) { current_page_id = tar_navis.substr(8); current_url_status = status; current_url_name = url_name; //current url name current_url_tgt = url_tgt; //current url target ( '' / 'n' ) for(var n=0;n < f_str_dyn_sub_list.length;n++) { //starts for -1 loop var l_str_scroll_layer = 'act_'+ f_str_dyn_sub_list[n]; var l_str_static_layer = f_str_dyn_sub_list[n]; if(tar_navis == l_str_scroll_layer) { document.getElementById(l_str_scroll_layer).style.visibility = 'visible'; document.getElementById(l_str_static_layer).style.visibility = 'hidden'; } else { document.getElementById(l_str_scroll_layer).style.visibility = 'hidden'; document.getElementById(l_str_static_layer).style.visibility = 'visible'; } } //close for-1 loop } function onIEClearSubs() { for(var n=0;n 1024) //l_int_left1=getSuitXposi(left); for(var n=0;n 0) //true-more than zero navis setGeckoOutsideLayerVertical(l_int_left,l_int_inc_top,width,height,l_int_top,l_int_bg_height); } //close the function /*set whenmouseover layer onIE formatted layers */ function setGeckoOutsideLayerVertical(left,top,width,height,default_top,total_height) { document.getElementById('bglayer').style.top = default_top - 2; document.getElementById('bglayer').style.left = left - 2; document.getElementById('bglayer').style.width = eval(width) + 4; document.getElementById('bglayer').style.height = total_height + 2; document.getElementById('bglayer').style.background = '#cccccc'; document.getElementById('bglayer').style.visibility = 'visible'; if(horizontal_location =='b' || add_subnavig_type == 'bl' || add_subnavig_type == 'br') document.getElementById('subdesktop').style.top = default_top - (height+Math.round(height/2)); else if(horizontal_location =='t') document.getElementById('subdesktop').style.top = default_top; var l_int_sdesk_left = left - Math.round(width/4); document.getElementById('subdesktop').style.left = l_int_sdesk_left; var l_int_sdesk_width = eval(width) + eval(Math.round(width/2)); document.getElementById('subdesktop').style.width = l_int_sdesk_width; if(horizontal_location =='b' || add_subnavig_type == 'bl' || add_subnavig_type == 'br') document.getElementById('subdesktop').style.height = total_height + (height*2) - Math.round(height/2); else if(horizontal_location =='t') document.getElementById('subdesktop').style.height = total_height + (height*2); var l_max_pixel_left = l_int_sdesk_left + l_int_sdesk_width; document.getElementById('subdesktop').style.visibility = 'visible'; // document.getElementById('subdesktop').style.background = '#cccccc'; } //close the function function getImageIndex(main_cat) { var l_arr_temp_sub = new Array(); var l_int_count = 0; var l_int_layer_noofchars = 0; var l_int_layer_img_index = 0; if(l_img_scroll_list.length ==3) { for(var i=0;i11) l_int_layer_img_index = 2; } else if(l_img_scroll_list.length == 1) { l_int_layer_img_index = 0; } return l_int_layer_img_index; } function onGeckoClearSubsVertical() { for(var n=0;n
 "; //starts table 1 var l_str_table_0 = "
 "; //starts table 2 var l_str_table_00 = " 
"; //close the table document.write("
sample
"); document.write("
" + l_str_table_0 + l_str_data + l_str_table_00 + "
"); document.write("
" + l_str_table_1 +"" + l_str_table_00 + "
"); document.write("
sample
"); document.write("
"+ l_str_table_1 +l_str_data + l_str_table_00 +"
"); document.write("
"+ l_str_table_1 +"" + l_str_table_00 +"
"); } //close the for loop // clearGeckoNavis(); } //close the function function whenIEParamClear() { current_page_id = ''; current_url_status = ''; current_url_name = ''; //current url for external link current_url_tgt = ''; //current url target } function getGeckoActiveNavi(curr_navi_name,des_navi_name,curr_navi_object) { current_page_id = ""; current_url_status = ""; current_url_name = ""; //current url for external link current_url_tgt = ""; //current url target var des_navi_blk_name = 'b_' + des_navi_name; var des_navi_img_name = 'img_' + des_navi_name; var cur_navi_img_name = 'img_' + curr_navi_name; document.getElementById(des_navi_name).style.top = parseInt(curr_navi_object.style.top); document.getElementById(des_navi_name).style.left = parseInt(curr_navi_object.style.left); document.getElementById(des_navi_name).style.width = parseInt(curr_navi_object.style.width); document.getElementById(des_navi_name).style.height = parseInt(curr_navi_object.style.height); document.getElementById(des_navi_name).style.visibility = 'visible'; document.getElementById(des_navi_blk_name).style.top = parseInt(curr_navi_object.style.top); document.getElementById(des_navi_blk_name).style.left = parseInt(curr_navi_object.style.left); document.getElementById(des_navi_blk_name).style.width = parseInt(curr_navi_object.style.width); document.getElementById(des_navi_blk_name).style.height = parseInt(curr_navi_object.style.height); document.getElementById(des_navi_blk_name).style.visibility = 'visible'; document.getElementById(des_navi_img_name).style.top = parseInt(curr_navi_object.style.top); document.getElementById(des_navi_img_name).style.left = parseInt(curr_navi_object.style.left); document.getElementById(des_navi_img_name).style.width = parseInt(curr_navi_object.style.width); document.getElementById(des_navi_img_name).style.height = parseInt(curr_navi_object.style.height); document.getElementById(des_navi_img_name).style.visibility = 'visible'; curr_navi_object.style.visibility = 'hidden' document.getElementById(curr_navi_name).style.visibility = 'hidden'; document.getElementById(cur_navi_img_name).style.visibility = 'hidden'; } // close the function //Hiding sub navigation displayed function hideSubNavig() { var l_str_arr_temp = getSubNavisOnly(currentCat); //get acti navis for(var n=0;n