
$(document).ready(function(){$('a[rel^="external"]').bind('click',function(){window.open(this.href);return false;});if($('#content.with-image').length==1){var h1=$('#content.with-image').height();var h2=$('#image-holder').height();if((h1>0)&&(h2>0)){if(h1>h2)$('#image-holder').css('height',(h1+50)+'px');if(h2>h1)$('#content.with-image').css('height',(h2-50)+'px');}}
doSlideShow();});function doSlideShow(){if($('#image-holder IMG').length<2)return;$('#image-holder IMG').hide();$('#image-holder IMG:first').show().addClass('show');window.slideShowInterval=setInterval('doGallery()',6000);}
function doGallery(){var current=($('#image-holder IMG.show')?$('#image-holder IMG.show'):$('#image-holder IMG:first'));var next=((current.next().length)?current.next():$('#image-holder IMG:first'));next.addClass('show').fadeIn(1000);current.fadeOut(1000).removeClass('show');}
