	  //create temporary objects to hold values before they are stored in the array
	  var swf_params = {};
	  var swf_flashvars = {};

	  //create the object storage arrays for the PICTURE parameters 
	  var pic_params = [];
	  //create the object storage arrays for the VIDEO parameters 
	  var vid_params = [];
	  //create the object storage array for the flashvars
	  //both the picture and the video will share the same flashvars
	  var greeting_flashvars= [];
	  //not using attributes, but we need the false variable passed to the swfObject
	  var greeting_attributes = false;	  

	  var topOffset = 0; //= (dh - 350)/2;
	  var leftOffset = 0//(dw - 508)/2;

	  function setVideoDims(vidWidth, vidHeight) {
		var dw = window.innerWidth?window.innerWidth:document.documentElement.clientWidth;
		var dh = window.innerHeight?window.innerHeight:document.documentElement.clientHeight;

		topOffset = (dh - vidHeight)/2;
		leftOffset = (dw - vidWidth)/2;
	  }

	  window.onresize=function(){
		(document.getElementById('blanket_overlay')).style.width = '100%';
	  }
	  
	  function getDocHeight() {
		  var D = document;
		  return Math.max(
			  Math.max(D.body.scrollHeight, D.documentElement.scrollHeight),
			  Math.max(D.body.offsetHeight, D.documentElement.offsetHeight),
			  Math.max(D.body.clientHeight, D.documentElement.clientHeight)
		  );
	  }

	  function getDocWidth() {
		  var D = document;
		  return Math.max(
			  Math.max(D.body.scrollWidth, D.documentElement.scrollWidth),
			  Math.max(D.body.offsetWidth, D.documentElement.offsetWidth),
			  Math.max(D.body.clientWidth, D.documentElement.clientWidth)
		  );
	  }

	  function getScrollTop() {
		  return window.pageYOffset ?
			window.pageYOffset : // ff
			(document.body.scrollTop != 0 ? //ie
			  document.body.scrollTop :  // quirks mode ie
			  (document.documentElement.scrollTop) ); // strict mode ie
		
	  }	

	  function getScrollLeft() {
		  return window.pageXOffset ?
			window.pageXOffset :
			(document.body.scrollLeft != 0 ? //ie
			  document.body.scrollLeft : // quirks mode ie
			  document.documentElement.scrollLeft ); // strict mo
	  }

	  function ShowBlanket() {
		(document.getElementById('blanket_overlay')).style.height = getDocHeight()+'px';
		(document.getElementById('blanket_overlay')).style.width = getDocWidth()+'px';
		(document.getElementById('blanket_overlay')).style.display = 'block';
	  }

	  function HideBlanket() {
		(document.getElementById('blanket_overlay')).style.display = 'none';
	  }

	  function showVideo(vidID) {
		setVideoDims(greeting_flashvars[vidID].width, greeting_flashvars[vidID].height);

		var yPos = topOffset + getScrollTop();
		var xPos = leftOffset + getScrollLeft();

		(document.getElementById('flash_wrapper')).style.top = yPos + "px";
		(document.getElementById('flash_wrapper')).style.left = xPos + "px";
		

		swfobject.embedSWF("video_greeting.swf", "navigators_" + greeting_flashvars[vidID].vID, greeting_flashvars[vidID].width, greeting_flashvars[vidID].height, "9.0.0", "expressInstall.swf", greeting_flashvars[vidID], vid_params[vidID], greeting_attributes);

		(document.getElementById('flash_wrapper')).style.display = 'block';

		ShowBlanket();

	  }

	  function hideVideo(vID) {
		var elem = document.getElementById('navigators_' + vID);
		elem.style.visibility = 'hidden';

		var elem2 = document.getElementById('flash_wrapper');
		elem2.style.visibility = 'hidden';

		HideBlanket();
	  }
