function impr()
{
impressumfenster = window.open("../impress.htm","Impressum","width=700,height=450,left=200,top=150");
impressumfenster.focus();
}

function pop_in(divname)
{
document.getElementById(divname).style.visibility = "visible";
}
 
function pop_out(divname){
document.getElementById(divname).style.visibility = "hidden";
}

function bankpop()
{
window.open("bankverb.htm", "Bankverbindung", "toolbar=no, left=550, top=212, location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=620,height=460");
}
function skizze() 
{  
window.open("skizze.htm","supersuper","toolbar=no, left=550, top=212, location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=440,height=443")
}

function pause(numberMillis)
{
var now = new Date();
var exitTime = now.getTime() + numberMillis;
while (true)
{
now = new Date();
if (now.getTime() > exitTime)
return;
}
} 

function catalog(spr) 
{
	pause(200);
	
if (spr == 1) 	{ katalog = window.open("http://www.protego.de/catalog2007/html/de/index.html","Katalog","menubar=no,scrollbars=no,resizable=yes,copyhistory=no, width=840,height=640, left=150,top=150");}	
else		{ katalog = window.open("http://www.protego.de/catalog2007/html/en/index.html","Katalog","menubar=no,scrollbars=no,resizable=yes,copyhistory=no, width=840,height=640, left=150,top=150");} 
katalog.focus();
}


function popup(pfad, hoehe) 
{
properties = ('toolbar=no, left=550, top=212, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=400, height=400');

pic = window.open(pfad, "Picture", properties);
pic.resizeTo(400, hoehe);
pic.focus();
}

function refpop(nr)	{
		if (nr==1) {window.open("../80-84.htm","References","menubar=no,scrollbars=yes,resizable=no,copyhistory=no, width=825,height=600, left=150,top=50");}
		if (nr==2) {window.open("../85-89.htm","References","menubar=no,scrollbars=yes,resizable=no,copyhistory=no, width=825,height=600, left=150,top=50");}
		if (nr==3) {window.open("../90-94.htm","References","menubar=no,scrollbars=yes,resizable=no,copyhistory=no, width=825,height=600, left=150,top=50");}
		if (nr==4) {window.open("../95-99.htm","References","menubar=no,scrollbars=yes,resizable=no,copyhistory=no, width=825,height=600, left=150,top=50");}
		if (nr==5) {window.open("../00-04.htm","References","menubar=no,scrollbars=yes,resizable=no,copyhistory=no, width=825,height=600, left=150,top=50");}
		}
var bild;
function zertpop(loca) 
{
window.open(loca, "Zertifikat","toolbar=no, left=550, top=212, location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=364,height=500")
}

function sitemappop()
{
	smap = window.open("../sitemap.htm","Sitemap","menubar=no,scrollbars=yes,resizable=no,copyhistory=no, width=430,height=600, left=570,top=50");
	smap.focus();
}


function det(sp, loca) 
{
urlx = sp + "_contact_det_" + loca + ".htm";
if (sp == 'ar') { 
	linksabstand = 150;
}
else {
	linksabstand = 310;
}
detproperties = 'left=' + linksabstand + ', top=250, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes, copyhistory=no, width=670, height=500';
detfenster = window.open(urlx, "Details", detproperties );
detfenster.focus();
/* wichtig, dass in popup fenstern nach ähnlichem Prinzip die htmldatei, 
welche im popup selbst dargestellt wird, im head tad NICHT die protego.js 
aufruft, da sonst der Name des Fensters immer wieder auf "protegofenster" (siehe ganz unten) gesetzt 
wird und das popup sich nicht im gleichen Fenster öffnen kann */
}

function videopop(sp, vidnr, bandw, format)
{	
	if (sp == "en") {
		videofiles = new Array();
		videofiles[0] = "Flame-Arrestor-Company";
		videofiles[1] = "Flame-Arrestor-Functional-Principle";
		videofiles[2] = "Flame-Arrestor-Products";
		videofiles[3] = "Flame-Arrestor-Trailer";
	}
	if (sp == "de") {
		videofiles = new Array();
		videofiles[0] = "Flammenfilter-Unternehmen";
		videofiles[1] = "Flammenfilter-Funktionsprinzip";
		videofiles[2] = "Flammenfilter-Produkte";
		videofiles[3] = "Flammenfilter-Messetrailer";
		
	}	
	bandw_string = "-" + bandw + "-Res";
	
	if (format == "mpg") { 
		bandw_string = "";
	}
	newurl = "../video.htm?" + videofiles[vidnr] + bandw_string + "." + format;
	
	paramstring = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=480,height=440,left=195,top=220";
	vpop = window.open(newurl, "Video", paramstring);
	vpop.focus();
}
	
function writefilename()
{
	window.name = "Video";
	var ordner = "flammenfilter-videos/";
  var videodatei   = window.location.search;
  if (videodatei != "") {
   	videodatei = ordner + videodatei.substring(1,videodatei.length);                
    dateiendung = videodatei.substring((videodatei.length - 3), videodatei.length);
    //document.write('<object data="' + videodatei + '" width="480" height="420" type="video/' + dateiendung + '">Ihr Browser kann das Video leider nicht anzeigen!</object>');
   document.write('<object width="480" height="420" classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95"><PARAM NAME="src" VALUE="' + videodatei + '">Ihr Browser kann das Video leider nicht anzeigen!</object>');
  
   //document.write('   <br>' + videodatei);
   }
}


window.name = "protegofenster";

var jfhewuf = 'zoomabsolute="200%" quality="high" scale="default" menu="false"'; 