$(document).ready(function() {

	// Add necessary classes for dropdown to work in IE6
	$('#main_nav ul > li').hover(
      function () {
        $(this).find("a:first").addClass('hover');
        $(this).find("ol:first").addClass('show');
      }, 
      function () {
        $(this).find("a:first").removeClass('hover');
        $(this).find("ol:first").removeClass('show');
      }
    );
	/*
	// special treatment for countries dropdown...
	$('li.countries').hover(
      function () {
        $('#country_list').show();
      }, 
      function () {
        $('#country_list').hide();
      }
    );

	// tab behavior - show/hide "pages" within main content
	// tab anchor should be same as .page ID
	$('.page').hide();
	$('.first_page').show();
	$('.tabs a').click(function() {
		// change tab state
		$('.tabs li').removeClass('selected');
		$(this).parent().addClass('selected');
		// change page
		var page = $(this).attr('href');
		$('.page').hide();
		$(page).show();
		return false;
	});

	// Home Page hover state of feature tabs for IE6
	$('#feature ol li').hover(
      function () {
        $(this).addClass('on');
      }, 
      function () {
        $(this).removeClass('on');
      }
    );
	
	// and the click functions
	$('#feature ol li').click(function() {
		var url = $(this).find('.more').attr('href');
		window.location = url;
	});
	*/

	// Suite quote slideshow
	$('#slideshow').innerfade({
		speed: 'slow',
		timeout: 7000,
		type: 'sequence',
		containerheight: '396px'
	});
});
