//<!--
var w,h,new_w, new_h;
jsHover = function() 
{
	var hEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0, len=hEls.length; i<len; i++) 
	{
		hEls[i].onmouseover=function() { this.className+=" jshover"; }
		hEls[i].onmouseout=function() { this.className=this.className.replace(" jshover", ""); }
	}
	
	var arVersion = navigator.appVersion.split("MSIE")
		   var version = parseFloat(arVersion[1])
		   if ((version >= 5.5) && (document.body.filters)) 
		   {
			  for(var i=0; i<document.images.length; i++)
			  {
				 var img = document.images[i]
				 if (img.className !="myfoto")
				 {
					 var imgName = img.src.toUpperCase()
					 if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
					 {
						var imgID = (img.id) ? "id='" + img.id + "' " : ""
						var imgClass = (img.className) ? "class='" + img.className + "' " : ""
						var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
						var imgStyle = "display:inline-block;" + img.style.cssText 
						if (img.align == "left") imgStyle = "float:left;" + imgStyle
						if (img.align == "right") imgStyle = "float:right;" + imgStyle
						if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
						var strNewHTML = "<span " + imgID + imgClass + imgTitle
						+ " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
						+ "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
						+ "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>";
						img.outerHTML = strNewHTML
						i = i-1
					 }
				 }
			  }
		   }
}
if (window.attachEvent && navigator.userAgent.indexOf("Opera")==-1) window.attachEvent("onload", jsHover);

function StatusBarBottom_Address ()
{
  str=
    "<CENTER><TABLE border=0 cellPadding=0 cellSpacing=0 height=28><TR><TD align=center width=679 height=27 valign=middle style='border-top: 1px solid #0000FF'>"
    +"<H2><b>Производственная компания \"ЛИДИЯ\"</b></H2><H2>Украина, г. Александрия, Звенигородское Шоссе, 8/4</H2 >"
    +"<H2>Отдел кадров тел.: +38 (05235) 77-0-32, +38 (097) 727-74-72 </H2 >"
    +"<H2><a href='http://www.lidiya.ru'>http://www.lidiya.ru</a>, <a href='http://www.lidiya-ua.com'>http://www.lidiya-ua.com </a></H2>"
    +"<H2>E-mail: <a href='mailto:prihodi_rabotat@mashinostroitel.com'>prihodi_rabotat@mashinostroitel.com</a></H2>"
    +"<H4>&nbsp;</H4></TD></TR></TABLE>"
  document.write(str);
}

function StatusBarBottom_Address_Kyiv ()
{
  str=
    "<CENTER><TABLE border=0 cellPadding=0 cellSpacing=0 height=28><TR><TD align=center width=679 height=27 valign=middle style='border-top: 1px solid #0000FF'>"
    +"<H2><b>Производственная компания \"ЛИДИЯ\"</b></H2><H2>Украина, г. Киев, Голосеевский р-н, Краснознаменная, 26 (2-й этаж)</H2 >"
    +"<H2>Отдел кадров тел.: +38 (044) 581-60-34, +38 (067) 520-30-16 (безлимитный)</H2 >"
    +"<H2><a href='http://www.lidiya.ru'>http://www.lidiya.ru</a>, <a href='http://www.lidiya-ua.com'>http://www.lidiya-ua.com </a></H2>"
    +"<H2>E-mail: <a href='mailto:prihodi_rabotat@mashinostroitel.com'>prihodi_rabotat@mashinostroitel.com</a></H2>"
    +"<H4>&nbsp;</H4></TD></TR></TABLE>"
  document.write(str);
}


window.addEvent('domready', function() 
{
	var myimages = $$('.myfoto');
	myimages.each ( function(myimage, i) 
	{
		$(myimage).addEvent('mouseenter', function(e)
        {
			w = $(myimages[i]).width;
			h = $(myimages[i]).height;
			var new_img = new Image();
			new_img.src = $(myimages[i]).src;
			new_w = new_img.width;
			new_h = new_img.height;
			var cur_x = (new_w - w)/2;
			var cur_y =  (new_h - h)/2;		
			var new_pos_x = ($(myimages[i]).getOffsets().x - (new_w - w)/2);
			var new_pos_y = ($(myimages[i]).getOffsets().y - (new_h - h)/2);
			if (new_pos_x < 0){new_pos_x = 0;}
			if (new_pos_y<0){new_pos_y = 0;	}
			//if ('\v'!='v')

			if (false)
			{	
				myDiv = new Element ( 'div' , {'id': 'Overlay'+i,'styles': {position: 'absolute',left: new_pos_x,top: new_pos_y,width: new_w,height: new_h,zIndex: 102}});
				myDiv.inject(document.body,'inside');
				var myImg = new Element ( 'img' , { 'id': 'fxzoom'+i,'src' : $(myimages[i]).src, 'width': w,'height': h, 'style': 'margin-left:'+ cur_x+';margin-top:'+cur_y}) ;
				myImg.inject($('Overlay'+i),'inside');
				var fx = new Fx.Morph($('fxzoom'+i), { transition: Fx.Transitions.Linear, duration: 200});
				fx.start({'width': new_w,'height': new_h,'margin-left': 0,'margin-top': 0});
				$('Overlay'+i).addEvent('mouseleave', function(e)
				{
					var fxz = new Fx.Morph($('fxzoom'+i), { transition: Fx.Transitions.Linear, duration: 200});
					fxz.start({'width': w,'height': h,'margin-left': cur_x,'margin-top': cur_y});
					fxz.addEvent('complete', function() 
					{
						$('Overlay'+i).empty();
						$('Overlay'+i).dispose();
					});
				});
			}
			else
			{
				if ($('Overlay') != null)
				{
					$('Overlay').empty();
					$('Overlay').dispose();
				}
				myDiv = new Element ( 'div' , {'id': 'Overlay','styles': {position: 'absolute',left: new_pos_x,top: new_pos_y,width: new_w,height: new_h,zIndex: 102}});
				myDiv.inject(document.body,'inside');
				var myImg = new Element ( 'img' , { 'id': 'fxzoom','src' : $(myimages[i]).src, 'width': w,'height': h, 'style': 'margin-left:'+ cur_x+';margin-top:'+cur_y}) ;
				myImg.inject($('Overlay'),'inside');
				var fx = new Fx.Morph($('fxzoom'), { transition: Fx.Transitions.Linear, duration: 200});
				fx.start({'width': new_w,'height': new_h,'margin-left': 0,'margin-top': 0});
				$('Overlay').addEvent('mouseleave', function(e)
				{
						$('Overlay').empty();
						$('Overlay').dispose();
				});
			}
		});
	});
});

// -->