window.onerror=fehler;
function fehler(){return true;}
function preparePrint(URL){
newURL="templates/printPage.php5?URL="+URL;
printWin=window.open(newURL,"Print","status=0,location=0,menubar=1,scrollbars=1,toolbar=1,height=705,width=650");
printWin.focus();
printWin.print();
}
function showImage(imgURL)
{
IMG=window.open("","IMG","status=0,location=0,menubar=0,scrollbars=0,toolbar=0,resizable=1,height=700,width=640");
doc=IMG.document;
doc.open();
doc.writeln("
RE3D");
doc.writeln("");
doc.writeln("");
doc.close();
IMG.focus();
}
function dialogWindow(url, width, height){
dir=window.open(url,'faq','resizable=1,status=1,location=0,menubar=0,scrollbars=0,toolbar=0,height='+height+',width='+width);
dir.moveTo(width,height);
dir.focus();
}
function CrMto(s, shift) {
var n=0;
var r="";
for(var i=0;i=8364) {n = 128;}
r += String.fromCharCode(n-(shift));
}
return r;
}
function linkMCr(sh,s) {
location.href=CrMto(s, sh);
}
///////////////////////////
// Funktionen für das Encoden
// von Bildern
function showVideo(videoURL)
{
VID=window.open("","VID","resizable=1,status=0,location=0,menubar=0,scrollbars=0,toolbar=0,height=390,width=450");
doc=VID.document;
doc.open();
doc.writeln("RE3D");
doc.writeln("");
doc.writeln("");
doc.close();
VID.focus();
}
function resizeWindow(){
height=document.images.bild.height;
width=document.images.bild.width;
if (navigator.appName.indexOf("Netscape")!=-1 && ((navigator.appVersion.indexOf("5.")!=-1) || (navigator.appVersion.indexOf("6.")!=-1))){
width=width+10;
height=height+80;
}
else{
width=width+12;
height=height+100;
}
self.resizeTo(width,height);
}
////////////////////////////
// Liefert die Layer
// mit dem übergebenen Namen zurück
function get_Layer(name)
{
tmp="";
if (BROWSER=="OP" || (BROWSER=="NS" && VERSION>=6))
tmp="ELEM=document.getElementById('"+name+"');";
if (BROWSER=="IE" && VERSION>=4)
tmp="ELEM=document.all['"+name+"'];";
if (BROWSER=="NS" && VERSION<6)
tmp="ELEM=document.layers['"+name+"'];";
eval(tmp);
return ELEM;
}
////////////////////////////
// Ändert die Sichtbarkeit der übergebenen Ebene
function set_visibility(ELEM,visibility)
{
tmp="";
if (BROWSER=="OP" || (BROWSER=="NS" && VERSION>=6))
tmp="ELEM.style.visibility='"+visibility+"';";
if (BROWSER=="IE" && VERSION>=4)
tmp="ELEM.style.visibility='"+visibility+"';";
if (BROWSER=="NS" && VERSION<6)
tmp="ELEM.visibility='"+visibility+"';";
eval(tmp);
return true;
}
////////////////////////////
// Ändert die Sichtbarkeit der übergebenen Ebene
function setbgColor(ELEM,color)
{
tmp="";
if ((BROWSER=="NS" && VERSION>=6))
tmp="ELEM.style.backgroundColor='"+color+"';";
if ((BROWSER=="OP" && VERSION>=5) || (BROWSER=="IE" && VERSION>=4))
tmp="ELEM.style.background='"+color+"';";
if ( (BROWSER=="NS" && VERSION<6))
tmp="ELEM.background='"+color+"';";
eval(tmp);
return true;
}
///////////////////////////
// Funktionen für das Submenü
// unten
function setFlexSub()
{
ELEM=get_Layer("FlexSub");
set_visibility(ELEM,"hidden");
ELEM_Height=30;
maxTopPos=550;
if ((BROWSER == 'NS' && VERSION<6))
{
ELEM_Height=ELEM.clip.height;
WDWheight=window.innerHeight;
newPOS=WDWheight-ELEM_Height+window.pageYOffset;
if (newPOS>maxTopPos)
ELEM.top=newPOS;
else
ELEM.top=maxTopPos;
}
if ((BROWSER == 'NS' && VERSION>=6) || (BROWSER=="OP" && VERSION>=5))
{
WDWheight=window.innerHeight;
if (BROWSER=="OP" && VERSION==5)
ELEM_Height=ELEM_Height;
else
ELEM_Height=ELEM.offsetHeight;
newPOS=WDWheight-ELEM_Height+window.pageYOffset;
if (newPOS>maxTopPos)
ELEM.style.top=newPOS;
else
ELEM.style.top=maxTopPos;
}
if ((BROWSER == 'IE' && VERSION>=4) )
{
ELEM_Height=ELEM.clientHeight;
WDWheight=document.body.clientHeight;
newPOS=WDWheight-ELEM_Height+document.body.scrollTop;
if (newPOS>maxTopPos)
ELEM.style.top=newPOS;
else
ELEM.style.top=maxTopPos;
}
set_visibility(ELEM,"visible");
if (BROWSER == 'NS' || BROWSER=="OP" )
setTimeout("setFlexSub()",500); //1500
}
// Gibt die anzhal der nach unten gescrollten Pixel zurück
function getScrollY(){
var tmp=0;
if ((BROWSER=="NS" && VERSION>=5) || BROWSER=="OP"){
tmp=window.pageYOffset;
}
if (BROWSER=="IE" && VERSION>=4){
tmp=document.body.scrollTop;
}
return tmp;
}
/////////////////////////////////////
// Setzt die anzhal der nach unten zu scrollenten Pixeln zurück
function setScrollY(pos){
if (BROWSER=="NS" && VERSION>=5){
window.pageYOffset=pos;
}
if (BROWSER=="IE" && VERSION>=4){
document.body.scrollTop=pos;
}
}
// Gibt zurück, ob in dem Übergebenen Event die Eingabe-Taste gedrückt wurde
function enterPressed(Ereignis){
if (navigator.appName == "Netscape")
key=Ereignis.which;
else
key=event.keyCode;
//alert(key);
if(key==13){
return true;
}
return false;
}
function hmOver(index){
var path;
pic=document.getElementById("hm"+index);
path = pic.src;
path = path.split(".gif");
pic.src=path[0]+"_over.gif";
if((index-1) > 0){
pic=document.getElementById("menue_trennlinie_"+(index-1));
path = pic.src;
path = path.split("_weiss.gif");
pic.src=path[0]+"_blau.gif";
}
pic=document.getElementById("menue_trennlinie_"+index);
path = pic.src;
path = path.split("_weiss.gif");
pic.src=path[0]+"_blau.gif";
}
function hmOut(index){
var path;
pic=document.getElementById("hm"+index);
path = pic.src;
path = path.split("_over.gif");
pic.src=path[0]+".gif";
if((index-1) > 0){
pic=document.getElementById("menue_trennlinie_"+(index-1));
path = pic.src;
path = path.split("_blau.gif");
pic.src=path[0]+"_weiss.gif";
}
pic=document.getElementById("menue_trennlinie_"+index);
path = pic.src;
path = path.split("_blau.gif");
pic.src=path[0]+"_weiss.gif";
}