function countClicks(id) {
	url = "/count_link.php?id=" + id;
	new Ajax.Request(url, { method: "get" });

	$("sweruLink_" + id).style.cssText += "text-decoration: line-through;";
}

function getPosition(event) {
		var child = Event.element(event);
		var position = jwplayer().getPosition();

		if(position == null) position = '';
		else position = '#' + position;

		location.href = child.href + position;
		Event.stop(event);
}

/*
function addEvent(func) {
	var oldonload = window.onload;
	if(typeof window.onload != 'function') {
		window.onload = func;
	} else {
		window.onload = function() {
			oldonload();
			func();
		}
	}
}
*/

Event.observe(window, "load", function() {
	getTwitter();
	bgmPlayer();
	changeVolume();
});
