
var publicSiteRules = 
{
	'a.mp3Player' : function(element){
		element.style.visibility = 'visible';
		element.onclick = function(){
			trackId = this.href.split('/')[6];
			title = (this.title != "") ? this.title : trackId;
			flashProxy.call('playsitemp3', this.href, title);
			return false;
		}
	}
}

Behaviour.register(publicSiteRules);

var uid;
var flashProxy;

window.onload = function() 
{
	// re-apply behaviour.js becouse of funny window.onload handling
	Behaviour.apply();
	
	uid = new Date().getTime();
	flashProxy = new FlashProxy(uid, 'fileadmin/design/JavaScriptFlashGateway.swf');
	
	var so = new SWFObject("fileadmin/design/player.swf", "player", "247", "116", "6", "#000000");
	so.addVariable("lcId", uid);
	so.write("flashcontent");
}