/*
' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' Title			: activeX_fix.js | Javascript
' Description	: Workaround to automatically enable ActiveX controls in
'				: Internet Explorer.  Currently, IE loads ActiveX controls
'				: in a disabled state due to patent issues between Microsoft
'				: and another company. See link below for more info:
'				: http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/overview/activating_activex.asp
' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' History
' 06/13/2006	: David Ellenwood - created script based on MSDN article:
'
' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/

/* 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 pairs are separated by a comma.  See example call 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");
}
		