/* This code was injected by Learn360 */ /* * JSMin * Javascript Compressor * http://www.crockford.com/ * http://www.smallsharptools.com/ */ $ektron.fn.autoheight=function(settings) {var settings=$ektron.extend({bindEvents:true,onexception:null},settings);function autoheightIFrame() {var m_iframe=this;function m_autoheightIFrame() {try {if(this.body) {var objIFrame=$ektron(m_iframe);var ht=0;if($ektron.browser.mozilla) {ht=this.documentElement.offsetHeight;} else {ht=this.documentElement.scrollHeight;} if(0==ht)return;var maxht=objIFrame.css("max-height");if("none"==maxht)maxht="";if(maxht&&-1==maxht.indexOf("px")) {if(objIFrame.height()!=ht) {objIFrame.height(ht);$ektron(m_iframe.ownerDocument).trigger($ektron.fn.autoheight.triggerName,[objIFrame,ht]);}} else if(objIFrame.height()!=ht) {if($ektron.browser.mozilla||$ektron.browser.safari) {m_iframe.style.overflowY="hidden";} else {m_iframe.style.overflowY="visible";if($ektron.browser.msie) {if($ektron.browser.version<7) {m_iframe.style.overflowX="hidden";}}} objIFrame.height(ht);if(maxht) {if(parseInt("0"+maxht,10)=7) {if((objIFrame.width()-$ektron(oDoc.body).width())<8) {oDoc.documentElement.style.overflowX="hidden";}}}} catch(ex) {Ektron.OnException($ektron.fn.autoheight,settings.onexception,ex,arguments);}};try {if(m_iframe.contentWindow&&m_iframe.contentWindow.document) {var oDoc=m_iframe.contentWindow.document;if(oDoc.documentElement) {oDoc.documentElement.style.height="";var maxht=$ektron(m_iframe).css("max-height");if("none"==maxht)maxht="";if(!maxht) {if($ektron.browser.mozilla||$ektron.browser.safari) {oDoc.documentElement.style.overflowY="hidden";} else {oDoc.documentElement.style.overflowY="visible";if($ektron.browser.msie) {if($ektron.browser.version<7) {oDoc.documentElement.style.overflowX="hidden";} else {m_iframe.style.overflowX="hidden";}}}}} if(oDoc.body)oDoc.body.style.height="";if(settings.bindEvents) {$ektron(oDoc).keyup(m_autoheightIFrame).click(m_autoheightIFrame).each(m_autoheightIFrame);} else {$ektron(oDoc).each(m_autoheightIFrame);}}} catch(ex) {Ektron.OnException($ektron.fn.autoheight,settings.onexception,ex,arguments);}};if(settings.bindEvents) {this.filter("iframe").load(autoheightIFrame).each(autoheightIFrame);} else {this.filter("iframe").each(autoheightIFrame);} return this;};$ektron.fn.autoheight.triggerName="EktronAutoheight";$ektron.fn.autoheight.onexception=Ektron.OnException.diagException;