$(document).ready(function(){
		// Cycle the home tabs
		$('#featured-tabs-container') 
		.after('<ul id="featured-tabs-selectors">') 
		.cycle({ 
			 	cleartype:  1, 
				timeout: 2000, 
				effect: 'fade',
				speed: 500,
				pause: true,
		    pager:  '#featured-tabs-selectors',
				pagerEvent:   'mouseover',
		    pagerAnchorBuilder: function(idx, slide) { 
		        return '<li class="' + jQuery(slide).attr("id") + ' ">' + jQuery(slide).find("div.tab-text").html() + '</li>'; 
		    }
		});

		$('#featured ul').hover(function(){
			$('#featured-tabs-container').cycle("pause");
		}, function(){
			$('#featured-tabs-container').cycle("resume");
		});
	


	  //IE drop down fix
	  if (document.all) {
	    $("#nav > li").hoverClass("sfHover");
	  }
  // POPUPS
/*  $(".popup").click(function(){        
    window.open($(this).attr("href"), "popup1","width=550, height=500, toolbar=no, directories=no, location=no, status=yes, menubar=no, resizable=yes, scrollbars=yes"); 
    return false;     
  });
  $(".popupMini").click(function(){        
      window.open($(this).attr("href"), "popup2","width=400, height=200, toolbar=no, directories=no, location=no, status=yes, menubar=no, resizable=yes, scrollbars=yes"); 
      return false;     
  });
  $(".popupLarge").click(function(){        
        window.open($(this).attr("href"), "popup3","width=700, height=500, toolbar=no, directories=no, location=no, status=yes, menubar=no, resizable=yes, scrollbars=yes"); 
        return false;     
  });*/

});
$.fn.hoverClass = function(c) {
    return this.each(function(){
        $(this).hover( 
            function() { $(this).addClass(c);  },
            function() { $(this).removeClass(c); }
        );
    });
};

  
