function center_popup(url,name,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable=yes'
win = window.open(url,name,settings)
if(win.window.focus){win.window.focus();}
}

function toggleSingleBlog(value,id) {
	xajax_toggleButton(value,id);
}

function toggleContent(value,id) {
	if(value == 'comments'){
		document.getElementById('videoblog_post').style.display = 'none';
	}
	if(value == 'post'){
		document.getElementById('videoblog_comments').style.display = 'none';
	}
	xajax_toggleButton(value,id);
}

function toggleLcContent(value,id) {
	if(value == 'comments'){
		document.getElementById('lc_blog_post').style.display = 'none';
	}
	if(value == 'post'){
		document.getElementById('lc_blog_comments').style.display = 'none';
	}
	xajax_toggleLcButton(value,id);
}

function uploadBtn() {
	xajax_uploadButton();
}

function muploadBtn() {
	xajax_muploadButton();
}
function challengeVideo(id) {
	xajax_licenceChallenge(id);
}

