 $(document).ready(function() {	
	
	$('marquee').marquee('pointer').mouseover(function () {
		$(this).trigger('stop');
	}).mouseout(function () {
		$(this).trigger('start');
	}).mousemove(function (event) {
		if ($(this).data('drag') == true) {
			this.scrollLeft = $(this).data('scrollX') + ($(this).data('x') - event.clientX);
		}
	}).mousedown(function (event) {
		$(this).data('drag', true).data('x', event.clientX).data('scrollX', this.scrollLeft);
	}).mouseup(function () {
		$(this).data('drag', false);
	});
	
	
	$('#flashintro').flash(
        { src: 'swf/intro.swf',
          width: 992,
		  wmode: 'transparent', 
          height: 550 },
        { version: 8 }
    );
	
	
	
	$("img.tip").tooltip({ 
			effect: 'slide',
			tip: '.tooltip',
			predelay: 50,
			offset: [3, 0],			
			onBeforeHide: function () {
				$(".tip").attr("src","images/mile_stone.png");
			  }
			
	}); 
	
	
	$(".millestone").hover(
      function () {
		$(".tip").attr("src","images/mile_stone.png");
		$(this).find('img').attr("src","images/mile_stone_hit.png");
      }, 
      function () {
		
      }
    );
	
	
	 
	 
	
	  
	  $("a.poppup").overlay({ 
							
            expose: { 
				color: '#000', 
				loadSpeed: 200, 
				opacity: 0.6 
			}, 
            top: 160
			
        }); 
	 
 });


