var tp = 40;
function move(f)
{
	n = window.setInterval (f,100);
}

userAgent = window.navigator.userAgent;
browserVers = parseInt(userAgent.charAt(userAgent.indexOf("/")+1),10);
function findElement(n,ly) {
	if (browserVers < 4)		return document[n];
	var curDoc = ly ? ly.document : document;
	var elem = curDoc[n];
	if (!elem) {
		for (var i=0;i<curDoc.layers.length;i++) {
			elem = findElement(n,curDoc.layers[i]);
			if (elem) return elem;
		}
	}
	return elem;
}

function textup()
{
  	tp = tp - 10;
  	document.getElementById("qu").style.marginTop = tp;
}

function textdown()
{
if (tp < 10)
  {
  	tp = tp + 10;
  	document.getElementById("qu").style.marginTop = tp;
  	
	}
}

function bildup()
{
  	tp = tp - 10;
  	document.getElementById("qb").style.marginTop = tp;
}

function bilddown()
{
if (tp < 10)
  {
  	tp = tp + 10;
  	document.getElementById("qb").style.marginTop = tp;
	}
}


//
//function showSub(m)
//{     var l;
// for ( l = 1; l <= 5; l++)
// {   
//    document.getElementById('sub'+ l).style.display = "none";
// }
//    document.getElementById('sub'+ m).style.display = "block";
//}

