function tutorialWindow(flashURL, flashWidth, flashHeight, flashTitle) {
// Opens and writes movie window
var width = flashWidth;
var height = flashHeight;
if ((width + 30 > screen.width) || (height + 60 > screen.height))
// Movie larger than user screen size.
{
demoWindow = window.open('', "demoWindow", "resizable=yes,scrollbars=yes,width="+screen.width+",height="+screen.height+",top=0,left=0,screenX=0,screenY=0");
}
else
// Movie smaller than user screen size.
{ 
height = height;
width = width;
demoWindow = window.open('', "demoWindow", "resizable=no,scrollbars=no,width="+width+",height="+height+ ",top=40,left=40,screenX=40,screenY=40");
}
// Write flash page
var txt='<html><head><title>'+flashTitle+'</title></head>';
txt=txt+'<body leftmargin=0 topmargin=0><center>';
txt=txt+'<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';
txt=txt+' WIDTH="'+flashWidth+'" HEIGHT="'+flashHeight+'"';
txt=txt+' CODEBASE="http://active.macromedia.com/flash5/cabs/swflash.cab#version=5,0,0,0" id=robodemo>';
txt=txt+'<param name=movie value="'+flashURL+'">';
txt=txt+'<param name=play value=true>';
txt=txt+'<param name=loop value=false>';
txt=txt+'<param name=quality value=high>';
txt=txt+'<embed name=robodemo src="'+flashURL+'" width='+flashWidth+' height='+flashHeight+' loop=false'; 
txt=txt+' quality=high type="application/x-shockwave-flash"'; 
txt=txt+' pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" swLiveConnect=true>';
txt=txt+'</embed></object></center></body></html>';
demoWindow.document.write(txt);
demoWindow.document.close();
}

// Window closer
function closeWindow() { demoWindow.close() }