$('.row1 .column2 .cell1 .texts').corner('5px');

jQuery(document).ready(function($){
	$(function(){
		$('.row1 .column1 .cell2').jScrollPane({
			verticalGutter: 14
		});
	});

    var bgMargin	=	0;
	var ratio		= 	0.75;

	fullBgImageResize(ratio);
		
	$(window).bind('resize', function(){
		
		fullBgImageResize(ratio);
			
	}); 

});

function fullBgImageResize(ratio)
{		
		var windowHeight	= 	$('#superwrapper').height();
		var windowWidth 	= 	$('#superwrapper').width();
		
		if ( windowWidth < (windowHeight / ratio))
		{
			$('.background img').css('height', windowHeight + 'px');
			$('.background img').css('width','auto');
			bgMargin = ($('.background img').width() - windowWidth) / 2;
			$('.background img').css('margin-left','-' + bgMargin + 'px');
			$('.background img').css('margin-top','0px');
		}
		else
		{
			$('.background img').css('height', 'auto');
			$('.background img').css('width',windowWidth + 'px');	
			bgMargin = ($('.background img').height() - windowHeight) / 2;
			$('.background img').css('margin-left','0px');
			$('.background img').css('margin-top','-' + bgMargin + 'px');		
		}
}


$('#h2Heading').live('click', function() {
	if ($('#h2Heading').hasClass('closed')) {
		$('.row1 .column1').animate({
			height: '246px'
		}, 500, function() {
			$('#h2Heading').attr('class', 'open');
		});
	} else {
		$('.row1 .column1').animate({
			height: '32px'
		}, 500, function() {
			$('#h2Heading').attr('class', 'closed');
		});
	}
});
				var _gaq = _gaq || [];
				_gaq.push(['_setAccount', 'UA-26789377-1']);
				_gaq.push(['_trackPageview']);
				_gaq.push(['_trackPageLoadTime']);
				
				(function() {
					var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
					ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
					var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
				})();
