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.Tabs");
Inpl.Tabs=new function(){
var _4=this,current={},fn="Inpl.Tabs.",smt={};
var _5=2592000;
var _6="T_";
this.Init=function(_7,_8,_9){
try{
_8=_8||_7+"tabs";
var li=$(_7).getElementsByTagName("LI"),i,c;
current[_7]=-1;
for(i=0;i<li.length;i++){
li[i].childNodes[0].onclick=new Function("return "+fn+"Show(\""+_7+"\",\""+_8+"\","+i+")");
}
c=parseInt(INTPL("getCookie",_6+_7+"_"+_8));
for(i=0;i<li.length;i++){
if(-1!=li[i].className.indexOf("selected")){
_4.Show(_7,_8,i);
break;
}
}
if(!isNaN(c)&&c>=0&&c<li.length){
_4.Show(_7,_8,c);
}else{
if(-1==current[_7]){
_4.Show(_7,_8,0);
}
}
if(_9&&$(_7).scrollHeight>$(_7).offsetHeight+4){
$(_7).onclick=new Function("return "+fn+"More(\""+_7+"\",\""+_8+"\",arguments[0])");
$(_7).className+=" more";
$(_7).onmousemove=new Function(fn+"Move(\""+_7+"\",arguments[0])");
if(current[_7]){
for(var k=0;k<li.length&&li[current[_7]].offsetTop>=$(_7).offsetHeight;k++){
li[k].style.display="none";
}
if(current[_7]==li.length-1){
$(_7).className+=" moreRight";
}else{
$(_7).className+=" moreBoth";
}
}
}
}
catch(e){
}
};
this.Move=function(_c,e){
try{
e=e||event;
var c=$(_c),x=c.offsetWidth-(e.layerX||e.offsetX),li=c.getElementsByTagName("LI");
if(x<44){
if((x<22&&current[_c]<li.length-1)||(x>22&&current[_c]>0)){
c.style.cursor=(document.all&&!window.opera?"hand":"pointer");
}
}else{
c.style.cursor="default";
}
}
catch(e){
}
};
this.More=function(_f,_10,e){
try{
e=e||event;
var c=$(_f),n=c.id+"Submenu",menu=$(n),s="",lj,x=c.offsetWidth-(e.layerX||e.offsetX),li=c.getElementsByTagName("LI");
if(((e.target&&"UL"==e.target.tagName)||(e.srcElement&&"UL"==e.srcElement.tagName))&&x<=44){
var li=c.getElementsByTagName("LI");
if(x<22&&current[_f]<li.length-1){
var _14=current[_f]+1;
_4.Show(_f,_10,_14);
for(var k=0;k<li.length&&li[_14].offsetTop>=c.offsetHeight;k++){
li[k].style.display="none";
}
if(_14==li.length-1){
if(-1<c.className.indexOf("moreBoth")){
c.className=c.className.replace("moreBoth"," moreRight");
}else{
c.className+=" moreRight";
}
}else{
if(-1==c.className.indexOf("moreBoth")){
if(-1<c.className.indexOf("moreRight")){
c.className=c.className.replace("moreRight"," moreBoth");
}else{
c.className+=" moreBoth";
}
}
}
}else{
if(x>22&&current[_f]>0){
var _16=current[_f]-1;
_4.Show(_f,_10,_16);
for(var k=_16;k<li.length&&li[k].style.display=="none";k++){
li[k].style.display="block";
}
if(_16==0){
c.className=c.className.replace("moreBoth","");
c.className=c.className.replace("moreRight","");
}else{
if(-1==c.className.indexOf("moreBoth")){
if(-1<c.className.indexOf("moreRight")){
c.className=c.className.replace("moreRight"," moreBoth");
}else{
c.className+=" moreBoth";
}
}
}
}
}
}
return false;
}
catch(e){
}
};
function real(o,p){
var r=0;
while(o){
r+=eval("o.offset"+p);
o=o.offsetParent;
}
return r;
}
this.Show=function(_1a,_1b,i){
try{
var li=$(_1a).getElementsByTagName("LI")[i],tab=$(_1b).getElementsByTagName("DIV")[i],l=document.location;
_4.Hide(_1a,_1b,current[_1a]);
if(li&&-1==li.className.indexOf("selected")){
li.className+=" selected";
}
if(tab&&-1==tab.className.indexOf("selected")){
tab.className+=" selected";
}
if(i>=0){
INTPL("setCookie",_6+_1a+"_"+_1b,i,_5,l.pathname,l.host);
}
current[_1a]=i;
}
catch(e){
}
return false;
};
this.Hide=function(_1e,_1f,i){
try{
var li=$(_1e).getElementsByTagName("LI")[i],tab=$(_1f).getElementsByTagName("DIV")[i];
if(li&&-1!=li.className.indexOf("selected")){
li.className=li.className.replace("selected","");
}
if(tab&&-1!=tab.className.indexOf("selected")){
tab.className=tab.className.replace("selected","");
}
}
catch(e){
}
};
function $(n){
return document.getElementById(n);
}
};

