th_neededversion="6,0,45,0";
th_moviefile="LIGNUM.swf";
th_moviename="lignum";
th_moviediv="website";
th_moviewidth="100%";
th_movieheight="100%";
th_moviebackground="#FDF5E0";
th_movievars="html=1";
var fensteri;
var smodus=1;
var b=0;
var h=0;
var a='';

function th_action(typ,ziel){
	if(typ=='start'){
		th_controlswf('nav',ziel);
	}else if(typ=='history'){
		th_controlswf('nav',ziel);
	}
}
function th_usercommand(cmd,para){
	if(cmd=='popup'){
		para=para.split("!!");
	window.open(para[0],'popup',"width="+para[1]+",height="+para[2]+",top=100,left=100,resizable=no,location=no,menubar=no,status=no,toolbar=no,scrollbars=no,directories=no");
	}
}

function th_noswf(){
	if(th_hash=="")
		window.location.href="http://www.lignumag.de/html/";
	else
		window.location.href="http://www.lignumag.de/html/index.php?option=com_content&view=article&"+tabelle1[th_hash];
/*	h=th_hash.split("_");
	a=h[0];
	if(a!=""){
		if(h[1]!=undefined){
			a+="/"+h[1];
		}
//		window.location.href="http://www.lignumag.de/html/index.php/"+a;
	}else{
//		window.location.href="http://www.lignumag.de/html/";
	}*/
}
window.clearInterval(fensteri);
fensteri=window.setInterval("fensterf()",400);
function fensterf(){
	if(self.innerWidth){
		b=self.innerWidth;
		h=self.innerHeight;
	}else if(document.documentElement&&document.documentElement.clientWidth){
		b=document.documentElement.clientWidth;
		h=document.documentElement.clientHeight;
	}else if(document.body){
		b=document.body.clientWidth;
		h=document.body.clientHeight;
	}
	if(b<870){
		if(smodus==1&&document.getElementById('lignum')){
			if(th_b=='s') document.getElementById('lignum').style.width='870px'; 
			else{
				window.document['lignum'].style.width='870';
				window.document['lignum'].style.height=h-20;
			}
			smodus=0;
		}else if(smodus==0&&th_b!='s') window.document['lignum'].style.height=h-20;
	}else if(smodus==0&&document.getElementById('lignum')){
			if(th_b=='s') document.getElementById('lignum').style.width='100%'; 
			else window.document['lignum'].style.width=window.document['lignum'].style.height='100%';
		smodus=1;
	}
}