/*
@author: joerg.eichhorn@sys-mail.net
*/

function getL()
	{ 
		
		if (document.images['pxs'].x)
			{ t0 = document.images['pxs'].x; }
		else
			{ 
				if (document.getElementById)
					{
						if ( document.getElementById('tdmddl').offsetLeft )
							{
								t0 = document.getElementById('tdmddl').offsetLeft;
								
							}
					}
				else
					{
						t0 = parseInt(((b['ie']?document.body.clientWidth:window.innerWidth)-772)/2); 
					}
			}
		//alert(t0);
		t0 += (b['ie'])? -4:0;
		//if (navigator.userAgent.toLowerCase().match('gecko')) { t0 -= 8;}
		
		//alert(t0)
		return (t0<0)? 0:t0;
	}

var ol = new Array();
var l=-1;
function posElems(arg1)
	{
		l = getL();
		if (! ol[arg1] )
			{ 
				
				ol[arg1]=lgetx(arg1);
				if (ol[arg1]===0) { ol[arg1]='null'; }
				if (shifty||shiftx) { lmove(arg1,1,shiftx,shifty); }
					
			}
		lmove(arg1,0,l+ ( ol[arg1]==='null'? 0:ol[arg1]) );
	}

function swp(arg1,arg2,arg3)
	{
		i = (b['nn4'] && arg3)? document.layers[arg3].document:window.document;
		i = i.images[arg1];
		i.src = pimg[arg1][arg2].src;
	}

function swap(arg1,arg2,arg3,arg4)
	{
		i = (b['nn4'] && arg4)? document.layers[arg4].document:window.document;
		i = i.images[arg1];
		i.src = pimg[arg2][arg3].src;
	}

oms = new Array('',0,0,0,0,0,0,0,0,0);
function menu(arg1)
	{
		for (z1=1;z1<6;z1++)
			{
				if (lgeto('nav'+z1))
					{
						oms[z1] = (z1==arg1)? 1-oms[z1]:0;
						lsh ('nav'+z1,oms[z1]);
					}
			}
	}


function ubl(obj)
	{
		if (obj.blur) { obj.blur(); }
	}
