function RegisterNamespaces(){
for(var i=0;i<arguments.length;i++){
var p=arguments[i].split("."),w=window;
for(var j=0;j<p.length;j++){
if(!w[p[j]]){
w[p[j]]=new Object();
}
w=w[p[j]];
}
}
}
RegisterNamespaces("Inpl.Navigation");
Inpl.Navigation=new function(){
var _4=this,timeout={},timein={},current={},clicked={},fn="Inpl.Navigation.";
this.Init=function(_5,_6){
try{
_6=_6||_5+"tabs";
fixOpera7(_5,_6);
var _7=-1,li=$(_5).getElementsByTagName("LI"),i,tabs=$(_6).getElementsByTagName("DIV"),f,g,a;
for(i=0;i<li.length;i++){
if(-1!=li[i].className.indexOf("selected")){
_7=i;
current[_5]=i;
break;
}
}
if(tabs[_7]&&tabs[_7].offsetHeight>10){
$(_6).style.height=tabs[_7].offsetHeight+"px";
}
for(i=0;i<li.length;i++){
clicked[_5]=-1;
a="\""+_5+"\",\""+_6+"\","+i+","+_7;
f=new Function(fn+"ToHide("+a+")");
g=new Function(fn+"Click("+a+")");
li[i].onmouseover=new Function(fn+"ToShow("+a+")");
li[i].onmouseout=f;
li[i].onclick=g;
if(tabs[i]){
tabs[i].onmouseover=new Function(fn+"Show("+a+")");
tabs[i].onmouseout=f;
a=tabs[i].getElementsByTagName("A");
for(k=0;k<a.length;k++){
a[k].onclick=g;
}
}
}
}
catch(e){
}
};
this.Click=function(_8,_9,i,_b){
if(!window.opera){
clicked[_8]=i;
window.onpageshow=new Function(fn+"PageShow(\""+_8+"\",\""+_9+"\","+i+","+_b+")");
}
};
this.PageShow=function(_c,_d,i,_f){
try{
if(-1!=clicked[_c]){
clicked[_c]=-1;
_4.Hide(_c,_d,i,_f);
}
}
catch(e){
}
};
function fixOpera7(b,c){
if(window.opera&&-1!=navigator.userAgent.indexOf("Opera 7.")){
var ul,li,w=0,a=[b,c];
for(u in a){
ul=$(a[u]).getElementsByTagName("UL");
for(i=0;i<ul.length;i++){
li=ul[i].getElementsByTagName("LI");
for(k=0;k<li.length;k++){
w+=li[k].offsetWidth;
}
ul[i].style.width=(w?w+"px":"100%");
w=0;
}
}
}
}
this.ToShow=function(_13,_14,i,_16){
ClearHide(_13,i);
timein[_13+i]=window.setTimeout(fn+"Show(\""+_13+"\",\""+_14+"\","+i+","+_16+")",250);
};
this.Show=function(_17,_18,i,_1a){
try{
ClearHide(_17,i);
var li=$(_17).getElementsByTagName("LI")[i],tab=$(_18).getElementsByTagName("DIV")[i];
if(li&&-1==li.className.indexOf("selected")){
if("undefined"!=typeof current[_17]){
_4.Hide(_17,_18,current[_17]);
}
li.className+=" "+(-1!=li.className.indexOf("first")?"first":"")+"selected";
if(tab&&-1==tab.className.indexOf("selected")){
tab.className+="selected";
}
if(current[_17]!=i&&tab&&tab.offsetHeight>$(_18).offsetHeight&&-1==tab.className.indexOf("more")){
tab.className+=" more";
}
current[_17]=i;
}
}
catch(e){
}
};
this.ToHide=function(_1c,_1d,i,_1f){
if((!ClearShow(_1c,i)||i==current[_1c])&&clicked[_1c]!=i){
timeout[_1c+i]=window.setTimeout(fn+"Hide(\""+_1c+"\",\""+_1d+"\","+i+","+_1f+")",1000);
}
};
function ClearHide(_20,i){
if(timeout[_20+i]){
window.clearTimeout(timeout[_20+i]);
timeout[_20+i]=null;
}
}
function ClearShow(_22,i){
var r=false;
if(timein[_22+i]){
window.clearTimeout(timein[_22+i]);
timein[_22+i]=null;
r=true;
}
return r;
}
this.Hide=function(_25,_26,i,_28){
try{
if(i!=_28){
ClearHide(_25,i);
var li=$(_25).getElementsByTagName("LI")[i],tab=$(_26).getElementsByTagName("DIV")[i];
if(li){
li.className=li.className.replace(/[ ]*firstselected|[ ]*selected/g,"");
}
if(tab){
tab.className=tab.className.replace("selected","");
tab.className=tab.className.replace("more","");
}
if("undefined"!=typeof _28){
_4.Show(_25,_26,_28);
}
}
}
catch(e){
}
};
function $(n){
return document.getElementById(n);
}
};


