function setFlashHeight(movie, newheight){
	var movieObj = getFlashObj(movie);
	var height = windowHeight();
	if (newheight > height) {
		movieObj.style.height = newheight+"px";
	} else {
		movieObj.style.height = "100%";
		//alert(newheight+"--"+height);
	}

	//return newH;		
}

function getFlashObj(movie){
   if (window.document[movie]) {
      return window.document[movie];
   }
   if (navigator.appName.indexOf("Microsoft Internet")==-1) {
      if (document.embeds && document.embeds[movie]) {
         return document.embeds[movie]; 
      }
   } else {
      return document.getElementById(movie);
   }
}

/*function getDimensions(movie) {
   var movieObj = getFlashObj(movie);
   var width = getFlashObj(movie).TGetProperty("/", 8);
   var height= getFlashObj(movie).TGetProperty("/", 9);
   alert("The current dimensions for the Flash Object ("+movie+") are "+width+" in width and "+height+" in height.");
}*/
function windowHeight() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
  //window.alert( 'Width = ' + myWidth );
  return myHeight;
}
