	jQuery(function($){
 /************* colorbox ****************/     
	$(".imgContentWrap").colorbox({maxHeight:700});
	$(".sspdc_image a").colorbox({maxHeight: 700});
	$('#nav li.selected').append('<div class="highlight"></div>');

      
 /************* Navigation hover ****************/     
   $('#nav li a:not(#nav ul li a)').hover(function(){
	  $(this).animate({top: '-=3px'}, 200);
		}, function(){
	  $(this).animate({top: '+=3px'}, 200);     
	});
   


 /************* Awards Section ****************/     
		var windowW = $(document).width();
/*
	$('#ribbon').hover(function(){
		$('#awards').show();
	  $('#ribbon').animate({top: '-100px'}, 300);
	  $('#awards').animate({height: '200px'}, 300);
	  $('#header, #headerBg').animate({top: '200px'}, 300);
	  $('#header, #headerBg').css({position: 'absolute'}); 
	      
		}, function(){
	});
	
	*/
	$('#ribbon').click(function(e){
	e.preventDefault();
		$('#awards').show();
	  $('#ribbon').animate({top: '-100px'}, 300);
	  $('#awards').animate({height: '200px'}, 300);
	  $('#header, #headerBg').animate({top: '200px'}, 300);
	  $('#header, #headerBg').css({position: 'absolute'}); 
	      
		}, function(){
	});


 
$('#tophide a').click(function(e) {   //this one hides the awards
	e.preventDefault();
	  $('#awards').animate({height: '0px'}, 300);     
	  $('#header, #headerBg').animate({top: '0px'}, 300, function() {  
		$('#awards').hide();
	  });
	 	 $('#ribbon').animate({top: '0px', height:'160px'}, 300);
		$('#header, #headerBg').css({position: 'fixed'}); 
		});


/*
$(window).scroll(function () { 
	var offset = $(window).scrollTop();
     if(offset > 0){
	  $('#awards').animate({height: '0px'}, 300);     
	  $('#header, #headerBg').animate({top: '0px'}, 300, function() {  
	  });
	  $('#ribbon').animate({top: '0px'}, 300);
      }
    });
*/


$('#awardslist li.qTip').each(function() {
   $(this).qtip({
   			 content: $(this).children('.awardInfo').html(),
              position: {
            my: 'top left',
            target: 'mouse',
            viewport: $(window), // Keep it on-screen at all times if possible
            adjust: {
                x: 10,  y: 10
            }
        },
        hide: {
            fixed: true // Helps to prevent the tooltip from hiding ocassionally when tracking!
        },
       style: {
        border: {
         width: 1,
         radius: 8,
         color: '#3B2709'
      },
      classes: 'ui-tooltip-rounded ui-tooltip-shadow ui-tooltip-light'
   	}
   
   })
});

   $('#ribbon').qtip({
   			 content: 'Click to discover more!',
              position: {
            my: 'top center',
            target: 'mouse',
            viewport: $(window), // Keep it on-screen at all times if possible
            adjust: {
                x: 10,  y: 10
            }
        },
        hide: {
            fixed: true // Helps to prevent the tooltip from hiding ocassionally when tracking!
        },
       style: {
        border: {
         width: 1,
         radius: 8,
         color: '#3B2709'
      },
      classes: 'ui-tooltip-rounded ui-tooltip-shadow ui-tooltip-light'
   	}
   
   });



$('#awardslist li').hover(function() {
	$(this).animate({top: '-10px'}, 100, function() { 
	$(this).animate({top: '0px'});
	 });
	  
	  });




	});


