// External Links in new window (XHTML valid)

//$(document).ready(function externalLinks() {
//	 if (!document.getElementsByTagName) return;
//	 var anchors = document.getElementsByTagName("a");
//	 for (var i=0; i<anchors.length; i++) {
//	   var anchor = anchors[i];
//	   if (anchor.getAttribute("href") &&
//		   anchor.getAttribute("rel") == "external")
//		 anchor.target = "_blank";
//	 }
//	}
//);

$(document).ready(function(){
  $('a[rel=external]').attr('target','_blank');
  $('.rssside a').attr('target','_blank');
});


// jQuery Slideshow    
$(document).ready(function() {
        $('#wrapper').localScroll({
        });
        
        $('#headpicshow').cycle({ 
            fx:      'custom', 
            timeout:       3600,
            speed:  '1200', 
            next:   '#nextpic', 
            prev:   '#prevpic',		
            cssBefore: {  
                left: 600,  
                top:  75,  
                width: 0,  
                height: 0,  
                opacity: 1, 
                zIndex: 1 
            }, 
            animOut: {  
                opacity: 0  
            }, 
            animIn: {  
                left: 0,  
                top: 0,  
                height:  280,  
                width:   611  
            }, 
            cssAfter: {  
                zIndex: 0 
            }, 
            delay: 2400 
        });
    
    });
