var url = window.document.location;
var title = window.document.title;
var favtit = "voeg toe aan favorieten"
var isIE = (navigator.appName.indexOf("Microsoft") > -1);
if (!isIE) favtit = "sleep naar bookmarks";

function fav(){
	if (isIE) {window.external.AddFavorite(url,title)} else {alert('Sleep het aangeklikte icoontje naar de bookmark-balk van uw browser!')}
}
function soc(jn){
	o = document.getElementById('sociaal');
	if (jn) {o.style.display='block';} else {o.style.display='none'};
}

function pdf(){location.href='/post/pdf.aspx?url=' + url;}


//r += '<li><a href="mailto:?Subject=' + escape(title) + '&Body=' + escape(url) + '" id="mail" title="reageren of doorsturen"><span>mailen</span></a></li>';		
var r = '';
r += '<div id="alg"' + (isIE ? ' class="ie"' : '') + '><ul>';
r += '<li><a href="javascript:window.print()" id="print" title="printen"><span>print</span></a></li>';
r += '<li><a href="javascript:pdf()" id="pdf" title="opslaan als pdf"><span>pdf</span></a></li>';
r += '<li><a href="' + url + '" onclick="fav(); return false;" id="fav" title="' + favtit + '"><span>' + title + '</span>&nbsp;&nbsp;&nbsp;&nbsp;</a></li>';
r += '<li><a href="#" id="mail" title="reageren of doorsturen"><span>mailen</span></a></li>';							
r += '<li onmouseover="soc(1)" onmouseout="soc(0)"><a id="share"><span>delen</span></a>';
r += '<div id="sociaal">';
	r += '<a target="_blank" href="http://www.delicious.com/post?url=' + escape(url) + '&title=' + escape(title) + '" title="Delicious"></a>';
	r += '<a target="_blank" href="http://twitter.com/home?status=' + escape(title + ' ' + url) + '" title="Twitter"></a>';				
	r += '<a target="_blank" href="http://www.hyves.nl/profilemanage/add/tips/?name=' + escape(title) + '&text=' + escape(url) + '&type=12" title="Hyves"></a>';		
	r += '<a target="_blank" href="http://www.google.com/bookmarks/mark?op=add&bkmk=' + escape(url) + '&title=' + escape(title) + '" title="Google Bookmarks"></a>';
	r += '<a target="_blank" href="http://favorites.live.com/quickAdd.aspx?url=' + escape(url) + '&title=' + escape(title) + '" title="Msn/Live Favorite"></a>';				
	r += '<a target="_blank" href="http://nujij.nl/jij.lynkx?t=' + escape(title) + '&u=' + escape(url) + '" title="Nujij"></a>';	
r += '</div>';
r += '</li>';					
r += '</ul></div>';

document.write(r);

$('#mail').colorbox({
					href:"/post/mail.htm",
					onClosed:function(){$('iframe').css('visibility', 'visible')},
					width:"550px"} , function(){$('iframe').css('visibility', 'hidden');strt();});

