    var jsmid='profil';
	docurl = self.document.location.href;
	jsmid = "";
	if (docurl.indexOf("?") > 0)
	{
		jsmid  = docurl.substring(docurl.indexOf("?mid=")+5, docurl.length);	
		docurl = docurl.substring(0, docurl.indexOf("?"));		
		if (jsmid.indexOf("&") > 0)
		{
			jsmid  = jsmid.substring(0, jsmid.indexOf("&"));
		}
		//alert(jsmid);
		//alert(docurl);				
	}


	stop = false;
	sleep = false;
	
	var movetimer;
	var sleeptimer; 
	var wakuptimer;
	var outtimer;
	var mid='profil';
	
//document.write('<table style="position:absolute; top:180; left: 20; width:130; height: 120;" border="1">');
document.write('<table id="postable" style="position:relative; left: 80; width:130; height: 120;" border="0">');
document.write('<tr>');
document.write('<td onmouseover="doStop()" onmouseout="doTableOut()">');

document.write('</td>');
document.write('</tr>');
document.write('</table>');
//document.write("<br/><div style='position:relative; left: 80;'><a href='" + docurl + "?mid=profil&css=1'>Design 1</a>");	
//document.write("<br/><a href='" + docurl + "?mid=profil&css=0'>Design 2</a>");
//document.write("<br/></div>");


	function doTableOut()
	{	
		outtimer = setTimeout ('doStart(false)',1000);
	}
	
	function doStopFlagge()
	{
		clearTimeout(sleeptimer);
		clearTimeout(wakuptimer);
		clearTimeout(outtimer);
		stop = true;
		sleep = true;
	}	

	function doStop()
	{
		clearTimeout(sleeptimer);
		clearTimeout(wakuptimer);
		clearTimeout(outtimer);		
		stop = true;
		sleep = true;
		move();
	}	

	function doStartFlagge(getmid)
	{
		mid = getmid;
		move();		
		doStart(false);
	}

	function doStart(fromsleep)
	{
		if ((stop) && (fromsleep)) return;
		clearTimeout(sleeptimer);
		clearTimeout(wakuptimer);		
		alpha = 0;
		faktor = 1;        
		localAlpha = 1;
		stop = false;
		sleep = false;
                move();
		if (winkelincrement == 0.06) winkelincrement = -0.06;
		else winkelincrement = 0.06;
		sleeptimer = setTimeout ('doSleep()',1000);
	}

	function doSleep()
	{
		sleep = true;		
		wakuptimer = setTimeout ('doWakeUp()',3000);
	}

	function doWakeUp()
	{
		sleep = false;		
		sleeptimer = setTimeout ('doSleep()',4000);
		if (winkelincrement == 0.06) winkelincrement = -0.06;
		else winkelincrement = 0.06;
		move();
	}

	/*
	 *    PARAMETER:
	 *
 	 ********************************/
	flaggen = new Array("at", "de", "es", "fr", "en", "pl", "it");
//	flaggen = new Array("at", "de", "es", "fr", "en", "it");	
	flaggenNamen = new Array("deutsch (Österreich)", "deutsch (Deutschland)", "español", "français", "english", "polski", "italiano");	
	anzPunkte = flaggen.length;
	sektorWinkel = (2*Math.PI) / anzPunkte;	 //Winkel zwischen den Punkten - hier gleichmäßig verteilt
	radius = 40;
	posleft = 130;
//	postop = 110;
	postop = document.getElementById('postable').offsetTop + 50;
	timeout = 20;
	winkelincrement = 0.06;
	// Punkte zunächst außerhalb des sichtbaren Bildschirms platzieren
	// Unterschiedliche Punktgröße wegen Layout

	if(document.getElementById && document.all && document.styleSheets) document.write("<style type='text/css'>span{position: absolute; left:-130px; top:-30px; font-size:130%}</style>"); // ie5+
	else if(document.getElementById && !document.all) document.write("<style type='text/css'>span{position: absolute; left:-130px; top:-30px; font-size:200%}</style>"); //nn6+
	else if(document.getElementById && !document.styleSheets) document.write("<style type='text/css'>span{position: absolute; left:-130px; top:-30px; font-size:200%}</style>"); // opera
	else document.write("<style type='text/css'>span{position: absolute; left:-130px; top:-30px; font-size:20px}</style>"); // restliche Browser

	
	// Anzahl der Pünktchen bestimmen und in div-Tags schreiben (einen mehr wg. Opera-Bug mit 0)
	i = 0;
	while(i < anzPunkte) 
	{
		document.write("<span id='P" + i + "' onmouseover='doStopFlagge()'><a href='" + docurl + "?mid=" + jsmid + "&sprache=" + flaggen[i] + "'><img src='images/flaggen/" + flaggen[i] + ".jpg' id='limg" + i  + "' width='20px' height='15px' border='0' alt='" + flaggenNamen[i] + "'/></a></span>");
		i++;
	}

	// Browserweiche (ie 5+ und nn 6+ / ie 4+ / nn 4.x)
	var laySyntax=new Array();
	i = 0;
	while(i < anzPunkte) 
	{
		if(document.getElementById) laySyntax[i]=document.getElementById("P"+i).style;
		else if(document.all) laySyntax[i]=document.all.tags("div")[i].style;
		else if(document.layers) laySyntax[i]=document.layers[i];
		i++;
	}

	// Kreisbewegung
	// 100 = Radius, 125/110 = Nullpunkt
	// 0.0628 = 2*Pi/Punkteanzahl pro Kreis = 2*Pi/100
	// = Abstand der Elemente zueinander in Radiant (rad)
	// Diese Angaben bestimmen die Größe des Kreises

	var alpha=0;
	var faktor = 1;        
	var localAlpha = 1;

	function move() {
		for(p=0;p<anzPunkte;p++) {
			laySyntax[p].left=posleft+radius*Math.cos(alpha+sektorWinkel*p);
			laySyntax[p].top=postop+radius*Math.sin(alpha+sektorWinkel*p);
			localAlpha = (alpha+sektorWinkel*p) % (2*Math.PI);
			if (localAlpha < Math.PI)
			{
				faktor = localAlpha;
			}
			else
			{
				faktor = localAlpha - Math.PI;

				faktor = Math.PI - (faktor);
			}
			if (!stop)
			{
				document.getElementById("limg"+p).width = 10 + 10*(faktor + 0.1);
				document.getElementById("limg"+p).height = 5 + 10*(faktor + 0.1);
			}
			else
			{
				document.getElementById("limg"+p).width = 35;
				document.getElementById("limg"+p).height = 25;	
			}
		
		}

		if (stop) return;

		// Winkel-Geschwindigkeit
//		document.getElementById("inp").value=alpha;
//		document.getElementById("inp1").value = Math.PI;
		alpha=alpha+winkelincrement;
		if (alpha > 2*Math.PI) 
		{
			alpha = 0;	
			faktor = 1;
		}
		if (alpha < 0) 
		{
			alpha = 2*Math.PI;	
			faktor = 1;
		}
		if (alpha < Math.PI) faktor = faktor + 0.003;
		else faktor = faktor - 0.003;

		clearTimeout(movetimer);

		if (!sleep) movetimer = setTimeout ('move()',timeout);
	}


/*

POLL-NUSSBAUMER internationale Transporte   ***  POLL-NUSSBAUMER internationale Transporte   *** POLL-NUSSBAUMER internationale Transporte   *** POLL-NUSSBAUMER internationale Transporte   *** POLL-NUSSBAUMER internationale Transporte   *** POLL-NUSSBAUMER internationale Transporte   *** POLL-NUSSBAUMER internationale Transporte   *** POLL-NUSSBAUMER internationale Transporte   *** POLL-NUSSBAUMER internationale Transporte   *** 

*/
