function ourPeoplePopup(src, width, height, close, name) {
	var close = close || "Close";
	var name = name || "";
	var win = window.open("", "gallery", "status=0,width="+(width*1)+",height="+(height*1+35));

	var title = "<title>"+ name +"</title>";
	var style = "<link media='all' href='/media/inc/our-people-popup.css' type='text/css' rel='stylesheet' />";
	var script = "<script type='text/javascript' src='/media/inc/our-people.js'></script>";
	var head = "<head>"+ title + script + style + "</head>";

	var img = "<img src='"+ src +"' width='"+ width +"' height='"+ height +"' alt='' />";
	var close = "<div class='toolbar'><a class='button' href='javascript:window.close();'>"+ close +"</a></div>";
	var body = "<body onload='resizePopup();'>"+ img + close + "</body>";
	win.document.write("<html>"+ head + body +"</html>");
	win.document.close();
}

function resizePopup() {
	// вызывается из pop-up'а, при body.onload
	var bodyHeight = document.getElementsByTagName("body")[0].clientHeight;
	var contentHeight = document.documentElement.scrollHeight;
	if (navigator.userAgent.indexOf("MSIE")>-1) contentHeight -= 4;
	window.resizeBy(0, contentHeight - bodyHeight);
}

/*
function deleteH1() {
	var h1 = document.getElementsByTagName("h1");
	if (h1 && h1.length) {
		h1[0].style.display.block = "none";
	}
}
deleteH1();
*/
