if (image_height) {
} else {
	var image_height = "550";
}

$(document).ready(function () {

   var $img = $('img')
     , ratio
     , offsetX = $img.offset().left
     , offsetY = $img.offset().top
     ;

   $(window).load(function () {
       ratio = $img.width() / $img.height();
       $(this).resize();
   });

   $(window).resize(function () {

     var viewportWidth = window.innerWidth || document.documentElement.clientWidth;
     var viewportHeight = window.innerHeight || document.documentElement.clientHeight;

     var availWidth = viewportWidth - offsetX - 125;
     var availHeight = viewportHeight - offsetY - 75;
     
     if (availHeight < image_height) {
       jQuery('img').css("height", availHeight);
     }
     
     if (availWidth < 1200) {
			jQuery('h1').css({
			"font-size": Number(availWidth/15)+"pt"
			,"margin-top": "-" + Number(availWidth/80) + "px"
			});
     } else {
	     jQuery('h1').css("font-size", "80pt");
     }
       
   });
});

//GOOGLE ANALYTICS
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-6915748-1']);
_gaq.push(['_trackPageview']);

(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);
})();
