/*
' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' Title			: Javascript | Fix for activation of ActiveX controls in IE
' Description	: This script is a workaround for ActiveX controls in
' 				: Internet Explore which has been "patched" per a frivolous
'				: lawsuit.  This is a stupidity-fix.
' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' History
' 06/13/2006	: David Ellenwood - created script based on MSDN article: http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/overview/activating_activex.asp
'
' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/

/* Function for Object Placement
   ------------------------------
	Required Arguments:		object_ID, type, width, height, path_to_swf (TOTAL: 5 arguments)
	Optional arguements:	any number of object parameters; name/value separated by a comma see example below.
	Example call:
		placeObject('mastImage','application/x-shockwave-flash','220','150','/include/site/multimedia/swf/jpgrotator.swf?file=/include/site/multimedia/swf/jpgrotator.xml','movie,/include/site/multimedia/swf/jpgrotator.swf?file=/include/site/multimedia/swf/jpgrotator.xml','wmode,transparent');
*/
function placeObject(id,type,width,height,data) {
	document.write("\n"+'<object id="'+id+'" type="'+type+'" width="'+width+'" height="'+height+'" data="'+data+'">'+"\n");
	if (arguments.length > 5) {
		for(i = 5; i < arguments.length; i++) {
			paramValues = arguments[i].split(",");
			document.write('<param name="'+paramValues[0]+'" value="'+paramValues[1]+'" />'+"\n");
		}
	}
	document.write('</object>'+"\n");
}
		