var tab_height = false; var tab_width = false; var tab_topOffset = false; var tab_leftOffset = false; var tab_active = -1; var tab_check = new Array(); var tab_iv1 = false; var tab_wait = false; try{ if (open_tab){} } catch(e){ open_tab = false; } /********** Configuration*************************************************/ mb_registerInitFunctions('tab_init()'); function tab_init(){ var obj = document.getElementById("tabs").style; tab_topOffset = parseInt(obj.top); tab_leftOffset = parseInt(obj.left); tab_width = parseInt(obj.width); tab_height = parseInt(obj.height); var str = ""; for(var i = 0; i"; str += tab_titles[i]; str += ""; } document.getElementById("tabs").innerHTML = str; if (open_tab != 'false'){ tab_set(open_tab); } } function tab_set(ind){ if(tab_wait){ return; } tab_unsetFrame(); if(ind == tab_active){ tab_wait = true; tab_active = -1; tab_check = new Array(); tab_iv1 = setInterval("tab_move("+tab_active+")",1); return; } else{ tab_wait = true; tab_active = ind; tab_check = new Array(); tab_iv1 = setInterval("tab_move("+tab_active+")",1); return; } } function tab_setFrame(ind){ for(var i = 0; i ind && tab_active >= 0){ newpos += parseInt(tab_frameHeight[ind]); } var myid = "tab_" + i; var pos = parseInt(document.getElementById(myid).style.top); if(pos == newpos){ tab_check[i] = true; } else if(pos < newpos){ document.getElementById(myid).style.top = (pos + 10) + "px"; tab_check[i] = false; } else if(pos > newpos){ document.getElementById(myid).style.top = (pos - 10) + "px"; tab_check[i] = false; } } var check = true; for(var j=0; j= 0){ tab_setFrame(ind); } return; } }