Event.observe(window, 'load', function() {
	var quotes = new Array(11);
	quotes[0]="\"Jesus is just alright with us.\"";
	quotes[1]="\"Telling it like it is since 1999.\"";
	quotes[2]="\"Roaming through the night to find our place in this world.\"";
	quotes[3]="\"It takes a village to raise a church.\"";
	quotes[4]="\"Journey on...\"";
	quotes[5]="\"The church, not the band.\"";
	quotes[6]="\"We'll see you after the rapture!\"";
	quotes[7]="\"We belive in absolute truthiness\"";
	quotes[8]="\"We don't believe in rhetorical questions\"";
	quotes[9]="\"Making lemonade since 1999\"";
	quotes[10]="\"Don't Stop Believin'\"";
	
	var mq = new Marquee( 'marquee', quotes );
	mq.setQuote();
});


//Event.observe(window, 'load', function() {
//	if ( Cookie.read( 'journeydallas-alert' ) == null ) {
//		Dialog.alert({url: 'popups/book-alert.html', options: {method: 'get'}},
//			{windowParameters: {className: "alphacube", width:500, height:550, 
//			showEffect:Effect.Appear, hideEffect: Effect.Fade},
//			okLabel: "Close" }
//		);
//		Cookie.create('journeydallas-alert','true',0);
//	}
//});

var confirm = false;

function openMySpaceAlert() {
	
	Dialog.confirm({url: "popups/myspace-alert.html", options: {method: 'get'}}, 
		{windowParameters: {className: "alphacube", width:540, 
			showEffect:Effect.Appear, hideEffect: Effect.Fade},
			okLabel: "Proceed",
			ok: function() { confirm = true; return true; } });

	myObserver = { 
		onDestroy: function(eventName, win) { 
			if ( confirm ) { 
				document.location = "http://www.myspace.com/76560271"; 
				Windows.removeObserver(this); 
			} 
		}
	}

	Windows.addObserver(myObserver);
}

function openAlert(file, windowWidth) {
	Dialog.alert({url: 'popups/' + file, options: {method: 'get'}},
		{windowParameters: {className: "alphacube", width:windowWidth, 
			showEffect:Effect.Appear, hideEffect: Effect.Fade},
			okLabel: "Close" });
}