//Load dojo 1.5 from the Google CDN
google.load("dojo", "1.5");

//This callback fires when page load is complete
google.setOnLoadCallback(function() {
	dojo.require("dojox.embed.Flash");
		
	dojo.addOnLoad(function(){
		
		//Logo Flash
		if(dojox.embed.Flash.available)
		{
			var logo = new dojox.embed.Flash({
				path: "../header_logo.swf",
				width: 540,
				height: 120,
				params: {
					wmode: "transparent"
				}
			},"flashlogo");		
		}
		else
		{
			//Use a static image instead
			dojo.create("img", {src: "../images/logo.png", width: "540", height: "120"},"flashlogo");
		}
		
		//Photos Flash
		if(dojox.embed.Flash.available)
		{
			var photos = new dojox.embed.Flash({
				path: "../home_photos.swf",
				width: 637,
				height: 233,
				params: {
					wmode: "transparent"
				}
			},"photosflash");		
		}
		else
		{
			//Use a static image instead
			dojo.create("img", {src: "../images/homepagephotos.jpg", width: "637", height: "233"},"photosflash");
		}
		
		
		
		
		
		
	});
		
});//google.setOnLoadCallback

