
/**
 * @author Nils Hendriks www.nilshendriks.com
 */
 /* -------------------------------------- */


/* ::Global Vars */


/* -------------------------------------- */

/* ::Default Functions */
FnDefault = {
	init: function () {
        /* ::Enable Javascript-enabled stylesheet */
        var head_css = $('<link rel="stylesheet" href="presentation/css/js-enabled.css" type="text/css" media="screen" />').appendTo($('head')[0]);
	}	
	
	
	/* -------------------------------------- */
}


/* ::Document Ready function Callers  */
$(document).ready(function () {

	/* =Initialize default Functions (Fn) */
	//FnDefault.init();
});
/* -------------------------------------- */




$(window).load(function() {

var docWidth = document.width;
var docHeight = document.height;    

    // 'fix' iOS landscape orientation zoom bug
    if (navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPad/i)) {
    
    var winWidth = screen.width;
    var winHeight = screen.height;        
    
      var viewportmeta = document.querySelector('meta[name="viewport"]');
      if (viewportmeta) {
        viewportmeta.content = 'width=device-width, minimum-scale=1.0, maximum-scale=1.0';
        document.body.addEventListener('gesturestart', function() {          
          viewportmeta.content = 'width=device-width, minimum-scale=0.5, maximum-scale=1.6';
        }, false);
      }
    }
});




