function initRollOverImages() {
  var image_cache = new Object();
  $("img.swapImg").each(function(i) {
    var imgsrc = this.src;
    var dot = this.src.lastIndexOf('.');
    var imgsrc_on = this.src.substr(0, dot) + '_f2' + this.src.substr(dot, 4);
    image_cache[this.src] = new Image();
    image_cache[this.src].src = imgsrc_on;
    $(this).hover(
      function() {$(this).fadeTo(0,0); this.src = imgsrc_on;$(this).fadeTo(250,1);},
      function() {this.src = imgsrc;});
  });

  $(".FlashBlock").hover(
		function(){$(this).fadeTo(0, 0).fadeTo(200, 1);return false;},
		function(){$(this).fadeTo(50, 1);return false;}
  );
}


function BlockLink(){
  $(".BlockLink").click(function(){var LinkTarget = $(this).find("a").attr("target");
	if(LinkTarget =="_blank"){window.open().location=$(this).find("a").attr("href");return false;}
	 else if(LinkTarget !="_blank"){window.location=$(this).find("a").attr("href");return false;}
	}
  );
  
  $(".BlockLink").hover(
	  function(){$(this).addClass("BlockLinkOn");},
	  function(){$(this).removeClass("BlockLinkOn");}
  );
}

$(BlockLink);
$(initRollOverImages);
