var res = 1;
function createMenuImage(flashname,flashno,picname,res){
  if(flashinstalled == 2){
    if(res == 1){width=166; height=125;pref=".."}
    else{width=109; height=82;pref="../800x600";}

    document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="'+width+'" HEIGHT="'+height+'" id="'+flashname+'" ALIGN="">');
    document.write('<PARAM NAME="movie" VALUE="'+pref+'/images/menu/'+flashname+'.swf?startpic='+flashno+'" /> ');
    document.write('<PARAM NAME="menu" VALUE="false"/>');
    document.write('<PARAM NAME="quality" VALUE="high"/>');
    document.write('<PARAM NAME="scale" VALUE="exactfit"/> ');
    document.write('<PARAM NAME="wmode" VALUE="opaque"/>');
    document.write('<PARAM NAME="bgcolor" VALUE="#FFFFFF"/>');
    document.write('<EMBED src="'+pref+'/images/menu/'+flashname+'.swf?startpic='+flashno+'" menu="false" quality="high" scale="exactfit" wmode="opaque" bgcolor="#FFFFFF"  WIDTH="'+width+'" HEIGHT="'+height+'" NAME="'+flashname+'" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>');
    document.write('</OBJECT>');
  }
  else{
    document.write('<img src="'+pref+'/images/menu/'+picname+'" border="0" />');
  }
}
