if(navigator.userAgent.toLowerCase().indexOf("msie") > -1 && navigator.userAgent.toLowerCase().indexOf("mac") < 0){
	var theObjects = document.getElementsByTagName('object');
	var theObjectsLen = theObjects.length;
	for (var i = 0; i < theObjectsLen; i++) {
		if(theObjects[i].outerHTML) {
			if(theObjects[i].data) {
				theObjects[i].removeAttribute('data');
			}
			var theParams = theObjects[i].getElementsByTagName("param");
			var theParamsLength = theParams.length;
			for (var j = 0; j < theParamsLength; j++) {
				if(theParams[j].name.toLowerCase() == 'flashvars' && theParams[j].parentNode == theObjects[i]) {
					var theFlashVars = theParams[j].value;
				}
			}
			var theOuterHTML = theObjects[i].outerHTML;
			var re = /<param name="FlashVars" value="">/ig;
			theOuterHTML = theOuterHTML.replace(re,"<param name='FlashVars' value='" + theFlashVars + "'>");
			theObjects[i].outerHTML = theOuterHTML;
		}
	}
	window.onunload = function() {
		if (document.getElementsByTagName) {
			var objs = document.getElementsByTagName("object");
			for (i=0; i<objs.length; i++) {
				objs[i].outerHTML = "";
			}
		}
	}
}

function prezentacja()
{
 x = 750;
 y = 550;
 sx = screen.availWidth;
 sy = screen.availHeight;
 px = (sx/2) - (x/2);
 py = (sy/2) - (y/2);
 window.open('sonos/idx.html','','menubar=no,toolbar=no,location=no,directories=no,status=yes,scrollbars=no,resizable=no,fullscreen=no,channelmode=no,width='+x+',height='+y+',left='+px+',top='+py);
 return;
}