var sams = {
	imgPopup : function(_this, imageUrl, imageW, imageH) {

	    _this.href="javascript:void(0)";

		var x4 = (screen.width < 2000) ? (screen.width / 2 - (imageW / 2)) : (screen.width / 4 - (imageW / 2));
		var y4 = screen.height / 2 - (imageH / 2);

		var mywin = window.open('', 'big', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=0,width=' + imageW + ',height=' + imageH + ',top=' + y4 + ',left=' + x4 + '');
		mywin.document.open();

		if(navigator.appName == "Microsoft Internet Explorer") mywin.window.resizeTo(imageW + 10, imageH + 25);

		mywin.document.write("<title>Увеличенное изображение</title><body leftmargin=0 topmargin=0 marginheight=0 marginwidth=0 onblur='window.close();'><a href='javascript:window.close()'><img src='" + imageUrl + "' width='"+imageW+"' height='"+imageH+"' border='0' /></a></body>");
		mywin.document.close;
		mywin.focus();

		return false;
	}
}
