	$(function () {

		var k = 0;

		$('.prod').each(function(i) {

			k++;

			var distance = 10;

			var time = 50;

			var leftt

			var hideDelay = 50;

			var hideDelayTimer = null;					

			var beingShown = false;

			var shown = false;

			var trigger = $('.ipro', this);

			var offset = $(this, '.tball').offset();

			var topp = offset.top + 26;

			var info = $('.Pittbull', this).css('opacity', 0);

			var lenchar = $('.Pittbull p:eq('+i+')').text().length;

             	if(lenchar > 600) { $('.Pittbull p:eq('+i+')').addClass('phei'); }

			var p = k / 4;

			var d = "" + p;

			if(d.indexOf(".", 1) == 1) { 

				var leftt = offset.left + 153;

			} else {

				var leftt = offset.left - 230;

				$(".Pittbull #right", this).removeClass("gright"); $(".Pittbull #right", this).addClass("aright"); // right

				$(".Pittbull #left", this).removeClass("aleft"); $(".Pittbull #left", this).addClass("gleft"); // left

				$(".Pittbull #top", this).removeClass("tleft"); $(".Pittbull #top", this).addClass("tright"); // top

				$(".Pittbull #bot", this).removeClass("bleft"); $(".Pittbull #bot", this).addClass("bright"); // bottom

			}

			$([trigger.get(0), info.get(0)]).mouseover(function () {

				if (hideDelayTimer) clearTimeout(hideDelayTimer);

				if (beingShown || shown) {

					// don't trigger the animation again

					return;

				} else {

					// reset position of info box

					beingShown = true;

					trigger.css("border", "1px dashed #A5A5A5");

					info.css({left: leftt, top: topp, display: 'block'}).animate({ opacity: 1 }, time, 'swing', function() { beingShown = false; shown = true; });

				}

				return false;

			}).mouseout(function () {

				if (hideDelayTimer) clearTimeout(hideDelayTimer);

				hideDelayTimer = setTimeout(function () {

				hideDelayTimer = null;

				trigger.css("border", "1px solid #FFF");

				info.animate({ opacity: 0 }, time, 'swing', function () { shown = false; info.css('display', 'none'); }); }, hideDelay);

				return false;

			});

		});

		if(window.ActiveXObject){ 

			$(function() { $.getScript("http://www.pricetronic/scripts/supersleight-jq.js", function() { $(".Pittbull").supersleight(); }); });

		}

    });
