var hasFlash = swfobject.hasFlashPlayerVersion("9.0.115");
var noflashPopup;

function domReplace() {
	if( !hasFlash || isHtml ) {
		var x=document.getElementsByTagName("img");
		for(i=0; i<x.length; i++) {
			var hiRes = x[i].getAttribute("lowsrc");
			x[i].setAttribute("src", hiRes);
		}
		document.getElementById("noflash").style.display="block";

		if( !hasFlash && !isHtml ) {			
			noflashPopup = new popupWindow( "noflash", 400, 400 );
			noflashPopup.show();
			$j(".noflashContent").html( $j("#getFlash").html() );
		}
	}
}
	
document.onLoad = domReplace();
