// new way to write the flash tag to get around that damn patent suit in IE
// args are as follows
// file -- path to swf file
// id -- object name in the DOM
// w -- width
// h -- height
// bg -- hex for background color, or 'transparent'
// al -- align parameter
function flashTag(file, id, w, h, bg, al, scale, vars){
	var txt = "<object type=\"application/x-shockwave-flash\" width=\""+w+"\" ";
	txt += "height=\""+h+"\"";
	if (id != null){
		txt += " id=\""+id+"\" name=\""+id+"\"";
	}
	txt += " data=\"slingshot.swf?file="+file+"\"><param name=\"movie\" value=\"slingshot.swf?file="+file+"\" />";
	if (bg == null){
		txt += "<param name=\"bgcolor\" value=\"#000000\" />";
	}else if (bg.toLowerCase() == "transparent"){
		txt += "<param name=\"wmode\" value=\"transparent\" />";
	}else{
		txt += "<param name=\"bgcolor\" value=\"#"+bg+"\" />";
	}
	if (scale != null){
		txt += "<param name=\"scale\" value=\""+scale+"\" />";
	}else{
		txt += "<param name=\"scale\" value=\"noscale\" />";
	}
	if(al != null){
		txt += "<param name=\"salign\" value=\""+al+"\" />";
	}
	
	if(vars != null){
		txt += "<param name=\"flashvars\" value=\""+vars+"\" />";
	}
	document.write(txt);
}
