// Standard jQuery header
;(function($) {
    var contentSlideShow = function(){
	// hide all of slide contents
	    $('.slideContent').each(function(){
		$(this).hide().css({'position':'absolute'});
	    });
	    $('.slides').cycle({ 
		fx: 'scrollUp' , 
		speed:    300, 
		timeout:  3600, 
		delay:  -1000 
	    });
    }


	$(document).ready(function(){
		$(window).resize(function(){
		    $('.col1').siblings(".col2").each(function(){
			h=$(this).siblings(".col1").height();
			if(h>$(this).height())
			    $(this).height(h);
		    });
		});
	    contentSlideShow();
	    $('h1').click(function(){document.location.href='./'});
	    $('#subnav div').hover(
		function(){$(this).addClass('ov');},
		function(){$(this).removeClass('ov');}
	    );
	    $('#mainnav li').hover(
		function(){$(this).addClass('ov');},
		function(){$(this).removeClass('ov');}
	    );
	});// end document ready
    
	$(window).load(function() {
	    
	    // show slides
/*
	    $('.slides').cycle({ 
		fx: 'scrollUp' , 
		speed:    300, 
		timeout:  3600, 
		delay:  -1000 
	    });
*/
	    //$('.slideContent:first').delay(500).slideDown().addClass('vis');
	    
	    
	    $(window).resize();
	    
	});
    

})(jQuery);
