function cl(arg) { console.log(arg); }

// fixes IE flicker
if ($.browser.msie == true) { 
  document.execCommand('BackgroundImageCache', false, true); 
}

function iframeResize(){
  var frame = $('#iframe');
	var wrapper = $('#wrapper');
	var content = $('#content')
	
	ch = parseInt($(window).height())-145;
	cw = parseInt($(window).width())-42;
	
	content.css('height', ''+ch+'px');
	content.css('width', ''+cw+'px');
	
	var h = parseInt(content.height());
	var w = parseInt(content.width());
	
  frame.css('height', ''+h+'px');
  frame.css('width', ''+w+'px');
}

  function ie6(){
    return $.browser.msie;
  }

$(function(){
	
	iframeResize();
	var navi = $('#navi');


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

