var toph=-200;
var aniint;
function loading_partner()
{
	var test;
	test = window.innerWidth;
	test = test-400;
	test = test/2;
	document.getElementById('partner').style.left=test+'px';
	document.getElementById('partner').style.top=toph+'px';
	aniint=setInterval(ad_opener,1);
}
function close_ad()
{
	aniint=setInterval(ad_closer,1);	
}
function ad_opener()
{
	if(toph<200)
	{
		toph=toph+20;
		document.getElementById('partner').style.top=toph+'px';	
	}
	else
	{
		clearInterval(aniint);
	}
}
function ad_closer()
{
	if(toph>-200)
	{
		toph=toph-20;
		document.getElementById('partner').style.top=toph+'px';	
	}
	else
	{
		document.getElementById('partner').style.display='none';
		clearInterval(aniint);
	}
}
function click_ad()
{
	window.alert('Danke! :-)');
	window.open('http://www.IFAW.org','IFAW');
}
