var nf_img = function(path, alt, url, target){
	this.path = path;
	this.alt = alt;
	this.url = url;
	this.target = target;
}
var nf = [
new nf_img('images/top/img_flash_information.jpg','Mitsubishi Electric is a global leader in the manufacture and sale of electrical and electronic equipment for commercial and industrial use. Our products and systems are used in countries throughout the Middle East.','products/information/index.html',''),
new nf_img('images/top/img_flash_power.jpg','Mitsubishi Electric is a global leader in the manufacture and sale of electrical and electronic equipment for commercial and industrial use. Our products and systems are used in countries throughout the Middle East.','products/power/index.html',''),
new nf_img('images/top/img_flash_transportation.jpg','Mitsubishi Electric is a global leader in the manufacture and sale of electrical and electronic equipment for commercial and industrial use. Our products and systems are used in countries throughout the Middle East.','products/transportation/index.html','')
];

var version = "8.0.0"
ap.addEvent(window, "load", function(){
	if(swfobject.hasFlashPlayerVersion(version)){
		IEPNGFIX.fix(document.getElementById("flash"));
		swfobject.embedSWF("top.swf", "flash-content", "604", "248", version);
	}
	else{
		var ul = document.createElement("ul");
		ul.id = "no-flash";
		for(var i=0; i<nf.length; i++){
			var li = document.createElement("li");
			li.id = "nf"+(i+1);
			var a = document.createElement("a");
			a.href= nf[i].url;
			a.target = nf[i].target;
			var img = document.createElement("img");
			img.src = nf[i].path;
			if(nf[i].alt!='') img.alt = nf[i].alt;
			a.appendChild(img)
			li.appendChild(a);
			ul.appendChild(li);
		}
		var o = document.getElementById("flash");
		o.style.backgroundImage = "none";
		o.style.paddingLeft = "0px";
		o.style.paddingTop = "0px";
		document.getElementById("flash-content").appendChild(ul);
		var cf = new Crossfader( ['nf1','nf2','nf3'], 1000, 10000 );
	}
});