// This is the SWF movie to play
function fetchSWF(source, title, width, height, writeto){
	var source;
	var title;
	var width;
	var height;
	var zindex;
	var writeto;
	
	var object = new FlashObject(source, title, width, height, "7");
			
	object.addParam("menu", "false");
	object.addParam("wmode", "transparent");
	object.write(writeto);
}

// Load it onto the website
function loadSWF(swfPath, writeTo){
	var url = 'images/flash/';
	
	fetchSWF(url + swfPath, '', '975', '280', writeTo);
}
				
// Close the overlaying div (f/ flash)
function closeLayer(){
	document.getElementById('flash_overlay').style.display = 'none';
}
				
// Open the overlaying div (f/ HTML)
function openLayer(swfPath, writeTo){
	var url = 'images/flash/';
	var layer = document.getElementById("flash_overlay");
	
	layer.style.display = 'block';
	fetchSWF(url + swfPath, '', '975', '280', writeTo);
}
