function video_comment(){
	$('video-comment').toggle();
	if($('video-comment').style.display == "none") {
		$('video-arrow').src="/images/video/up_arrow.jpg";
	} else {
		$('video-arrow').src="/images/video/down_arrow.jpg";
	}
	return false;
}
function url_embed() {
	if($("check_url").checked==true) {
		$("video_embed").hide();
		$("video_url").show();
	}
	else {
		$("video_embed").show();
		$("video_url").hide();
	}
}
var win_popup;
var win_popup = "";
function confirmDelete(id){
	if(win_popup == ""){
		win_popup = new Window({className: "mac_os_x",
			title: "<b>Delete Video?</b>",
			width: 350,
			height: 150,
			resizable: false,
			closable: false,
			minimizable: false,
			maximizable: false,
			showEffect: Element.show,
			hideEffect: Element.hide,
			destroyOnClose: false,
			recenterAuto:false});
	}
	if(!win_popup.isVisible()){
		win_popup.getContent().update("<form id='video_delete' name='video_delete' enctype='multipart/form-data' method='post' action=''><input type='hidden' value='Video_Delete' name='name'><input type='hidden' value='"+id+"' name='video_guid'><input name='process' value='true' type='hidden'><div style='z-index:1000;height:130px;padding-top:20px;color:#FF8000;background:#2E2E2E'><div style='text-align:center;margin-top:20px;'><b>Are you sure you want to delete?</b></div><div style='text-align:center;margin-top:20px;'><input type='button' class='button button-size-xxlg button-color-orange' onclick='win_popup.close()' value='Cancel' />&nbsp;<input type='submit' class='button button-size-xxlg button-color-orange' value='Delete' /></div></div></form>");
		win_popup.showCenter();
	}
}
function info_click() {
	$('video-detail-description-more').toggle();
	$('video-detail-description').toggle(); 
	if($('video-detail-description').visible())
		$('info_link').update('(more info)');
	else
		$('info_link').update('(less info)');
}
