var WestgateChapel = new Object();
WestgateChapel.Website = new Object();

function swapImageById(id, imageUrl)
{

	var obj = document.getElementById(id);
	
	if(obj != null && obj.src)
	{
	
		obj.setAttribute("src", imageUrl);
	
	}

}

if(container = $("header-flash")) {

    if(SWFObject) {
	
	    // use SWFObject to load the flash
	    var so = new SWFObject("/site/content/westgate_header.swf", "intro", 175, 105, 7);
	    //so.addAttribute("wmode", "transparent");
	    so.addParam("wmode", "transparent");
	    so.write(container);
	    container.addClassName("hasFlash");
	
	}

}