
(function ($) {
  $(window).load(function() { // so safari and chrome read width/height correctly

	// WRAPPING TEXT WITH BULLETS need special attention so the bullets aren't pushed under the img or div the content is wrapping around
	$('#content .node ul').not("#content .node ul ul").each(function() {
      if($(this).attr('style')) {
        oldstyle = $(this).attr('style');
      }
      else{
        oldstyle = '';
      }
      $(this).parent('div').css('position', 'relative');
      $(this).css('float', 'left');
      var offset = $(this).position();
      if (offset.left > 0) {
        var paddingLeft = offset.left + parseInt($(this).css('padding-left').replace('px', ''));
        $(this).css('padding-left', paddingLeft);
        $(this).css('float', '');
      }
      else {
        $(this).attr('style', oldstyle);
        $('<div class="clear left"></div>').insertAfter(this);
      }
      
    });
  });

})(jQuery);;

(function ($) {
  $(window).load(function() { // so safari and chrome read width/height correctly
	var dom = '.front #subfooter .block';
    //set all subfooter blocks to the largest height
	// highest_height('.region-subfooter', '.content .view');
    var highestHeight = 0;
    $(dom).each(function () {
      var height = $(this).height(); // gets height of a "slide"
      if (height>highestHeight) highestHeight=height;
    });
    $(dom).height(highestHeight).css('position', 'relative'); // sets height to highest value
    $('.front #subfooter .views-field-view-node, .front #subfooter .more-link').css('position', 'absolute'); 
    
    $('.front #subfooter .views-field-view-node').each(function() {
      var slide_parent = $(this).parents('div.views-slideshow-cycle-main-frame-row-item');
      slide_parent.height(highestHeight).css('position', 'relative');
    });
    
  });

})(jQuery);;

