
function show_video_frame( width, height, url )
{
	inner_html = '<object width="__WIDTH__" height="__HEIGHT__"><param name="movie" value="__URL__?fs=1&amp;hl=hu_HU"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="__URL__?fs=1&amp;hl=hu_HU" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="__WIDTH__" height="__HEIGHT__"></embed></object>'.
		replace( /__WIDTH__/g, width ).
		replace( /__HEIGHT_/g, height ).
		replace( /__URL__/g, url );
	e = jQuery('#video-frame-content');
	e.html(inner_html);
	e.css( 'width', width + 'px' );
	e.css( 'height', height + 'px' );
	
	height += 20;
	f = jQuery('#video-frame');
	f.css( 'left', '-1000px' );
	f.css( 'top', 0 );
	f.css( 'z-index', 9999 );
	f.show();
	_left = (window.innerWidth/2 - e.innerWidth()/2) + 'px';
	_top = jQuery(document).scrollTop() + (window.innerHeight/2 - e.innerHeight()/2) + 'px';
	f.hide();
	f.css( 'left', _left );
	f.css( 'top', _top );
	f.show();

	console.log('top: '+_top);
}

function hide_video_frame()
{
	e = jQuery('#video-frame');
	e.css( 'z-index', 0 );
	e.hide();
	jQuery('#video-frame-content').html('');
}


