//<![CDATA[

function writeMyAdi(displayType) {
	strad='strada' + 'x.net';
	strad=('beat' + String.fromCharCode(8*8) + strad);
	if(displayType == 1) {
		document.write('<address>Beat&nbsp;Strasser &lt;&nbsp;<a href=\"ma'+'ilto:' + strad + '\">' + strad + '<\/a>&nbsp;&gt;</address>');
	} else {
		document.write('<address><a href=\"ma'+'ilto:' + strad + '\">' + strad + '<\/a></address>');
	}
}

function s(a,b,i,x){
	if(a > b) {
		var m = (a-b)/Math.log(x);
		var v = a-Math.floor(Math.log(i)*m);
	}
	else {
		var m = (b-a)/Math.log(x);
		var v = Math.floor(Math.log(i)*m+a);
	};
	return v;
}

function fillDeliciousTags() {
	var ca=[144,144,144],cz=[0,80,153],c=[]
	var ta=1,tz=44;
	document.write('<ul>')
	for(var t in Delicious.tags) {
		for (var i=0; i<3; i++) c[i] = s(ca[i],cz[i],Delicious.tags[t] - ta,tz);
		var fs = s(10,20,Delicious.tags[t]-ta,tz)
		document.write('<li style="font-size:'+fs+'px;line-height:1;"><a style="color:rgb('+c[0]+','+c[1]+','+c[2]+')" href="http://del.icio.us/b8/'+encodeURIComponent(t).replace('%2F','/')+'">'+t+'</a> </li>');
	}
	document.write('</ul>');
}

function fillDeliciousPosts() {
	document.write('<ul>');
	for(var i=0,p;p=Delicious.posts[i];i++){
		 document.write('<li class="delicious-post delicious-'+(i%2?'even':'odd')+'">»&#160;<a class="delicious-link"'+(p.n?(' title="'+p.n.replace(/"/g,'&quot;')+'"'):'')+' href="'+p.u+'">'+p.d+'</a></li>')
	}
	document.write('</ul>');
}
//]]>
