
	// JavaScript Document
	
	var iphone = (navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i));
	var ipad = (navigator.userAgent.match(/iPad/i));

	$(document).ready(function(){ 
	
		$("ul.sf-menu").superfish({ 
			pathClass:  'current_path',
			pathLevels: 1,
			speed: 'fast'
		});
		
		if( iphone ) { 
		} else {
			stretchToWindowHeight( 'content', 200 );
		}
		
		column_resize();
		$(window).bind('resize', column_resize);
	});
	
	
	function column_resize()
	{
		var bodyHeight = document.documentElement.offsetHeight ? document.documentElement.offsetHeight : document.body.offsetHeight;

		$('.intranet_dash_column_content .content').each(function(){
			var top = $(this).offset().top;
			
			var height = bodyHeight - top - 58;
			
			$(this).css({ height: height });
		});
	}

