var coll = ""
var styleObj = ""



function init()
{
	if (navigator.appName == "Netscape") 
	{
		if (parseInt(navigator.appVersion) >=5) 
			isNav6=true;
		else if (parseInt(navigator.appVersion) >=4)			
			isNav4=true;
	}
	else if(navigator.appName == "Microsoft Internet Explorer")
	{
		isIE = true;
		coll = "all.";
		styleObj = ".style";			
	}
}

function getobject(Object)
{
	var myObject=null;
	if(typeof Object == "string")
	{
		myObject=eval("document."+coll+Object+styleObj);
	}
	else 
		myObject=Object;
		
	return 	myObject;
}

function new_object(id)
{

 if (document.layers)         
   return document.layers[id];              
 else if (document.all) 
  return document.all[id].style;           
 else if (document.getElementById) 
 	return document.getElementById(id).style;
 else
	 return null;     
}    	


function show(id)
{		
	
	id=new_object(id);	
	id.visibility = "visible";				
}




function hide(id)
{	
		var id=new_object(id);								
		id.visibility = "hidden";							
}

function move(oString,x,y)
{	
		var o=getobject(oString)
		id=new_object(id);		
		if(o != null)
		{
				o.pixelLeft=x;	
				o.pixelTop=y;				
		
	}	
}

function moveRelativ(id,Align,ObjectWidth,horiz_versch,y)
{
	o=new_object(id);		
	iw=getInsideWindowWidth();		
	x=iw/2-ObjectWidth/2;
	
	
	if(id=="bildgross" || id=="bildgross1" || id=="bildgross2"  || id=="bildgross3")
	{
			x=x-58; // nach links verschieben
	}
	else
		x=x+horiz_versch; // verschieben
	
		
	o.left = x+"px";
	o.top = y+"px";
}




function getInsideWindowWidth()
{
	
		return document.body.clientWidth
}

function getInsideWindowHeight()
{

		return document.body.clientHeight
}




function winAGB() 
{ 
meineagb=window.open("agb.php","","width=640,height=420,menubar=1,toolbar=0,status=0,scrollbars=1,location=0,resizable=1,screenX=10,screenY=10");
	
		if (meineagb != null) meineagb.focus();
}



function winArchiv(url) 
{ 
meinarchiv=window.open(url,"","width=720,height=420,menubar=1,toolbar=1,status=1,scrollbars=1,location=1,resizable=1,screenX=10,screenY=10");
	
			if (meinarchiv != null) meinarchiv.focus();

}
    




//alle orte-layer fuer kunst-karte//

var karteIsVisible=null;

function showKarteKuenstler(oString)
{		
	id=new_object(id);		
	
	if(karteIsVisible != null)
		hide(karteIsVisible)
		
	
	id.visibility = "visible";		
	
	karteIsVisible = oString;	
}


function pem(mext,mvor,mnach,lext,lvor,lnach,klasse)
{
a = new Object();
a[1]='m';a[2]='a';a[3]='o';a[4]='h';a[5]='f';a[6]='6';

if(klasse != null && klasse.length > 0)
	klasse = ' class="'+klasse+'" '
else  
	klasse = ' '
	
s='<'+a[2]+klasse+a[4]+'re'+a[5]+'="'+a[1]+a[2]+'ilt'+a[3]+':'+mvor+'&#'+a[6]+'4;'+mnach+"."+mext+'">'+lvor;

if(lnach.length > 0)
	s=s+'&#'+a[6]+'4;'+lnach
if(lext.length > 0)	
	s=s+"."+lext+'</a>'
	
//alert(s);	

return (s)
}
