﻿/// <reference path="../jquery-1.3.2-vsdoc.js" />

jQuery(function() {
	var $ = jQuery, c = $("#ObjectMapImageArea"), ie6 = $.browser.msie && ($.browser.version < 7);
	$("#EventActivitiesList").find("a").not(".map").click(function(e) { e.preventDefault(); })
	.mouseover(function() {
		$(this).data("VenueImage").css("margin-left", 0);
	})
	.mouseout(function() {
		$(this).data("VenueImage").css("margin-left", -10000);
	}).each(function() {//
		var t = $(this);
		t.data(
			"VenueImage",
			$('<img alt=""/>').attr("src", t.attr("href")).css("position", "absolute").css("margin-left", -10000).appendTo(c)
		);
	});
	//alert($.browser.msie && ($.browser.version < 7));
	if (ie6) {
		$('<div class="nice-wrap"/>').insertBefore($("img.nice"));
		$("img.nice").each(function() {
			$(this).prev().append(this);
		})
	}
});