 // <!--

function showPresentation( ) {
	$(document).oneTime( 300, function() {
		$("#doc").show( );
		$("#logo").fadeIn( 200 );
	});

	$(document).oneTime( 4500, function() { 
		$("#doc").hide( );
	});

	$(document).oneTime( 4600, function() {
		document.location.href = document.location.href.replace( '/index.html' , '/') + 'details.html';
	}); 
}

function showPage( ) {
	$("#doc").css( 'width', '800px' );
	$("#doc").css( 'left', '50%' );
	$("#doc").css( 'top', '40px' );
	$("#doc").css( 'bottom', '40px' );
	$("#doc").css( 'margin', '0 0 0 -400px' );

	$("#logo").css( 'top', '0px' );
	$("#logo").css( 'left', '50%' );
	$("#logo").css( 'margin', '0 0 0 -73px' );
	$("#logo").css( 'width', '196px' );
	$("#logo").css( 'height', '80px' );

	$("#logo").show( );
	$("#brightSky").show( );
	$("#content").show( );
	$("#menu").show( );
	$("#advertising").show( );
	$("#websitesPage").show( );
	$("#doc").fadeIn( 1000 );
}


function initButtons( ) {
	$('#websitesButton').click( function() {
		handleButtonClick( $(this) );
		$('#websitesPage').fadeIn(150);
	});

	$('#contactButton').click( function() {
		handleButtonClick( $(this) );
		$('#contactPage').fadeIn(150);
	});

	$('#partnersButton').click( function() {
		handleButtonClick( $(this) );
		$('#partnersPage').fadeIn(150);
	});
}

function handleButtonClick( button ) {
	if ( button.hasClass('buttonUp') ) {
		$('.buttonDown').removeClass('buttonDown').addClass('buttonUp');
		button.removeClass('buttonUp').addClass('buttonDown');
		$('.page:visible').fadeOut(150);
	}
}

// -->