var isDOM,isIE,isNN4,isOpera,isIE4;
isDOM=0; isIE=0; isNN4=0; isOpera=0; isIE4=0;
if (navigator.userAgent.indexOf('Opera')!=-1) isOpera=1;
if (document.getElementById) isDOM=1;
if (document.all && !isOpera) isIE=1;
if (document.layers) isNN4=1;
if (!isDOM && document.all) isIE4=1;


function ReplaceQuotes(strline)
{while ((numpos=strline.indexOf('&quot;'))>0)
  {strline=strline.substring(0,numpos)+'"'+strline.substring(numpos+6,strline.length );}
while ((numpos=strline.indexOf('&#39;'))>0)
  {strline=strline.substring(0,numpos)+"'"+strline.substring(numpos+5,strline.length );}
 return strline;
}

function PopLineRolled(line, oper)
{if (oper) 
   {line.className="PopPunktAct";}
 else
   {line.className="PopPunkt";}
}

function PopLineClicked(sPopMenu, sTarget)
{setView(sPopMenu,0);
 window.parent.location.href=sTarget;
 return false;
}

function getObj(n)
{if(isIE) return document.all[n];
 if(isDOM) return document.getElementById(n);
 return document.layers[n];
}

function getStyle(n)
{var obj=getObj(n);
 if(obj)
  {if(isNN4) return obj;
   return obj.style;
  }
}

function setView(n, s)
{var obj=getStyle(n);
 if(isNN4)
  obj.visibility=(s)?'show':'hide';
 else
  obj.visibility=(s)?'visible':'hidden';
 if (s==0) {obj.left=0; obj.top=0;}
}

function getPosObj(obj)
{
 //if(isNN4)
 // {this.x=this.y=this.w=this.h=0;
 //  return;}
 // var obj=getObj(n);

 this.x=obj.offsetLeft;
 this.y=obj.offsetTop;
 this.w=obj.offsetWidth;
 this.h=obj.offsetHeight;

 while((obj=obj.offsetParent)!=null && obj.tagName!='BODY')
  {this.x+=obj.offsetLeft;
   this.y+=obj.offsetTop;
  }
}

function RightgetObj(n)
{if (!parent.frames[1]) {return;}
 if(isIE) return parent.frames[1].document.all[n];
 if(isDOM) return parent.frames[1].document.getElementById(n);
 return parent.frames[1].document.layers[n];
}

function RightgetStyle(n)
{var obj=RightgetObj(n);
 if (!obj) return;
 if(obj)
  {if(isNN4) return obj;
   return obj.style;
  }
}

function RightsetView(n, s)
{var obj=RightgetStyle(n);
 if (!obj) return;
 if(isNN4)
  obj.visibility=(s)?'show':'hide';
 else
  obj.visibility=(s)?'visible':'hidden';
 if (s==0) {obj.left=0; obj.top=0;}
}

