// DWF 
  function showmovie(){

	var movie = document.getElementById("movie");
	var linky = document.getElementById("movie").getElementsByTagName("a");	
	if(linky.length == 1){
		linky[0].onclick = function(){
		return false;
		}
	};
	var fade = document.getElementById("fade");
	var floatybox = document.getElementById("floatybox");
	var flash = document.createElement("div");
	flash.setAttribute("id", "flash");
	floatybox.appendChild(flash);
	var floatyboxP = document.createElement("p");
	floatyboxP.innerHTML="Programme Director, Liam Browne introduces this year's festival line-up.";
	floatybox.appendChild(floatyboxP);
	var floatyclose  = document.createElement("p");
	floatyclose.setAttribute("id", "floatyclose");
	var closelink  = document.createElement("a");
	closelink.setAttribute("href", "index.php");
	closelink.onclick= function() {
		return false; };
	closelink.innerHTML="Close Movie";
	floatyclose.appendChild(closelink);
	floatybox.appendChild(floatyclose);
	
	floatyclose.onclick= function() {
		var flashmovie = new FlashObject("http://www.dublinwritersfestival.com/flash/xxx.swf", "movie", "1", "1", "8", "#FFFFFF");
		flashmovie.write("flash"); 
		floatybox.style.display = "none";
		fade.style.display = "none";
	}
	
	movie.onmouseover = function() {
		this.style.cursor = "pointer";
	}
	movie.onclick = function() {
		floatybox.style.display = "block";
		fade.style.display = "block";
		var flash= document.getElementById("flash");
		var flashmovie = new FlashObject("http://www.dublinwritersfestival.com/flash/movie.swf", "movie", "464", "305", "8", "#FFFFFF");
		flashmovie.addParam("wmode", "transparent");
		flashmovie.write("flash"); 
	  } 

}  

addLoadEvent(showmovie);