//window.onerror=fehler; //function fehler(){return true;} /////////////////////////// // Galerieaufruf per JS function showGalerie(titel, folder, language){ galerieWin=window.open("http://www.optima-packaging-group.de/opg/specials/galerie/galerie_frame.php4?cat="+folder+"&LANG="+language+"&gal_titel="+titel+"&autoPlay=true","WIN","status=0,location=0,menubar=0,scrollbars=0,toolbar=0,resizable=yes,height=560,width=850"); } /////////////////////////// // Funktionen zum Drucken // von Seiten function preparePrint(URL) { //newURL="http://www.optima-packaging-group.de/opg/templates/printPage.php4?URL="+URL+"&UID="; printWin=window.open("","Print","status=0,location=0,menubar=1,scrollbars=1,toolbar=0,height=705,width=850"); printWin.document.location=URL; printWin.print(); } /////////////////////////// // Funktionen für das Encoden // von Bildern function showImage(imgURL) { IMG=window.open("","IMG","resizable=1,status=0,location=0,menubar=0,scrollbars=0,toolbar=0,height=800,width=800"); IMG.document.location="http://www.optima-packaging-group.de/opg/templates/show_image.php5?IMG="+imgURL+"&DOMAIN_HTTP_ROOT=aHR0cDovL3d3dy5vcHRpbWEtcGFja2FnaW5nLWdyb3VwLmRlL29wZy9zaWVyZW0v&SHARED_HTTP_ROOT=aHR0cDovL3d3dy5vcHRpbWEtcGFja2FnaW5nLWdyb3VwLmRlL29wZy8=&LANG=fr" IMG.focus(); } /////////////////////////// // Funktionen für das Encoden // von Videos function showVideo(videoURL) { VID=window.open("","VID","resizable=1,status=0,location=0,menubar=0,scrollbars=0,toolbar=0,height=410,width=520"); VID.document.location="http://www.optima-packaging-group.de/opg/templates/show_video.php5?VID="+videoURL+"&DOMAIN_HTTP_ROOT=aHR0cDovL3d3dy5vcHRpbWEtcGFja2FnaW5nLWdyb3VwLmRlL29wZy9zaWVyZW0v&SHARED_HTTP_ROOT=aHR0cDovL3d3dy5vcHRpbWEtcGFja2FnaW5nLWdyb3VwLmRlL29wZy8=&LANG=fr" VID.focus(); } /////////////////////////// // Funktionen für Resize // von Fenstern 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+200; } else{ width=width+12; height=height+180; } if (width<800) width=800; self.resizeTo(width,height); self.focus(); } //////////////////////////// // 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 setFlexSub2() { ELEM=get_Layer("FlexSub2"); set_visibility(ELEM,"hidden"); contentWidth=780; if ((BROWSER == 'NS' && VERSION<6)) { WDWidth=window.innerWidth; ELEM.width=WDWidth-contentWidth; } if ((BROWSER == 'NS' && VERSION>=6) || (BROWSER=="OP" && VERSION>=5)) { WDWidth=window.innerWidth; ELEM.style.width=WDWidth-contentWidth-20; } if ((BROWSER == 'IE' && VERSION>=4) ) { ELEM_Height=ELEM.clientHeight; WDWidth=document.body.clientWidth; ELEM.style.width=WDWidth-contentWidth; } set_visibility(ELEM,"visible"); }