function newMovie(flashFile, larg, altu , bIsTransparent)
{
	document.write('<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="'+larg+'" height="'+altu+'">');
	document.write('<param name="movie" value="'+flashFile+'">');	
	document.write('<param name="quality" value="high">');
	if(bIsTransparent)
		document.write('<param name="wmode" value="transparent">');	
	document.write('<param name="menu" value="false">');	
	document.write('<embed src="'+flashFile+'" '+(bIsTransparent?'wmode="transparent"':'')+' menu="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+larg+'" height="'+altu+'"></embed>');
	document.write('</object>');
}

function newFlashMovie(flashFile,width,hight)
	{
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,16,0" width="' + width + '" height="' + height + '" VIEWASTEXT>');
		document.write('<param name="movie" value="' + flashFile + '">');
		document.write('<param name="quality" value="high">');
		document.write('<param name="wmode" value="window">');
		document.write('<embed src="' + flashFile + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '" wmode="window"></embed>');
		document.write('</object>');
	}

function convertToUnicode(source) {
	result = '';
	for (i = 0; i < source.length; i++) result += '&#' + source.charCodeAt(i) + ';';
	return result;
}

function displayLink(p_type, p_url, p_title, p_link_text) {

  var agt = navigator.userAgent.toLowerCase();
  var p_here = top.location.href

  if (p_type == 3)
  {
	if ((agt.indexOf("opera") != -1)) // || (agt.indexOf("firefox") != -1))
	{
	  document.write("<a class=LinkFundo href=\""+p_here+"\" title=\"" + p_title + "\" rel=\"sidebar\">" + p_link_text + "</a>");
	} else
	{
	  document.write("<a class=LinkFundo href=\"javascript:addBookmark('"+p_title+"',top.location.href);\" title=\"" + p_title + "\" >" + p_link_text + "</a>");
	}
  } else
  {
	if (agt.indexOf("opera") != -1) 
	{
	  document.write("<a class=LinkFundo href=\"" + p_url + "\" title=\"" + p_title + "\" rel=\"sidebar\">" + p_link_text + "</a>");
	} else
	{
	  document.write("<a class=LinkFundo href=\"javascript:addBookmark('"+p_title+"','"+p_url+"');\" title=\"" + p_title + "\" >" + p_link_text + "</a>");
	}
  }
}


function addBookmark(title,url) {

  var msg_netscape = "NetScape message";
  var msg_opera    = "This function does not work with this version of Opera.  Please bookmark us manually.";
  var msg_other    = "Your browser does not support automatic bookmarks.  Please bookmark us manually.";
  var agt          = navigator.userAgent.toLowerCase();


  if (agt.indexOf("opera") != -1) 
  {
	if (window.opera && window.print)
	{
	  return true;
	} else 
	{
	  alert(msg_other);
	}
  }    
  else if (agt.indexOf("firefox") != -1) window.sidebar.addPanel(title,url,"");
  else if ((agt.indexOf("msie") != -1) && (parseInt(navigator.appVersion) >=4)) window.external.AddFavorite(url,title); 
  else if (agt.indexOf("netscape") != -1) window.sidebar.addPanel(title,url,"")         
  else if (window.sidebar && window.sidebar.addPanel) window.sidebar.addPanel(title,url,""); 
  else alert(msg_other);
  
}
