//Script for handling ActiveX-object
function WorkaroundEmbed(DivTag, CodeToInsert) { 
	if (document.getElementById)
	{ 
		// This browser supports 'getElementByID' 
		var WorkaroundHTML = document.getElementById(DivTag); 
		WorkaroundHTML.innerHTML = CodeToInsert; 
    }
    else
    { 
		// This browser is older and does not support 'getElementByID' 
		document.write(CodeToInsert); 
	} 
 }
 
function ActivateAllActiveX()
{
		
	if(navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) >= 4 && document.getElementsByTagName)
	{
		var theObjects = document.getElementsByTagName("object");
		var sOuterHTML;
		for (var i = 0; i < theObjects.length; i++) {
			//Skip menu
			sOuterHTML = theObjects[i].outerHTML;
			
			if(sOuterHTML.indexOf("menuSwf")==-1 && 
				sOuterHTML.indexOf("campdec")==-1)
				{
					theObjects[i].outerHTML = sOuterHTML;
					try
					{
						theObjects[i].Play();
					}
					catch (e)
					{
					}
					
				}
				
		}
	}
}
 
 