// JavaScript Document
$(document).ready(function(){
 $('#globalNav > li').suckerfish();
 $("table.data tbody tr:nth-child(odd)").addClass("odd");
 $("table.data tbody tr:nth-child(even)").addClass("even");
 $("table.data tbody tr").hover(
  function(){
    $(this).addClass("hover");
  },
  function(){
    $(this).removeClass("hover");
  }  
 );
// $('#content *').widont();
// if(typeof sIFR == "function"){
//  var selectors ='#quote .wrapper';
//  sIFR.replaceElement(named({sSelector:selectors, sFlashSrc:"/flash/momstypewritter.swf", sColor:"#000000", sLinkColor:"#FFFFFF", sBgColor:"#003377"}));
// };
});

$(document).ready(function(){
 $('#pitch .wrapper').css({backgroundImage: 'none', color: '#037'});																											
 var $pitch = $('#pitch span');
 /* Create associative array of images and offsets */
 var map = new Object();
 map.pitch = new Image();
 map.pitch.src = '/images/pitch.gif';
 map.speed = new Image();
 map.speed.src = '/images/pitch-high-speed.gif';
 map.specificity = new Image(); 
 map.specificity.src = '/images/pitch-high-specificity.gif';
 map.yield = new Image();
 map.yield.src = '/images/pitch-high-yield.gif';

 var arr = ['specificity', 'pitch', 'speed'];
	$pitch
  .css({backgroundImage: 'url(' + map['speed']['src'] + ')'});
jQuery.each(arr, function() {																											
			var slide = this;			
   $pitch
			 .animate({opacity:1}, 600)
				.animate({opacity:1}, 5000)
			 .animate({opacity:0}, 
													 600,
														function () {
			            $pitch.css({backgroundImage: 'url(' + map[slide]['src'] + ')'});
														} 
			 );
});
   $pitch
			 .animate({opacity:1}, 600);

 


/*
 $('#antibody ul li').hover(
  function(){
    pitch.css({backgroundImage: 'url(' + map[this.className]['src'] + ')'});
  },
  function(){
    pitch.css({backgroundImage: 'url(' + map.pitch.src + ')'});
  }  
 );
*/
});



jQuery.fn.debug = function() {
 return this.each(function(){
  alert(this);
 });
};
jQuery.log = function(message) {
 if(window.console) {
  console.debug(message);
 } else {
  alert(message);
 }
};