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/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><a href='' style='display:block;width:550px;height:450px;' id='player'></a></td><td class='br_mr' width='11'>&nbsp;</td></tr><tr height='20'><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');
		file_url=$(obj).attr('url');
		file_name=$(obj).attr('file_name');
		full_url=server_url + file_url;
		$('div#general').block();
		$('td.br_tc span').html(file_name);
		$('a#player').attr('href',full_url);
		flowplayer('player', '/_swf/flowplayer-3.1.3.swf');
	},
	hide: function(){ $('div#general').unblock(); }
}

$.blockUI.defaults = {
    message: oVideoForm.html(),
    css: {  
        margin:         '74px 0 0 -235px',
        top:            '0px',
        left:           '50%'
    }, 
    overlayCSS:  { backgroundColor:'#000', opacity: '0.6' }, 
    baseZ: 20000, 
    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;
}