// Is the movie paused?
var movie_paused = false;

// Is the music muted?
var movie_muted = false;


function pause_movie() {
	
	if (movie_paused == false) {
		
		movie_paused = true;
		get_flash_movie().pause_movie_flash();
		
	} else {
		
		movie_paused = false;
		get_flash_movie().start_movie_flash();
		
	}
	
	fix_icons();
	
}

function fix_icons() {
	
	//alert ('mute: ' + movie_muted + "\npause: " + movie_paused);
	
	mute_button(movie_muted);
	pause_button(movie_paused);
	
}

function mute_movie() {
	
	if (movie_muted == false) {
		
		movie_muted = true;
		get_flash_movie().mute_movie_sound();
		
	} else {
		
		movie_muted = false;
		get_flash_movie().mute_movie_sound();
		
	}
	
	fix_icons();
	
}

function get_flash_movie() {
	
	if (navigator.appName.indexOf("Microsoft") != -1) {
        return window['vingino_flash'];
    }
    else {
        return document['vingino_flash'];
    }

	
	//return document.getElementById('vingino_flash');
	//return parent.frames['lowerframe'].document.getElementById('music');
}