var URL,F;
fenSM='';
framePP='';
pp_handle='';
eml1='ma';
eml2='il';
eml3='to:';
URLs=new Array('dieter-vogel.at','www.dieter-vogel.at','vision-development.at','www.vision-development.at');
Startdatei='index.php';
Sprache='de';
for(i=0;i<URLs.length;i++) {if(location.href.indexOf(URLs[i])>-1) {URL='http://'+URLs[i]+'/'}}

function initMain(n1,n2,n3,n4,n5,n6) {
	fokusSM();
	document.onclick=fokusSM;
	if(top.location.href.indexOf(URL)<0||top.location.href==location.href) {
		top.location.replace(URL+Startdatei+'?'+top.location.href);
	} else {initMain1(n1,n2,n3,n4,n5,n6)}
}
function initMain0() {
	if(typeof top.frames.nav1=='object') {
		f1=top.frames.nav1;
		if(f1.L0==1) {f1.kX0();return}
	}
	setTimeout('initMain0()',20);
}
function initMain1(n1,n2,n3,n4,n5,n6) {
	if(typeof top.frames.nav1=='object') {
		f1=top.frames.nav1;
		if(f1.L0==1) {f1.kX(n1,n2,n3,n4,n5,n6);return}
	}
	setTimeout('initMain1('+n1+','+n2+','+n3+','+n4+','+n5+','+n6+')',20);
}
function initM(n1,n2) {initMain(n1,n2,-1,1)}
function elem(v) {return document.getElementById(v)}
function imgsrc(n,l) {return document.getElementsByName(n)[0]}
function obj(o) {return elem(o).style}
function bgC(o,c) {obj(o).backgroundColor=c}
function zeige(o,si) {v=obj(o);if(si==1) {v.visibility='visible'} else {v.visibility='hidden'}}
function fokusSM() {if(SM()) F.focus()}
function SM() {
	if(typeof top.frames.nav1=='object') {
		f=top.frames.nav1;
		F=f.fenSM;
		if(typeof F=='object') {if(!F.closed) return true}
	}
	return false;
}
function openSM() {
	if(!SM()) fenSM='';
	if(fenSM=='') {
		bSM=220;
		li=screen.availWidth-bSM-15;
		fenSM=window.open(URL+Sprache+'/sitemap.php','Sitemap','width='+bSM+',height=520,left='+li+',top=50,resizable=yes,scrollbars=yes');
	} else {fokusSM()}
}
function bildgross(bild,text,w,h) {
	maxB=screen.width-40;
	maxH=screen.height-100;
	scr='';
	if(w>maxB) {w=maxB;scr=',scrollbars=yes'}
	if(h>maxH) {h=maxH;scr=',scrollbars=yes'}
	if(pp()) {
		pp_close();
		setTimeout('bildgross("'+bild+'","'+text+'","'+w+'","'+h+'")',20);
	} else {
		eval('top.frames.nav1.pp_handle=window.open("'+URL+Sprache+'/bildgross.php?Bild='+bild+'&Text='+text+'","bildgross","width='+w+',height='+h+',left=20,top=20'+scr+'")');
	}
}
function bildergross(id,w,h,t) {
	hx=h+33;
	maxB=screen.width-40;
	maxH=screen.height-100;
	scr='';
	if(w<300) w=300;
	if(w>maxB) {w=maxB;scr=',scrollbars=yes'}
	if(hx>maxH) {hx=maxH;scr=',scrollbars=yes'}
	if(pp()) {
		pp_close();
		setTimeout('bildergross("'+id+'",'+w+','+h+',"'+t+'")',20);
	} else {
		if(fPP()) {
			eval('framePP.pp_handle=window.open("'+URL+Sprache+'/bildergross.php?ID='+id+'&TAB='+t+'","bildergross","width='+w+',height='+hx+',left=20,top=20'+scr+'")');
		} else {
			setTimeout('bildergross("'+id+'",'+w+','+h+',"'+t+'")',20);
		}
	}
}
function openInfo(file) {
	if(pp()) {
		pp_close();
		setTimeout('openInfo("'+file+'")',20);
	} else {
		framePP.pp_handle=window.open(file,'info','width=550,height=450,left=20,top=20,scrollbars=yes');
	}
}
function popupinfo(id) {
	if(pp()) {
		pp_close();
		setTimeout('popupinfo('+id+')',20);
	} else {
		framePP.pp_handle=window.open(URL+Sprache+'/info.php?IDP='+id,'ppinfo','width=550,height=450,left=20,top=20,scrollbars=yes');
	}
}
function pp_close() {if(pp()) {framePP.pp_handle.close();framePP.pp_handle=''}}
function closeSM() {if(SM()) {if(!eval('top.frames.nav1.fenSM.closed')) {eval('top.frames.nav1.fenSM.close()')}}}
function pp() {
	if(fPP()) {
		if(typeof framePP.pp_handle=='object') return true;
	}
	return false;
}
function fPP() {if(typeof top.frames.nav1=='object') {framePP=top.frames.nav1;return true} else {framePP='';return false}}
function hM(t1,t2,t3) {location.href=eml1+eml2+eml3+t1+String.fromCharCode(13+51)+t2+'.'+t3}

