
function showvideo(v) {
	
	var inner = windowdim.inner();				
	var offset = windowdim.offset();
	var page = windowdim.page();
		
	
	// video-hg
	var d = document.getElementById("flashoverlay");
	d.style.visibility = 'visible';
	d.style.width = offset.x + inner.width + "px";
	d.style.height = offset.y + inner.height + "px";

	// video 		
	var swf = {
		width: 480,
		height: 430,
		src: "/static/slides/videoplayer02?video="+v,
		id: "flashvid",
		hgcol: '#ffffff'
	};	
	
	var f = document.getElementById("flashvideo");	
	f.innerHTML = AC_FL_RunContent2 (
		'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
		'width', swf.width,
		'height', swf.height,
		'src', swf.src,
		'quality', 'high',
		'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
		'align', 'middle',
		'play', 'true',
		'loop', 'true',
		'scale', 'showall',
		//'wmode', 'transparent',
		'devicefont', 'false',
		'id', swf.id,
		'bgcolor', swf.hgcol,
		'name', swf.id,
		'menu', 'true',
		'allowFullScreen', 'false',
		'allowScriptAccess','sameDomain',
		'movie', swf.src,
		'salign', ''
		);		
	
	var reldim = {width: page.width + offset.x, height: inner.height+offset.y};	
	f.style.visibility = 'visible';
	f.style.top = offset.y + (inner.height - swf.height) / 2 + "px";
	f.style.left = offset.x + (inner.width - swf.width) / 2  + "px";
	
}

function hidevideo() {
	//alert("hidevideo()");
	var d = document.getElementById("flashoverlay");	
	d.style.visibility = 'hidden';	
	var f = document.getElementById("flashvideo");	
	f.innerHTML = "&nbsp;";
	f.style.visibility = 'hidden';	
}