function flashslide(iSlide)
{
var a = 'x' + iSlide + '.swf';
var s = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"'
	+ ' codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"'
	+ ' width=100%'
	+ ' height=100%'
	+ ' id=myMovie'
	+ ' align=middle>'
	+ ' <param name=allowScriptAccess value=sameDomain />'
	+ ' <param name=movie value=' + a + ' />'
	+ ' <param name=quality value=high />'
	+ ' <param name=bgcolor value=#000000 />'
	+ ' <embed src=' + a 
		+ ' quality=high'
		+ ' bgcolor=#000000'
		+ ' width=100%'
		+ ' height=100%' 
		+ ' name=myMovie'
		+ ' align=middle'  
		+ ' allowScriptAccess=sameDomain'
		+ ' type="application/x-shockwave-flash"'
		+ ' pluginspage="http://www.macromedia.com/go/getflashplayer" />'
	+ '</object>'
document.write(s);
}

function AppletTag(mode,c,w,h,r)
{
    var str1 = ' id=applet' + mode + ' name=applet' + mode + ' class=' + c;
    if (w || h)
    {
       var s = ' style="';
       if (w) s += 'width:' + w + 'px;';
       if (w) s += 'height:' + h + 'px;';
       str1 += s + '" ';
    }
    str1 += ' '; 
    var str3 = '<span>This page requires Java 1.4 or later.<br><a href="http://java.com">http://java.com</a></span>';
    var strTag = "";
    if ((navigator.userAgent.indexOf("MSIE")>0 && navigator.userAgent.indexOf("Windows")>0))
    {
        strTag += '<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" codebase="http://java.sun.com/update/1.5.0/jinstall-1_5_0_11-windows-i586.cab#Version=1,5,0,11" ';
        strTag += str1;
        strTag += '>';
	strTag += '<param name=type value="application/x-java-applet">';
	strTag += '<param name=code value="ivocalize/Player.class">';
	strTag += '<param name=archive value="player.jar">';
	strTag += '<param name=MAYSCRIPT value=true>';
	strTag += '<param name=mode value=' + mode + '>';
	strTag += '<param name=instance value="' + r + '">';
        strTag += str3;  
        strTag += '</object>';
    }
    else
    {
        strTag += '<applet archive="player.jar" code="ivocalize/Player.class" ' + str1 + '>';
	strTag += '<param name=mode value=' + mode + '>';
	strTag += '<param name=instance value="' + r + '">';
        strTag += str3 + '</applet>';
    }
    document.write(strTag);
}

