jQuery(document).ready(function($){
	
	if ( ! $.browser.msie ) {
		
		$("p.button_cta").hover(
			  function () {
				$(this).fadeTo(100, 0.85);
			  }, 
			  function () {
				$(this).fadeTo(300, 1.00);
			  }
		);
		
	}
	
	/*
	$("#top_navigation-primary ul li a").hover(
		  function () {
			$(this).animate({
				color: '#ffffff'
			}, 500);
		  }, 
		  function () {
			$(this).animate({
				color: '#c0c0c0'
			}, 800);
		  }
	);
	
	
	adjustoverflow = function() {

		if($(window).width()<1100) {
		
			$("#top_promotion").css({"right" : "0px;"});
		
		} else {
		
			$("#top_promotion").css("right", "-35px;");
		
		}
		
	};
	
	adjustoverflow();
	$(window).bind("resize", adjustoverflow);
	*/
	
	//$.preloadCssImages();
	
	$('.ajax').boxy(
		{modal: true, fixed: true, clickToFront: true, title: '&nbsp;', closeText: 'Close', closeable: true, filter: '#middle .content',
			afterShow: function() { 
				
				var bwindow = this;
			
				$('.boxy-modal-blackout').click(function(){ bwindow.hide(); });
		}}
	);
	
});
