//alert("bis hier")
//var picWidth = "200px";
//var picHeight = "125px";
var picWidth = "200px";
var picHeight = "125px";

var pic = null;
var cnt = Math.PI; //2*Math.PI
var pixel = 40;
var s = "";
function run(pic){
	//s += (cnt*pixel)+" - "+picHeight+"\n";
	//alert(pic.height)
	cnt -= 0.2;
	if(cnt > 0){
//	if(cnt-- > 0){
//		pic.style.width = ""+(parseInt(picWidth)+(cnt*pixel))+"px";
//		pic.style.height = ""+(parseInt(picHeight)+(cnt*pixel))+"px";
		pic.style.width = ""+(parseInt(picWidth)+(pixel*Math.sin(cnt)))+"px";
		pic.style.height = ""+(parseInt(picHeight)+(pixel*Math.sin(cnt)))+"px";
		window.setTimeout("run(pic)",30)
	}
	else {//alert("jau")
		pic.style.width = picWidth;
		pic.style.height = picHeight;
	}
}

var onload_temp = window.onload || function () {};
window.onload = function () {
	onload_temp();
	pic = document.getElementById("logopic");
	run(pic);
}

//alert(window.onload)
/*
onload = function(){
	pic = document.getElementById("logopic");
//	pic.style.width = picWidth;
//	pic.style.height = picHeight;
//	pic.width = parseInt(pic.style.width);
//	pic.height = parseInt(pic.style.height);
	run(pic);
}
*/

/*
x = a*cos(phi)
y = b*sin(phi)

und den Winkel phi lässt du als Parameter von 0 bis 2Pi laufen. 
So hättest du dann eine konstante Winkelgeschwindigkeit bzw. -diskretisierung.

*/