
function getScrollXY() {
  var scrOfX = 0, scrOfY = 0;
  if( typeof( window.pageYOffset ) == 'number' ) {
    //Netscape compliant
    scrOfY = window.pageYOffset;
    scrOfX = window.pageXOffset;
  } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
    //DOM compliant
    scrOfY = document.body.scrollTop;
    scrOfX = document.body.scrollLeft;
  } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
    //IE6 standards compliant mode
    scrOfY = document.documentElement.scrollTop;
    scrOfX = document.documentElement.scrollLeft;
  }
  return [ scrOfX, scrOfY ];
}

var DisDiv ="";
function DisplayPopup(divId) 
{
	DisDiv = divId;
    var msgw, msgh;
    msgw = 395; //Width
    msgh = 390; //Height
	ShowOverlay()
    var DivObj = document.getElementById(divId);
	DivObj.style.display ='block';
	DivObj.style.visibility ='visible';
    DivObj.style.width = msgw + 'px';
    DivObj.style.height = msgh + 'px';
    DivObj.style.left = '50%';
    DivObj.style.top = '50%';
	DivObj.style.marginLeft = "-200px";
    DivObj.style.marginTop = -170 + document.documentElement.scrollTop + "px";
	divId = "";
	
}

function HidePopup() 
{
   
    var s1 = new SWFObject("player/flvplayer.swf","ply","320","270","7");
								s1.addParam("allowfullscreen","true");
								s1.addVariable("file","ken_ar_interview.flv&image=player/preview.jpg");
								s1.addVariable("backcolor","0xB2D1FF"); <!--screen color + rollover text color-->
								s1.addVariable("frontcolor","0x000066");  <!--text color + button icons-->
								s1.addVariable("lightcolor","0x636094");  <!--rollover color-->
								s1.addVariable("screencolor","ffffff");
								s1.addVariable("width","320");
								s1.addVariable("height","270");
								s1.addVariable("volume","50");
								s1.write("player1");
   
   	document.getElementById(DisDiv).style.visibility='hidden';
	document.getElementById(DisDiv).style.display ='none';
	HideOverlay()
	    
	}

	var DivObj = "";
	function ShowOverlay() {
	    var pageSize = this.getScrollXY();
	    var bgObj = document.createElement("div");
	    DivObj = bgObj;
	    bgObj.setAttribute('id', 'bgDiv');
	    bgObj.style.position = "absolute";
	    bgObj.style.top = "0";
	    bgObj.style.background = "#777";
	    bgObj.style.filter = "progid:DXImageTransform.Microsoft.Alpha(style=3,opacity=25,finishOpacity=75";
	    bgObj.style.opacity = "0.3";
	    bgObj.style.left = "0";
	    bgObj.style.width = pageSize[0] + "px";
	    bgObj.style.height = pageSize[1] + "px";
	    bgObj.style.zIndex = "9999";
	    document.body.appendChild(bgObj);

	}

	function HideOverlay() {
	    document.body.removeChild(DivObj);
	}
