$(function() {
			$('#videoopen').click(function(event) {
						event.preventDefault();
						$('#videoblock').fadeIn(1600);
					});
			$('#videoclose').click(function(event) {
						event.preventDefault();
						$('#videoblock').fadeOut(800);
					});
			$('.popup-show').click(function(event) {
						event.preventDefault();

						var enter_value = $(this).attr('id').split('-');
						if (enter_value[0] != 'none' || enter_value[0] != '0') {
							var _id = enter_value[0];
						}
						if (enter_value[0] != 'none' || enter_value[0] != '0') {
							var _block = enter_value[1];
						}

						$('#' + _id + '-popup').slideToggle(800);

					});
		});

function popups (body_inner, pname, W, H) {
	body_text = $('#'+body_inner).html();
	var winWidth = (W) ? W : 470;
	var winHeight = (H) ? H : 370;
	var winName = (pname) ? pname : 'window';
	var X = Math.round((screen.width - winWidth) / 2);
	var Y = Math.round((screen.height - winHeight) / 2);
	params = "scrollbars=yes, status=yes, resizable=1, width=" + winWidth
			+ ",height=" + winHeight + ",left=" + X + ",top=" + Y;
	wID = window.open('', winName, params);
	wID.document.write(body_text);
}
