// load all functions
window.onload = loadfunctions;


function loadfunctions() {
//check page type to see if comments should be visible
	checkcomments();

//loads rounded corners
	makethemrounded();




}

//database popups
/*
var supernote = new SuperNote('supernote', {});
addEvent(document, 'click', function(evt) {
	var elm = evt.target || evt.srcElement, closeBtn, note;
	while (elm) {
		if ((/note-close/).test(elm.className)) closeBtn = elm;
		if ((/snb-pinned/).test(elm.className)) { note = elm; break }
		elm = elm.parentNode;
		}
	
		if (closeBtn && note) {
			var noteData = note.id.match(/([a-z_\-0-9]+)-note-([a-z_\-0-9]+)/i);
			for (var i = 0; i < SuperNote.instances.length; i++)
			if (SuperNote.instances[i].myName == noteData[1]) {
				setTimeout('SuperNote.instances[' + i + '].setVis("' + noteData[2] + '", false, true)', 100);
				cancelEvent(evt);
			}
 		}
});	

supernote.animations[supernote.animations.length] = animFade;
addEvent(supernote, 'show', function(noteID)
{
 // Do cool stuff here!
});
addEvent(supernote, 'hide', function(noteID)
{
 // Do cool stuff here!
});
*/