function hideshow(element) {
    if (document.layers && document.layers[element] != null)
		if (document.layers[element].visibility == 'visible')
		{
			document.layers[element].visibility = 'hidden';
		}else
		{
			document.layers[element].visibility = 'hidden';
		}
    else if (document.all)
		if (document.all[element].style.visibility == 'visible')
		{
        document.all[element].style.visibility = 'hidden';
		}else{
		        document.all[element].style.visibility = 'visible';
		}
}
function display(element) {
	//alert('display:'+element);
    if (document.layers && document.layers[element] != null)
        document.layers[element].visibility = 'visible';
    else if (document.all)
        document.all[element].style.visibility = 'visible';
}
function hide(element) {
	//alert('hide:'+element);

    if (document.layers && document.layers[element] != null)
        document.layers[element].visibility = 'hidden';
    else if (document.all)
        document.all[element].style.visibility = 'hidden';
}
function getFlashMovieObject(movieName)
{
  if (window.document[movieName]) 
  {
      return window.document[movieName];
  }
  if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    if (document.embeds && document.embeds[movieName])
      return document.embeds[movieName]; 
  }
  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    return document.getElementById(movieName);
  }
}
 
 
function SendData(m)
{
     var flashMovie=getFlashMovieObject(m);
     flashMovie.SetVariable("/:message", document.controller.Data.value);
}
function windowFill()
{
	window.resizeTo(screen.width,screen.height)
	resizeOuterTo(screen.width,screen.height)
}

function resizeOuterTo(w,h) {
 if (parseInt(navigator.appVersion)>3) {
   if (navigator.appName=="Netscape") {
    top.outerWidth=w;
    top.outerHeight=h;
   }
   else top.resizeTo(w,h);
 }
}


//windowFill();
//getWindowVars();
function doOnLoad()
{
//getWindowVars();
//   alert("winW:"+winW);
}
