/*
  Plugin: iframe autoheight jQuery Plugin 1.4.1
  see README: http://github.com/house9/jquery-iframe-auto-height
*/
(function(a){a.fn.iframeAutoHeight=function(b){function d(a){c.debug&&c.debug===!0&&window.console&&console.log(a)}var c=a.extend({heightOffset:0,callback:function(a){},debug:!1},b);d(c),a(this).each(function(){function f(a){var b;e(a)?b=a.contentWindow.document.body.scrollHeight+c.heightOffset:b=a.contentWindow.document.body.offsetHeight+c.heightOffset,d("New Height: "+b),a.style.height=b+"px",c.callback({newFrameHeight:b})}function e(a){if(a.contentWindow.document.compatMode&&b()&&"function"==typeof window.ActiveXObject){d("IE Quirks mode");return!0}return!1}function b(){return typeof window.ActiveXObject!="undefined"}d(this);if(a.browser.safari||a.browser.opera){d("browser is webkit or opera"),a(this).load(function(){var a=this;a.style.height="0px";var b=function(){f(a)};setTimeout(b,0)});var g=a(this).attr("src");a(this).attr("src",""),a(this).attr("src",g)}else a(this).load(function(){f(this)})})}})(jQuery); 
