/*
$('iframe').load(function()
{
alert("ass");
// Set inline style to equal the body height of the iframed content.
//alert(this.contentWindow.document.body.offsetHeight);
//alert(this.contentWindow.document.body.scrollHeight);
//this.style.height = (this.contentWindow.document.body.offsetHeight + 30) + 'px';
var iframeHeight = this.contentWindow.document.body.scrollHeight;
//if(navigator.appName != "Microsoft Internet Explorer")
iframeHeight = iframeHeight + 20;
if (iframeHeight < 300)
{
iframeHeight = 300;
}
this.style.height = "" + iframeHeight + "px";
// Content background image scaling
if($('img.contentBack').length > 0) {
var height = $('#middle').height();
$('img.contentBack').attr('height', height);
}
}
);
*/


/*
// For other good browsers.
$('iframe').load(function() {
  this.style.height =   this.contentWindow.document.body.offsetHeight + 'px';
});
*/

jQuery(document).ready(function () {
    //$('iframe').iframeAutoHeight({debug: true});  
	jQuery('#iframe_catalog').iframeAutoHeight({minHeight: 550, heightOffset: 20});      
});


