$(document).ready(function(){
	    $('#BannerRight').flash({
	        src: 'banner.swf',
		    width: 750,
		    height: 300,
		    flashvars: { xmlPath: 'data.xml?x=' + Math.random() }
	    });
	});
	
$(document).ready(function() {				
		
		$("#Menu li a").wrapInner( '<span class="out"></span>' );
		
		$("#Menu li a").each(function() {
			$( '<span class="over">' +  $(this).text() + '</span>' ).appendTo( this );
		});

		$("#Menu li a").hover(function() {
			
			$(".out",	this).stop().animate({'top':	'45px'},	200); // move down - hide
			$(".over",	this).stop().animate({'top':	'0px'},		200); // move down - show

		}, function() {	
			$(".out",	this).stop().animate({'top':	'0px'},		200); // move up - show
			$(".over",	this).stop().animate({'top':	'45px'},	200); // move up - hide -45
		});
	});


$(document).ready(function(){
jQuery.preloadImages = function()
{
  for(var i = 0; i<arguments.length; i++)
  {
	jQuery("<img>").attr("src", arguments[i]);
  }
}

$.preloadImages("../images/site/tab-hover.gif");
});
