
oVideoForm = {
	html: function(){
		return "<table cellpadding='0' cellspacing='0'><tr height='44'><td class='br_tl' width='11'>&nbsp;</td><td class='br_tc'><img src='/_img/register/close.gif' onclick='oVideo.hide()'/><span></span></td><td class='br_tr' width='11'>&nbsp;</td></tr><tr><td class='br_ml' width='11'>&nbsp;</td><td class='br_mc'><div class='body'></div><div id='example' class='video_box'/></div></td><td class='br_mr' width='11'>&nbsp;</td></tr><tr height='25'><td class='br_bl' width='11'>&nbsp;</td><td class='br_bc'></td><td class='br_br' width='11'>&nbsp;</td></tr></table>"
	}
}

oVideo = {
	show: function(obj){
		server_url=$(obj).attr('server_name');
		file_url=$(obj).attr('file');
		file_name=$(obj).attr('file_name');
//		a=$('#video').html();
		$('div#general').block(); 
		$('td.br_tc span').html(file_name);
		flashembed("example", 
			{
				src:'/_swf/Player.swf',
				width: 430, 
				height: 385
			},
			{config: {
				autoPlay:false,
				initialScale: 'scale',
				videoFile: server_url + file_url,
				initialScale: 'fit',
				showMenu: false,
				showFullScreenButton: true,
				timeDisplayFontColor: 0xFFFFFF
			}} 
		);
//		$('#video_UI').html(a);
//		$('#video_UI .video_item a').each(function(){
//				$(this).attr('onclick','').unbind().click(showvideoUI);
//		});
	},
	hide: function(){ $('div#general').unblock(); }
}

$.blockUI.defaults = {
    message: oVideoForm.html(),
    css: {  
        margin:         '0 0 0 -235px',
        top:            '2%',
        left:           '50%'
    }, 
    overlayCSS:  { backgroundColor:'#000', opacity: '0.6' }, 
    baseZ: 1000, 
    allowBodyStretch: true, 
    constrainTabKey: true, 
    fadeOut:  400, 
    applyPlatformOpacityRules: true 
};

function reloadPage(){
	var s = window.location.href;
	if(s.indexOf('#')>-1){s = s.split('#')[0]}
	window.location = s;
}
