     function thisMovie(movieName) {
         if (navigator.appName.indexOf("Microsoft") != -1) {
             return window[movieName];
         } else {
             return document[movieName];
         }
     }
     function sendToActionScript(value) {
         thisMovie("fon").sendToActionScript(value);
     }
     function sendToActionScript2(value) {
         thisMovie("snd").sendToActionScript2(value);
     }
     function sendToJavaScript(value) {
         document.forms["form1"].output.value += "ActionScript says: " + value + "\n";
     }

function close()
{
tb_remove();
sendToActionScript('play');
sendToActionScript2('play');
}	 
function show_hide(id)
{
   if(document.getElementById(id).style.display == 'none')
  {
    document.getElementById(id).style.display = 'block';
  }
  else
  {
    document.getElementById(id).style.display = 'none';
  }
}

function show(id)
{
	document.getElementById(id).style.display = 'block';
}

function hide(id)
{
   document.getElementById(id).style.display = 'none';
}

function insert_data(id,hide_id)
{
	document.getElementById(id).style.display = 'block';
	document.getElementById(id).innerHTML=document.getElementById(hide_id).innerHTML;
}

function detectIE6()
{
	var browser = navigator.appName;
	if (browser == "Microsoft Internet Explorer")
	{
		var b_version = navigator.appVersion;
		var re = /\MSIE\s+(\d\.\d\b)/;
		var res = b_version.match(re);
		if (res[1] <= 6)
		{
			return true;
		}
	}
		return false;
}

function detectMacXFF() {
  var userAgent = navigator.userAgent.toLowerCase();
  if (userAgent.indexOf('mac') != -1 && userAgent.indexOf('firefox')!=-1) {
    return true;
  }
}

