var showText = 3000;

var showContent = function() {

	$('#content div:first').fadeIn (1000);
	
	$('#navigation').fadeIn (500);

	/*

	$('#content div:first').fadeTo(1000, 0.99);
	
	$('#navigation').fadeTo(500, 0.99);

	*/

	$('#content div:first').jScrollPane({
			
		scrollbarWidth : 5
			
	});
	
} // end showContent

function init() {

	window.showContent = showContent;

	function startFlash(flash, skip) {
		
		var params = {
		
			allowscriptaccess : 'always',
			bgcolor : 'black',
			wmode : 'transparent'
				
		} // end params

		var attribs = {
			
			wmode : 'transparent'

		} // end if


		if (skip) {
			
			params.skip = true;
			
		} // end if
		
		swfobject.embedSWF("/" + flash, "flash-div", "475", "450", "9.0.0", null, params, attribs);
		
	} // end startFlash

	var flash = $('#flash-file').val();

	var skip = $('#skip-flash').val();

	if (skip == 1) {
		
		$('#content div:first').show();
		
		$('#content div:first').jScrollPane({
													 
			scrollbarWidth : 5
													 
		 });

		startFlash(flash, true);

	} else {
		
		// setTimeout(showContent, showText);

		startFlash(flash, false);

	} // end if

} // end init

$(document).ready(init);