var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); // centerwidth) { jQuery(this).css({width: maxwidth}); jQuery(this).css({height: newimgheight}); } }); /* Images with caption */ jQuery("div.wp-caption").each(function() { var captionwidth = jQuery(this).width(); var maxcaptionwidth = centerwidth + 'px'; var captionheight = jQuery(this).height(); var captionimgwidth = jQuery("div.wp-caption img").width(); var captionimgheight = jQuery("div.wp-caption img").height(); if (captionwidth > centerwidth) { jQuery(this).css({width: maxcaptionwidth}); var newcaptionheight = (centerwidth / captionwidth * captionheight) + 'px'; var newcaptionimgheight = (centerwidth / captionimgwidth * captionimgheight) + 'px'; jQuery(this).css({height: newcaptionheight}); jQuery("div.wp-caption img").css({height: newcaptionimgheight}); } }); /* sfhover for LI:HOVER support in IE6: */ jQuery("ul li"). hover( function() { jQuery(this).addClass("sfhover") }, function() { jQuery(this).removeClass("sfhover") } ); /* End IE6 */ } /* Since 3.7.8: Auto resize videos (embed and iframe elements) TODO: Parse parent's dimensions only once per layout column, not per video */ function bfa_resize_video() { jQuery('embed, iframe').each( function() { var video = jQuery(this), videoWidth = video.attr('width'); // use the attr here, not width() or css() videoParent = video.parent(), videoParentWidth = parseFloat( videoParent.css( 'width' ) ), videoParentBorder = parseFloat( videoParent.css( 'border-left-width' ) ) + parseFloat( videoParent.css( 'border-right-width' ) ), videoParentPadding = parseFloat( videoParent.css( 'padding-left' ) ) + parseFloat( videoParent.css( 'padding-right' ) ), maxWidth = videoParentWidth - videoParentBorder - videoParentPadding; if( videoWidth > maxWidth ) { var videoHeight = video.attr('height'), videoMaxHeight = ( maxWidth / videoWidth * videoHeight ); video.attr({ width: maxWidth, height: videoMaxHeight }); } }); } bfa_resize_video(); jQuery(window).resize( bfa_resize_video ); jQuery(".post table tr"). mouseover(function() { jQuery(this).addClass("over"); }). mouseout(function() { jQuery(this).removeClass("over"); }); jQuery(".post table tr:even"). addClass("alt"); jQuery("input.text, input.TextField, input.file, input.password, textarea"). focus(function () { jQuery(this).addClass("highlight"); }). blur(function () { jQuery(this).removeClass("highlight"); }) jQuery("input.inputblur"). focus(function () { jQuery(this).addClass("inputfocus"); }). blur(function () { jQuery(this).removeClass("inputfocus"); }) jQuery("input.button, input.Button, input#submit"). mouseover(function() { jQuery(this).addClass("buttonhover"); }). mouseout(function() { jQuery(this).removeClass("buttonhover"); }); /* toggle "you can use these xhtml tags" */ jQuery("a.xhtmltags"). click(function(){ jQuery("div.xhtml-tags").slideToggle(300); }); /* For the Tabbed Widgets plugin: */ jQuery("ul.tw-nav-list"). addClass("clearfix"); /* Strech short pages to full height, keep footer at bottom. */ /* Set a compensation value to fix browser differences and an overall misalignment with this method */ if (jQuery.browser.msie || jQuery.browser.safari) { var bfacompensate = 41; } else { var bfacompensate = 21; } /* Fix a jQuery/Opera 9.5+ bug with determining the window height */ var windowheight = jQuery.browser.opera && jQuery.browser.version > "9.5" && jQuery.fn.jquery <= "1.2.6" ? document.documentElement["clientHeight"] : jQuery(window).height(); /* Top and bottom padding may have been set on the BODY */ var paddingtop = parseInt(jQuery("body").css("padding-top")); var paddingbottom = parseInt(jQuery("body").css("padding-bottom")); /* Get the height of the header, footer, and the layout as a whole */ var headerheight = jQuery("td#header").height(); var footerheight = jQuery("td#footer").height(); var layoutheight = jQuery("div#wrapper").height(); /* Adjust height of middle column if (layout height + body padding-top + body padding-bottom) is smaller than height of browser viewport */ if ( windowheight > (layoutheight + paddingtop + paddingbottom) ) { var newmiddleheight = windowheight - paddingtop - headerheight - footerheight - paddingbottom - bfacompensate; jQuery("td#middle").css({height: newmiddleheight + "px"}); } }); //]]> }