window.addEvent('domready', function() {
	
	//create our Accordion instance
	var GenreGuide = new Accordion($('genre_guide'), 'a.toggler', 'div.element', {
		onActive: function(toggler, element){
			toggler.setStyles({
				  backgroundColor: 'transparent',
				  backgroundImage: "url('http://fusionradio.ca/wp-content/themes/fusion/img/menu_hover.gif')",
				  backgroundPosition: 'bottom center',
				  backgroundRepeat: 'no-repeat',
				  color: '#353535'
		  	});
		},
		onBackground: function(toggler, element){
			toggler.setStyle('background-image', 'none');
			toggler.setStyle('color', '#969696');
		}
	});
	
	//create our Accordion instance
	var FusionNews = new Accordion($('fusion_news'), 'a.toggler2', 'div.element2', {
		onActive: function(toggler, element){
			toggler.setStyles({
				  backgroundColor: 'transparent',
				  backgroundImage: "url('http://fusionradio.ca/wp-content/themes/fusion/img/menu_hover.gif')",
				  backgroundPosition: 'bottom center',
				  backgroundRepeat: 'no-repeat',
				  color: '#353535'
		  	});
		},
		onBackground: function(toggler, element){
			toggler.setStyle('background-image', 'none');
			toggler.setStyle('color', '#969696');
		}
	});
	
	//create our Accordion instance
	var StaffBlogs = new Accordion($('staff_blogs'), 'a.toggler3', 'div.element3', {
		onActive: function(toggler, element){
			toggler.setStyles({
				  backgroundColor: 'transparent',
				  backgroundImage: "url('http://fusionradio.ca/wp-content/themes/fusion/img/menu_hover.gif')",
				  backgroundPosition: 'bottom center',
				  backgroundRepeat: 'no-repeat',
				  color: '#353535'
		  	});
		},
		onBackground: function(toggler, element){
			toggler.setStyle('background-image', 'none');
			toggler.setStyle('color', '#969696');
		}
	});
	
	//create our Accordion instance
	var MusicCharts = new Accordion($('music_charts'), 'a.toggler', 'div.element', {
		onActive: function(toggler, element){
			toggler.setStyles({
				  backgroundColor: 'transparent',
				  backgroundImage: "url('http://fusionradio.ca/wp-content/themes/fusion/img/menu_hover.gif')",
				  backgroundPosition: 'bottom center',
				  backgroundRepeat: 'no-repeat',
				  color: '#353535'
		  	});
		},
		onBackground: function(toggler, element){
			toggler.setStyle('background-image', 'none');
			toggler.setStyle('color', '#969696');
		}
	});
	
	//create our Accordion instance
	var MusicAdds = new Accordion($('music_adds'), 'a.toggler2', 'div.element2', {
		onActive: function(toggler, element){
			toggler.setStyles({
				  backgroundColor: 'transparent',
				  backgroundImage: "url('http://fusionradio.ca/wp-content/themes/fusion/img/menu_hover.gif')",
				  backgroundPosition: 'bottom center',
				  backgroundRepeat: 'no-repeat',
				  color: '#353535'
		  	});
		},
		onBackground: function(toggler, element){
			toggler.setStyle('background-image', 'none');
			toggler.setStyle('color', '#969696');
		}
	});
	
	/*var fusionManagers = new Accordion($('fusion_managers'), 'a.toggler', 'div.element', {
		onActive: function(toggler, element){
			toggler.setStyles({
				  backgroundColor: 'transparent',
				  backgroundImage: "url('http://fusionradio.ca/wp-content/themes/fusion/img/menu_hover.gif')",
				  backgroundPosition: 'bottom center',
				  backgroundRepeat: 'no-repeat',
				  color: '#353535'
		  	});
		},
		onBackground: function(toggler, element){
			toggler.setStyle('background-image', 'none');
			toggler.setStyle('color', '#969696');
		}
	});
	
	var fusionDirectors = new Accordion($('fusion_directors'), 'a.toggler2', 'div.element2', {
		onActive: function(toggler, element){
			toggler.setStyles({
				  backgroundColor: 'transparent',
				  backgroundImage: "url('http://fusionradio.ca/wp-content/themes/fusion/img/menu_hover.gif')",
				  backgroundPosition: 'bottom center',
				  backgroundRepeat: 'no-repeat',
				  color: '#353535'
		  	});
		},
		onBackground: function(toggler, element){
			toggler.setStyle('background-image', 'none');
			toggler.setStyle('color', '#969696');
		}
	});	*/	
	
	var fusionEditors = new Accordion($('fusion_editors'), 'a.toggler3', 'div.element3', {
		onActive: function(toggler, element){
			toggler.setStyles({
				  backgroundColor: 'transparent',
				  backgroundImage: "url('http://fusionradio.ca/wp-content/themes/fusion/img/menu_hover.gif')",
				  backgroundPosition: 'bottom center',
				  backgroundRepeat: 'no-repeat',
				  color: '#353535'
		  	});
		},
		onBackground: function(toggler, element){
			toggler.setStyle('background-image', 'none');
			toggler.setStyle('color', '#969696');
		}
	});
	
	var fusionGenreDirectors = new Accordion($('fusion_genre_directors'), 'a.toggler4', 'div.element4', {
		onActive: function(toggler, element){
			toggler.setStyles({
				  backgroundColor: 'transparent',
				  backgroundImage: "url('http://fusionradio.ca/wp-content/themes/fusion/img/menu_hover.gif')",
				  backgroundPosition: 'bottom center',
				  backgroundRepeat: 'no-repeat',
				  color: '#353535'
		  	});
		},
		onBackground: function(toggler, element){
			toggler.setStyle('background-image', 'none');
			toggler.setStyle('color', '#969696');
		}
	});
	
	
});

function ListenLivePopUp() {
	window.open("http://fusionradio.ca/listen_live.html","fusion_player", "height=400, width=730 ,fullscreen=no,toolbar=no,menubar=no,scrollbars=no,resizable=no");	
}

function LiveChatPopUp() {
	window.open("http://fusionradio.ca/chat/","fusion_chat", "height=565, width=860 ,fullscreen=no,toolbar=no,menubar=no,scrollbars=no,resizable=no");	
}