var MM_FlashControlInstalled = false;   // is the Flash ActiveX control installed?
var MM_FlashControlVersion;     // ActiveX control version if installed

function MM_FlashInfo()
{
    if (navigator.plugins && navigator.plugins.length > 0)
    {
	this.implementation = "Plug-in";

	// Check whether the plug-in is installed:

	if (navigator.plugins["Shockwave Flash"])
	{
	    this.installed = true;

	    // Get the plug-in version and revision:
	    var words = navigator.plugins["Shockwave Flash"].description.split(" ");

	    for (var i = 0; i < words.length; ++i)
	    {
		if (isNaN(parseInt(words[i])))
		continue;
		this.version = words[i];
		this.revision = parseInt(words[i + 1].substring(1));
	    }
	}
	else{
	    this.installed = false;
	}
    }
    else if (MM_FlashControlInstalled != null)
    {
	this.implementation = "ActiveX control";
	this.installed = MM_FlashControlInstalled;
	this.version = MM_FlashControlVersion;
    }
}

function winopen( img, size ) {
	pic = img;
	picwin = window.open('','picture','toolbar=no,scrollbars=no,status=no,titlebar=no,directories=no,resizable=yes,menubar=no,hotkeys=no,innerHeight=0,innerWidth=0,outerHeight=0,'+size);
	picwin.onLoad = set_img( picwin, pic );
	
}

function set_img( win, pic ) {
	win.document.body.style.backgroundColor = "black";
	win.document.body.innerHTML = '<img style="border:1px solid white" src="http://'+location.host+pic+'">';
}
