function makeRounded() {
	document.getElementsByClassName("makeRounded").each(function(div) {
		var tldiv = document.createElement('div');
		var trdiv = document.createElement('div');
		var bldiv = document.createElement('div');
		var brdiv = document.createElement('div');
		tldiv.className="rounded_lt";
		trdiv.className="rounded_rt";
		bldiv.className="rounded_lb";
		brdiv.className="rounded_rb";
		div.parentNode.replaceChild(tldiv, div);
		div.className=div.className.replace('makeRounded','');
		tldiv.appendChild(trdiv);
		trdiv.appendChild(bldiv);
		bldiv.appendChild(brdiv);
		brdiv.appendChild(div);
	});
}

function fixPng(myImage){
	if (window.ie55up) {
		var imgID = (myImage.id) ? "id='" + myImage.id + "' " : ""
		var imgClass = (myImage.className) ? "class='" + myImage.className + "' " : ""
		var imgTitle = (myImage.title) ? "title='" + myImage.title + "' " : "title='" + myImage.alt + "' "
		var imgStyle = "display:inline-block;" + myImage.style.cssText
		var strNewHTML = "<span " + imgID + imgClass + imgTitle
		if (myImage.parentNode.href) imgStyle += "cursor:hand;";
		strNewHTML += " style=\"" + "width:" + myImage.width + "px; height:" + myImage.height + "px;" + imgStyle + ";"
		strNewHTML += "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'" + myImage.src + "\');\"></span>"
		myImage.outerHTML = strNewHTML
	}
}

function bookmark() {
	title = "Vlaamse Parkinson Liga";
	url = "http://www.parkinsonliga.be";
	if (window.sidebar) { // Mozilla Firefox Bookmark
		window.sidebar.addPanel(title, url,"");
	} else if( window.external ) { // IE Favorite
		window.external.AddFavorite( url, title); }
	else if(window.opera && window.print) { // Opera Hotlist
		return true; }
}
		
/* calls the function after the page is loaded */
window.onload=makeRounded;

