var banner = 
{
	'#banner a' : function(el)
	{
		el.addClassName('track');
		el.writeAttribute('track','/' + el.title);
	},
	'#promotion' : function(el)
	{
		el.onclick = function()
		{
			$('promotion').toggle();
		}
	},
	'.promotion' : function (el){
		el.onclick = function()
		{
			($('promotion').visible()) ? msg.start() : msg.stop();
			$('promotion').toggle();			
			return false;			
		}
	},
	'.banner.next' : function (el){
		el.onclick = function(){
			msg.next();
			return false;
		}
	},
	'.banner.previous' : function (el){
		el.onclick = function(){
			msg.previous();
			return false;
		}
	},
	'.banner.pause' : function (el){
		el.onclick = function(){
			msg.pause();
			return false;
		}
	},
	'.banner.resume' : function (el){
		el.onclick = function(){
			msg.resume();
			return false;
		}
	},
	'#contentbox' : function(el){
		if(readCookie('contentlayer'))
			el.style.display = "none";
	},
	'#contentbox .contentboxheader a' : function(el)
	{
		el.onclick = function()
		{		
		
			$('contentbox').toggle();
			createCookie('contentlayer','true','90','/')
			
			return false;
		}
	},
	'a.contentbox' : function(el){
		el.onclick = function()
		{
		
			$('contentbox').toggle()
			return false;
		}
	}
}

Behaviour.register(banner);