function getSize() {
  var myWidth = 0, myHeight = 0;
	var objSizes = new Object();
  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;
  }
	objSizes.w = myWidth;
	objSizes.h = myHeight;
	return objSizes;
}

function prepBig()
{
	var objSizes = getSize();
	var winW = objSizes.w;
	var winH = objSizes.h;
	document.write('<div id="videoWindow" name="videoWindow"');
	document.write(' style="top:-'+winH+'px; left:-'+winW+'px; width:'+winW+'px; height:'+winH+'px;">');
	document.write('<div class="closeText" onclick="javascript:hideBig();">Close</div>');
	document.write('<div class="videoBox" onclick="javascript:hideBig();">');
	showFlash('flash/mbf-video.swf','','mbfvideo','720','426','000000','','center','showAll',9,'','','false');
	document.write('</div>');
	document.write('</div>');
	document.write('<div id="videoScreen" name="videoScreen"');
	document.write(' style="width:'+winW+'px; height:'+winH+'px;');
	if(isIE == true)
	{
		document.write('filter:alpha(opacity=90);');
	}
	document.write('"></div>');
}

function showVideo(whatVideo,vidWidth,vidHeight)
{
	var winW = parseInt(vidWidth) + 40;
	var winH = parseInt(vidHeight) + 60;
	changeObjectVisibility('videoWindow','visible',11);
	changeObjectVisibility('videoScreen','visible',10);
	var H = getHeight();
	var Hspace = Math.round((H - winH)/2);
	var W = getWidth();
	var Lft = Math.round((W - winW)/2);
	var ScrollTop = document.body.scrollTop;
	if (ScrollTop == 0)
	{
	  if (window.pageYOffset)
		{
			ScrollTop = window.pageYOffset;
			if(Hspace > 0){ScrollTop += Hspace;}
		}
   	else
		{
      ScrollTop = (document.body.parentElement) ? document.body.parentElement.scrollTop : 0;
			if(Hspace > 0){ScrollTop += Hspace;}
		}
	}
	ScrollTop -= 40;
	ScrollTop += 'px';
	winW += 'px';
	winH += 'px';
	Lft += 'px';
	var styleObject = getStyleObject('videoWindow');
	styleObject.width=winW;
	styleObject.height=winH;
	styleObject.top=ScrollTop;
	styleObject.left=Lft;
	var screenObj = getStyleObject('videoScreen');
	screenObj.top=0;
	screenObj.left=0;
	playMovie('mbfvideo');
}

function hideBig()
{
	stopMovie('mbfvideo');
	changeObjectVisibility('videoWindow','hidden',1);
	changeObjectVisibility('videoScreen','hidden',1);
	var styleObject = getStyleObject('videoWindow');
	var winH = document.documentElement.clientHeight;
	var winW = document.documentElement.clientWidth;
	winH += 'px';
	winW += 'px';
	styleObject.offsetTop -= winH;
	styleObject.offsetLeft -= winW;
	styleObject = getStyleObject('videoScreen');
	winH += 'px';
	winW += 'px';
	styleObject.offsetTop -= winH;
	styleObject.offsetLeft -= winW;
}