///////////////////////////////////////////////////////////////////////////

// .JS for steuermann-hamburg.com (c) by Tim Kaiser 2011, http://freemee.de

///////////////////////////////////////////////////////////////////////////

    // set iPhone COOKIE for full site view
    $(document).ready(function(){  
        $(".fullsite").click(function(){ 
            $.cookie("MobileSteuermann", "show-full-site");
        });
    });



    $(document).ready(function(){
          // calculating the fontsize by window height
          var fsize = $(window).height()*$(window).width()/10000;

          if (fsize < 100){ 
          var fsize = 110;
          }
          $('body').css({'font-size': fsize+'px' }); 
          
          // calculating the border width by window width
          var bsize = $(window).width()/200;	
          if (bsize < 3){

          var bsize = 3;
          }   	     

          $('.bilder img').css({'borderWidth': bsize });
          $('#gesichter img').css({'borderWidth': bsize });
          $('.txtboxi').css({'height': fsize*1.9+(bsize*2)+'px' });          
          $('.txtboxi').css({'width': fsize*1.9+(bsize*2)+'px' });          
          $('img').css({'height': fsize*1.9+'px' });
    })
    
    
    $(window).resize(function(){
          // calculating the fontsize by window height
          var fsize = $(window).height()*$(window).width()/10000;

          if  (fsize < 100){ 
          var fsize = 110; 
          }
          else{ 
          var fsize = $(window).height()*$(window).width()/10000;
          }
          $('body').css({'font-size': fsize+'px'}); 
          
          // calculating the border width by window width
          var bsize = $(window).width()/200;	
          if (bsize < 3){

          var bsize = 3;
          }
          
          $('.bilder img').css({'borderWidth': bsize });
          $('#gesichter img').css({'borderWidth': bsize });
          $('.txtboxi').css({'height': fsize*1.9+(bsize*2)+'px' });          
          $('.txtboxi').css({'width': fsize*1.9+(bsize*2)+'px' });          
          $('img').css({'height': fsize*1.9+'px' });
    }) 



			// You need to specify the size of your background image here (could be done automatically by some PHP code)
			var FullscreenrOptions = {  width: 1440, height: 1153, bgID: '#bgimg' };
			// This will activate the full screen background!
			jQuery.fn.fullscreenr(FullscreenrOptions);

