if(typeof window.jQuery=="function"){;(function($){/*!
  multiheader - jQuery plugin that creates a rotating graphic with basic controls
 
  Based on concepts from Matt Oakes <http://portfolio.gizone.co.uk/applications/slideshow/>
  and Torsten Baldes <http://medienfreunde.com/lab/innerfade/>
 */jQuery.fn.multiheader=function(uSettings){var settings=jQuery.extend({speed:2000,timeout:4000,autostart:true,hoverpause:false,start_el:0},uSettings);var $browser=jQuery.browser;if(($browser.msie&&$browser.version<'7')||($browser.mozilla&&$browser.version<'4')){jQuery.fx.interval=50;};return this.each(function(){var $multiheader=jQuery(this),$mh_elements=jQuery('.showcasemh-content>li',$multiheader),$mh_nav=jQuery('.showcasemh-nav',$multiheader),mh_hoverpause_state=false,mh_timer=false,current_el=(settings.start_el>0&&settings.start_el<$mh_elements.length)?settings.start_el:0;$mh_elements.parent().css({position:'relative',height:$mh_elements.parent().height()+'px'});$mh_elements.each(function(i){jQuery(this).css({position:'absolute',top:0,left:0}).hide();if(i==current_el)jQuery(this).stop(true,true).show();});$mh_nav.prepend(jQuery('<a href="javascript:void(0);" class="control control-pause"></a>').click(function(evt){evt.preventDefault();toggle_pause();}));jQuery('a.jump-to',$mh_nav).each(function(i){jQuery(this).click(function(evt){evt.preventDefault();jump_to(i);});});if(settings.autostart==true){/*!
     The following img.load() technique is adapted from jQuery onImagesLoaded plugin. It is used to fight cached images that may not otherwise trigger the .load() event.
    
     Copyright (c) Cirkuit Networks, Inc. (http://www.cirkuit.net), 2008-2010.
     Dual licensed under the MIT and GPL licenses:
      http://www.opensource.org/licenses/mit-license.php
      http://www.gnu.org/licenses/gpl.html
    */$mh_elements.eq(current_el).find('img').load(function(){play();}).each(function(){if(this.complete||this.complete===undefined){var imgSrc=this.src;this.src='data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==';this.src=imgSrc;};});}else{pause();}
if(settings.hoverpause==true){$mh_elements.hover(function(){mh_hoverpause_state=timer;pause();},function(){if(mh_hoverpause_state)play();});};function toggle_pause(){if(mh_timer)pause();else play();};function pause(){if(mh_timer)mh_timer=window.clearInterval(mh_timer);jQuery('a.control',$mh_nav).removeClass('control-play').addClass('control-pause');};function play(){if(mh_timer)mh_timer=window.clearInterval(mh_timer);mh_timer=window.setInterval(function(){next_el=current_el+1;if(next_el<0||next_el>=$mh_elements.length)next_el=0;$mh_elements.eq(current_el).fadeOut(settings.speed);$mh_elements.eq(next_el).fadeIn(settings.speed);current_el=next_el;jQuery('a.jump-to',$mh_nav).removeClass('current').eq(current_el).addClass('current');},(settings.timeout+settings.speed));jQuery('a.control',$mh_nav).removeClass('control-pause').addClass('control-play');};function jump_to(jump_el){if(jump_el<0||jump_el>=$mh_elements.length){return false;};pause();$mh_elements.stop(true,true).hide();$mh_elements.eq(jump_el).stop(true,true).show();current_el=jump_el;jQuery('a.jump-to',$mh_nav).removeClass('current').eq(current_el).addClass('current');};});};})(jQuery);};
