jQuery(document).ready(function($) {
	
	
	$(".modal").colorbox({width:"720px", height:"520px", iframe:true, opacity:0.7});
		
	
	$("#branding_slider").cycle({
		fx: 'fade',
		pager: '#branding_slider_nav',
		cleartype: 0,
		speed: 600,
		timeout: 8000
	});
	
	$("#partner_slider").cycle({
		fx: 'fade',
		pager: '#partner_slider_nav',
		cleartype: 0,
		speed: 600,
		timeout: 3000
	});
	
	$('#monthly_box, #yearly_box').hide();
	$('a#monthly_btn').click(function() {
		$('a.select_btn').removeClass("selected");
		$(this).addClass("selected");
		$('#yearly_box').slideUp('normal');
		$('#monthly_box').slideToggle('normal');
		return false;
	});
	$('a#yearly_btn').click(function() {
		$('a.select_btn').removeClass("selected");
		$(this).addClass("selected");
		$('#monthly_box').slideUp('normal');
		$('#yearly_box').slideToggle('normal');
		return false;
	});

	
	$('ul#faq_list li div').hide();
	$('ul#faq_list li h4').click(function() {
		$(this).next('div').slideToggle('normal');
		return false;
	});
	
	
	$('#coda-slider-1').codaSlider({
		autoHeightEaseDuration: 600,
		autoHeightEaseFunction: "easeOutCubic",
		slideEaseDuration: 600,
		slideEaseFunction: "easeOutCubic"
	});
	
	
	

	
  
  // IE6 doesn't handle the fade effect very well - so we'll stick with
  // the default non JavaScript version if that is the user's browser.
  if ($.browser.msie && $.browser.version < 7) return;
  
  $('#menu-main').removeClass('highlight');
  $('#menu-main li')
  
    // within the context of the li element, find the a elements
    .find('a')
    
    // create our new span.hover and loop through anchor:
    .append('<span class="hover" />').each(function () {
      
      // cache a copy of the span, at the same time changing the opacity
      // to zero in preparation of the page being loaded
      var $span = $('> span.hover', this).css('opacity', 0);
      
      // when the user hovers in and out of the anchor
      $(this).hover(function () {
        // on hover
        
        // stop any animations currently running, and fade to opacity: 1
        $span.stop().fadeTo(200, 1);
      }, function () {
        // off hover
        
        // again, stop any animations currently running, and fade out
        $span.stop().fadeTo(400, 0);
      });
    });
	
	

});


	
	

