﻿$(document).ready(function(){
	$("li.root").each(function(){
		$(this).mouseover(function()
		{
			$(".poly_root", this).attr({ 
				src: "/i/poly_hor.jpg"
			});
		});
		$(this).mouseout(function()
		{
			if ($.browser.msie && parseInt($.browser.version) < 7)
			{
				var width =  $(".poly_root", this).width();
				var height =  $(".poly_root", this).height();
				$(".poly_root", this).attr({ 
					src: "/i/spacer.gif"
				});
				$(".poly_root", this).css("filter", "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/i/poly_ver.png', sizingMethod='scale');");
				$(".poly_root", this).width(width);
				$(".poly_root", this).height(height);
			}
			else
			{
				$(".poly_root", this).attr({ 
					src: "/i/poly_ver.png"
				});
			}
		});
	});
	$(".nav").superfish();
});
