if ( navigator.appName != "Netscape" ) {
    if ( document.domain != 'localhost' ) {
	document.domain = 'capitalreach.com';
    }
}

var PRE = 400;var LIVE = 500;var POST = 600;var ARCHIVE = 700;
function checkTimelineLocation ( tL ) {if ( overrideTimelineLocation && overrideTimelineLocation != 0 ) {return ( overrideTimelineLocation == tL );} else {return ( currentTimelineLocation == tL );}}
function changeTimelineLocation ( nTL, o ) {
    var mTL = nTL;
    if ( overrideTimelineLocation && overrideTimelineLocation != 0 && !o )
        mTL = overrideTimelineLocation;
    switch ( mTL ) {
        case 500:
					if ( !isStreamless ) {
					    setLiveSource();
					}

					setTimeline(500);
                    showLayer ( 'VideoRegion', true );
                    startuptheplayer();
                    /*if ( parent.doCallbacks ) {
                        play();
                    } else {
                        parent.play_wrap();
                    } */
					//stopHB();
                    break;
    }
if ( o ) {overrideTimelineLocation = nTL;} else {currentTimelineLocation = nTL;}parent.play_wrap();}

function mouseAction (sta,sti,stl) {

	if ( !playerLoaded ) return;

		switch (sta) {
			case 'over':
				strFilename = sir + sti + '_over.gif';
				switch (sti) {

					case 'vid_button_pause':
						if ( checkTimelineLocation ( LIVE ) ) {
							if (document.images) {
								changeLayerImageAlt ( sti, stl, 'Pause functionality is not available during live events.' );
							}
						} else if ( checkTimelineLocation ( ARCHIVE ) ) {
							if (document.images) {
								changeLayerImageAlt ( sti, stl, 'Pause' );
								changeLayerImages(sti, stl, strFilename);
							}
						} else {
							if (document.images) {
								changeLayerImageAlt ( sti, stl, 'Pause functionality is currently disabled.' );
							}
						}
						break;
					case 'vid_button_play':
						if ( checkTimelineLocation ( LIVE ) || checkTimelineLocation ( ARCHIVE ) ) {
							if (document.images) {
								changeLayerImageAlt ( sti, stl, 'Play' );
								changeLayerImages(sti, stl, strFilename);
							}
						} else {
							if (document.images) {
								changeLayerImageAlt ( sti, stl, 'Play functionality is currently disabled.' );
							}
						}
						break;
					case 'vid_button_stop':
						if ( checkTimelineLocation ( LIVE ) || checkTimelineLocation ( ARCHIVE ) ) {
							if (document.images) {
								changeLayerImageAlt ( sti, stl, 'Stop' );
								changeLayerImages(sti, stl, strFilename);
							}
						} else {
							if (document.images) {
								changeLayerImageAlt ( sti, stl, 'Stop functionality is currently disabled.' );
							}
						}
						break;
					case 'vid_button_fr':
						if ( checkTimelineLocation ( LIVE ) ) {
							if (document.images) {
								changeLayerImageAlt ( sti, stl, 'Fast rewind functionality is not available during live events.' );
							}
						} else if ( checkTimelineLocation ( ARCHIVE ) ) {
							if (document.images) {
								changeLayerImageAlt ( sti, stl, 'Fast rewind' );
								changeLayerImages(sti, stl, strFilename);
							}
						} else {
							if (document.images) {
								changeLayerImageAlt ( sti, stl, 'Fast rewind functionality is currently disabled.' );
							}
						}
						break;
					case 'vid_button_ff':
						if ( checkTimelineLocation ( LIVE ) ) {
							if (document.images) {
								changeLayerImageAlt ( sti, stl, 'Fast forward functionality is not available during live events.' );
							}
						} else if ( checkTimelineLocation ( ARCHIVE ) ) {
							if (document.images) {
								changeLayerImageAlt ( sti, stl, 'Fast forward' );
								changeLayerImages(sti, stl, strFilename);
							}
						} else {
							if (document.images) {
								changeLayerImageAlt ( sti, stl, 'Fast forward functionality is currently disabled.' );
							}
						}
						break;
					case 'sound':
						if ( checkTimelineLocation ( LIVE ) || checkTimelineLocation ( ARCHIVE ) ) {
							if (document.images) {
								if ( getMute() ) {
									changeLayerImageAlt ( sti, stl, 'Turn sound on' );
									changeLayerImages(sti, stl, mfButtons['sound']['off']['over']);
								} else {
									changeLayerImageAlt ( sti, stl, 'Turn sound off' );
									changeLayerImages(sti, stl, mfButtons['sound']['on']['over']);
								}
							}
						} else {
							if (document.images) {
								changeLayerImageAlt ( sti, stl, 'Mute functionality is currently disabled.' );
							}
						}
						break;
					case 'syncbutton':
						if (document.images) {
							if ( slideSyncOn ) {
								changeLayerImageAlt ( 'syncbutton', 'NEButtonRegion', 'Turn slide sync off' );
								changeLayerImageAlt ( 'en_syncbutton', 'EnlargeSlideButtonRegion', 'Turn slide sync off' );
								changeLayerImages('syncbutton', 'NEButtonRegion', mfButtons['syncbutton']['on']['over']);

								changeLayerImages('en_syncbutton', 'EnlargeSlideButtonRegion', mfButtons['syncbutton']['on']['over']);
							} else {
								changeLayerImageAlt ( 'syncbutton', 'NEButtonRegion', 'Turn slide sync on' );
								changeLayerImageAlt ( 'en_syncbutton', 'EnlargeSlideButtonRegion', 'Turn slide sync on' );
								changeLayerImages('syncbutton', 'NEButtonRegion', mfButtons['syncbutton']['off']['over']);
								changeLayerImages('en_syncbutton', 'EnlargeSlideButtonRegion', mfButtons['syncbutton']['off']['over']);
							}
						}
						break;
					case 'en_button_prev':
						changeLayerImages(sti, stl, sir + 'button_prev_over.gif');
						break;
					case 'en_button_next':
						changeLayerImages(sti, stl, sir + 'button_next_over.gif');
						break;
					default:
						strFilename = sir + sti + '_over.gif';
						changeLayerImages(sti, stl, strFilename);
						break;
				} //switch
				break;
			case 'out':
				strFilename = sir + sti + '.gif';
				switch ( sti ) {
					case 'vid_button_pause':
						if ( checkTimelineLocation ( ARCHIVE ) ) {
							if (document.images) {
								changeLayerImages(sti, stl, strFilename);
							}
						}
						break;
					case 'vid_button_play':
						if ( checkTimelineLocation ( LIVE ) || checkTimelineLocation ( ARCHIVE ) ) {
							if (document.images) {
								changeLayerImages(sti, stl, strFilename);
							}
						}
						break;
					case 'vid_button_stop':
						if ( checkTimelineLocation ( LIVE ) || checkTimelineLocation ( ARCHIVE ) ) {
							if (document.images) {
								changeLayerImages(sti, stl, strFilename);
							}
						}
						break;
					case 'vid_button_fr':
						if ( checkTimelineLocation ( ARCHIVE ) ) {
							if (document.images) {
								changeLayerImages(sti, stl, strFilename);
							}
						}
						break;
					case 'vid_button_ff':
						if ( checkTimelineLocation ( ARCHIVE ) ) {
							if (document.images) {
								changeLayerImages(sti, stl, strFilename);
							}
						}
						break;
					case 'sound':
						if ( checkTimelineLocation ( LIVE ) || checkTimelineLocation ( ARCHIVE ) ) {
							if (document.images) {
								if ( getMute() ) {
									changeLayerImages(sti, stl, mfButtons['sound']['off']['out']);
								} else {
									changeLayerImages(sti, stl, mfButtons['sound']['on']['out']);
								}
							}
						}
						break;
					case 'syncbutton':
						if (document.images) {
							if ( slideSyncOn ) {
								changeLayerImages('syncbutton', 'NEButtonRegion', mfButtons['syncbutton']['on']['out']);
								changeLayerImages('en_syncbutton', 'EnlargeSlideButtonRegion', mfButtons['syncbutton']['on']['out']);
							} else {
								changeLayerImages('syncbutton', 'NEButtonRegion', mfButtons['syncbutton']['off']['out']);
								changeLayerImages('en_syncbutton', 'EnlargeSlideButtonRegion', mfButtons['syncbutton']['off']['out']);
							}
						}
						break;
					case 'en_button_prev':
						changeLayerImages(sti, stl, sir + 'button_prev.gif');
						break;
					case 'en_button_next':
						changeLayerImages(sti, stl, sir + 'button_next.gif');
						break;
					default:
						changeLayerImages(sti, stl, strFilename);
						break;
				}

		}
}
function buttonAction ( sta, sti ) {if ( !playerLoaded ) return;if ( sti == currentVisibleLayer[mfButtons[sti]['region']] ) {changeLayerImages( sti, mfButtons[sti]['layerName'], mfButtons[sti]['on'][sta] );} else {changeLayerImages( sti, mfButtons[sti]['layerName'], mfButtons[sti]['off'][sta] );}}
