var arrMissingObjects = []
if(!document.documentElement) arrMissingObjects.push('document.documentElement');
if(!document.getElementById) arrMissingObjects.push('document.getElementById');
if(!document.getElementsByTagName) arrMissingObjects.push('document.getElementsByTagName');
if(!document.createElement) arrMissingObjects.push('document.createElement');
if(!window.open) arrMissingObjects.push('window.open');
if(!window.focus) arrMissingObjects.push('window.focus');
if(!window.print) arrMissingObjects.push('window.print');
if(!window.location) arrMissingObjects.push('window.location');
if(!window.close) arrMissingObjects.push('window.close');
if(arrMissingObjects.length == 0) {
	// Supported
	document.getElementById('irm-not-supported').style.display = "none";
	document.getElementById('irm-is-supported').style.display = "block";
} else {
	// Not supported
	document.getElementById('irm-is-supported').style.display = "none";	
	document.getElementById('irm-not-supported').style.display = "block";
	
	// Let's display some debug info
	var msg = '';
	for(var i=0;i<arrMissingObjects.length;i++){
		msg = msg + arrMissingObjects[i] + "<br/>";
	}
	
	try {
		$("#irm-not-supported").append('<p>'+msg+'</p>');
	} catch (err) {
		//	
	}
}
