$(document).ready(function()
{
	jQuery('ul#headerimg').innerfade({ 
		speed: 1000,
		timeout: 4500,
		type: 'sequence',
		containerheight: '264px'
	});
	
	jQuery('.listtable > tbody > tr > td > a').hover(
		function(){
		$(this).children('.arrow').attr('src', 'images/arrowBlackSmall.png');
		},
		function(){
		$(this).children('.arrow').attr('src', 'images/arrowRedSmall.png');
		}
	);
	
	jQuery('.listtable > tbody > tr > td > a').hover(
		function(){
		$(this).children('.arrow_left').attr('src', 'images/arrowBlackSmall_left.png');
		},
		function(){
		$(this).children('.arrow_left').attr('src', 'images/arrowRedSmall_left.png');
		}
	);
	
	jQuery('.listcontent > a').hover(
		function(){
		$(this).children('.arrow').attr('src', 'images/arrowBlackSmall.png');
		},
		function(){
		$(this).children('.arrow').attr('src', 'images/arrowRedSmall.png');
		}
	);
	
	/** / $('#testId').jScrollPane({showArrows:true}); /**/
	
	jQuery("a[rel='lightbox']").colorbox({slideshow:true,slideshowAuto:true,slideshowSpeed:3000}); 
	jQuery(".lightbox").colorbox();
	
});

$(document).ready(function(){
    $('#menu > ul > li:not(.active)').flash(
        { 
            src: 'scripts/itc_impact.swf', 
            flashvars: { 
                css: [
                    '* { color: #666666; }',
                    'a { color: #272727; text-decoration: none; display: block; font-size:18px; text-transform:uppercase}',
                    'a:hover { 	color: #c00d12; text-decoration: none; }',
                    'a.active{color:#c00d12}'
                ].join(' ')
            }
        },
        { version: 7 },
        function(htmlOptions) {
            htmlOptions.flashvars.txt = this.innerHTML;
            this.innerHTML = '<div>'+this.innerHTML+'</div>';
            var $alt = $(this.firstChild);
            htmlOptions.height = 20;
            htmlOptions.width = $alt.width();
            $alt.addClass('alt');
            $(this)
                .addClass('flash-replaced')
                .prepend($.fn.flash.transform(htmlOptions));						
        }
    );
    
    $('#menu > ul > li.active').flash(
        { 
            src: 'scripts/itc_impact.swf', 
            flashvars: { 
                css: [
                    '* { color: #666666; }',
                    'a { color: #c00d12; text-decoration: none; display: block; font-size:18px; text-transform:uppercase}',
                    'a:hover { 	color: #c00d12; text-decoration: none; }',
                    'a.active{color:#c00d12}'
                ].join(' ')
            }
        },
        { version: 7 },
        function(htmlOptions) {
            htmlOptions.flashvars.txt = this.innerHTML;
            this.innerHTML = '<div>'+this.innerHTML+'</div>';
            var $alt = $(this.firstChild);
            htmlOptions.height = 20;
            htmlOptions.width = $alt.width();
            $alt.addClass('alt');
            $(this)
                .addClass('flash-replaced')
                .prepend($.fn.flash.transform(htmlOptions));						
        }
    );
});
