﻿// JScript File
$(document).ready(function() {
        $(function(){
            $("body").css("background", "#fff url('siteFiles/images/bg-home-no-sweep.jpg') no-repeat center 5px");
        });

        $(document).pngFix();

        $('ul.sf-menu').superfish({ 
            delay:       1000,                            // one second delay on mouseout 
            animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
            speed:       'fast',                          // faster animation speed 
            autoArrows:  true,                           // disable generation of arrow mark-up 
            dropShadows: false                            // disable drop shadows 
        });
        
        $('a[rel*="external"]').click(function(){
            this.target='_blank'; 
        });
        
        $('.noclick').click(function(){
            return false;
        });
        
        $(".stenaTimetable tr").hover(
            function(){
            $(this).addClass("highlight");},
            function(){
            $(this).removeClass("highlight");
        });
        
        $('#flash-sweep').css({display:'block',position:'absolute', top:'330px', left:'200px', border:'none', width:'690px', height:'431px'});
        $('#flash-sweep').flash(
        { src: 'siteFiles/resources/flash/sweep-overlay-02.swf',
          width: 690,
          height: 431,
          wmode: 'transparent' },
        { version: 8,
          expressInstall: true
         }
        );
        
        $('a[rel*="popup-link-300-400"]').click(function(e){ 
            e.preventDefault();
            var features =  "height=400,width=300,scrollTo,resizable=1,scrollbars=1,location=0";
            newwindow=window.open(this.href, 'Popup', features);
            return false;
        }); 
        
        if ($('.alt').length) {$(".alt").css({display:'none'});};
});

