/* FILE ARCHIVED ON 8:52:52 Mar 14, 2014 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 14:47:28 Apr 11, 2016. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ // $Id: script.js,v 1.1.2.6 2010/07/03 03:00:39 sociotech Exp $ Drupal.behaviors.fusionEqualheights = function (context) { if (jQuery().equalHeights) { $("#header-top-wrapper div.equal-heights div.content").equalHeights(); $("#header-group-wrapper div.equal-heights div.content").equalHeights(); $("#preface-top-wrapper div.equal-heights div.content").equalHeights(); $("#preface-bottom div.equal-heights div.content").equalHeights(); $("#sidebar-first div.equal-heights div.content").equalHeights(); $("#content-top div.equal-heights div.content").equalHeights(); $("#content-region div.equal-heights div.content").equalHeights(); $("#content-bottom div.equal-heights div.content").equalHeights(); $("#node-top div.equal-heights div.content").equalHeights(); $("#node-bottom div.equal-heights div.content").equalHeights(); $("#sidebar-last div.equal-heights div.content").equalHeights(); $("#postscript-top div.equal-heights div.content").equalHeights(); $("#postscript-bottom-wrapper div.equal-heights div.content").equalHeights(); $("#footer-wrapper div.equal-heights div.content").equalHeights(); } }; Drupal.behaviors.fusionIE6fixes = function (context) { // IE6 & less-specific functions // Add hover class to primary menu li elements on hover if ($.browser.msie && ($.browser.version < 7)) { $('form input.form-submit').hover(function() { $(this).addClass('hover'); }, function() { $(this).removeClass('hover'); }); $('#primary-menu ul.sf-menu li.expanded').hover(function() { $(this).addClass('hover'); }, function() { $(this).removeClass('hover'); }); $('.sf-menu li').hover(function() { $(this).addClass('hover'); }, function() { $(this).removeClass('hover'); }); $('#search input#search_header').hover(function() { $(this).addClass('hover'); }, function() { $(this).removeClass('hover'); }); }; }; Drupal.behaviors.fusionOverlabel = function (context) { if (jQuery().overlabel) { $("div.fusion-horiz-login label").overlabel(); } }; Drupal.behaviors.fusionSuperfish = function (context) { $("#primary-menu ul.sf-menu").superfish({ hoverClass: 'sfHover', delay: 250, animation: {opacity:'show',height:'show'}, speed: 'fast', autoArrows: false, dropShadows: false, disableHI: true }).supposition(); }; Drupal.behaviors.fusionSuperfishBlocks = function (context) { $("div.block ul.sf-menu").superfish({ hoverClass: 'sfHover', delay: 250, animation: {opacity:'show',height:'show'}, speed: 'fast', autoArrows: false, dropShadows: false, disableHI: true }).supposition(); }; Drupal.behaviors.fusionGridMask = function (context) { if ($('body.grid-mask-enabled').size() > 0) { var grid_width_pos = parseInt($('body').attr('class').indexOf('grid-width-')) + 11; var grid_width = $('body').attr('class').substring(grid_width_pos, grid_width_pos + 2); var grid = '
'; for (i = 1; i <= grid_width; i++) { grid += '
'; } grid += '
'; $('body.grid-mask-enabled').prepend(grid); $('#grid-mask-overlay .row').addClass('grid' + grid_width + '-' + grid_width); $('#grid-mask-overlay .block .inner').height($('body').height()); } }; Drupal.behaviors.fusionGridMaskToggle = function (context) { if ($('body.grid-mask-enabled').size() > 0) { $('body.grid-mask-enabled').prepend('
grid
'); $('div#grid-mask-toggle') .toggle( function () { $(this).toggleClass('grid-on'); $('body').toggleClass('grid-mask'); }, function() { $(this).toggleClass('grid-on'); $('body').toggleClass('grid-mask'); }); } }; Drupal.behaviors.fusionPanelsShowEdit = function (context) { // Sets parent row and block elements to have "overflow: visible" if editing Panel page if ($("#panels-edit-display-form").size() > 0 || $("#page-manager-edit").size() > 0) { $("#panels-edit-display-form").parents('.row, .block').css("overflow", "visible"); $("#page-manager-edit").parents('.row, .block').css("overflow", "visible"); } }; Drupal.behaviors.fusionScreenshotpreview = function (context) { // Displays Skinr previews if ($('span.preview-icon').size() > 0) { // configure distance of preview from the cursor var xOffset = 20; var yOffset = 0; $('span.preview-icon').hover(function(e){ var img_class = this.id; var caption = $(this).parent().text(); // add preview markup $('body').append('
' + '
' + '
' + caption + '
' + '
'); $("#screenshot").hide(); // hide preview until dimensions are set $("#screenshot").css("left", (e.pageX + xOffset) + "px").css("top", (e.pageY + yOffset) + "px"); // set initial preview position // load image in order to set preview dimensions var img = new Image(); img.onload = function() { var caption_height = parseFloat($("#screenshot .screenshot-caption").css("height")); $("#screenshot").css("height", img.height + caption_height); $("#screenshot").css("width", img.width); $("#screenshot ." + img_class).css("height", img.height); $("#screenshot ." + img_class).css("width", img.width); $("#screenshot .screenshot-caption").css("width", img.width - 10); $("#screenshot").fadeIn("fast"); // now show preview } img.src = $("." + img_class).css("background-image").replace(/^url|[\(\)\"]/g, ''); }, function(){ $("#screenshot").remove(); }); // adjust preview position with cursor movement $("span.preview-icon").mousemove(function(e){ $("#screenshot").css("left", (e.pageX + xOffset) + "px").css("top", (e.pageY + yOffset) + "px"); }); } };