Event.observe(window, 'load', function(){


//Attach event listeners.
Event.observe('signup', 'click', ShowBox1);

Event.observe('news', 'mouseover', ShowNews);
Event.observe('news', 'mouseout', HideNews);


Event.observe('tour', 'mouseover', ShowTour);
Event.observe('tour', 'mouseout', HideTour);


Event.observe('media', 'mouseover', ShowMedia);
Event.observe('media', 'mouseout', HideMedia);

Event.observe('blog', 'mouseover', ShowBlog);
Event.observe('blog', 'mouseout', HideBlog);

Event.observe('forum', 'mouseover', ShowForum);
Event.observe('forum', 'mouseout', HideForum);

Event.observe('store', 'mouseover', ShowStore);
Event.observe('store', 'mouseout', HideStore);

Event.observe('signup', 'mouseover', ShowSignup);
Event.observe('signup', 'mouseout', HideSignup);

Event.observe('comingsoon', 'click', function(){ window.open ("http://www.btestore.com/index.aspx","Buy Paper Empire"); });

Event.observe('myspace', 'click', function(){ window.open ("http://myspace.com/betterthanezra","MySpace"); });
Event.observe('facebook', 'click', function(){ window.open ("http://www.facebook.com/BetterThanEzra","Facebook"); });
Event.observe('imeem', 'click', function(){ window.open ("http://www.imeem.com/artists/better_than_ezra/","Imeem"); });
Event.observe('purevolume', 'click', function(){ window.open ("http://www.purevolume.com/betterthanezra","PureVolume"); });







function ShowNews(event){
	Effect.Appear('newsfilled', { duration: 0.3 });
}

function HideNews(event){
	Effect.Fade('newsfilled', { duration: 0.3 });
}


function ShowTour(event){
	Effect.Appear('tourfilled', { duration: 0.3 });
}

function HideTour(event){
	Effect.Fade('tourfilled', { duration: 0.3 });
}

function ShowMedia(event){
	Effect.Appear('mediafilled', { duration: 0.3 });
}

function HideMedia(event){
	Effect.Fade('mediafilled', { duration: 0.3 });
}



function ShowBlog(event){
	Effect.Appear('blogfilled', { duration: 0.3 });
}

function HideBlog(event){
	Effect.Fade('blogfilled', { duration: 0.3 });
}


function ShowForum(event){
	Effect.Appear('forumfilled', { duration: 0.3 });
}

function HideForum(event){
	Effect.Fade('forumfilled', { duration: 0.3 });
}

function ShowStore(event){
	Effect.Appear('storefilled', { duration: 0.3 });
}

function HideStore(event){
	Effect.Fade('storefilled', { duration: 0.3 });
}

function ShowStore(event){
	Effect.Appear('storefilled', { duration: 0.3 });
}

function HideStore(event){
	Effect.Fade('storefilled', { duration: 0.3 });
}

function ShowSignup(event){
	Effect.Appear('signupfilled', { duration: 0.3 });
}

function HideSignup(event){
	Effect.Fade('signupfilled', { duration: 0.3 });
}








function ShowBox1(event){
	new Effect.BlindDown('box1', { duration: 0.5 });
	

	Event.stopObserving('signup', 'click', ShowBox1);	
	Event.observe('signup', 'click', HideBox1);
	
}


function HideBox1(event){
	new Effect.BlindUp('box1', { duration: 0.5 });
	

	Event.stopObserving('signup', 'click', HideBox1);
	Event.observe('signup', 'click', ShowBox1);
}

});




