﻿function createParam(nameStr, valueStr) {
	var el = document.createElement('param');
	el.setAttribute('value', valueStr);
	el.setAttribute('name', nameStr);
	return el;
}

function loadFlash(){
    var obj = document.createElement('object');
			
	if (document.all){
		//IE
	    divFlash.appendChild(obj);
	}else if (document.getElementById){
		//Firefox
		document.getElementById("divFlash").appendChild(obj);
	}
	
	obj.type = "application/x-shockwave-flash";
	obj.movie = "/flash/tagline.swf";
	obj.data = "/flash/tagline.swf";
	obj.width = "955";
	obj.height = "297";
	obj.id = "rotate-tagline";
	obj.name = "rotate-tagline";
	obj.scale = "noborder";
	obj.wmode = "transparent";
	obj.menu = "false";
	obj.loop = "true";
	
	obj.appendChild(createParam('wmode', 'transparent'));
	obj.appendChild(createParam('menu', 'false'));
	obj.appendChild(createParam('loop', 'true'));
}

