
// change iFrame content from flash
function changeFrame(url) {
	 document.getElementById('contentFrame').src = url;
}

// Launch image preview window

 function launchWindow(pagePath, W, H) {
  
  // set dimensions and center window
  var width = W;
  var height = H;
  var left = ( screen.width - width ) / 2;
  var top = ( screen.height - height ) / 2;
  
  // open the window
  if ( document.all ) 
   window.open( pagePath, "pagePreview", "directories=no,height=" + height + ",left=" + left + 
                ",location=no,menubar=no,resizable=no,scrollbars=yes,status=no," +
                "toolbar=no,top=" + top + ",width=" + width );
  else
   window.open( pagePath, "pagePreview", "dependent=yes,directories=no,height=" + height + 
                ",location=no,menubar=no,personalbar=no,resizable=no,screenX=" + left + 
                ",screenY=" + top + ",scrollbars=yes,status=no,toolbar=no,width=" + width );
 }
 

 
  // Launch Video by URL/////////////////////////////////////////////////////////////////////////////////////////////
 // Added 2/18/08 KL ///////////////////////////////////////////////
 
   function streamVideoURL(video, W, H) {
  
  // set dimensions and center window
  var width = W;
  var height = H;
  var left = ( screen.width - width ) / 2;
  var top = ( screen.height - height ) / 2;
  
  // open the window
  if ( document.all ) 
   window.open( video, "Media", "directories=no,height=" + height + ",left=" + left + 
                ",location=no,menubar=no,resizable=no,scrollbars=no,status=no," +
                "toolbar=no,top=" + top + ",width=" + width );
  else
   window.open( video, "Media", "dependent=yes,directories=no,height=" + height + 
                ",location=no,menubar=no,personalbar=no,resizable=no,screenX=" + left + 
                ",screenY=" + top + ",scrollbars=no,status=no,toolbar=no,width=" + width );
 }
 
 // Use this function to stream video's without creating a HTML page - Just need the video's .asx link
 //Added 2/19/08 KL///////////////////////////////////////////////////////////////////////////////////////////////////////////
 
 function streamVideo(videoPath) {
  
  // set dimensions and center window
  var width = 400;
  var height = 350;
  var left = ( screen.width - width ) / 2;
  var top = ( screen.height - height ) / 2;
  
  // open the window
  if ( document.all ) 
  window.open( "/wlgwb/media/StreamVideo.asp?" + "videoPath=" + videoPath, "VideoPreview", "directories=no,height=" + height + ",left=" + left + 
                ",location=no,menubar=no,resizable=no,scrollbars=no,status=no," +
                "toolbar=no,top=" + top + ",width=" + width );
  else
   window.open( "/wlgwb/media/StreamVideo.asp?" + "videoPath=" + videoPath, "VideoPreview", "dependent=yes,directories=no,height=" + height + 
                ",location=no,menubar=no,personalbar=no,resizable=no,screenX=" + left + 
                ",screenY=" + top + ",scrollbars=no,status=no,toolbar=no,width=" + width );
 }

