/* * Daniel O'Connell's Sons * Common JS functions * Author: TJ Kelly - www.tjkelly.com */ $(window).load(function(){ // Include Enriched CSS $('').appendTo('head'); // enteral links var $a=$('a[rel="external"]'); $a.each(function(){ $(this).attr('target','_blank'); }); // photo rotator var $image_rotator=$('div.image_rotator'); $image_rotator.innerfade({ animationtype:'fade', // Type of animation 'fade' or 'slide' (Default: 'fade') speed:'normal', // Fading-/Sliding-Speed in milliseconds or keywords (slow, normal or fast. Default: 'normal') timeout:'6500', // timeout: Time between the fades in milliseconds (Default: '2000'), type:'sequence', // type: Type of slideshow: 'sequence', 'random' or 'random_start' (Default: 'sequence') containerheight:'500px', // containerheight: Height of the containing element in any css-height-value (Default: 'auto'), runningclass:'innerfade', // runningclass: CSS-Class which the container get’s applied (Default: 'innerfade') children:'' // children: optional children selector (Default: null) }); var $gallery=$('.gallery'); $gallery.galleryView({ panel_width: 639, panel_height: 500, frame_width: 100, frame_height: 100 }); });