function openflash(width,height,src){ 
    return "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width="+width+" height="+height+"><param name=movie value="+src+"><param name=quality value=high ><param name=\"wmode\" value=\"transparent\"><embed src="+src+" quality=high  pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width="+width+" height="+height+"></embed></object>"; 
} 

function writeflash(src){ 
    document.write(src); 
} 
function viewFlash(filename,width,height,query){
	flashStr = '<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=\"'+filename+'\" ALIGN=\"\">';
	flashStr += '<PARAM NAME=movie VALUE=\"'+filename+'\">';
	flashStr += '<PARAM NAME=quality VALUE=high>';
	flashStr += '<PARAM NAME=wmode VALUE=transparent>';
	flashStr += '<PARAM NAME=menu VALUE=false>';
	flashStr += '<PARAM NAME=bgcolor VALUE=#FFFFFF>';
	flashStr += '<EMBED src=\"'+filename+'\" quality=high wmode=transparent menu=false bgcolor=#FFFFFF  WIDTH=\"'+width+'\" HEIGHT=\"'+height+'\" NAME=\"'+filename+'\" ALIGN=\"\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\">';
	flashStr += '</EMBED>';
	flashStr += '</OBJECT>';
	document.write(flashStr);
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}