		var flashvars = {
		};		
		
		var params = {
			menu: "false",
			scale: "noScale",
			allowFullscreen: "true",
			allowScriptAccess: "always",
			bgcolor: "#FFFFFF"
		};
		var attributes = {
			id:"FlashImage"
		};
		
		
//		$(document).ready(function () {
		$(window).bind('load', function(){
			$(".FlashImage").each(function() {	
				var divId = "FlashImage" + $.data(this);
				attributes.id = divId;
				flashvars.src = $(this).attr("src");
				flashvars.alt= $(this).attr("alt");
				flashvars.w = $(this).width();
				flashvars.h = $(this).height();				
				var oA = $(this).parent().get(0);
				if(oA.tagName == "A") {
					flashvars.url = $(oA).attr("href");
					flashvars.target = $(oA).attr("target");
				}
				var oDiv = document.createElement("div");
				oDiv.className = "FlashImageDiv";
				$(oDiv).attr("id", divId);
				if(oA.tagName == "A") {
					$(oDiv).insertAfter(oA);
				} else {
					$(oDiv).insertAfter(this);				
				}
				if(oA.tagName == "A") {
					$(oDiv).append(oA);
				} else {
					$(oDiv).append(this);				
				}
				$(oDiv).css({"width" : $(this).width(), "height" : $(this).height()});
				swfobject.embedSWF("/flash/FlashImage.swf", divId, $(this).width(), $(this).height()+20, "9.0.0", "expressInstall.swf", flashvars, params, attributes);
			});
		});