// JavaScript Document

	var contentTourOpen = 0;
	var contentCreditsOpen = 0;
	var contentStoryOpen = 0;

	function BEM_HideAll () {
		
		if (contentTourOpen) {
			MM_effectAppearFade('content-tour', 1000, 100, 0, false);
			contentTourOpen = 0;
		}
		
		if (contentCreditsOpen) {
			MM_effectAppearFade('content-credits', 1000, 100, 0, false);
			contentCreditsOpen = 0;
		}
		
		if (contentStoryOpen) {
			MM_effectAppearFade('boxBodyText', 1000, 100, 0, false);
			contentStoryOpen = 0;
		}
	}

	function BEM_OpenStory() {
		
		if (contentTourOpen) {
			MM_effectAppearFade('content-tour', 1000, 100, 0, false);
			contentTourOpen = 0;
		}
		
		if (contentCreditsOpen) {
			MM_effectAppearFade('content-credits', 1000, 100, 0, false);
			contentCreditsOpen = 0;
		}
		
		if (contentStoryOpen) {
			BEM_HideAll();
		} else {
			MM_effectAppearFade('boxBodyText', 1000, 0, 100, false)
			contentStoryOpen = 1;
		}
	}
	
	
	function BEM_OpenCredits() {
		
		if (contentTourOpen) {
			MM_effectAppearFade('content-tour', 1000, 100, 0, false);
			contentTourOpen = 0;
		}
		
		if (contentStoryOpen) {
			MM_effectAppearFade('boxBodyText', 1000, 100, 0, false);
			contentStoryOpen = 0;
		}
	
		if (contentCreditsOpen) {
			BEM_HideAll();
		} else {
			MM_effectAppearFade('content-credits', 1000, 0, 100, false);
			contentCreditsOpen = 1;
		}
	}
	
	function BEM_OpenTour () {
		
		if (contentCreditsOpen) {
			MM_effectAppearFade('content-credits', 1000, 100, 0, false);
			contentCreditsOpen = 0;
		}
		
		if (contentStoryOpen) {
			MM_effectAppearFade('boxBodyText', 1000, 100, 0, false);
			contentStoryOpen = 0;
		}
		
		if (contentTourOpen) {
			BEM_HideAll();
		} else {
			MM_effectAppearFade('content-tour', 1000, 0, 100, false);
			contentTourOpen = 1;
		}
	}
	
	function BEM_OpenPhotos () {
		
		if (contentTourOpen) {
			MM_effectAppearFade('content-tour', 1000, 100, 0, false);
			contentTourOpen = 0;
		}
		
		if (contentCreditsOpen) {
			MM_effectAppearFade('content-credits', 1000, 100, 0, false);
			contentCreditsOpen = 0;
		}
		
		if (contentStoryOpen) {
			MM_effectAppearFade('boxBodyText', 1000, 100, 0, false);
			contentStoryOpen = 0;
		}
	}


function BEM_PageDraw()
{
	MM_effectAppearFade('mainImageBox', 1000, 0, 100, false);
	
	setTimeout ("MM_effectAppearFade('boxTitle', 1000, 0, 100, false)", 750 ); 
	setTimeout ("MM_effectAppearFade('boxContentButtons', 1000, 0, 100, false)", 1500 ); 
	setTimeout ("MM_effectAppearFade('boxLinks', 1000, 0, 100, false)", 2250 ); 
	setTimeout ("MM_effectAppearFade('boxAnnouncement', 1000, 0, 100, false)", 3000 );
	setTimeout ("MM_effectAppearFade('boxMusicPlayer', 1000, 0, 100, false)", 3750 );
}

function BEM_OpenGallery(){
  
  	 var options = {
        continuous: true
    };

    var img1 = {
        player:     'img',
        content:    'images/gallery/af-web-photo-a.jpg',
        options:    options
    };
	 var img2 = {
        player:     'img',
        content:    'images/gallery/af-web-photo-p.jpg',
        options:    options
    };

    var img3 = {
        player:     'img',
        content:    'images/gallery/af-web-photo-m.jpg',
        options:    options
    };

    var img4 = {
        player:     'img',
        content:    'images/gallery/af-web-photo-n.jpg',
        options:    options
    };

    var img5 = {
        player:     'img',
        content:    'images/gallery/af-web-photo-z.jpg',
        options:    options
    };

    var img6 = {
        player:     'img',
        content:    'images/gallery/af-web-photo-d.jpg',
        options:    options
    };
    var img7 = {
        player:     'img',
        content:    'images/gallery/af-web-photo-y.jpg',
        options:    options
    };


    Shadowbox.open([img1,img2,img3,img4,img5,img6,img7]);
}


