
<!--
//pop up that takes different parameters
// this will center the window within the browser and bring the window to focus
//javascript:popUpProps('test.html','winName','400','300',',menubar=0,resizable=0,scrollbars=0,titlebar=0,toolbar=0');
var winProps;
function popUpProps(url, windowName, width, height, props)
{
	var left = (screen.width - width) / 2;
	var top = (screen.height - height) / 2;
	var propsCentered = "width=" + width + ",height=" + height + ",left=" + left + ",top=" + top + props;

	if(winProps == null || winProps.closed) {
		winProps = window.open(url, windowName, propsCentered);
		winProps.focus();
	} else {	
		winProps.close();
		winProps = window.open(url, windowName, propsCentered);
		winProps.focus();
	}
}


function getWinSize()
{
  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;
  }
  return {w:myWidth,h:myHeight}
  
}

swfHeight = 800;

function swfChangeHeight(intNewHeight){
    swfHeight = intNewHeight;
    
    var winSizes = getWinSize();
    var swfEmbed = document.getElementById("swfEmbed"); 
    if(winSizes.h > swfHeight){
         swfEmbed.style.height = winSizes.h + "px";
    }else{
        swfEmbed.style.height = swfHeight + "px";
    } 
}  

function swfResize(){
    var winSizes = getWinSize();
    var swfEmbed = document.getElementById("swfEmbed"); 
    if(winSizes.h > swfHeight){
         swfEmbed.style.height = winSizes.h + "px";
    }else{
        swfEmbed.style.height = swfHeight + "px";
    } 
}
// -->