	// Ие мудаг	function fixPNG(element)		{		if (/MSIE (5\.5|6).+Win/.test(navigator.userAgent))			{			var src;			if (element.tagName=='IMG')				{				if (/\.png$/.test(element.src))					{					h = element.offsetHeight;					w = element.offsetWidth;					src = element.src;					element.src = "/images/pixel.gif";					}				}			else				{				src = element.currentStyle.backgroundImage.match(/url\("(.+\.png)"\)/i);				if (src)					{					src = src[1];					element.runtimeStyle.backgroundImage="none";					}				}			if (src)				{				element.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "',sizingMethod='scale')";				}			}		}			   function fotoFull(id,w,h)                {                var infoWin = new Dialog.info({url: '/win/foto.html?id='+id, options: {method: 'get'}},                                    {windowParameters: {className: "nashi", width:w, height:h, draggable:false, resizable: false}}                                    );                }                        function licFull(id,w,h)                {                var infoWin = new Dialog.info({url: '/win/lic.html?id='+id, options: {method: 'get'}},                                    {windowParameters: {className: "nashi", width:w, height:h, draggable:false, resizable: false}}                                    );                }			function lookup(lookupSettings)                     {                     if (!lookupSettings) lookupSettings = new Object();                     if (!lookupSettings.values)   lookupSettings.values   = '';                     if (!lookupSettings.dest)  lookupSettings.dest = false;                     if (!lookupSettings.win)  lookupSettings.win = false;                     if (!lookupSettings.silent)  lookupSettings.silent = true;                     if (!lookupSettings.postFunction)   lookupSettings.postFunction   = '';                     if (!lookupSettings.destMethod)   lookupSettings.destMethod = 'reset';                     if (lookupSettings.url)                          {                          this.working = false;                          if (!this.working && (this.http = getHTTP()))                               {                               if (!lookupSettings.silent) if (showProgress) startProgress();                               var http = this.http;                               this.http.open("POST", lookupSettings.url, true);                               this.http.onreadystatechange = function()                                    {                                    if (http.readyState == 4)                                         {                                         if (!lookupSettings.silent)                                              {                                              if (showProgress) stopProgress();                                              showProgress = true;                                              }                                         re = /^Location: ([a-zA-Z0-9._\/-]+)/;                                         ReLocation = re.exec(http.responseText);                                         try                                             {                                             if (lookupSettings.win)                                                 destObj = lookupSettings.win.document.getElementById(lookupSettings.dest);                                             else                                                 destObj = document.getElementById(lookupSettings.dest);                                             }                                         catch (e) { destObj = false; }                                         re = /^Message: (.+)/;                                         Message = re.exec(http.responseText);                                         if (Message)                                         	{                                         	alert(Message[1]);                                         	return false;                                         	}                                         if ( !ReLocation && destObj )                                              {                                              destObj.style.height = '';                                              destObj.style.display = "block";                                              if (lookupSettings.destMethod == 'reset')                                                   destObj.innerHTML = http.responseText;                                              else                                                   destObj.innerHTML += http.responseText;                                              if (lookupSettings.postFunction) eval(lookupSettings.postFunction);                                              }                                         else                                              {                                              if ( ReLocation )                                                   {                                                   document.location.href = ReLocation[1];                                                   }                                              else                                                   {                                                   if (lookupSettings.postFunction) eval(lookupSettings.postFunction);                                                   return http.responseText;                                                   }                                              }                                         this.working = false;                                         this.http = false;                                         }                                    }                               this.working = true;                               this.http.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');                               this.http.send(lookupSettings.values);                               }                          if(!this.http)                               {                               alert('Ошибка при создании XMLHTTP объекта. Ваш браузер не поддерживается системой!')                               }                          }                     }
